From ef0a83d7834bdc1e5a146f4f237382ae754150af Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sun, 27 Sep 2020 16:39:18 +0800 Subject: [PATCH 0001/1247] dts/panel: add the dts file for denver's touchscreen dts/panel: add the dts file for denver's touchscreen Change-Id: Id87183f8d49490c0cf4f023944e3508616ded330 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1761134 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jun Weng --- qcom/denver-touchscreen.dtsi | 90 ++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100755 qcom/denver-touchscreen.dtsi diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi new file mode 100755 index 000000000000..68dc270e83ec --- /dev/null +++ b/qcom/denver-touchscreen.dtsi @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + panel = <&dsi_nt36675_auo_video>; + status = "ok"; + }; + +}; From be3701be51240eef46cd460fcc03288a7af7a4b2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sun, 27 Sep 2020 16:40:25 +0800 Subject: [PATCH 0002/1247] dts/panel: add the dts file for denver's display dts/panel: add the dts file for denver's display Change-Id: Ief951c4e76aea60ca42347485795e8694fd54ae7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1761136 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jun Weng --- qcom/denver-display.dtsi | 105 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) create mode 100644 qcom/denver-display.dtsi diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi new file mode 100644 index 000000000000..bef62575edb8 --- /dev/null +++ b/qcom/denver-display.dtsi @@ -0,0 +1,105 @@ + +#include "display/dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "display/dsi-panel-mot-dummy-qhd-video.dtsi" + + + +&pm6150a_amoled { + status = "disabled"; +}; + +&pm6150l_lcdb { + status = "ok"; +}; + +&pm6150l_wled { + status = "ok"; +}; + +&sde_dsi { + lab-supply = <&lcdb_ldo_vreg>; + ibb-supply = <&lcdb_ncp_vreg>; + vddio-supply = <&L1E>; + + qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; +}; + +&dsi_panel_pwr_supply { + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; +}; + +&dsi_nt36675_auo_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 06 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; From 1ce2e0055cb40888909f0d301dddd9529afd7acb Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sun, 27 Sep 2020 16:37:55 +0800 Subject: [PATCH 0003/1247] dts/panel: include the dts file of denver's panel and touch dts/panel: include the dts file of denver's panel and touch Change-Id: I3b43d9222c9bda918106c3a25709baef63b89dc7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1761133 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jun Weng --- qcom/holi-mtp-usbc-overlay.dts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcom/holi-mtp-usbc-overlay.dts b/qcom/holi-mtp-usbc-overlay.dts index 730400e7c767..df446e7e60d2 100644 --- a/qcom/holi-mtp-usbc-overlay.dts +++ b/qcom/holi-mtp-usbc-overlay.dts @@ -1,7 +1,9 @@ /dts-v1/; /plugin/; -#include "holi-mtp-usbc.dtsi" +#include "holi-mtp.dtsi" +#include "denver-display.dtsi" +#include "denver-touchscreen.dtsi" / { model = "Qualcomm Technologies, Inc. Holi MTP USBC audio"; From 2f7947fa28661ec94c81c626f78c0d01787f9570 Mon Sep 17 00:00:00 2001 From: jixj Date: Tue, 29 Sep 2020 11:23:09 +0800 Subject: [PATCH 0004/1247] arm/dt: denver: initial set of dts files Intial set of DTS files added to support EVT1 HW called Denver Change-Id: I29b5054a90229b3789197db70469592520550262 Reviewed-on: https://gerrit.mot.com/1762909 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Huosheng Liao --- qcom/Makefile | 15 ++ qcom/holi-denver-common-overlay.dtsi | 15 ++ qcom/holi-denver-evt1-overlay.dts | 24 ++ qcom/holi-moto-base.dts | 28 +++ qcom/holi-moto-common-overlay.dtsi | 332 +++++++++++++++++++++++++++ 5 files changed, 414 insertions(+) create mode 100644 qcom/holi-denver-common-overlay.dtsi create mode 100644 qcom/holi-denver-evt1-overlay.dts create mode 100644 qcom/holi-moto-base.dts create mode 100644 qcom/holi-moto-common-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 972c845c97a4..e9c40adbabe9 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -1,3 +1,17 @@ +# Only include Motorola DTBs +ifeq ($(CONFIG_MMI_DEVICE_DTBS),y) +ifneq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) +$(error Moto DT w/o overlay is undefined!!!) +endif + +# Motorola Device Trees +dtbo-$(CONFIG_DENVER_DTB) += \ + holi-denver-evt1-overlay.dtbo + +holi-denver-evt1-overlay.dtbo-base := holi-moto-base.dtb + + +else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) dtbo-$(CONFIG_ARCH_LAHAINA) += lahaina-rumi-overlay.dtbo \ @@ -516,6 +530,7 @@ dtb-$(CONFIG_ARCH_QTI_VM) += shima-vm-rumi.dtb \ shima-vm-qrd.dtb endif endif +endif dtb-$(CONFIG_ARCH_SDXNIGHTJAR) += sdxnightjar-mtp.dtb \ sdxnightjar-cdp.dtb \ diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi new file mode 100644 index 000000000000..3d0934ec8e8b --- /dev/null +++ b/qcom/holi-denver-common-overlay.dtsi @@ -0,0 +1,15 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "denver-display.dtsi" +#include "denver-touchscreen.dtsi" diff --git a/qcom/holi-denver-evt1-overlay.dts b/qcom/holi-denver-evt1-overlay.dts new file mode 100644 index 000000000000..d41e5fa99292 --- /dev/null +++ b/qcom/holi-denver-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-denver-common-overlay.dtsi" + +/ { + model = "Denver"; + compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x41 0xA100>, <0x42 0xA100>; +}; + diff --git a/qcom/holi-moto-base.dts b/qcom/holi-moto-base.dts new file mode 100644 index 000000000000..f05ff0eca462 --- /dev/null +++ b/qcom/holi-moto-base.dts @@ -0,0 +1,28 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "holi.dtsi" + +/ { + qcom,board-id = <0 0>; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi new file mode 100644 index 000000000000..969eb958245e --- /dev/null +++ b/qcom/holi-moto-common-overlay.dtsi @@ -0,0 +1,332 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay.dtsi" +#include "display/holi-sde-display-mtp.dtsi" +#include "holi-thermal-overlay.dtsi" +#include + +&utags { + compatible = "mmi,utags"; + mmi,main-utags = "/dev/block/bootdevice/by-name/utags"; + mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup"; +}; + +&hw { + compatible = "mmi,utags"; + mmi,dir-name = "hw"; + mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; +}; + +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L7E>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L12A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L9E>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L6E>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L18A>; + vdda-pll-supply = <&L22A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L7E>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L12A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L22A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&qupv3_se0_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L11A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pm6350_gpios 2 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + mtp_batterydata: qcom,battery-data { + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-alium-3600mah.dtsi" + #include "qg-batterydata-atl466271_3300mAh.dtsi" + #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + }; +}; + +&pm6150a_amoled { + status = "ok"; +}; + +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L11A>; + avdd-supply = <&L6A>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + +&pm7250b_charger { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now"; + qcom,battery-data = <&mtp_batterydata>; + qcom,sec-charger-config = <1>; + qcom,auto-recharge-soc = <98>; + qcom,step-charging-enable; + qcom,sw-jeita-enable; + qcom,charger-temp-max = <800>; + qcom,smb-temp-max = <800>; + qcom,suspend-input-on-debug-batt; + qcom,fcc-stepping-enable; + qcom,fcc-step-delay-ms = <100>; + qcom,fcc-step-size-ua = <100000>; + qcom,smb-internal-pull-kohm = <0>; + qcom,en-skin-therm-mitigation; + qcom,hvdcp3-standalone-config; +}; + +&pm7250b_qg { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done"; + qcom,battery-data = <&mtp_batterydata>; + qcom,qg-iterm-ma = <150>; + qcom,hold-soc-while-full; + qcom,linearize-soc; + qcom,cl-feedback-on; + qcom,tcss-enable; + qcom,fvss-enable; + qcom,fvss-vbatt-mv = <3300>; + qcom,bass-enable; + qcom,use-cp-iin-sns; +}; + +#include "camera/holi-camera-sensor-mtp.dtsi" + +&pm7250b_charger { + dpdm-supply = <&qusb_phy0>; + + smb5_vbus: qcom,smb5-vbus { + regulator-name = "smb5-vbus"; + }; + + smb5_vconn: qcom,smb5-vconn { + regulator-name = "smb5-vconn"; + }; +}; + +&pm7250b_pdphy { + vdd-pdphy-supply = <&L3A>; + vbus-supply = <&smb5_vbus>; + vconn-supply = <&smb5_vconn>; + + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_TYPEC_CC_ORIENTATION>, + <&pm7250b_charger PSY_IIO_CONNECTOR_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_POWER_ROLE>, + <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, + <&pm7250b_charger PSY_IIO_TYPEC_SRC_RP>, + <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_PR_SWAP>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_PE_START>; + io-channel-names = "pd_active", + "typec_cc_orientation", + "connector_type", + "typec_power_role", + "pd_usb_suspend_supported", + "typec_src_rp", + "pd_in_hard_reset", + "pr_current_max", + "pr_swap", + "pd_voltage_min", + "pd_voltage_max", + "real_type", + "typec_mode", + "pe_start"; +}; + +&usb0 { + extcon = <&pm7250b_pdphy>, <&eud>; +}; From 4096616a0033e1c87c8a9e76799504860835d770 Mon Sep 17 00:00:00 2001 From: Dezhen Hou Date: Tue, 29 Sep 2020 04:08:43 -0500 Subject: [PATCH 0005/1247] Revert "(CR) dts/panel: include the dts file of denver's panel and touch" This reverts commit d9ffa360ef5eda09efbf0b3aee6bc066ae8e1a4d. Change-Id: I6b5e52d69ce45fe2109d256f1559d1bd431a1596 Reviewed-on: https://gerrit.mot.com/1763088 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Xiaojun Ji --- qcom/holi-mtp-usbc-overlay.dts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qcom/holi-mtp-usbc-overlay.dts b/qcom/holi-mtp-usbc-overlay.dts index df446e7e60d2..730400e7c767 100644 --- a/qcom/holi-mtp-usbc-overlay.dts +++ b/qcom/holi-mtp-usbc-overlay.dts @@ -1,9 +1,7 @@ /dts-v1/; /plugin/; -#include "holi-mtp.dtsi" -#include "denver-display.dtsi" -#include "denver-touchscreen.dtsi" +#include "holi-mtp-usbc.dtsi" / { model = "Qualcomm Technologies, Inc. Holi MTP USBC audio"; From 3651eb0290616f2b611fc5971eb0771cbb32499b Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Wed, 30 Sep 2020 09:38:57 +0800 Subject: [PATCH 0006/1247] arm64/dts: config TPS61280a on denver Change-Id: I529793d3044b8c53bb2732b88a2d37ca068da396 Reviewed-on: https://gerrit.mot.com/1763764 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Qinghong Yang --- qcom/holi-denver-common-overlay.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 3d0934ec8e8b..0b64ac33d1bb 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -13,3 +13,30 @@ #include "holi-moto-common-overlay.dtsi" #include "denver-display.dtsi" #include "denver-touchscreen.dtsi" + +&tlmm { + tps61280_en_default: tps61280_en_default { + mux { + pins = "gpio102"; + }; + config { + pins = "gpio102"; + drive_strength = <16>; + output-high; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + tps61280@75 { + compatible = "ti,tps61280"; + reg = <0x75>; + ti,config = <0x0D>; + ti,vout-floor = <0x13>; + ti,vout-roof = <0x17>; + ti,ilim = <0x0F>; + pinctrl-names = "default"; + pinctrl-0 = <&tps61280_en_default>; + }; +}; From d17e5808a546493ab8e898aa5fb174c67e2eb578 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Wed, 30 Sep 2020 09:46:42 +0800 Subject: [PATCH 0007/1247] arm64/dts: denver: enabel sd card Change-Id: Ie0e987997802529817d2188cf20cda1853a19351 Reviewed-on: https://gerrit.mot.com/1763777 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Qinghong Yang --- qcom/holi-denver-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 0b64ac33d1bb..d2eef79b4828 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -40,3 +40,8 @@ pinctrl-0 = <&tps61280_en_default>; }; }; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; From de8b148dbc346a814b5c872c8cebae8ed8b82000 Mon Sep 17 00:00:00 2001 From: liuwang2 Date: Wed, 30 Sep 2020 11:02:26 +0800 Subject: [PATCH 0008/1247] arm64/dt: denver: add camera pmic dts [detail] add camera pmic dts config. Change-Id: I74e76dd2ee3348475e21b9ce9e9849d489ec6a1c Signed-off-by: liuwang2 Reviewed-on: https://gerrit.mot.com/1763825 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Dawei Wang --- qcom/holi-denver-common-overlay.dtsi | 84 ++++++++++++++++++++++++++++ qcom/holi-moto-common-overlay.dtsi | 2 - 2 files changed, 84 insertions(+), 2 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index d2eef79b4828..f2b27b3a8e9e 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -13,6 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "denver-display.dtsi" #include "denver-touchscreen.dtsi" +#include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { @@ -45,3 +46,86 @@ status = "ok"; cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; + +&tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 969eb958245e..63c6e36a7f50 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -277,8 +277,6 @@ qcom,use-cp-iin-sns; }; -#include "camera/holi-camera-sensor-mtp.dtsi" - &pm7250b_charger { dpdm-supply = <&qusb_phy0>; From 9bb16c77daccb517c954f96528f5833b74a6e430 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Fri, 9 Oct 2020 10:05:09 +0800 Subject: [PATCH 0009/1247] add build target for ibiza [detail] add build target for ibiza Change-Id: I789231faa911cd8f6434b64d4c0a16c3abb99650 Reviewed-on: https://gerrit.mot.com/1770064 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: gaoyx9 --- qcom/Makefile | 7 +- qcom/holi-ibiza-common-overlay.dtsi | 131 ++++++++++++++++++++++++++++ qcom/holi-ibiza-evt1-overlay.dts | 24 +++++ qcom/ibiza-display.dtsi | 105 ++++++++++++++++++++++ qcom/ibiza-touchscreen.dtsi | 90 +++++++++++++++++++ 5 files changed, 356 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-ibiza-common-overlay.dtsi create mode 100644 qcom/holi-ibiza-evt1-overlay.dts create mode 100644 qcom/ibiza-display.dtsi create mode 100755 qcom/ibiza-touchscreen.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index e9c40adbabe9..69de0e04d60a 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -6,10 +6,15 @@ endif # Motorola Device Trees dtbo-$(CONFIG_DENVER_DTB) += \ - holi-denver-evt1-overlay.dtbo + holi-denver-evt1-overlay.dtbo holi-denver-evt1-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_IBIZA_DTB) += \ + holi-ibiza-evt1-overlay.dtbo + +holi-ibiza-evt1-overlay.dtbo-base := holi-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi new file mode 100644 index 000000000000..aca2fe4a248f --- /dev/null +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -0,0 +1,131 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "ibiza-display.dtsi" +#include "ibiza-touchscreen.dtsi" +#include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" + +&tlmm { + tps61280_en_default: tps61280_en_default { + mux { + pins = "gpio102"; + }; + config { + pins = "gpio102"; + drive_strength = <16>; + output-high; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + tps61280@75 { + compatible = "ti,tps61280"; + reg = <0x75>; + ti,config = <0x0D>; + ti,vout-floor = <0x13>; + ti,vout-roof = <0x17>; + ti,ilim = <0x0F>; + pinctrl-names = "default"; + pinctrl-0 = <&tps61280_en_default>; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <3787500>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4387500>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; diff --git a/qcom/holi-ibiza-evt1-overlay.dts b/qcom/holi-ibiza-evt1-overlay.dts new file mode 100644 index 000000000000..e36f218701ec --- /dev/null +++ b/qcom/holi-ibiza-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "Ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xA100>; +}; + diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi new file mode 100644 index 000000000000..bef62575edb8 --- /dev/null +++ b/qcom/ibiza-display.dtsi @@ -0,0 +1,105 @@ + +#include "display/dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "display/dsi-panel-mot-dummy-qhd-video.dtsi" + + + +&pm6150a_amoled { + status = "disabled"; +}; + +&pm6150l_lcdb { + status = "ok"; +}; + +&pm6150l_wled { + status = "ok"; +}; + +&sde_dsi { + lab-supply = <&lcdb_ldo_vreg>; + ibb-supply = <&lcdb_ncp_vreg>; + vddio-supply = <&L1E>; + + qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; +}; + +&dsi_panel_pwr_supply { + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; +}; + +&dsi_nt36675_auo_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 06 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/ibiza-touchscreen.dtsi b/qcom/ibiza-touchscreen.dtsi new file mode 100755 index 000000000000..68dc270e83ec --- /dev/null +++ b/qcom/ibiza-touchscreen.dtsi @@ -0,0 +1,90 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + panel = <&dsi_nt36675_auo_video>; + status = "ok"; + }; + +}; From dc9286d252fd9b647163de5652f31f5d66bfd29d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sat, 10 Oct 2020 14:28:58 +0800 Subject: [PATCH 0010/1247] denver/panel: update the timings for the dummy panel 1.remove the te-pin 2.change the phy-timings for phy 3.0 Change-Id: Iaf1d4ccbafd634b0fb2db75cf9ddd3e914d782f7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1771063 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index bef62575edb8..55f829c62219 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -90,14 +90,15 @@ }; &mot_dummy_vid_qhd { - qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 - 02 01 02 04 00 0C 12]; + 02 01 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From f82342188b6adf8072a4f92094c7e8c249b7bee9 Mon Sep 17 00:00:00 2001 From: Andrew Wheeler Date: Mon, 14 Oct 2019 12:23:03 -0500 Subject: [PATCH 0011/1247] Ignore manifest linkfiles We/QC are using linkfiles into this project. Ignore them. Change-Id: I373cf1ff78af0d9f1ab02de8ffeeedf21f55bfc9 Reviewed-on: https://gerrit.mot.com/1436539 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Yinjun Chen SME-Granted: Yinjun Chen Submit-Approved: Yinjun Chen Tested-by: Yinjun Chen --- .gitignore | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..411c38ccbf8c --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +# Ignore camera and display directory +qcom/camera +qcom/display +bindings/display/qcom From f8b7927a8f21d17f394f4204cd06bd2c890410c2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sat, 10 Oct 2020 21:15:27 +0800 Subject: [PATCH 0012/1247] dts/panel: add the dts file of auo panel dts/panel: add the dts file of auo panel AUO+NT36675+Video mode +1080*2400 Change-Id: I57c1febc76b83ff95efb11d56ce0c6a98caff7d5 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1771228 Tested-by: Jira Key SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100644 qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi new file mode 100644 index 000000000000..e359db070332 --- /dev/null +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -0,0 +1,79 @@ +&mdss_mdp { + dsi_nt36675_auo_video: qcom,mdss_dsi_nt36675_auo_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_auo_1080p_681"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <80>; + qcom,mdss-dsi-h-back-porch = <80>; + qcom,mdss-dsi-h-pulse-width = <12>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <20>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 68 02 01 + 39 00 00 00 00 00 02 B0 00 + 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 64 00 01 11 + 05 01 00 00 00 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 00 00 01 28 + 05 01 00 00 44 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x35>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + }; + }; + + }; +}; From c7fd436a03e59f31850c72852502ff612a73c939 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sat, 10 Oct 2020 21:18:55 +0800 Subject: [PATCH 0013/1247] dts/panel: add the dts file of dummy panel dts/panel: add the dts file of dummy panel Change-Id: Ie54f5865318d72cf298e349655d25fc77f6801b0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1771229 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-dummy-qhd-video.dtsi | 75 +++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 qcom/dsi-panel-mot-dummy-qhd-video.dtsi diff --git a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi new file mode 100644 index 000000000000..08296985715e --- /dev/null +++ b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi @@ -0,0 +1,75 @@ +/* Copyright (c) 2016-2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&mdss_mdp { + mot_dummy_vid_qhd: qcom,mdss_dsi_mot_dummy_qhd_video { + qcom,mdss-dsi-panel-name = "mipi_mot_video_dummy_qhd"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + + qcom,mdss-dsi-panel-supplier = "video_dummy"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-pan-physical-width-dimension = <54>; + qcom,mdss-pan-physical-height-dimension = <95>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 0>; + + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + + qcom,mdss-dsi-no-panel-on-read-support; + + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-panel-width = <540>; + qcom,mdss-dsi-panel-height = <960>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <4>; + qcom,mdss-dsi-h-pulse-width = <32>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <16>; + qcom,mdss-dsi-v-front-porch = <15>; + qcom,mdss-dsi-v-pulse-width = <1>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-on-command = [ + 05 01 00 00 0A 00 01 11 + 05 01 00 00 00 00 01 29]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 23 00 01 28 + 05 01 00 00 78 00 01 10]; + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + }; +}; From c23cc9bda5e665d331be449a4a02c6dc617649f5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Sat, 10 Oct 2020 21:26:56 +0800 Subject: [PATCH 0014/1247] denver/panel: update the config for the dummy panel 1.add the supply entries 2. add the te-pin Change-Id: I66a05c7e5dec6bb4ab1aa2def4dd62593ebaf6b8 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1771233 Tested-by: Jira Key SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 55f829c62219..900c2562ab03 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -1,6 +1,6 @@ -#include "display/dsi-panel-mot-auo-nt36675-fhd-video.dtsi" -#include "display/dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -90,8 +90,11 @@ }; &mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; qcom,mdss-dsi-t-clk-pre = <0x15>; From 5b051ab159a9cc206ce99412df57021c3b7ed78a Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Mon, 12 Oct 2020 12:53:15 +0800 Subject: [PATCH 0015/1247] arm/dt: ibiza: initial device tree fix up the error project name. this change is for ibiza bringup. Change-Id: I57cb25c8cf2dab89a00e5844cf7e0af7fbdd2eed Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1771725 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-evt1-overlay.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-ibiza-evt1-overlay.dts b/qcom/holi-ibiza-evt1-overlay.dts index e36f218701ec..ff49901bc78d 100644 --- a/qcom/holi-ibiza-evt1-overlay.dts +++ b/qcom/holi-ibiza-evt1-overlay.dts @@ -16,7 +16,7 @@ #include "holi-ibiza-common-overlay.dtsi" / { - model = "Ibiza"; + model = "ibiza"; compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x43 0xA100>; From a885e858cf0d8fde6e2116f86b2022b06ff96ccd Mon Sep 17 00:00:00 2001 From: liaohj Date: Mon, 12 Oct 2020 11:47:30 +0800 Subject: [PATCH 0016/1247] Denver:audio EVB bringup denver audio bringup: 1.qcom 4350 platform 2. android R 3. kernel 5.4 4.wcd9370+aw88258 modify related dts. remove gpio58 for pm8008,because it is for smart pa reset pin. Change-Id: I64c36344b587a5e66f39b8f30d7b3c125a8e349f Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1771685 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-audio-overlay.dtsi | 536 +++++++++++++++++++++++++++ qcom/holi-denver-common-overlay.dtsi | 1 + qcom/holi-moto-common-overlay.dtsi | 1 - qcom/holi-pinctrl.dtsi | 14 - qcom/holi-pmic-overlay.dtsi | 2 - 5 files changed, 537 insertions(+), 17 deletions(-) create mode 100644 qcom/holi-denver-audio-overlay.dtsi diff --git a/qcom/holi-denver-audio-overlay.dtsi b/qcom/holi-denver-audio-overlay.dtsi new file mode 100644 index 000000000000..e1bde3169e13 --- /dev/null +++ b/qcom/holi-denver-audio-overlay.dtsi @@ -0,0 +1,536 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_reset_default: aw882xx_reset_default { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + output-high; + }; + }; + + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s1 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s2 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s3 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1>, + <0x3004 0x1>, <0x3080 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + + wcd938x_tx_slave: wcd938x-tx-slave { + status = "disabled"; + compatible = "qcom,wcd938x-slave"; + reg = <0x0D 0x01170223>; + }; + + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + + wcd938x_rx_slave: wcd938x-rx-slave { + status = "disabled"; + compatible = "qcom,wcd938x-slave"; + reg = <0x0D 0x01170224>; + }; + }; + }; + + wcd938x_codec: wcd938x-codec { + status = "disabled"; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <1800>; + qcom,cdc-micbias2-mv = <1800>; + qcom,cdc-micbias3-mv = <1800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-mtp-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, + <&loopback>, <&compress>, <&hostless>, + <&afe>, <&lsm>, <&routing>, <&compr>, + <&pcm_noirq>; + asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", + "msm-pcm-dsp.2", "msm-voip-dsp", + "msm-pcm-voice", "msm-pcm-loopback", + "msm-compress-dsp", "msm-pcm-hostless", + "msm-pcm-afe", "msm-lsm-client", + "msm-pcm-routing", "msm-compr-dsp", + "msm-pcm-dsp-noirq"; + asoc-cpu = <&dai_mi2s0>, <&dai_mi2s1>, + <&dai_mi2s2>, <&dai_mi2s3>, + <&dai_pri_auxpcm>, + <&dai_sec_auxpcm>, <&dai_tert_auxpcm>, + <&dai_quat_auxpcm>, + <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, + <&afe_proxy_tx>, <&incall_record_rx>, + <&incall_record_tx>, <&incall_music_rx>, + <&incall_music_2_rx>, + <&afe_proxy_tx_1>, + <&proxy_rx>, <&proxy_tx>, + <&usb_audio_rx>, <&usb_audio_tx>, + <&sb_7_rx>, <&sb_7_tx>, <&sb_8_tx>, + <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, + <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, + <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, + <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, + <&va_cdc_dma_0_tx>, <&va_cdc_dma_1_tx>, + <&va_cdc_dma_2_tx>, + <&rx_cdc_dma_0_rx>, <&tx_cdc_dma_0_tx>, + <&rx_cdc_dma_1_rx>, <&tx_cdc_dma_1_tx>, + <&rx_cdc_dma_2_rx>, <&tx_cdc_dma_2_tx>, + <&rx_cdc_dma_3_rx>, <&tx_cdc_dma_3_tx>, + <&rx_cdc_dma_4_rx>, <&tx_cdc_dma_4_tx>, + <&rx_cdc_dma_5_rx>, <&tx_cdc_dma_5_tx>, + <&rx_cdc_dma_7_rx>,<&afe_loopback_tx>; + asoc-cpu-names = "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", + "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", + "msm-dai-q6-auxpcm.1", + "msm-dai-q6-auxpcm.2", "msm-dai-q6-auxpcm.3", + "msm-dai-q6-auxpcm.4", + "msm-dai-q6-dev.224", + "msm-dai-q6-dev.225", "msm-dai-q6-dev.241", + "msm-dai-q6-dev.240", "msm-dai-q6-dev.32771", + "msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773", + "msm-dai-q6-dev.32770", + "msm-dai-q6-dev.242", + "msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195", + "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", + "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", + "msm-dai-q6-dev.16401", + "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", + "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", + "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", + "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", + "msm-dai-cdc-dma-dev.45089", + "msm-dai-cdc-dma-dev.45091", + "msm-dai-cdc-dma-dev.45093", + "msm-dai-cdc-dma-dev.45104", + "msm-dai-cdc-dma-dev.45105", + "msm-dai-cdc-dma-dev.45106", + "msm-dai-cdc-dma-dev.45107", + "msm-dai-cdc-dma-dev.45108", + "msm-dai-cdc-dma-dev.45109", + "msm-dai-cdc-dma-dev.45110", + "msm-dai-cdc-dma-dev.45111", + "msm-dai-cdc-dma-dev.45112", + "msm-dai-cdc-dma-dev.45113", + "msm-dai-cdc-dma-dev.45114", + "msm-dai-cdc-dma-dev.45115", + "msm-dai-cdc-dma-dev.45118", + "msm-dai-q6-dev.24577"; + + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xx>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xx_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xx: aw882xx_smartpa@34 { + compatible = "awinic,aw882xx_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>, <&aw882xx_reset_default>; + reset-gpio = <&tlmm 58 0>; + irq-gpio = <&tlmm 59 0x2008>; + monitor-flag = <1>; + monitor-timer-val = <3000>; + afe-rx-portid = <0x1002>; + afe-tx-portid = <0x1003>; + low-vol-table-down = <3650 9 3 3750 9 2 3900 9 1>; + low-vol-table-up = <4000 9 0 3800 9 1 3700 9 2>; + low-temp-table-down = <0xFFFFFFFB 0x4 0x10 0xFFBEAE7E 0x0 0x5 0x9 0xFFD80505 0x5 0x6 0x6 0xFFED714D>; + low-temp-table-up = <0x7 0x9 0x0 0x00000000 0x2 0x6 0x06 0xFFED714D 0xFFFFFFE 0x05 0x09 0xFFD80505>; + status = "okay"; + }; + + wsa881x_i2c_e: wsa881x-i2c-codec@e { + status = "disabled"; + compatible = "qcom,wsa881x-i2c-codec"; + reg = <0x0e>; + clock-names = "wsa_mclk"; + clocks = <&wsa881x_analog_clk 0>; + qcom,wsa-analog-clk-gpio = <&wsa881x_analog_clk_gpio>; + qcom,wsa-analog-reset-gpio = <&wsa881x_analog_reset_gpio>; + cdc-vdd-1p8-supply = <&L11A>; + qcom,cdc-vdd-1p8-voltage = <1800000 1800000>; + qcom,cdc-vdd-1p8-current = <10000>; + qcom,cdc-static-supplies = "cdc-vdd-1p8"; + qcom,wsa-prefix = "SpkrMono"; + }; + + wsa881x_i2c_44: wsa881x-i2c-codec@44 { + status = "disabled"; + compatible = "qcom,wsa881x-i2c-codec"; + reg = <0x044>; + }; + + wsa881x_i2c_f: wsa881x-i2c-codec@f { + status = "disabled"; + compatible = "qcom,wsa881x-i2c-codec"; + reg = <0x0f>; + clock-names = "wsa_mclk"; + clocks = <&wsa881x_analog_clk 0>; + qcom,wsa-analog-clk-gpio = <&wsa881x_analog_clk_gpio>; + qcom,wsa-analog-reset-gpio = <&wsa881x_analog_reset_gpio>; + cdc-vdd-1p8-supply = <&L11A>; + qcom,cdc-vdd-1p8-voltage = <1800000 1800000>; + qcom,cdc-vdd-1p8-current = <10000>; + qcom,cdc-static-supplies = "cdc-vdd-1p8"; + qcom,wsa-prefix = "SpkrMono"; + }; + + wsa881x_i2c_45: wsa881x-i2c-codec@45 { + status = "disabled"; + compatible = "qcom,wsa881x-i2c-codec"; + reg = <0x045>; + }; + +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + wsa881x_analog_reset_gpio: wsa_reset_gpio { + status = "disabled"; + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&spkr_2_sd_n_active>; + pinctrl-1 = <&spkr_2_sd_n_sleep>; + #gpio-cells = <0>; + }; + + wsa881x_analog_clk: wsa_ana_clk { + status = "disabled"; + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <9600000>; + qcom,codec-lpass-clk-id = <0x301>; + #clock-cells = <1>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index f2b27b3a8e9e..8864519e358a 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "denver-display.dtsi" #include "denver-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" +#include "holi-denver-audio-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 63c6e36a7f50..cdd1f92201d3 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -10,7 +10,6 @@ * GNU General Public License for more details. */ -#include "holi-audio-overlay.dtsi" #include #include #include "holi-pmic-overlay.dtsi" diff --git a/qcom/holi-pinctrl.dtsi b/qcom/holi-pinctrl.dtsi index 07fd5d75b622..cd794ed7e1ec 100644 --- a/qcom/holi-pinctrl.dtsi +++ b/qcom/holi-pinctrl.dtsi @@ -1209,19 +1209,5 @@ output-low; }; }; - - pm8008_active: pm8008_active { - mux { - pins = "gpio58"; - function = "gpio"; - }; - - config { - pins = "gpio58"; - bias-pull-up; - output-high; - drive-strength = <2>; - }; - }; }; }; diff --git a/qcom/holi-pmic-overlay.dtsi b/qcom/holi-pmic-overlay.dtsi index ded1ffc05851..9bc3e2bc607c 100644 --- a/qcom/holi-pmic-overlay.dtsi +++ b/qcom/holi-pmic-overlay.dtsi @@ -421,8 +421,6 @@ reg = <0x8>; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pm8008_active>; pm8008_chip: qcom,pm8008-chip@900 { compatible = "qcom,pm8008-chip"; From b1a1b37c0c06809484918a43bb9b0c4af8bedbd1 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Tue, 13 Oct 2020 10:02:50 +0800 Subject: [PATCH 0017/1247] arm64/dts: ibiza: config TPS61280 As design, ibiza use qupv3_se8_i2c, and RF request roof voltage as 4v, floor voltage as 3.8v. Change-Id: I01b442ea5314e95bc59843336839f52d355d7539 Reviewed-on: https://gerrit.mot.com/1772391 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index aca2fe4a248f..d9c83df693c0 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -28,7 +28,7 @@ }; }; -&qupv3_se10_i2c { +&qupv3_se8_i2c { status = "ok"; tps61280@75 { compatible = "ti,tps61280"; From 74225e412a5cf7cfb3b2f2d743b59b12c18657a9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 13 Oct 2020 10:46:35 +0800 Subject: [PATCH 0018/1247] fixup! (CR) denver/panel: update the config for the dummy panel dts/panel: add the dts file of dummy panel Signed-off-by: houdz1 Change-Id: I1c38e34ed6d2675f61272ed80fd25d27eab8cbdd Reviewed-on: https://gerrit.mot.com/1772452 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-dummy-qhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi index 08296985715e..cb6e09515263 100644 --- a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi +++ b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi @@ -43,7 +43,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; qcom,mdss-dsi-display-timings { timing@0{ From ec3f1f7220988c8e778e1ba1adf8226288618351 Mon Sep 17 00:00:00 2001 From: Chuanchun Zhu Date: Tue, 13 Oct 2020 03:06:19 -0500 Subject: [PATCH 0019/1247] Revert "(CR) arm64/dts: ibiza: config TPS61280" This reverts commit 276ac017eba23c34d89d98fe1fe046aacdf83679. Change-Id: I0142380fe6135336a96f2d53148c386f87391bce Reviewed-on: https://gerrit.mot.com/1772708 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index d9c83df693c0..aca2fe4a248f 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -28,7 +28,7 @@ }; }; -&qupv3_se8_i2c { +&qupv3_se10_i2c { status = "ok"; tps61280@75 { compatible = "ti,tps61280"; From 9ae9b121a5f42533aa5718da33dec2fb140f5c7e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 13 Oct 2020 10:54:32 +0800 Subject: [PATCH 0020/1247] Ibiza/panel: copy panel file from denver Ibiza/panel: copy panel file from denver. Change-Id: Id5cd66af4df0a70e17ba84587f877ab860745374 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1772462 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index bef62575edb8..900c2562ab03 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -1,6 +1,6 @@ -#include "display/dsi-panel-mot-auo-nt36675-fhd-video.dtsi" -#include "display/dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -93,11 +93,15 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 - 02 01 02 04 00 0C 12]; + 02 01 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From 63b02b32cccb0f9d79fec92ae47ccb7edf0989c2 Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 14 Oct 2020 09:42:36 +0800 Subject: [PATCH 0021/1247] Ibiza:audio EVB bringup. 1.qcom 4350 platform 2. android R 3. kernel 5.4 4.wcd9370+aw88258 add Ibiza audio config dts. rename holi-audio-wcd9370-aw882xx-overlay.dtsi as wcd9370+aw882xx common. and delete nouseful wsa config. Change-Id: I30ee49fb6a5d99c6bfe5a00653f3dd4d16fdf13b Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1773361 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...> holi-audio-wcd9370-aw882xx-overlay.dtsi} | 155 +----------------- qcom/holi-denver-common-overlay.dtsi | 2 +- qcom/holi-ibiza-common-overlay.dtsi | 1 + 3 files changed, 3 insertions(+), 155 deletions(-) rename qcom/{holi-denver-audio-overlay.dtsi => holi-audio-wcd9370-aw882xx-overlay.dtsi} (68%) diff --git a/qcom/holi-denver-audio-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi similarity index 68% rename from qcom/holi-denver-audio-overlay.dtsi rename to qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index e1bde3169e13..290250efda7b 100644 --- a/qcom/holi-denver-audio-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -137,13 +137,6 @@ compatible = "qcom,wcd937x-slave"; reg = <0x0A 0x01170223>; }; - - wcd938x_tx_slave: wcd938x-tx-slave { - status = "disabled"; - compatible = "qcom,wcd938x-slave"; - reg = <0x0D 0x01170223>; - }; - }; }; @@ -191,19 +184,9 @@ compatible = "qcom,wcd937x-slave"; reg = <0x0A 0x01170224>; }; - - wcd938x_rx_slave: wcd938x-rx-slave { - status = "disabled"; - compatible = "qcom,wcd938x-slave"; - reg = <0x0D 0x01170224>; - }; }; }; - wcd938x_codec: wcd938x-codec { - status = "disabled"; - }; - wcd937x_codec: wcd937x-codec { compatible = "qcom,wcd937x-codec"; qcom,split-codec = <1>; @@ -261,81 +244,6 @@ qcom,tdm-max-slots = <4>; qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; - asoc-platform = <&pcm0>, <&pcm1>, <&pcm2>, <&voip>, <&voice>, - <&loopback>, <&compress>, <&hostless>, - <&afe>, <&lsm>, <&routing>, <&compr>, - <&pcm_noirq>; - asoc-platform-names = "msm-pcm-dsp.0", "msm-pcm-dsp.1", - "msm-pcm-dsp.2", "msm-voip-dsp", - "msm-pcm-voice", "msm-pcm-loopback", - "msm-compress-dsp", "msm-pcm-hostless", - "msm-pcm-afe", "msm-lsm-client", - "msm-pcm-routing", "msm-compr-dsp", - "msm-pcm-dsp-noirq"; - asoc-cpu = <&dai_mi2s0>, <&dai_mi2s1>, - <&dai_mi2s2>, <&dai_mi2s3>, - <&dai_pri_auxpcm>, - <&dai_sec_auxpcm>, <&dai_tert_auxpcm>, - <&dai_quat_auxpcm>, - <&afe_pcm_rx>, <&afe_pcm_tx>, <&afe_proxy_rx>, - <&afe_proxy_tx>, <&incall_record_rx>, - <&incall_record_tx>, <&incall_music_rx>, - <&incall_music_2_rx>, - <&afe_proxy_tx_1>, - <&proxy_rx>, <&proxy_tx>, - <&usb_audio_rx>, <&usb_audio_tx>, - <&sb_7_rx>, <&sb_7_tx>, <&sb_8_tx>, - <&dai_pri_tdm_rx_0>, <&dai_pri_tdm_tx_0>, - <&dai_sec_tdm_rx_0>, <&dai_sec_tdm_tx_0>, - <&dai_tert_tdm_rx_0>, <&dai_tert_tdm_tx_0>, - <&dai_quat_tdm_rx_0>, <&dai_quat_tdm_tx_0>, - <&va_cdc_dma_0_tx>, <&va_cdc_dma_1_tx>, - <&va_cdc_dma_2_tx>, - <&rx_cdc_dma_0_rx>, <&tx_cdc_dma_0_tx>, - <&rx_cdc_dma_1_rx>, <&tx_cdc_dma_1_tx>, - <&rx_cdc_dma_2_rx>, <&tx_cdc_dma_2_tx>, - <&rx_cdc_dma_3_rx>, <&tx_cdc_dma_3_tx>, - <&rx_cdc_dma_4_rx>, <&tx_cdc_dma_4_tx>, - <&rx_cdc_dma_5_rx>, <&tx_cdc_dma_5_tx>, - <&rx_cdc_dma_7_rx>,<&afe_loopback_tx>; - asoc-cpu-names = "msm-dai-q6-mi2s.0", "msm-dai-q6-mi2s.1", - "msm-dai-q6-mi2s.2", "msm-dai-q6-mi2s.3", - "msm-dai-q6-auxpcm.1", - "msm-dai-q6-auxpcm.2", "msm-dai-q6-auxpcm.3", - "msm-dai-q6-auxpcm.4", - "msm-dai-q6-dev.224", - "msm-dai-q6-dev.225", "msm-dai-q6-dev.241", - "msm-dai-q6-dev.240", "msm-dai-q6-dev.32771", - "msm-dai-q6-dev.32772", "msm-dai-q6-dev.32773", - "msm-dai-q6-dev.32770", - "msm-dai-q6-dev.242", - "msm-dai-q6-dev.8194", "msm-dai-q6-dev.8195", - "msm-dai-q6-dev.28672", "msm-dai-q6-dev.28673", - "msm-dai-q6-dev.16398", "msm-dai-q6-dev.16399", - "msm-dai-q6-dev.16401", - "msm-dai-q6-tdm.36864", "msm-dai-q6-tdm.36865", - "msm-dai-q6-tdm.36880", "msm-dai-q6-tdm.36881", - "msm-dai-q6-tdm.36896", "msm-dai-q6-tdm.36897", - "msm-dai-q6-tdm.36912", "msm-dai-q6-tdm.36913", - "msm-dai-cdc-dma-dev.45089", - "msm-dai-cdc-dma-dev.45091", - "msm-dai-cdc-dma-dev.45093", - "msm-dai-cdc-dma-dev.45104", - "msm-dai-cdc-dma-dev.45105", - "msm-dai-cdc-dma-dev.45106", - "msm-dai-cdc-dma-dev.45107", - "msm-dai-cdc-dma-dev.45108", - "msm-dai-cdc-dma-dev.45109", - "msm-dai-cdc-dma-dev.45110", - "msm-dai-cdc-dma-dev.45111", - "msm-dai-cdc-dma-dev.45112", - "msm-dai-cdc-dma-dev.45113", - "msm-dai-cdc-dma-dev.45114", - "msm-dai-cdc-dma-dev.45115", - "msm-dai-cdc-dma-dev.45118", - "msm-dai-q6-dev.24577"; - - qcom,audio-routing = "AMIC1", "Analog Mic1", "Analog Mic1", "MIC BIAS1", @@ -403,50 +311,7 @@ low-temp-table-down = <0xFFFFFFFB 0x4 0x10 0xFFBEAE7E 0x0 0x5 0x9 0xFFD80505 0x5 0x6 0x6 0xFFED714D>; low-temp-table-up = <0x7 0x9 0x0 0x00000000 0x2 0x6 0x06 0xFFED714D 0xFFFFFFE 0x05 0x09 0xFFD80505>; status = "okay"; - }; - - wsa881x_i2c_e: wsa881x-i2c-codec@e { - status = "disabled"; - compatible = "qcom,wsa881x-i2c-codec"; - reg = <0x0e>; - clock-names = "wsa_mclk"; - clocks = <&wsa881x_analog_clk 0>; - qcom,wsa-analog-clk-gpio = <&wsa881x_analog_clk_gpio>; - qcom,wsa-analog-reset-gpio = <&wsa881x_analog_reset_gpio>; - cdc-vdd-1p8-supply = <&L11A>; - qcom,cdc-vdd-1p8-voltage = <1800000 1800000>; - qcom,cdc-vdd-1p8-current = <10000>; - qcom,cdc-static-supplies = "cdc-vdd-1p8"; - qcom,wsa-prefix = "SpkrMono"; - }; - - wsa881x_i2c_44: wsa881x-i2c-codec@44 { - status = "disabled"; - compatible = "qcom,wsa881x-i2c-codec"; - reg = <0x044>; - }; - - wsa881x_i2c_f: wsa881x-i2c-codec@f { - status = "disabled"; - compatible = "qcom,wsa881x-i2c-codec"; - reg = <0x0f>; - clock-names = "wsa_mclk"; - clocks = <&wsa881x_analog_clk 0>; - qcom,wsa-analog-clk-gpio = <&wsa881x_analog_clk_gpio>; - qcom,wsa-analog-reset-gpio = <&wsa881x_analog_reset_gpio>; - cdc-vdd-1p8-supply = <&L11A>; - qcom,cdc-vdd-1p8-voltage = <1800000 1800000>; - qcom,cdc-vdd-1p8-current = <10000>; - qcom,cdc-static-supplies = "cdc-vdd-1p8"; - qcom,wsa-prefix = "SpkrMono"; - }; - - wsa881x_i2c_45: wsa881x-i2c-codec@45 { - status = "disabled"; - compatible = "qcom,wsa881x-i2c-codec"; - reg = <0x045>; - }; - + }; }; &va_cdc_dma_0_tx { @@ -461,24 +326,6 @@ pinctrl-1 = <&wcd937x_reset_sleep>; }; - wsa881x_analog_reset_gpio: wsa_reset_gpio { - status = "disabled"; - compatible = "qcom,msm-cdc-pinctrl"; - pinctrl-names = "aud_active", "aud_sleep"; - pinctrl-0 = <&spkr_2_sd_n_active>; - pinctrl-1 = <&spkr_2_sd_n_sleep>; - #gpio-cells = <0>; - }; - - wsa881x_analog_clk: wsa_ana_clk { - status = "disabled"; - compatible = "qcom,audio-ref-clk"; - qcom,codec-ext-clk-src = ; - qcom,codec-lpass-ext-clk-freq = <9600000>; - qcom,codec-lpass-clk-id = <0x301>; - #clock-cells = <1>; - }; - clock_audio_rx_1: rx_core_clk { compatible = "qcom,audio-ref-clk"; qcom,codec-ext-clk-src = ; diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 8864519e358a..02cb3c7d2a8b 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -14,7 +14,7 @@ #include "denver-display.dtsi" #include "denver-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" -#include "holi-denver-audio-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index aca2fe4a248f..0aa3d2ffeb13 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { From cac21643d7897d787e1f9c2e06f650ee9f6f7b30 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 13 Oct 2020 17:16:30 +0800 Subject: [PATCH 0022/1247] dts/panel: add DJN panel file DJN panel DJN+AUO+nt36525c 6.517' 720*1600 Change-Id: I7f1452886e4afc48708de963d8d2a37f3958edbc Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1772763 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 77 +++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi new file mode 100644 index 000000000000..e1581d98f6aa --- /dev/null +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -0,0 +1,77 @@ +&mdss_mdp { + dsi_nt36525c_djn_video: qcom,mdss_dsi_nt36525c_djn_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_djn_720p_651"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <102>; + qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-pulse-width = <30>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <318>; + qcom,mdss-dsi-v-front-porch = <8>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 1A 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 00 00 01 28 + 05 01 00 00 44 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x35>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + }; + }; + + }; +}; From 15598bf2a8cfa8dd569d036d38bea11fdf55b553 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Wed, 14 Oct 2020 10:45:38 +0800 Subject: [PATCH 0023/1247] Ibiza: dts: touch nt36525c bringup - Bringup touch novatek nt36525c. - Change default max resolution to 720*1600. Change-Id: Iab9fe9b53d13a262352763707b36a1d96109c868 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1773454 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/ibiza-touchscreen.dtsi b/qcom/ibiza-touchscreen.dtsi index 68dc270e83ec..458c60894008 100755 --- a/qcom/ibiza-touchscreen.dtsi +++ b/qcom/ibiza-touchscreen.dtsi @@ -79,7 +79,7 @@ spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ novatek,reset-gpio = <&tlmm 21 0x00>; novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2400>; + novatek,def-max-resolution = <720 1600>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; From 1e7e3fbdd188d44d6b8de49ca7fb9b663791133c Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Wed, 14 Oct 2020 10:38:32 +0800 Subject: [PATCH 0024/1247] Thermal: Bring up NTC for Denver Config the NTCs of Denver. On board NTC without 5G configuration. Change-Id: I98e81ea149ea9bf0fa9b8e894cc24ab7e1d68cc3 Reviewed-on: https://gerrit.mot.com/1773441 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 115 +++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 02cb3c7d2a8b..cc0b4831f590 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -123,6 +123,121 @@ }; }; +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + &pm8008_8 { status = "disabled"; }; From 516efbeef3aa7b1b1b80863fb26c77e28eae315f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 14 Oct 2020 14:14:07 +0800 Subject: [PATCH 0025/1247] Ibiza/panel: bring up display with DJN panel Ibiza/panel: bring up display with DJN panel Change-Id: Ibb242d60797428e08de8837b9e343d92f5c12869 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1773671 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 900c2562ab03..7c5ddd1050f2 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -1,5 +1,5 @@ -#include "dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "dsi-panel-mot-djn-nt36525c-hd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -21,7 +21,7 @@ ibb-supply = <&lcdb_ncp_vreg>; vddio-supply = <&L1E>; - qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; + qcom,dsi-default-panel = <&dsi_nt36525c_djn_video>; }; &dsi_panel_pwr_supply { @@ -58,7 +58,7 @@ }; }; -&dsi_nt36675_auo_video { +&dsi_nt36525c_djn_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; @@ -77,12 +77,12 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0F>; - qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x34>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 - 0A 06 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 22 08 09 25 23 09 + 09 06 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From 895d4b6f1c7c655cb60041a474c363ee4c194ebc Mon Sep 17 00:00:00 2001 From: liaoxl Date: Wed, 14 Oct 2020 13:47:46 +0800 Subject: [PATCH 0026/1247] arm64/dts: denver enable FM ELNA module Per RF team requirement, add these to support ELNA module for better RF performance. Change-Id: Ife771eaccfbb751d92e843bf6c6e619c5150305a Reviewed-on: https://gerrit.mot.com/1773395 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 1 + qcom/holi-denver-fmr-overlay.dtsi | 48 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/holi-denver-fmr-overlay.dtsi diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index cc0b4831f590..3a8cecbc57fb 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -15,6 +15,7 @@ #include "denver-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-denver-fmr-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-denver-fmr-overlay.dtsi b/qcom/holi-denver-fmr-overlay.dtsi new file mode 100644 index 000000000000..6a2fba46a9a9 --- /dev/null +++ b/qcom/holi-denver-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; From b68234ab5c7f1a634fd6f56f4608047cd86a4922 Mon Sep 17 00:00:00 2001 From: liaoxl Date: Wed, 14 Oct 2020 13:49:19 +0800 Subject: [PATCH 0027/1247] arm64/dts: ibiza: FM ELNA bringup Per RF team req, support ELNA module control for better RF performance. Change-Id: Idfd3ad114310013704d204d9ae3e3ad11032a8aa Reviewed-on: https://gerrit.mot.com/1773396 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Qiu Feng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 1 + qcom/holi-ibiza-fmr-overlay.dtsi | 48 +++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/holi-ibiza-fmr-overlay.dtsi diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 0aa3d2ffeb13..0e4bed94245e 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -15,6 +15,7 @@ #include "ibiza-touchscreen.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-ibiza-fmr-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-ibiza-fmr-overlay.dtsi b/qcom/holi-ibiza-fmr-overlay.dtsi new file mode 100644 index 000000000000..6a2fba46a9a9 --- /dev/null +++ b/qcom/holi-ibiza-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; From b6eb34da871914ef9b0fb65d542666f282811eff Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 14 Oct 2020 10:21:27 +0800 Subject: [PATCH 0028/1247] arm64/dt add kpanic modules Add pstore, watchdog_cpu_ctx, tzlog_dump, and mmi_annotate modules to capture data during panics and watchdogs. Change-Id: I59760ee4db0e57131ea632a311515be1f320de9f Reviewed-on: https://gerrit.mot.com/1773401 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index cdd1f92201d3..f72accd3f78f 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -16,6 +16,7 @@ #include "display/holi-sde-display-mtp.dtsi" #include "holi-thermal-overlay.dtsi" #include +#include &utags { compatible = "mmi,utags"; @@ -29,6 +30,35 @@ mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; }; +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; + &sdhc_1 { status = "ok"; From d8c9c4551f2268d43fe699f7a2bc62e56e553cd0 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Wed, 14 Oct 2020 17:50:01 +0800 Subject: [PATCH 0029/1247] Ibiza: dts: touch nt36525c bringup - Bringup touch novatek nt36525c. - Change panel to dsi_nt36525c_djn_video. Change-Id: Iccf593b07e4d4eadeb6fe597f8a228105e165a75 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1773947 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/ibiza-touchscreen.dtsi b/qcom/ibiza-touchscreen.dtsi index 458c60894008..5f0b0fe4881a 100755 --- a/qcom/ibiza-touchscreen.dtsi +++ b/qcom/ibiza-touchscreen.dtsi @@ -83,7 +83,7 @@ novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; - panel = <&dsi_nt36675_auo_video>; + panel = <&dsi_nt36525c_djn_video>; status = "ok"; }; From 5d82eaad07b688f4ecd5752323d540c9978ecb66 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 14 Oct 2020 14:21:05 +0800 Subject: [PATCH 0030/1247] dts/panel: add the panel physical dimension for AUO panel Add the panel physical dimension for AUO panel. 71mm * 158 mm Change-Id: Id173ff125774d69160e191247cfbcecf5f1d5607 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1773677 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index e359db070332..5ece50924689 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -28,6 +28,8 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <71>; + qcom,mdss-pan-physical-height-dimension = <158>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; From 17dc3a2553be034668fc2550e76e2f04723553f0 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 14 Oct 2020 14:27:17 +0800 Subject: [PATCH 0031/1247] dts/panel: add the panel physical dimension for DJN panel Add the panel physical dimension for DJN panel. 70mm * 157 mm Change-Id: Ib3d594e1f164a58fbc37b6493332e36b11896a1a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1773687 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index e1581d98f6aa..3f99e718a93b 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -28,6 +28,8 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <70>; + qcom,mdss-pan-physical-height-dimension = <157>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <720>; From 4d2090817b8feab2b69025bb103af936d79a5624 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 14 Oct 2020 15:15:43 +0800 Subject: [PATCH 0032/1247] ibiza/panel: update the porch of djn panel update the porch of djn panel. H-porch must be multiple of 4 from Qcom platform. Change-Id: I94a44bec748df296cc1247c89ceade136b32f470 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1773749 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 3f99e718a93b..02124217d41e 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -34,9 +34,9 @@ timing@0 { qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; - qcom,mdss-dsi-h-front-porch = <102>; - qcom,mdss-dsi-h-back-porch = <100>; - qcom,mdss-dsi-h-pulse-width = <30>; + qcom,mdss-dsi-h-front-porch = <44>; + qcom,mdss-dsi-h-back-porch = <44>; + qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; qcom,mdss-dsi-v-back-porch = <318>; From 89a7fb17424ded45eabd355bdc2f71e4a896d02b Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 15 Oct 2020 13:45:33 +0800 Subject: [PATCH 0033/1247] dts: add google key configuration Adding google key configuration. And for gpio-keys node is defined in moto common dtsi file, it could not be changed as each project. So we define its name and recovery its content in the project's own dts file. Change-Id: I92f904109d95d7d46d6ffda7a3d2f8690274b025 Signed-off-by: weiweij Reviewed-on: https://gerrit.mot.com/1774806 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 30 +++++++++++++++++++++++++++++ qcom/holi-moto-common-overlay.dtsi | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 0e4bed94245e..bb3ef2ba108f 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -28,8 +28,38 @@ output-high; }; }; + + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; }; + + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + + &qupv3_se10_i2c { status = "ok"; tps61280@75 { diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index f72accd3f78f..18b05c44c294 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -148,7 +148,7 @@ }; &soc { - gpio_keys { + gpio_keys: gpio_keys { compatible = "gpio-keys"; label = "gpio-keys"; From 7fb96ec3997329965c73693b505dbd0d6f192839 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Thu, 15 Oct 2020 09:37:59 +0800 Subject: [PATCH 0034/1247] THermal:Bring up NTC for Ibiza Config the NTCs for Ibiza. On board NTC without 5G configuration. Change-Id: Iaa3e84913ab86f74fd4672eb6c5bcb3d24915612 Reviewed-on: https://gerrit.mot.com/1774710 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 128 ++++++++++++++++++++++++++++ 1 file changed, 128 insertions(+) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index bb3ef2ba108f..dbecaa27efc6 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -154,6 +154,134 @@ }; }; +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + &pm8008_8 { status = "disabled"; }; From 6d4f59abeaf47621688dc6e6116d9d99426e6146 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 15 Oct 2020 16:36:39 +0800 Subject: [PATCH 0035/1247] arm/dts: config charging parameter config charging parameter and temp battery parameter for bring up Change-Id: Ifd8cb7d804aae748f517792daea748a8b941d0d7 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1774969 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 30 +- qcom/qg-batterydata-lz50-scud-5000mah.dtsi | 1018 ++++++++++++++++++++ 2 files changed, 1034 insertions(+), 14 deletions(-) create mode 100644 qcom/qg-batterydata-lz50-scud-5000mah.dtsi diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 18b05c44c294..6ce9525a3bb9 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -166,11 +166,10 @@ }; }; - mtp_batterydata: qcom,battery-data { + mot_batterydata: qcom,battery-data { + df-serialnum = "SB18C74375"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-alium-3600mah.dtsi" - #include "qg-batterydata-atl466271_3300mAh.dtsi" - #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + #include "qg-batterydata-lz50-scud-5000mah.dtsi" }; }; @@ -263,20 +262,23 @@ "cycle_count", "charge_full_design", "time_to_full_now"; - qcom,battery-data = <&mtp_batterydata>; - qcom,sec-charger-config = <1>; + qcom,battery-data = <&mot_batterydata>; + qcom,sec-charger-config = <0>; qcom,auto-recharge-soc = <98>; - qcom,step-charging-enable; - qcom,sw-jeita-enable; qcom,charger-temp-max = <800>; qcom,smb-temp-max = <800>; qcom,suspend-input-on-debug-batt; - qcom,fcc-stepping-enable; - qcom,fcc-step-delay-ms = <100>; - qcom,fcc-step-size-ua = <100000>; - qcom,smb-internal-pull-kohm = <0>; - qcom,en-skin-therm-mitigation; qcom,hvdcp3-standalone-config; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4450000>; + qcom,usb-icl-ua = <3000000>; + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + qcom,pd-voltage-max-uv = <9000000>; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; &pm7250b_qg { @@ -294,7 +296,7 @@ "recharge_soc", "force_recharge", "charge_done"; - qcom,battery-data = <&mtp_batterydata>; + qcom,battery-data = <&mot_batterydata>; qcom,qg-iterm-ma = <150>; qcom,hold-soc-while-full; qcom,linearize-soc; diff --git a/qcom/qg-batterydata-lz50-scud-5000mah.dtsi b/qcom/qg-batterydata-lz50-scud-5000mah.dtsi new file mode 100644 index 000000000000..9391b9563eff --- /dev/null +++ b/qcom/qg-batterydata-lz50-scud-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,lz50-scud-5000mah { + /* 4703262_Lenovo_Nairobi_SCUD_5000mAH_PM7250B_averaged_MasterSlave_Jul27th2020 */ + serialnum = "SB18C74375"; + qcom,sdam-magic-number = <0x18c74375>; + qcom,max-voltage-uv = <4450000>; + qcom,fg-cc-cv-threshold-uv = <4440000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "LZ50-SCUD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4846 4976 5103 5163 5182>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <5071 5087 5108 5090 5108 5110>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44012 44168 44273 44310 44317>, + <43792 43963 44093 44127 44131>, + <43564 43752 43903 43945 43953>, + <43332 43534 43704 43752 43763>, + <43096 43309 43491 43549 43562>, + <42854 43076 43263 43331 43347>, + <42611 42835 43029 43100 43119>, + <42371 42590 42786 42863 42884>, + <42132 42346 42538 42618 42641>, + <41897 42103 42293 42372 42394>, + <41666 41865 42051 42127 42148>, + <41440 41631 41810 41883 41904>, + <41221 41404 41572 41644 41664>, + <41009 41183 41338 41407 41428>, + <40797 40968 41113 41177 41199>, + <40585 40759 40894 40953 40976>, + <40378 40551 40684 40736 40759>, + <40188 40350 40480 40531 40551>, + <40011 40163 40284 40335 40351>, + <39843 39987 40103 40145 40159>, + <39681 39811 39929 39971 39983>, + <39525 39636 39704 39772 39790>, + <39373 39454 39378 39478 39515>, + <39226 39232 39102 39176 39217>, + <39084 38969 38957 39009 39039>, + <38944 38775 38851 38903 38928>, + <38805 38665 38753 38803 38825>, + <38683 38582 38664 38702 38717>, + <38572 38512 38581 38605 38613>, + <38477 38452 38502 38510 38511>, + <38412 38398 38428 38420 38412>, + <38362 38346 38361 38337 38322>, + <38318 38297 38300 38262 38245>, + <38279 38254 38240 38192 38171>, + <38243 38216 38184 38124 38098>, + <38205 38176 38128 38059 38026>, + <38169 38136 38076 37998 37957>, + <38126 38092 38027 37944 37891>, + <38062 38027 37961 37876 37814>, + <37978 37930 37864 37776 37710>, + <37875 37817 37748 37655 37588>, + <37738 37686 37623 37530 37460>, + <37587 37538 37483 37393 37321>, + <37418 37369 37319 37235 37165>, + <37307 37229 37175 37100 37033>, + <37209 37142 37092 37018 36959>, + <37174 37113 37065 36994 36933>, + <37146 37087 37049 36976 36912>, + <37109 37072 37025 36951 36885>, + <37031 37000 36943 36856 36777>, + <36747 36694 36649 36531 36438>, + <36262 36227 36184 36059 35964>, + <35638 35618 35576 35447 35357>, + <34773 34769 34745 34607 34518>, + <33356 33410 33443 33282 33195>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44310 44290 44275 44235 44220 44205>, + <43977 44002 44027 43997 43988 43975>, + <43674 43735 43788 43765 43760 43749>, + <43405 43491 43561 43541 43540 43530>, + <43169 43272 43347 43325 43328 43319>, + <42934 43045 43123 43103 43107 43100>, + <42681 42799 42880 42864 42871 42865>, + <42431 42545 42630 42619 42628 42624>, + <42205 42289 42380 42375 42385 42382>, + <41999 42029 42129 42128 42138 42136>, + <41765 41783 41883 41885 41894 41893>, + <41442 41557 41641 41645 41653 41652>, + <41132 41340 41405 41408 41416 41415>, + <40965 41132 41172 41177 41183 41182>, + <40860 40931 40945 40951 40956 40955>, + <40693 40708 40733 40733 40737 40735>, + <40297 40446 40544 40522 40526 40522>, + <39868 40177 40347 40319 40322 40316>, + <39621 39922 40107 40132 40134 40128>, + <39437 39674 39841 39953 39950 39946>, + <39253 39443 39591 39738 39735 39736>, + <39063 39226 39348 39459 39474 39483>, + <38876 39027 39132 39196 39229 39243>, + <38674 38852 38947 38998 39027 39039>, + <38473 38691 38785 38829 38849 38857>, + <38337 38518 38639 38684 38702 38709>, + <38246 38322 38510 38560 38578 38584>, + <38173 38172 38390 38449 38467 38471>, + <38106 38090 38278 38343 38363 38364>, + <38046 38028 38172 38244 38268 38266>, + <37987 37974 38068 38155 38184 38179>, + <37926 37926 37967 38074 38108 38100>, + <37866 37878 37889 37998 38032 38022>, + <37803 37828 37834 37930 37955 37942>, + <37740 37777 37789 37865 37873 37858>, + <37671 37722 37744 37792 37781 37758>, + <37598 37663 37703 37713 37682 37647>, + <37520 37597 37653 37632 37584 37542>, + <37435 37522 37590 37553 37490 37447>, + <37347 37437 37513 37470 37396 37353>, + <37261 37336 37412 37378 37305 37261>, + <37175 37220 37284 37274 37209 37161>, + <37094 37092 37130 37142 37073 37014>, + <37016 36961 36982 37005 36947 36889>, + <36935 36844 36862 36900 36856 36806>, + <36840 36755 36781 36857 36825 36774>, + <36789 36717 36742 36841 36812 36760>, + <36729 36681 36694 36820 36792 36741>, + <36654 36623 36630 36780 36748 36694>, + <36541 36515 36507 36658 36584 36509>, + <36313 36269 36216 36306 36173 36089>, + <35910 35799 35706 35777 35623 35539>, + <35268 35125 35011 35088 34896 34809>, + <34320 34126 34049 34132 33865 33785>, + <32928 32522 32490 32681 32348 32275>, + <29705 26763 27162 27333 26870 27058>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13662 13032 12455 12165 12042>, + <13671 13034 12460 12172 12049>, + <13681 13034 12453 12162 12039>, + <13688 13031 12451 12155 12033>, + <13691 13027 12449 12149 12029>, + <13695 13025 12447 12142 12024>, + <13698 13030 12444 12136 12019>, + <13686 13034 12434 12130 12016>, + <13659 13030 12420 12125 12012>, + <13648 13017 12414 12120 12011>, + <13660 13002 12411 12116 12011>, + <13673 12988 12407 12113 12012>, + <13671 12974 12402 12113 12013>, + <13651 12970 12399 12114 12015>, + <13627 12970 12399 12115 12016>, + <13600 12969 12399 12115 12016>, + <13575 12965 12399 12114 12016>, + <13571 12961 12398 12115 12016>, + <13580 12962 12398 12116 12018>, + <13586 12967 12400 12116 12019>, + <13574 12969 12404 12117 12020>, + <13553 12968 12405 12118 12021>, + <13540 12967 12405 12118 12021>, + <13522 12968 12405 12118 12022>, + <13507 12968 12407 12118 12022>, + <13512 12969 12411 12121 12025>, + <13528 12974 12416 12124 12027>, + <13537 12982 12421 12127 12029>, + <13539 12986 12425 12132 12031>, + <13540 12991 12427 12136 12035>, + <13546 12996 12429 12140 12040>, + <13563 13002 12433 12144 12046>, + <13578 13008 12440 12149 12050>, + <13589 13010 12447 12155 12055>, + <13598 13010 12455 12161 12061>, + <13602 13011 12462 12167 12067>, + <13598 13018 12468 12173 12072>, + <13595 13028 12474 12178 12076>, + <13604 13039 12479 12183 12080>, + <13618 13054 12483 12187 12085>, + <13625 13064 12487 12192 12089>, + <13622 13068 12493 12196 12092>, + <13627 13072 12500 12202 12096>, + <13673 13081 12509 12207 12099>, + <13683 13097 12517 12214 12104>, + <13654 13085 12521 12221 12109>, + <13651 13110 12519 12220 12108>, + <13646 13109 12523 12221 12109>, + <13641 13108 12528 12223 12113>, + <13675 13103 12534 12231 12119>, + <13672 13115 12538 12239 12125>, + <13724 13118 12548 12247 12132>, + <13685 13157 12558 12259 12145>, + <13743 13188 12584 12275 12163>, + <13743 13188 12584 12275 12163>, + <13743 13188 12584 12275 12163>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10310 12986 10414 10319 10165>, + <10131 11322 10408 10344 10207>, + <10161 10409 10417 10342 10247>, + <10202 10368 10426 10387 10310>, + <10209 10340 10423 10414 10356>, + <10208 10307 10395 10381 10350>, + <10207 10273 10361 10322 10328>, + <10204 10241 10327 10290 10305>, + <10197 10217 10297 10271 10275>, + <10188 10198 10360 10253 10254>, + <10171 10182 10578 10228 10242>, + <10153 10169 10652 10208 10229>, + <10137 10160 10443 10207 10225>, + <10122 10160 10238 10210 10219>, + <10107 10163 10235 10216 10216>, + <10092 10168 10258 10237 10216>, + <10080 10178 10276 10257 10216>, + <10083 10194 10288 10265 10229>, + <10150 10210 10299 10269 10255>, + <10210 10229 10310 10270 10268>, + <10186 10247 10323 10273 10264>, + <10120 10264 10346 10284 10264>, + <10097 10281 10405 10357 10314>, + <10107 10300 10447 10451 10393>, + <10121 10320 10411 10413 10381>, + <10134 10329 10346 10228 10238>, + <10147 10324 10331 10144 10159>, + <10159 10317 10337 10162 10174>, + <10169 10312 10346 10195 10209>, + <10178 10306 10360 10257 10302>, + <10184 10303 10375 10353 10482>, + <10189 10305 10380 10395 10539>, + <10194 10310 10382 10412 10457>, + <10201 10316 10384 10417 10357>, + <10210 10325 10393 10390 10291>, + <10219 10333 10403 10346 10239>, + <10231 10339 10409 10340 10237>, + <10244 10346 10418 10357 10286>, + <10256 10357 10432 10380 10337>, + <10269 10374 10461 10431 10373>, + <10282 10388 10484 10483 10406>, + <10297 10395 10486 10495 10436>, + <10319 10403 10486 10500 10465>, + <10364 10417 10485 10496 10479>, + <10124 10527 10504 10449 10456>, + <10244 10593 10527 10328 10293>, + <9989 10605 10521 10325 10276>, + <9808 10599 10503 10330 10276>, + <9870 10722 10523 10369 10328>, + <9820 10782 10582 10409 10352>, + <9739 10712 10581 10388 10238>, + <9621 10614 10531 10254 10080>, + <9547 10491 10467 10149 10017>, + <9600 10287 10384 10074 9961>, + <9600 10287 10384 10074 9961>, + <9600 10287 10384 10074 9961>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19543 19372 19366 19349 19348>, + <19661 19497 19417 19377 19364>, + <19724 19576 19442 19400 19383>, + <19766 19599 19459 19416 19400>, + <19776 19610 19471 19427 19412>, + <19778 19614 19480 19436 19423>, + <19779 19617 19485 19443 19432>, + <19773 19620 19487 19447 19438>, + <19763 19621 19489 19449 19442>, + <19759 19621 19494 19450 19445>, + <19758 19621 19507 19449 19446>, + <19757 19619 19510 19447 19446>, + <19758 19615 19495 19443 19443>, + <19761 19611 19477 19437 19435>, + <19765 19605 19470 19432 19427>, + <19770 19598 19465 19428 19421>, + <19775 19591 19460 19425 19415>, + <19778 19583 19456 19419 19410>, + <19792 19577 19453 19413 19405>, + <19805 19571 19449 19407 19399>, + <19797 19569 19446 19401 19391>, + <19778 19571 19447 19398 19387>, + <19770 19576 19464 19404 19389>, + <19771 19585 19478 19413 19393>, + <19772 19602 19471 19409 19389>, + <19772 19610 19456 19388 19367>, + <19775 19607 19448 19376 19355>, + <19776 19601 19443 19374 19359>, + <19774 19596 19441 19373 19369>, + <19772 19590 19443 19378 19387>, + <19767 19585 19446 19395 19418>, + <19755 19581 19449 19407 19428>, + <19743 19579 19452 19417 19424>, + <19733 19575 19455 19422 19417>, + <19724 19572 19457 19420 19408>, + <19714 19569 19458 19414 19396>, + <19705 19564 19456 19406 19387>, + <19695 19559 19449 19396 19381>, + <19685 19555 19444 19391 19376>, + <19676 19550 19442 19390 19372>, + <19667 19545 19440 19390 19370>, + <19658 19540 19437 19390 19372>, + <19647 19534 19433 19391 19382>, + <19629 19526 19429 19391 19386>, + <19389 19494 19420 19386 19384>, + <19333 19465 19401 19369 19360>, + <19298 19457 19401 19363 19355>, + <19270 19455 19394 19360 19350>, + <19267 19334 19390 19350 19338>, + <19268 19327 19386 19348 19344>, + <19269 19435 19380 19378 19376>, + <19277 19392 19394 19389 19383>, + <19284 19327 19399 19388 19379>, + <19323 19321 19397 19387 19379>, + <19323 19321 19397 19387 19379>, + <19323 19321 19397 19387 19379>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15803 15366 15003 14895 14887>, + <15938 15345 15093 14912 14878>, + <15869 15314 15078 14952 14913>, + <15716 15258 15032 14928 14898>, + <15587 15166 14989 14898 14874>, + <15478 15086 14945 14874 14854>, + <15384 15024 14906 14850 14833>, + <15311 14971 14875 14828 14813>, + <15250 14928 14846 14807 14795>, + <15194 14891 14808 14789 14778>, + <15141 14861 14762 14772 14761>, + <15093 14836 14741 14757 14746>, + <15053 14815 14742 14744 14735>, + <15016 14798 14745 14732 14727>, + <14982 14783 14738 14723 14721>, + <14952 14772 14728 14717 14718>, + <14925 14764 14722 14712 14715>, + <14897 14758 14718 14708 14711>, + <14853 14751 14715 14705 14707>, + <14819 14745 14712 14704 14706>, + <14814 14742 14710 14704 14706>, + <14820 14740 14718 14706 14708>, + <14818 14739 14791 14762 14754>, + <14806 14755 14851 14842 14836>, + <14797 14812 14857 14858 14857>, + <14797 14843 14859 14862 14862>, + <14801 14841 14858 14863 14863>, + <14806 14835 14845 14853 14849>, + <14813 14827 14829 14835 14822>, + <14820 14814 14813 14813 14787>, + <14820 14802 14796 14784 14741>, + <14815 14790 14779 14759 14717>, + <14808 14779 14762 14733 14707>, + <14801 14769 14749 14717 14702>, + <14793 14759 14738 14715 14703>, + <14785 14751 14732 14713 14706>, + <14776 14743 14729 14713 14706>, + <14767 14738 14728 14711 14705>, + <14758 14737 14728 14711 14705>, + <14750 14737 14733 14719 14716>, + <14744 14736 14738 14729 14731>, + <14741 14732 14736 14728 14729>, + <14735 14724 14728 14721 14718>, + <14723 14716 14722 14718 14714>, + <14880 14691 14705 14709 14704>, + <14912 14676 14675 14683 14682>, + <14943 14671 14666 14677 14678>, + <14965 14668 14656 14663 14663>, + <14962 14794 14648 14650 14648>, + <14950 14793 14651 14650 14640>, + <14946 14683 14683 14664 14664>, + <14970 14742 14677 14667 14674>, + <14973 14824 14674 14674 14684>, + <14954 14840 14679 14681 14690>, + <14954 14840 14679 14681 14690>, + <14954 14840 14679 14681 14690>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12608 12260 13420 14158 14240>, + <13619 14468 15148 15804 15630>, + <14196 15951 15947 16604 16446>, + <14610 16480 16595 17418 17469>, + <14876 16752 17105 18103 18391>, + <15068 16986 17517 18643 19240>, + <15199 17302 17895 19116 20037>, + <15309 17728 18285 19605 20836>, + <15427 18267 18763 20097 21743>, + <15570 18937 20144 20594 22643>, + <15823 19611 23046 21078 23881>, + <16108 20322 24278 21606 25145>, + <16381 21052 23221 22293 25626>, + <16777 21693 22217 23164 26013>, + <17292 22266 22681 24078 26179>, + <17989 22877 23541 25130 26205>, + <18822 23642 24342 25947 26319>, + <19903 24441 25059 26301 26850>, + <22300 25028 25762 26489 27734>, + <24304 25457 26359 26499 27966>, + <24451 26217 26968 26253 27457>, + <24126 29014 29318 26402 26987>, + <24759 33710 40962 28855 27124>, + <27339 40325 49744 31918 27454>, + <30777 49990 43852 30384 26190>, + <34465 54328 32135 22910 20071>, + <38781 50025 26855 18562 16685>, + <41524 43228 24252 17413 16675>, + <43085 39132 23231 16851 16672>, + <44061 35973 23337 17330 18334>, + <43510 34642 23622 19020 23679>, + <40827 34591 24261 21196 27086>, + <38415 34720 25977 24859 28880>, + <37125 35109 28161 27950 29788>, + <36137 36102 31808 29599 29322>, + <35452 37020 34973 30918 28335>, + <34839 37730 35117 30829 27949>, + <34511 38326 34568 29308 27845>, + <34798 38631 34239 28196 27653>, + <35471 38925 33786 27930 26244>, + <35734 39063 33092 27708 24544>, + <35811 38268 31620 26939 24620>, + <35872 37146 29752 25742 25734>, + <35325 36519 29510 25991 27526>, + <17806 35805 30479 25818 28170>, + <12446 31331 29912 23760 22376>, + <11898 28747 30834 22306 20675>, + <11463 28039 28978 23603 21760>, + <11446 13009 29463 23720 22259>, + <11494 13060 27695 22300 28180>, + <11564 23635 20738 26278 28028>, + <11504 16911 21546 24849 24492>, + <11472 12555 21439 21982 20197>, + <11841 12200 19909 19332 17746>, + <11841 12200 19909 19332 17746>, + <11841 12200 19909 19332 17746>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15981 15363 14936 14794 14764>, + <16052 15388 14994 14814 14770>, + <16020 15394 14992 14840 14792>, + <15943 15372 14979 14836 14793>, + <15872 15321 14964 14831 14792>, + <15802 15274 14946 14824 14789>, + <15739 15235 14928 14816 14784>, + <15687 15202 14912 14808 14779>, + <15643 15174 14897 14800 14773>, + <15604 15149 14883 14792 14768>, + <15569 15128 14869 14784 14762>, + <15539 15110 14857 14776 14756>, + <15515 15094 14848 14768 14749>, + <15496 15080 14839 14760 14742>, + <15477 15066 14831 14753 14735>, + <15456 15055 14824 14748 14730>, + <15435 15044 14819 14744 14725>, + <15419 15035 14814 14739 14720>, + <15407 15028 14811 14734 14716>, + <15395 15023 14808 14730 14712>, + <15383 15021 14806 14727 14708>, + <15373 15022 14810 14725 14706>, + <15365 15025 14851 14754 14727>, + <15359 15038 14884 14793 14765>, + <15355 15073 14882 14797 14771>, + <15354 15091 14878 14789 14764>, + <15358 15089 14873 14782 14756>, + <15362 15085 14866 14776 14751>, + <15366 15081 14860 14770 14747>, + <15370 15074 14855 14766 14743>, + <15369 15067 14851 14763 14740>, + <15362 15062 14846 14759 14737>, + <15354 15057 14842 14754 14731>, + <15349 15053 14839 14751 14726>, + <15343 15049 14837 14748 14722>, + <15337 15046 14836 14746 14717>, + <15331 15043 14834 14742 14714>, + <15327 15041 14831 14737 14709>, + <15324 15041 14830 14735 14707>, + <15322 15043 14833 14738 14710>, + <15321 15044 14836 14742 14715>, + <15324 15043 14835 14742 14716>, + <15324 15042 14832 14741 14716>, + <15322 15041 14830 14741 14717>, + <15289 15026 14821 14735 14713>, + <15275 15010 14803 14715 14691>, + <15271 15004 14799 14710 14686>, + <15269 15003 14791 14702 14677>, + <15269 14997 14787 14692 14664>, + <15272 14998 14788 14692 14665>, + <15280 15013 14802 14715 14693>, + <15302 15024 14811 14725 14705>, + <15320 15036 14817 14731 14710>, + <15352 15056 14825 14738 14717>, + <15352 15056 14825 14738 14717>, + <15352 15056 14825 14738 14717>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6705 6268 5987 5646 5495 5417>, + <6713 6276 5984 5653 5493 5418>, + <6716 6282 5981 5656 5490 5418>, + <6716 6286 5977 5657 5488 5417>, + <6715 6290 5975 5657 5486 5416>, + <6714 6293 5973 5656 5484 5415>, + <6709 6295 5973 5652 5482 5413>, + <6702 6296 5973 5647 5480 5411>, + <6702 6296 5972 5645 5477 5409>, + <6706 6293 5971 5644 5475 5407>, + <6707 6290 5970 5643 5472 5405>, + <6703 6287 5971 5640 5470 5403>, + <6696 6285 5971 5638 5467 5402>, + <6698 6288 5971 5637 5466 5401>, + <6706 6297 5970 5636 5465 5400>, + <6710 6300 5970 5636 5465 5400>, + <6718 6294 5971 5636 5464 5400>, + <6727 6288 5972 5635 5464 5400>, + <6724 6291 5970 5636 5464 5400>, + <6714 6298 5968 5638 5464 5399>, + <6709 6299 5967 5638 5465 5399>, + <6709 6299 5968 5640 5466 5400>, + <6711 6300 5969 5641 5466 5401>, + <6714 6301 5970 5644 5468 5402>, + <6719 6304 5971 5647 5471 5404>, + <6718 6305 5973 5651 5473 5406>, + <6709 6306 5980 5654 5475 5408>, + <6700 6306 5986 5657 5478 5410>, + <6696 6306 5989 5661 5480 5413>, + <6693 6306 5992 5664 5483 5416>, + <6692 6307 5989 5666 5487 5419>, + <6691 6311 5982 5667 5492 5423>, + <6690 6313 5979 5669 5496 5426>, + <6690 6307 5983 5671 5500 5428>, + <6690 6298 5988 5674 5502 5430>, + <6688 6293 5985 5678 5505 5433>, + <6680 6289 5978 5685 5507 5435>, + <6675 6286 5975 5688 5508 5436>, + <6679 6286 5979 5689 5509 5438>, + <6684 6285 5982 5689 5510 5439>, + <6690 6285 5983 5689 5511 5441>, + <6710 6286 5986 5688 5511 5442>, + <6712 6283 5983 5692 5516 5445>, + <6710 6281 5990 5698 5521 5450>, + <6715 6321 6004 5702 5525 5454>, + <6742 6335 6000 5704 5528 5453>, + <6756 6321 6001 5705 5525 5452>, + <6751 6318 6003 5706 5524 5453>, + <6727 6330 6004 5706 5524 5453>, + <6761 6352 6003 5703 5525 5454>, + <6775 6355 6014 5705 5529 5459>, + <6853 6355 6028 5720 5539 5465>, + <6970 6384 6041 5734 5549 5473>, + <7034 6484 6084 5753 5559 5485>, + <7034 6484 6084 5753 5559 5485>, + <7034 6484 6084 5753 5559 5485>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9849 10219 10765 11208 10922 11027>, + <9938 10285 10798 11160 10940 10970>, + <10026 10366 10827 11114 10943 10902>, + <10107 10447 10849 11072 10936 10835>, + <10177 10513 10863 11034 10921 10780>, + <10231 10550 10867 11003 10902 10748>, + <10265 10567 10859 10977 10867 10733>, + <10297 10578 10847 10956 10833 10723>, + <10370 10581 10845 10941 10824 10717>, + <10502 10582 10845 10931 10820 10716>, + <10551 10589 10845 10922 10818 10715>, + <10180 10717 10863 10914 10814 10691>, + <9744 10856 10892 10909 10812 10665>, + <9795 10852 10921 10915 10815 10669>, + <10069 10808 10957 10937 10826 10684>, + <10168 10798 11002 10967 10839 10694>, + <9933 10893 11068 11023 10855 10707>, + <9696 10988 11120 11089 10881 10726>, + <9681 10997 11139 11161 10952 10782>, + <9679 10995 11152 11234 11062 10884>, + <9678 11000 11153 11250 11112 10975>, + <9676 11021 11152 11229 11136 11077>, + <9674 11037 11154 11212 11149 11128>, + <9672 10969 11166 11217 11150 11095>, + <9671 10785 11183 11230 11148 11040>, + <9670 10540 11201 11244 11160 11048>, + <9669 10070 11226 11267 11206 11140>, + <9668 9767 11237 11290 11243 11208>, + <9667 9727 11204 11314 11253 11212>, + <9667 9706 11159 11340 11261 11205>, + <9666 9694 11151 11365 11302 11244>, + <9666 9686 11149 11390 11396 11346>, + <9666 9681 11145 11402 11437 11395>, + <9665 9677 11126 11401 11432 11426>, + <9664 9674 11097 11394 11418 11453>, + <9664 9671 11069 11382 11377 11403>, + <9664 9669 11038 11354 11295 11270>, + <9664 9667 10998 11324 11230 11219>, + <9664 9665 10948 11286 11165 11214>, + <9663 9664 10874 11254 11123 11210>, + <9663 9664 10637 11243 11160 11207>, + <9663 9663 10264 11237 11215 11201>, + <9663 9662 9857 11211 11195 11079>, + <9663 9662 9714 11168 11095 10907>, + <9662 9662 9726 11141 10970 10828>, + <9662 9661 9696 11112 10960 10831>, + <9661 9661 9688 11117 10986 10870>, + <9661 9660 9680 11110 11027 10908>, + <9660 9660 9676 11128 11049 10927>, + <9659 9659 9673 11140 11033 10865>, + <9656 9658 9669 11090 10948 10739>, + <9653 9657 9664 10992 10847 10667>, + <9651 9654 9660 10889 10756 10596>, + <9650 9651 9657 10813 10627 10482>, + <9650 9651 9657 10813 10627 10482>, + <9650 9651 9657 10813 10627 10482>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13781 13500 13366 13298 13285 13283>, + <13768 13504 13368 13301 13287 13285>, + <13754 13507 13370 13303 13289 13286>, + <13739 13508 13374 13305 13291 13288>, + <13724 13508 13376 13306 13292 13289>, + <13708 13507 13377 13307 13294 13290>, + <13690 13505 13377 13308 13294 13291>, + <13674 13502 13377 13309 13295 13291>, + <13663 13496 13377 13310 13296 13292>, + <13657 13486 13377 13311 13296 13293>, + <13646 13481 13376 13312 13297 13294>, + <13608 13488 13375 13312 13298 13294>, + <13568 13496 13373 13313 13298 13295>, + <13561 13482 13369 13313 13299 13295>, + <13565 13441 13364 13313 13300 13296>, + <13566 13425 13362 13313 13301 13297>, + <13548 13429 13363 13313 13303 13297>, + <13529 13433 13364 13313 13304 13297>, + <13529 13426 13361 13313 13304 13298>, + <13531 13408 13355 13313 13302 13300>, + <13534 13394 13349 13312 13300 13300>, + <13543 13384 13343 13308 13296 13295>, + <13550 13375 13337 13304 13293 13290>, + <13545 13370 13334 13301 13290 13288>, + <13533 13365 13331 13299 13289 13286>, + <13531 13360 13329 13298 13288 13286>, + <13549 13354 13328 13298 13287 13286>, + <13575 13351 13326 13297 13287 13287>, + <13602 13355 13325 13297 13286 13285>, + <13633 13363 13323 13296 13285 13283>, + <13665 13375 13322 13296 13285 13283>, + <13696 13396 13321 13295 13286 13283>, + <13731 13420 13320 13295 13287 13283>, + <13773 13446 13321 13295 13286 13284>, + <13818 13477 13322 13296 13286 13285>, + <13860 13513 13325 13296 13286 13285>, + <13898 13557 13329 13296 13286 13284>, + <13936 13606 13332 13296 13286 13284>, + <13974 13664 13335 13297 13286 13285>, + <14011 13725 13338 13297 13286 13287>, + <14043 13783 13345 13298 13287 13287>, + <14071 13839 13355 13299 13289 13288>, + <14104 13896 13367 13299 13288 13285>, + <14143 13950 13375 13299 13286 13284>, + <14164 13955 13372 13299 13287 13287>, + <14198 14020 13401 13302 13296 13294>, + <14261 14083 13422 13306 13298 13296>, + <14340 14156 13456 13311 13301 13298>, + <14462 14225 13505 13315 13302 13299>, + <14656 14317 13558 13315 13298 13294>, + <15092 14452 13616 13310 13295 13292>, + <16669 14729 13761 13313 13297 13294>, + <21755 15764 14110 13320 13303 13300>, + <38318 19894 14689 13333 13313 13314>, + <38318 19894 14689 13333 13313 13314>, + <38318 19894 14689 13333 13313 13314>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17050 16763 16603 16508 16475 16472>, + <17167 16844 16653 16510 16477 16474>, + <17272 16944 16706 16514 16478 16476>, + <17357 17041 16753 16517 16479 16479>, + <17413 17113 16786 16520 16480 16481>, + <17432 17139 16797 16521 16481 16482>, + <17410 17125 16788 16520 16482 16482>, + <17371 17105 16773 16520 16483 16482>, + <17338 17094 16762 16520 16484 16483>, + <17304 17088 16752 16521 16487 16484>, + <17292 17078 16748 16524 16489 16485>, + <17355 17054 16751 16528 16493 16488>, + <17429 17032 16755 16535 16497 16491>, + <17432 17064 16766 16543 16502 16495>, + <17418 17157 16786 16553 16508 16499>, + <17389 17188 16807 16565 16515 16504>, + <17253 17105 16832 16583 16522 16511>, + <17099 17001 16848 16604 16532 16519>, + <17039 16946 16824 16633 16556 16536>, + <17003 16903 16766 16666 16589 16557>, + <16959 16863 16715 16668 16592 16559>, + <16896 16825 16668 16602 16561 16543>, + <16835 16790 16634 16539 16527 16524>, + <16781 16757 16614 16515 16502 16502>, + <16734 16727 16600 16500 16482 16482>, + <16723 16691 16591 16498 16480 16479>, + <16724 16643 16586 16500 16483 16480>, + <16725 16617 16580 16503 16488 16482>, + <16725 16624 16570 16508 16496 16489>, + <16725 16637 16558 16513 16507 16501>, + <16726 16644 16541 16519 16517 16512>, + <16730 16649 16517 16526 16529 16523>, + <16733 16655 16509 16531 16534 16530>, + <16736 16664 16518 16533 16534 16532>, + <16738 16675 16534 16534 16534 16534>, + <16739 16686 16551 16530 16527 16527>, + <16739 16700 16574 16515 16506 16509>, + <16739 16706 16594 16507 16495 16500>, + <16736 16707 16614 16505 16491 16498>, + <16732 16707 16629 16505 16489 16497>, + <16731 16705 16638 16509 16495 16503>, + <16734 16698 16644 16519 16504 16513>, + <16740 16687 16647 16515 16485 16486>, + <16749 16676 16649 16508 16471 16466>, + <16753 16659 16623 16495 16467 16463>, + <16744 16666 16637 16509 16499 16512>, + <16758 16682 16660 16528 16531 16550>, + <16778 16707 16695 16556 16567 16586>, + <16802 16740 16741 16595 16596 16609>, + <16813 16771 16788 16601 16568 16568>, + <16819 16770 16800 16544 16496 16502>, + <16961 16740 16798 16540 16496 16502>, + <17904 16833 16846 16562 16502 16501>, + <27350 18186 16938 16606 16525 16516>, + <27350 18186 16938 16606 16525 16516>, + <27350 18186 16938 16606 16525 16516>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10157 12676 15688 18843 18888 19280>, + <11415 13351 15901 18641 19089 19532>, + <12648 14009 16123 18427 19158 19592>, + <13790 14619 16336 18202 19127 19502>, + <14777 15150 16522 17968 19024 19306>, + <15541 15569 16663 17724 18874 19044>, + <16040 15953 16792 17462 18494 18622>, + <16496 16218 16882 17197 17973 18142>, + <17349 16169 16863 16959 17545 17804>, + <18699 15904 16753 16731 17145 17527>, + <19227 15817 16607 16450 16739 17234>, + <16760 16854 16365 16031 16299 16847>, + <13868 17991 16053 15578 15890 16440>, + <14985 17729 15671 15180 15537 16087>, + <19293 16786 15245 14797 15218 15733>, + <20961 16574 15271 14599 15091 15358>, + <17938 18496 17032 14414 15062 14881>, + <14811 20290 19019 14297 15028 14538>, + <14965 20162 20147 14826 14857 14465>, + <16048 19738 21064 16312 14606 14506>, + <17062 19654 21279 17978 14993 14978>, + <18106 20049 21154 20449 17925 17209>, + <18769 20650 21062 21994 19952 18897>, + <17407 21651 21186 21639 19935 19267>, + <14255 22878 21416 20938 19842 19474>, + <13048 22428 21672 20641 19551 19415>, + <12798 17489 22308 20502 18593 18937>, + <12695 13713 23087 20367 17696 18265>, + <12792 13190 24220 20169 17014 16921>, + <13017 12913 25206 19988 16542 15639>, + <13190 12962 24839 20036 16721 15560>, + <13316 13388 22968 20483 17590 15793>, + <13454 13808 21427 21131 18457 16175>, + <13689 14080 20311 22533 19150 17329>, + <13955 14309 19606 23984 19887 18809>, + <14076 14499 19683 24097 20968 19956>, + <14179 14671 19990 23593 22233 21003>, + <14222 14850 20105 23074 22482 21800>, + <14150 15126 20072 22359 21114 22488>, + <14006 15343 20015 21502 19924 22860>, + <13799 15279 19469 20690 20190 22511>, + <13485 15055 18192 19963 20772 22042>, + <13415 14847 16204 19375 20990 21305>, + <13473 14535 14748 18951 19789 19869>, + <13529 14152 14519 19481 17444 17989>, + <13584 14099 14715 18788 18061 16822>, + <13842 14104 14451 18634 17625 16111>, + <13950 14437 14515 18563 17348 16009>, + <14208 14458 15447 18754 17268 15988>, + <14606 14877 16333 19028 17087 15577>, + <14176 14944 16169 19449 17970 16223>, + <12340 14245 15170 19692 17585 15687>, + <10163 12921 14005 19767 18072 16163>, + <9123 10234 13180 21295 22507 22863>, + <9123 10234 13180 21295 22507 22863>, + <9123 10234 13180 21295 22507 22863>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6226 5626 5313 5111 5060 5050>, + <6242 5663 5335 5112 5062 5052>, + <6247 5688 5348 5113 5064 5054>, + <6244 5702 5354 5115 5066 5056>, + <6236 5709 5357 5116 5067 5057>, + <6224 5710 5357 5116 5068 5058>, + <6201 5702 5351 5116 5069 5059>, + <6172 5688 5341 5115 5069 5059>, + <6153 5675 5333 5115 5070 5060>, + <6138 5661 5326 5116 5071 5061>, + <6119 5652 5321 5116 5072 5062>, + <6077 5646 5317 5117 5073 5063>, + <6040 5643 5315 5119 5075 5064>, + <6041 5642 5315 5121 5076 5065>, + <6056 5641 5315 5123 5078 5067>, + <6059 5638 5316 5127 5081 5069>, + <5996 5621 5322 5131 5084 5071>, + <5926 5597 5327 5137 5088 5073>, + <5912 5578 5319 5145 5095 5079>, + <5907 5559 5298 5154 5102 5086>, + <5900 5544 5280 5154 5102 5086>, + <5893 5531 5262 5133 5090 5078>, + <5884 5521 5250 5112 5077 5068>, + <5872 5516 5243 5104 5068 5060>, + <5859 5511 5239 5098 5061 5053>, + <5857 5504 5238 5097 5061 5052>, + <5874 5491 5238 5098 5061 5053>, + <5898 5483 5238 5100 5062 5054>, + <5921 5495 5237 5101 5064 5055>, + <5946 5521 5236 5103 5067 5057>, + <5972 5548 5235 5105 5071 5060>, + <6000 5578 5234 5108 5075 5063>, + <6030 5611 5233 5111 5077 5066>, + <6060 5646 5242 5113 5078 5068>, + <6091 5684 5256 5115 5078 5069>, + <6122 5725 5273 5114 5076 5067>, + <6154 5769 5293 5111 5070 5061>, + <6184 5815 5316 5110 5067 5059>, + <6212 5866 5341 5111 5066 5060>, + <6237 5916 5367 5112 5066 5061>, + <6262 5962 5392 5116 5069 5063>, + <6286 6006 5417 5121 5073 5067>, + <6316 6049 5441 5121 5067 5057>, + <6353 6090 5469 5122 5063 5052>, + <6376 6096 5459 5120 5063 5053>, + <6412 6151 5506 5129 5079 5073>, + <6465 6203 5546 5138 5090 5085>, + <6536 6266 5600 5149 5102 5097>, + <6640 6332 5661 5162 5110 5104>, + <6802 6416 5722 5164 5100 5089>, + <7154 6522 5787 5146 5078 5069>, + <8416 6733 5918 5152 5080 5071>, + <12339 7558 6217 5171 5088 5077>, + <26477 10891 6695 5204 5104 5094>, + <26477 10891 6695 5204 5104 5094>, + <26477 10891 6695 5204 5104 5094>; + }; + +}; From 902dd165eb2b452145ed033775f7c326ad5a37f1 Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 21 Oct 2020 13:48:06 +0800 Subject: [PATCH 0036/1247] base: delete QC ramoops Moto has defined ramoops config in moto overlay dts, so delete QC ramoops to resolve conflict. Change-Id: I6891b90eb644b47a91c448363820b17cef3fbc9b Reviewed-on: https://gerrit.mot.com/1780670 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Qinghong Yang --- qcom/holi-moto-base.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-moto-base.dts b/qcom/holi-moto-base.dts index f05ff0eca462..f42d65fa41c2 100644 --- a/qcom/holi-moto-base.dts +++ b/qcom/holi-moto-base.dts @@ -26,3 +26,7 @@ utags: utags { }; hw: hw { }; }; + +&reserved_memory { + /delete-node/ ramoops; +}; From c2f0de91f03d27bee042d56497f8f11e94db0986 Mon Sep 17 00:00:00 2001 From: jixj Date: Fri, 16 Oct 2020 11:22:20 +0800 Subject: [PATCH 0037/1247] add no-dump-oops for ramoops Missing it on previous commit, it is need for ramoops. Change-Id: Ib1e830a82cd50418d6e67ac262f9efc487b3c421 Reviewed-on: https://gerrit.mot.com/1775758 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 6ce9525a3bb9..1940687b1a0a 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -38,6 +38,7 @@ console-size = ; pmsg-size = ; record-size = ; + no-dump-oops; }; wdog_cpuctx_mem: wdog_cpuctx_region { From 78169778593dae1f7753601d5bb6796b422a22c8 Mon Sep 17 00:00:00 2001 From: huangjq9 Date: Mon, 19 Oct 2020 16:25:19 +0800 Subject: [PATCH 0038/1247] denver: dts: stylus bu520xx bringup - bringup stylus rohm bu520xx hall sensor; - changes interrupt pin to gpio84; Change-Id: I11dfbd5848a10030ef79a481c47b5f80aceb98cd Signed-off-by: huangjq9 Reviewed-on: https://gerrit.mot.com/1778524 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-sensors.dtsi | 51 ++++++++++++++++++++++++++++ qcom/holi-denver-common-overlay.dtsi | 1 + 2 files changed, 52 insertions(+) create mode 100755 qcom/denver-sensors.dtsi diff --git a/qcom/denver-sensors.dtsi b/qcom/denver-sensors.dtsi new file mode 100755 index 000000000000..f3426b6eb2ab --- /dev/null +++ b/qcom/denver-sensors.dtsi @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 3a8cecbc57fb..3139e1e22862 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -13,6 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "denver-display.dtsi" #include "denver-touchscreen.dtsi" +#include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "holi-denver-fmr-overlay.dtsi" From 1eb6f8d23a1109084a80abce6f66f70c0811da66 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Mon, 19 Oct 2020 14:06:13 +0800 Subject: [PATCH 0039/1247] arm64/dt: Ibiza: add nfc device node Remove default nfc configuration and add new device tree node to bring up PN557 for Ibiza. Change-Id: Ie2b840c2e847adc1fe62eabdfacb916cca7a752c Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1778357 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 114 ++++++++++++++++++++++++++++ qcom/holi-moto-base.dts | 4 + qcom/holi-moto-common-overlay.dtsi | 23 ------ 3 files changed, 118 insertions(+), 23 deletions(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index dbecaa27efc6..17191766ad15 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -41,6 +41,99 @@ bias-pull-up; }; }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; }; @@ -154,6 +247,27 @@ }; }; + +&qupv3_se7_i2c { + status = "ok"; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; diff --git a/qcom/holi-moto-base.dts b/qcom/holi-moto-base.dts index f42d65fa41c2..4782e90d01a8 100644 --- a/qcom/holi-moto-base.dts +++ b/qcom/holi-moto-base.dts @@ -30,3 +30,7 @@ &reserved_memory { /delete-node/ ramoops; }; + +&tlmm { + /delete-node/ nfc; +}; diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 1940687b1a0a..7dfccb2ab038 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -125,29 +125,6 @@ status = "ok"; }; -&qupv3_se0_i2c { - status = "ok"; - #address-cells = <1>; - #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L11A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; - interrupt-parent = <&tlmm>; - interrupts = <9 0>; - interrupt-names = "nfc_irq"; - pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; - }; -}; - &soc { gpio_keys: gpio_keys { compatible = "gpio-keys"; From d9442a5082a4755c20b47b41a14a4404884b72c8 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 21 Oct 2020 13:44:56 +0800 Subject: [PATCH 0040/1247] arm64/dt: Ibiza: bring up chipone fps Add chipone fps device node to bring up fps sensor for Ibiza Change-Id: I9608e8ce941cbc97cc13618b89973f651089fcaa Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1780666 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-fps-overlay.dtsi | 54 +++++++++++++++++++++++++++++ qcom/holi-ibiza-common-overlay.dtsi | 1 + 2 files changed, 55 insertions(+) create mode 100644 qcom/denver-fps-overlay.dtsi diff --git a/qcom/denver-fps-overlay.dtsi b/qcom/denver-fps-overlay.dtsi new file mode 100644 index 000000000000..140ee981f7f5 --- /dev/null +++ b/qcom/denver-fps-overlay.dtsi @@ -0,0 +1,54 @@ +&tlmm { + chipone { + chipone_int_active: chipone_int_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + bias-pull-up; + }; + }; + chipone_int_suspend: chipone_int_suspend { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + bias-pull-up; + }; + }; + }; +}; + +&pm6350_l8 { + qcom,init-voltage = <3304000>; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-always-on; +}; + +&soc { + fingerprint { + compatible = "qcom,fingerprint-gpio"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-gpio-int = <&tlmm 17 0x2>; + fp-gpio-reset = <&tlmm 18 0x2>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&chipone_int_active>; + pinctrl-1 = <&chipone_int_suspend>; + }; +}; diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 17191766ad15..25ead39b149a 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -13,6 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" +#include "denver-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "holi-ibiza-fmr-overlay.dtsi" From 65f836a3c8d64bc6d60e7f58b56f5ca1c1d70be7 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 22 Oct 2020 09:37:05 +0800 Subject: [PATCH 0041/1247] arm64/dt: denver: bring up chipone fps Bring up chipone fps sensor for denver. It use OCF7332. Change-Id: I4b7c9933ef014642cef5c8c05a95409f95b698ff Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1781664 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 3139e1e22862..5ef7a38c59e0 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -16,6 +16,7 @@ #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "denver-fps-overlay.dtsi" #include "holi-denver-fmr-overlay.dtsi" &tlmm { From bb776aac94889957b084eca0108149bf3caa5df5 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 23 Oct 2020 11:46:46 +0800 Subject: [PATCH 0042/1247] driver/sar-sensor: sx937x bring up 1.add dts for "Semtech,sx937x" 2.add sx937x_sar.ko to system Change-Id: I6086a3a271afadbbfffbcd821648d91b1daba15b Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1783005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 50 ++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 7dfccb2ab038..93203a44eb80 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -187,6 +187,56 @@ panel = <&dsi_rm69299_visionox_amoled_video &dsi_rm69299_visionox_amoled_cmd>; }; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + Semtech,button-flag = <0x3b>; + Semtech,ref-phases-a = <2>; + Semtech,ref-phases-b = <6>; + Semtech,reg-num = <24>; + Semtech,reg-init = < + 0x8024 0xF700 /*PHEN*/ + 0x4004 0x74 /*irq mask*/ + 0x8028 0x85C /*AFE_PARAM_PH0*/ + 0x8034 0x85C /*AFE_PARAM_PH1*/ + 0x8040 0x85C /*AFE_PARAM_PH2*/ + /* 0x804C 0x85C */ /*AFE_PARAM_PH3*/ + 0x8058 0x85C /*AFE_PARAM_PH4*/ + 0x8064 0x85C /*AFE_PARAM_PH5*/ + 0x8070 0x85C /*AFE_PARAM_PH6*/ + 0x807C 0x85C /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0*/ + 0x803C 0xFFF9EF /*REG_AFEPH_PH1*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2*/ + /* 0x8054 0xFFFBFF */ /*REG_AFEPH_PH3*/ + 0x8060 0xFFD9FF /*REG_AFEPH_PH4*/ + 0x806C 0xFEF9FF /*REG_AFEPH_PH5*/ + 0x8078 0xF7F9FF /*REG_AFEPH_PH6*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7*/ + /*prox1 5000 0x64*/ + /*prox2 10000 0x8D*/ + /*prox3 15000 0xAD*/ + /*prox4 20000 0xC8*/ + 0x8098 0xC8AD8D64 /*prox threshold ph0*/ + 0x80B8 0xC8AD8D64 /*prox threshold ph1*/ + 0x80D8 0xC8AD8D64 /*prox threshold ph2*/ + /* 0x80F8 0x64*/ /*prox threshold ph3*/ + 0x8118 0xC8AD8D64 /*prox threshold ph4*/ + 0x8138 0xC8AD8D64 /*prox threshold ph5*/ + 0x8158 0xC8AD8D64 /*prox threshold ph6*/ + 0x8178 0xC8AD8D64 /*prox threshold ph7*/ + 0x8024 0xF7F7 /*PHEN*/ + >; + + status = "ok"; + }; }; &pm7250b_charger { From facd07007a1abffbf33b5942caafe49f0ad60aa5 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 23 Oct 2020 14:01:24 +0800 Subject: [PATCH 0043/1247] driver/sar-sensor: sx937x bring up 1.init l8e to 1.8v for sx937x 2.add sx937x_sar.ko to system Change-Id: I9aeaabdb3229f2bd9c302606f398c7f09c9da210 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1783097 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 93203a44eb80..d5b76ba60be1 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -155,6 +155,11 @@ status = "ok"; }; +&pm6150a_l8 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + &qupv3_se8_i2c { status = "okay"; qcom,i2c-touch-active="synaptics,tcm-i2c"; From 5c54e58a8e8eef5444a79eb1fadb4ce149c0960a Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Fri, 23 Oct 2020 16:00:43 +0800 Subject: [PATCH 0044/1247] Add Rear Camera NTC It's HW factory verify request. Config Rear Camera Thermistor for both Denver and Ibiza Change-Id: I7ec50d1a3bde861fff5771eb3a4f03df3468f265 Reviewed-on: https://gerrit.mot.com/1783218 Tested-by: Jira Key SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 17 +++++++++++++++-- qcom/holi-ibiza-common-overlay.dtsi | 14 ++++++++++++++ 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 5ef7a38c59e0..ad50a3a87a6f 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -186,7 +186,21 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -210,7 +224,6 @@ }; }; }; - chg_therm { polling-delay-passive = <0>; polling-delay = <0>; diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 25ead39b149a..b3269e44195b 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -381,6 +381,20 @@ }; }; }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; xo_therm { polling-delay-passive = <0>; polling-delay = <0>; From c839fa717525953dd7cc6659690e573d8b9d2fa2 Mon Sep 17 00:00:00 2001 From: liaohj Date: Mon, 26 Oct 2020 14:30:13 +0800 Subject: [PATCH 0045/1247] denver:modify snd_card name. use qcom default snd_card name will use int-codec-platform.xml. modify snd_card name. and sync qcom latest modification,enable always-on. Change-Id: I8298db35d58c0272962da51c984ceb0a90835cbb Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1784623 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index 290250efda7b..5ab8a05d3854 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -133,6 +133,7 @@ qcom,swr-num-dev = <1>; qcom,swr-clock-stop-mode0 = <1>; qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; wcd937x_tx_slave: wcd937x-tx-slave { compatible = "qcom,wcd937x-slave"; reg = <0x0A 0x01170223>; @@ -238,7 +239,7 @@ }; &holi_snd { - qcom,model = "holi-mtp-snd-card"; + qcom,model = "holi-9370-aw882xx-snd-card"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; From 7560c907a082c54da7ec88c39acffa673e22a661 Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 28 Oct 2020 15:49:49 +0800 Subject: [PATCH 0046/1247] arm64/dt: add "mmi,annotate" to match driver Add "mmi,annotate" to let mmi_annotate.ko to append device info to last kmsg. Change-Id: I99f9565d511a5d08e7231dbdf8e7564ae2b7ea6b Reviewed-on: https://gerrit.mot.com/1786972 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index d5b76ba60be1..16655b5feb51 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -126,6 +126,12 @@ }; &soc { + mmi_annotate { + compatible = "mmi,annotate"; + memory-region = <&mmi_annotate_mem>; + mem-size = <0x20000>; + }; + gpio_keys: gpio_keys { compatible = "gpio-keys"; label = "gpio-keys"; From eb0b4500254e8996288fcd0e815f1e9b85a66b01 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 28 Oct 2020 13:50:29 +0800 Subject: [PATCH 0047/1247] arm/dts: config dtsi for charging DLKM config moto common dtsi for charging DLKM Change-Id: I4915683c32e025759d76815b4c481d97bbc4035f Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1786846 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 53 ++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 16655b5feb51..e393a7a222e1 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -320,6 +320,59 @@ qcom,usbpd-phandle = <&pm7250b_pdphy>; }; +&spmi_bus { + qcom,pm7250b@2 { + pm7250b_mmi: qcom,qpnp-smb5-mmi { + status = "ok"; + compatible = "qcom,mmi-pm7250b-smb5"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_CTM_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_RERUN_AICL>, + <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>; + io-channel-names = "usb_ctm_current_max", + "main_current_max", + "usb_typec_mode", + "battery_dp_dm", + "usb_pd_active", + "usb_real_type", + "usb_hw_current_max", + "usb_input_current_settled", + "battery_rerun_aicl", + "battery_sw_jeita_enabled", + "voltage_now", + "current_now", + "temp", + "capacity", + "charge_full", + "charge_full_design"; + qcom,enable-charging-limit; + qcom,upper-limit-capacity = <75>; + qcom,lower-limit-capacity = <60>; + qcom,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 2500 0>; + qcom,iterm-ma = <242>; + qcom,vfloat-comp-uv = <20000>; + qcom,force-hvdcp-5v; + }; + }; +}; + &pm7250b_qg { status = "ok"; #io-channel-cells = <1>; From 854a4c088eef15f8722b47cfa1410e8b9b99570b Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 28 Oct 2020 13:55:32 +0800 Subject: [PATCH 0048/1247] arm/dts: config charging parameter for Ibiza config charging parameter for Ibiza's battery Change-Id: Ia80b4fa95c59d28ee8e302bc9679510324cab307 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1786847 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index b3269e44195b..b18f41ad4742 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -269,6 +269,23 @@ }; }; +&pm7250b_charger { + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; From 2cdce70c09d2cc32a4507c96c160811f9dbaa21c Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 28 Oct 2020 17:08:54 +0800 Subject: [PATCH 0049/1247] arm/dts: config charging led config charging led for factory Change-Id: I17ba895f4414739736c85e62bd892c347c52f967 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1787154 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index e393a7a222e1..e5e6e046aff8 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -448,6 +448,20 @@ "pe_start"; }; +&pm6150l_rgb_led { + red { + label = "charging"; + }; + + green { + status = "disabled"; + }; + + blue { + status = "disabled"; + }; +}; + &usb0 { extcon = <&pm7250b_pdphy>, <&eud>; }; From 65a13bca3f5394972e645838f6358e284955871e Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Thu, 29 Oct 2020 11:24:12 +0800 Subject: [PATCH 0050/1247] arm64/dts: add all hwid configuration for ibiza add all hwid configuration for ibiza according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Ife45ae47245c4e2f72866f017ff54af1d5522d1a Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1788113 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 11 +++++++++-- qcom/holi-ibiza-dvt1-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-ibiza-dvt2-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-ibiza-evt2-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-ibiza-pvt-overlay.dts | 24 ++++++++++++++++++++++++ 5 files changed, 105 insertions(+), 2 deletions(-) create mode 100644 qcom/holi-ibiza-dvt1-overlay.dts create mode 100644 qcom/holi-ibiza-dvt2-overlay.dts create mode 100644 qcom/holi-ibiza-evt2-overlay.dts create mode 100644 qcom/holi-ibiza-pvt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 69de0e04d60a..849009dc232a 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -11,10 +11,17 @@ dtbo-$(CONFIG_DENVER_DTB) += \ holi-denver-evt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_IBIZA_DTB) += \ - holi-ibiza-evt1-overlay.dtbo + holi-ibiza-evt1-overlay.dtbo \ + holi-ibiza-evt2-overlay.dtbo \ + holi-ibiza-dvt1-overlay.dtbo \ + holi-ibiza-dvt2-overlay.dtbo \ + holi-ibiza-pvt-overlay.dtbo holi-ibiza-evt1-overlay.dtbo-base := holi-moto-base.dtb - +holi-ibiza-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-ibiza-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-ibiza-dvt2-overlay.dtbo-base := holi-moto-base.dtb +holi-ibiza-pvt-overlay.dtbo-base := holi-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-ibiza-dvt1-overlay.dts b/qcom/holi-ibiza-dvt1-overlay.dts new file mode 100644 index 000000000000..b82f11af4f9b --- /dev/null +++ b/qcom/holi-ibiza-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xB100>; +}; + diff --git a/qcom/holi-ibiza-dvt2-overlay.dts b/qcom/holi-ibiza-dvt2-overlay.dts new file mode 100644 index 000000000000..d429194401ec --- /dev/null +++ b/qcom/holi-ibiza-dvt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xB200>; +}; + diff --git a/qcom/holi-ibiza-evt2-overlay.dts b/qcom/holi-ibiza-evt2-overlay.dts new file mode 100644 index 000000000000..50282d6ffd1d --- /dev/null +++ b/qcom/holi-ibiza-evt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xA200>; +}; + diff --git a/qcom/holi-ibiza-pvt-overlay.dts b/qcom/holi-ibiza-pvt-overlay.dts new file mode 100644 index 000000000000..54710e4f2e4e --- /dev/null +++ b/qcom/holi-ibiza-pvt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xC000>; +}; + From 15ff9907ca991a2229a4214bb84c1360c51d61bd Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 30 Oct 2020 11:13:07 +0800 Subject: [PATCH 0051/1247] dts/panel_djn: update the init code Get Init code from vendor at 2020.10.29. This init code will improve the below aspects: 1. fix the flicker issue when switch 60 and 90fps. 2. fix the backlight dimming issue. Some code have been OTP to panel.Then these code can not be otp,will be downloaded via init code. Change-Id: Iad47d22a35b99b163cc7563b3f07127da4706299 Reviewed-on: https://gerrit.mot.com/1789227 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 02124217d41e..8a42cd43e515 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -49,13 +49,17 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ + 15 00 00 00 00 00 02 FF F0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 CF 22 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 68 03 01 39 00 00 00 00 00 03 51 0C CC 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 - 05 01 00 00 1A 00 01 29 + 05 01 00 00 14 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 91451ff80e34bb84ce3fdd23c4df883add77a426 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Thu, 29 Oct 2020 15:44:43 +0800 Subject: [PATCH 0052/1247] arm64/dts: add all hwid configuration for denver add all hwid configuration for denver according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: I178de18801b8b604de8613fbe998756b47afe8af Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1788337 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 10 +++++++++- qcom/holi-denver-dvt1-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-denver-dvt2-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-denver-evt1-overlay.dts | 2 +- qcom/holi-denver-evt2-overlay.dts | 24 ++++++++++++++++++++++++ qcom/holi-denver-pvt-overlay.dts | 24 ++++++++++++++++++++++++ 6 files changed, 106 insertions(+), 2 deletions(-) create mode 100644 qcom/holi-denver-dvt1-overlay.dts create mode 100644 qcom/holi-denver-dvt2-overlay.dts create mode 100644 qcom/holi-denver-evt2-overlay.dts create mode 100644 qcom/holi-denver-pvt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 849009dc232a..6a4496a4c797 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -6,9 +6,17 @@ endif # Motorola Device Trees dtbo-$(CONFIG_DENVER_DTB) += \ - holi-denver-evt1-overlay.dtbo + holi-denver-evt1-overlay.dtbo \ + holi-denver-evt2-overlay.dtbo \ + holi-denver-dvt1-overlay.dtbo \ + holi-denver-dvt2-overlay.dtbo \ + holi-denver-pvt-overlay.dtbo holi-denver-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-denver-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-denver-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-denver-dvt2-overlay.dtbo-base := holi-moto-base.dtb +holi-denver-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_IBIZA_DTB) += \ holi-ibiza-evt1-overlay.dtbo \ diff --git a/qcom/holi-denver-dvt1-overlay.dts b/qcom/holi-denver-dvt1-overlay.dts new file mode 100644 index 000000000000..d8ed96615fd0 --- /dev/null +++ b/qcom/holi-denver-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-denver-common-overlay.dtsi" + +/ { + model = "denver"; + compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x42 0xB100>; +}; + diff --git a/qcom/holi-denver-dvt2-overlay.dts b/qcom/holi-denver-dvt2-overlay.dts new file mode 100644 index 000000000000..820c112abba3 --- /dev/null +++ b/qcom/holi-denver-dvt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-denver-common-overlay.dtsi" + +/ { + model = "denver"; + compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x42 0xB200>; +}; + diff --git a/qcom/holi-denver-evt1-overlay.dts b/qcom/holi-denver-evt1-overlay.dts index d41e5fa99292..6b660174cbdd 100644 --- a/qcom/holi-denver-evt1-overlay.dts +++ b/qcom/holi-denver-evt1-overlay.dts @@ -16,7 +16,7 @@ #include "holi-denver-common-overlay.dtsi" / { - model = "Denver"; + model = "denver"; compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x41 0xA100>, <0x42 0xA100>; diff --git a/qcom/holi-denver-evt2-overlay.dts b/qcom/holi-denver-evt2-overlay.dts new file mode 100644 index 000000000000..0fbb4000f529 --- /dev/null +++ b/qcom/holi-denver-evt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-denver-common-overlay.dtsi" + +/ { + model = "denver"; + compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x42 0xA200>; +}; + diff --git a/qcom/holi-denver-pvt-overlay.dts b/qcom/holi-denver-pvt-overlay.dts new file mode 100644 index 000000000000..797e2c0b12d4 --- /dev/null +++ b/qcom/holi-denver-pvt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-denver-common-overlay.dtsi" + +/ { + model = "denver"; + compatible = "qcom,holi-denver", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x42 0xC000>; +}; + From e354dd82c07a37226e6ecbbdcb499febe502c26f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 19 Oct 2020 15:54:04 +0800 Subject: [PATCH 0053/1247] dts/ibiza: update the config of wled-bl 1. the current-limit is 25mA 2. enable cabc 3. enable and configure wled-bl-step Change-Id: Ie79f9cfa20ed92492da2e0e90b763a3d872571f4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1778490 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 7c5ddd1050f2..f26934afffcc 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -14,6 +14,13 @@ &pm6150l_wled { status = "ok"; + + qcom,fs-current-limit = <25000>; + qcom,en-cabc; + qcom,cabc-sel = <1>; + + qcom,wled-bl-step-up; + qcom,wled-bl-step-sequence = <255 5>, <2048 6>; }; &sde_dsi { From 63c70790badaf6feef28a22e22e00a54f0da12e7 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 19 Oct 2020 15:59:23 +0800 Subject: [PATCH 0054/1247] dts/denver: update the config of wled-bl 1. the current-limit is 25mA 2. enable cabc 3. enable and configure wled-bl-step Change-Id: Ie90d7a9c81de47e06bc10bdf6f7122004983ca2b Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1778494 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 900c2562ab03..2acc7601715f 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -14,6 +14,13 @@ &pm6150l_wled { status = "ok"; + + qcom,fs-current-limit = <25000>; + qcom,en-cabc; + qcom,cabc-sel = <1>; + + qcom,wled-bl-step-up; + qcom,wled-bl-step-sequence = <255 5>, <2048 6>; }; &sde_dsi { From 72b4ed18adbc6588e3a3d1064173a492b423f9d5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 26 Oct 2020 15:01:51 +0800 Subject: [PATCH 0055/1247] dts/denver-display: enable check_touch_state For denver ,we will enabel single tap. So we enable check_touch_state. Change-Id: I465e63cd71f5beee445b216043265d5f15fc8dbf Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1784651 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 2acc7601715f..f54bf3deb1e8 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -83,6 +83,8 @@ qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,tp_state_check_enable; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; qcom,mdss-dsi-t-clk-pre = <0x37>; From a377dbd849291c640b37a6eebb05d1148d2e45b3 Mon Sep 17 00:00:00 2001 From: liaohj Date: Mon, 2 Nov 2020 15:41:15 +0800 Subject: [PATCH 0056/1247] Denver:audio enable sec i2s tx sdline. enable sec i2s tx sdline.. it is for smart pa vi-feedback. Change-Id: Ie0426660cf1bdb3ed31aa8c9e27002612dc6c342 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1790743 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index 5ab8a05d3854..c44afc40b5cf 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -52,7 +52,7 @@ &dai_mi2s1 { status = "okay"; qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-tx-lines = <2>; }; &dai_mi2s2 { From 16c594c945c1e5bd9b1114dd84ceab93321edbb3 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 6 Nov 2020 09:51:48 +0800 Subject: [PATCH 0057/1247] dts/dummy_panel: disable reading register when panel on This is a dummy panel ,we will read register failed. So Disable reading register when panel on Change-Id: I7d3997059f8d886442f42aa4a4831eec3b85e8e0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1795581 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-dummy-qhd-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi index cb6e09515263..463e11e11972 100644 --- a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi +++ b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi @@ -43,6 +43,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; qcom,mdss-dsi-display-timings { From 893a4f2958831d3b23a0669d390d4e514df8191c Mon Sep 17 00:00:00 2001 From: liaoxl Date: Fri, 6 Nov 2020 13:58:28 +0800 Subject: [PATCH 0058/1247] dts/ibiza: remove FM ELNA control support As HW design dnp this module, remove this for better system performance Change-Id: Ic305afadbb828185ac23eb125c66a48ecc8502e4 Reviewed-on: https://gerrit.mot.com/1795738 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index b18f41ad4742..7da9ff539070 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -16,7 +16,6 @@ #include "denver-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "holi-ibiza-fmr-overlay.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { From 68195340ada986da02034cfd4cf6d36250e95a5a Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 6 Nov 2020 14:02:33 +0800 Subject: [PATCH 0059/1247] arm/dts: config bcl-not-mitigate-cpu config qcom,bcl-not-mitigate-cpu for improved performance at turbo charging scene Change-Id: I87670193dc68053d2f58984cc7b2e3c581676e30 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1795743 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index e5e6e046aff8..73445cbaaab7 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -462,6 +462,12 @@ }; }; +&bcl_soc { + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>; + io-channel-names = "usb_hw_current_max"; + qcom,bcl-not-mitigate-icl = <2500>; +}; + &usb0 { extcon = <&pm7250b_pdphy>, <&eud>; }; From c96b8514eca8ab0c70069f1f167602c646973de7 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 12 Nov 2020 09:50:51 +0800 Subject: [PATCH 0060/1247] arm64/dts:Denver:modify micbias to 2.8v Denver use wcd9370 to supply micbias. modify micbias to 2.8v to support high-impedance headset &mic. Change-Id: Iba6f358777d3a6e0225f7e6315fc44631ce03efb Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1800225 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index c44afc40b5cf..9f661fc55770 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -227,9 +227,9 @@ qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; qcom,cdc-vdd-mic-bias-current = <45000>; - qcom,cdc-micbias1-mv = <1800>; - qcom,cdc-micbias2-mv = <1800>; - qcom,cdc-micbias3-mv = <1800>; + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; qcom,cdc-static-supplies = "cdc-vdd-rxtx", "cdc-vddpx", @@ -292,6 +292,8 @@ "wcd937x_codec", "aw882xx_codec"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; &qupv3_se10_i2c { From cc1449e042c4bdb57b446bdb2e57f7306e0a0c77 Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 11 Nov 2020 16:09:03 +0800 Subject: [PATCH 0061/1247] arm64/dt: Add carrier sales channel ID Adding initial carrier-channel-ids.dtsi file which is copied from bq-7250 branch as of date 2020-10-02. This channel ID table contains change from (CR), (CR) and (CR). Also included this file in holi-moto-common-overlay.dtsi and add symbol into holi-moto-base.dts Change-Id: I77f19e575161d64638d48eeb4c226ceb939ec9d7 Reviewed-on: https://gerrit.mot.com/1799570 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 273 +++++++++++++++++++++++++++++ qcom/holi-moto-base.dts | 1 + qcom/holi-moto-common-overlay.dtsi | 2 + 3 files changed, 276 insertions(+) create mode 100644 qcom/carrier-channel-ids.dtsi diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi new file mode 100644 index 000000000000..81bf43b23026 --- /dev/null +++ b/qcom/carrier-channel-ids.dtsi @@ -0,0 +1,273 @@ +/* Copyright (c) 2013, The Linux Foundation. All rights reserved. + * Copyright (c) 2016 Motorola Mobility LLC + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +/ { + channel-id-map = + "acg", /* 0 - Engineering or ACG */ + "amxbr", /* 1 - LatAm */ + "amxpr", /* 2 */ + "amxmx", /* 3 */ + "amxcl", /* 4 */ + "amxar", /* 5 */ + "amxla", /* 6 */ + "amxpe", /* 7 */ + "amxco", /* 8 */ + "tefbr", /* 9 */ + "tefmx", /* 10 */ + "tefar", /* 11 */ + "tefcl", /* 12 */ + "tefpe", /* 13 */ + "tefco", /* 14 */ + "perar", /* 15 */ + "entcl", /* 16 */ + "iusmx", /* 17 */ + "niibr", /* 18 */ + "niicl", /* 19 */ + "niimx", /* 20 */ + "niipe", /* 21 */ + "oibr", /* 22 */ + "timbr", /* 23 */ + "tigco", /* 24 */ + "retbr", /* 25 */ + "retar", /* 26 */ + "retla", /* 27 */ + "retcl", /* 28 */ + "tefla", /* 29 */ + "retla1st", /* 30 */ + "tefunl", /* 31 */ + "tigca", /* 32 */ + "tigca1st", /* 33 */ + "retmx", /* 34 */ + "attmx", /* 35 */ + "womcl", /* 36 */ + "avaco", /* 37 */ + "retpe", /* 38 */ + "openla", /* 39 */ + "opencl", /* 40 */ + "openmx", /* 41 */ + "altmx", /* 42 */ + "openpe", /* 43 */ + "undefined", /* 44 */ + "undefined", /* 45 */ + "undefined", /* 46 */ + "undefined", /* 47 */ + "undefined", /* 48 */ + "undefined", /* 49 */ + "undefined", /* 50 */ + "undefined", /* 51 */ + "undefined", /* 52 */ + "undefined", /* 53 */ + "undefined", /* 54 */ + "undefined", /* 55 */ + "undefined", /* 56 */ + "undefined", /* 57 */ + "undefined", /* 58 */ + "undefined", /* 59 */ + "undefined", /* 60 */ + "undefined", /* 61 */ + "undefined", /* 62 */ + "undefined", /* 63 */ + "reteu", /* 64 - Europe, Middle East & Africa */ + "retgb", /* 65 */ + "retfr", /* 66 */ + "retes", /* 67 */ + "retie", /* 68 */ + "retde", /* 69 */ + "vfgb", /* 70 */ + "vfde", /* 71 */ + "vffr", /* 72 */ + "o2gb", /* 73 */ + "o2de", /* 74 */ + "orafr", /* 75 */ + "bouyfr", /* 76 */ + "eegb", /* 77 */ + "tescogb", /* 78 */ + "yoigo", /* 79 */ + "oraes", /* 80 */ + "retapac", /* 81 */ + "retmea", /* 82 */ + "vfit", /* 83 */ + "vfes", /* 84 */ + "vfeu", /* 85 */ + "3gb", /* 86 */ + "tescoie", /* 87 */ + "altfr", /* 88 */ + "3ie", /* 89 */ + "altpt", /* 90 */ + "timit", /* 91 */ + "retma", /* 92 */ + "windit", /* 93 */ + "vfhu", /* 94 */ + "vfro", /* 95 */ + "telhu", /* 96 */ + "playpl", /* 97 */ + "oraeu", /* 98 */ + "dteu", /* 99 */ + "teleu", /* 100 */ + "pluspl", /* 101 */ + "dtpl", /* 102 */ + "tefes", /* 103 */ + "altice", /* 104 */ + "vipeu", /* 105 */ + "veoneu", /* 106 */ + "openeu", /* 107 */ + "reteu2", /* 108 */ + "undefined", /* 109 */ + "undefined", /* 110 */ + "undefined", /* 111 */ + "undefined", /* 112 */ + "undefined", /* 113 */ + "undefined", /* 114 */ + "undefined", /* 115 */ + "undefined", /* 116 */ + "undefined", /* 117 */ + "undefined", /* 118 */ + "undefined", /* 119 */ + "undefined", /* 120 */ + "undefined", /* 121 */ + "undefined", /* 122 */ + "undefined", /* 123 */ + "undefined", /* 124 */ + "undefined", /* 125 */ + "undefined", /* 126 */ + "undefined", /* 127 */ + "retca", /* 128 - North America */ + "bwaca", /* 129 */ + "tkpca", /* 130 */ + "vzw", /* 131 */ + "att", /* 132 */ + "tmo", /* 133 */ + "sprint", /* 134 */ + "repw", /* 135 */ + "attpre", /* 136 */ + "cricket", /* 137 */ + "cc", /* 138 */ + "usc", /* 139 */ + "tracfone", /* 140 */ + "retus", /* 141 */ + "metropcs", /* 142 */ + "rcica", /* 143 */ + "wndca", /* 144 */ + "dmc", /* 145 */ + "bby", /* 146 */ + "amz", /* 147 */ + "acg", /* 148 */ + "lra", /* 149 */ + "comcast", /* 150 */ + "fi", /* 151 */ + "vzwpre", /* 152 */ + "boost", /* 153 */ + "undefined", /* 154 */ + "undefined", /* 155 */ + "undefined", /* 156 */ + "undefined", /* 157 */ + "undefined", /* 158 */ + "undefined", /* 159 */ + "undefined", /* 160 */ + "undefined", /* 161 */ + "undefined", /* 162 */ + "undefined", /* 163 */ + "undefined", /* 164 */ + "undefined", /* 165 */ + "undefined", /* 166 */ + "undefined", /* 167 */ + "undefined", /* 168 */ + "undefined", /* 169 */ + "undefined", /* 170 */ + "undefined", /* 171 */ + "undefined", /* 172 */ + "undefined", /* 173 */ + "undefined", /* 174 */ + "undefined", /* 175 */ + "undefined", /* 176 */ + "undefined", /* 177 */ + "undefined", /* 178 */ + "undefined", /* 179 */ + "undefined", /* 180 */ + "undefined", /* 181 */ + "undefined", /* 182 */ + "undefined", /* 183 */ + "undefined", /* 184 */ + "undefined", /* 185 */ + "undefined", /* 186 */ + "undefined", /* 187 */ + "undefined", /* 188 */ + "undefined", /* 189 */ + "undefined", /* 190 */ + "undefined", /* 191 */ + "retin", /* 192 - Asia & Oceania */ + "retcn", /* 193 */ + "telstra", /* 194 */ + "vfau", /* 195 */ + "amzin", /* 196 */ + "jioin", /* 197 */ + "airin", /* 198 */ + "retid", /* 199 */ + "cmcc", /* 200 */ + "ctcn", /* 201 */ + "cucn", /* 202 */ + "retmm", /* 203 */ + "gt4gtw", /* 204 */ + "retth", /* 205 */ + "retru", /* 206 */ + "trueth", /* 207 */ + "smarthk", /* 208 */ + "mobilpk", /* 209 */ + "retsea", /* 210 */ + "retjp", /* 211 */ + "softbank", /* 212 */ + "undefined", /* 213 */ + "undefined", /* 214 */ + "undefined", /* 215 */ + "undefined", /* 216 */ + "undefined", /* 217 */ + "undefined", /* 218 */ + "undefined", /* 219 */ + "undefined", /* 220 */ + "undefined", /* 221 */ + "undefined", /* 222 */ + "undefined", /* 223 */ + "undefined", /* 224 */ + "undefined", /* 225 */ + "undefined", /* 226 */ + "undefined", /* 227 */ + "undefined", /* 228 */ + "undefined", /* 229 */ + "undefined", /* 230 */ + "undefined", /* 231 */ + "undefined", /* 232 */ + "undefined", /* 233 */ + "undefined", /* 234 */ + "undefined", /* 235 */ + "undefined", /* 236 */ + "undefined", /* 237 */ + "undefined", /* 238 */ + "undefined", /* 239 */ + "undefined", /* 240 */ + "undefined", /* 241 */ + "undefined", /* 242 */ + "undefined", /* 243 */ + "undefined", /* 244 */ + "undefined", /* 245 */ + "undefined", /* 246 */ + "undefined", /* 247 */ + "undefined", /* 248 */ + "undefined", /* 249 */ + "undefined", /* 250 */ + "undefined", /* 251 */ + "undefined", /* 252 */ + "undefined", /* 253 */ + "undefined", /* 254 */ + "undefined"; /* 255 */ +}; diff --git a/qcom/holi-moto-base.dts b/qcom/holi-moto-base.dts index 4782e90d01a8..bc797ca72449 100644 --- a/qcom/holi-moto-base.dts +++ b/qcom/holi-moto-base.dts @@ -16,6 +16,7 @@ / { qcom,board-id = <0 0>; + channel-id-map = ""; /* * Some nodes need labels assigned to appear in __symbols__ */ diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 73445cbaaab7..db1d72d19f1f 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -12,6 +12,8 @@ #include #include +#include "carrier-channel-ids.dtsi" + #include "holi-pmic-overlay.dtsi" #include "display/holi-sde-display-mtp.dtsi" #include "holi-thermal-overlay.dtsi" From 04f698534726674a56a1bf36355b025a165213e1 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 6 Nov 2020 09:43:16 +0800 Subject: [PATCH 0062/1247] arm64/dt: denver: add goodix fps node Goodix fps will be the second fps. Add device tree node for it. Change-Id: I2545981c88856ba4fc53730551bd7dad62b7a21a Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1795574 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Ling Zhong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-fps-overlay.dtsi | 69 ++++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/qcom/denver-fps-overlay.dtsi b/qcom/denver-fps-overlay.dtsi index 140ee981f7f5..70b7f01ca4bf 100644 --- a/qcom/denver-fps-overlay.dtsi +++ b/qcom/denver-fps-overlay.dtsi @@ -29,6 +29,63 @@ }; }; }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; }; &pm6350_l8 { @@ -51,4 +108,16 @@ pinctrl-0 = <&chipone_int_active>; pinctrl-1 = <&chipone_int_suspend>; }; + + goodix_fingerprint{ + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x2>; + fp-gpio-irq = <&tlmm 17 0x2>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; }; From 47d2ace4847100bd2b5df5ee6873b6baf075d714 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 10:40:45 +0800 Subject: [PATCH 0063/1247] Ibiza: dts/panel: update the wled config 1.For ibiza,there are 2*9 leds. So we set the string_cfg to 0x03. 2. WLED OVP = 29.5V, OCP = 875mA. Change-Id: Ie0b333274099039bbe2abb744cb1779a6f85e88c Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799266 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index f26934afffcc..778a9d005a18 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -15,12 +15,17 @@ &pm6150l_wled { status = "ok"; + qcom,string-cfg = <3>; + qcom,fs-current-limit = <25000>; qcom,en-cabc; qcom,cabc-sel = <1>; qcom,wled-bl-step-up; qcom,wled-bl-step-sequence = <255 5>, <2048 6>; + + qcom,ovp = <29500>; + qcom,boost-current-limit = <875>; }; &sde_dsi { From e6101b9643e327177a531221cca5ce33426274f2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 10:43:57 +0800 Subject: [PATCH 0064/1247] Denver: dts/panel: update the wled config 1.For ibiza,there are 3*7 leds. So we set the string_cfg to 0x07. 2.WLED OVP = 23.5V, OCP = 1050mA. Change-Id: I4d7a798503f14101f2cc1676f10508891b68ba54 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799267 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index f54bf3deb1e8..2dd21f8d451d 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -15,12 +15,17 @@ &pm6150l_wled { status = "ok"; + qcom,string-cfg = <7>; + qcom,fs-current-limit = <25000>; qcom,en-cabc; qcom,cabc-sel = <1>; qcom,wled-bl-step-up; qcom,wled-bl-step-sequence = <255 5>, <2048 6>; + + qcom,ovp = <23500>; + qcom,boost-current-limit = <1050>; }; &sde_dsi { From 2bde6ecddf12fbf41efb7d2f426dedbe8034419e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 17:05:03 +0800 Subject: [PATCH 0065/1247] Denver dts/panel: add the hbm on/off command. When HBM enable ,we set the pwm to 100%. Then the current = 25 mA Change-Id: I0e8af6afad460b24a89eab07c153b89702da1001 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799619 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 2dd21f8d451d..6e18b47f2ea7 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -90,6 +90,12 @@ qcom,tp_state_check_enable; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; qcom,mdss-dsi-t-clk-pre = <0x37>; From 164ac3263972d828ece3c19bd0cadd638708428d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 17:08:28 +0800 Subject: [PATCH 0066/1247] dts/panel: dts/panel: add the cabc command for auo panel. For auo panel ,we will control panel's cabc through register 51. CABC has three modes: UI MV Disable. Change-Id: I8b982f52bb8b69a7f548a68defbd59e253e30dcd Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799622 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 5ece50924689..76504a5b37bd 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -30,6 +30,14 @@ qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; @@ -67,13 +75,6 @@ qcom,mdss-dsi-t-clk-pre = <0x35>; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; - qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; - qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; - qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; }; }; From 3dad0c0162788fec28eb49fe5e521b43975718f5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 17:11:34 +0800 Subject: [PATCH 0067/1247] dts/panel: dts/panel: add the cabc command for DJN panel. For DJN panel ,we will control panel's cabc through register 51. CABC has three modes: UI MV Disable. Change-Id: Iff735477788ead1725fcba360ce70f71881f9653 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799624 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 8a42cd43e515..658ad9bd5631 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -30,6 +30,14 @@ qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; qcom,mdss-pan-physical-width-dimension = <70>; qcom,mdss-pan-physical-height-dimension = <157>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <720>; @@ -69,13 +77,6 @@ qcom,mdss-dsi-t-clk-pre = <0x35>; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; - qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; - qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; - qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; }; }; From 717c719d6047b5dc4f4c9bf97bafd61146b58894 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Nov 2020 17:12:16 +0800 Subject: [PATCH 0068/1247] Ibiza dts/panel: add the hbm on/off command. When HBM enable ,we set the pwm to 100%. Then the current = 25 mA Change-Id: I7443ccff62f47b044b451cbcf22f9d1e3bdf2f9a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1799625 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 778a9d005a18..1b44e61b7eb7 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -88,6 +88,12 @@ qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0E>; qcom,mdss-dsi-t-clk-pre = <0x34>; From 05d529cfbba43073d3d5e079ca1977413fef15bf Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 10 Nov 2020 18:22:08 +0800 Subject: [PATCH 0069/1247] Denver: dts/panel: bringup the second panel The second panel: TXD + BOE + nt36675 Change-Id: I35cab8a209465f3b512f8e4e5fa0fa6c1befb3b4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1798724 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 6e18b47f2ea7..9dbca0806a6b 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-auo-nt36675-fhd-video.dtsi" +#include "dsi-panel-mot-boe-nt36675-fhd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -109,6 +110,45 @@ }; }; +&dsi_nt36675_boe_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 06 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; From 3b3b9aa2916dcc520215cd487a93388495e033b8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 10 Nov 2020 18:22:53 +0800 Subject: [PATCH 0070/1247] dts/panel: add the second panel file for Denver The second panel: TXD + BOE + nt36675 Change-Id: Iaa8e56e829ab39298e852ff73974505e7fc81c41 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1798725 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi new file mode 100644 index 000000000000..2251fba1ca9b --- /dev/null +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -0,0 +1,80 @@ +&mdss_mdp { + dsi_nt36675_boe_video: qcom,mdss_dsi_nt36675_boe_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_boe_1080p_681"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <71>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <56>; + qcom,mdss-dsi-h-back-porch = <68>; + qcom,mdss-dsi-h-pulse-width = <20>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <20>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 00 00 01 28 + 05 01 00 00 44 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x35>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; From 1b55a7fa17593e988f5cd1e9dd85aae0769457fb Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 13 Nov 2020 09:30:52 +0800 Subject: [PATCH 0071/1247] Ibiza: dts/panel: enable dynamic fps The max fps is 90HZ. Enable dynamic fps (90/60). Change porch value to change fps. Change-Id: Ic2cbd0b738b59eacf2204849bc0d55375dbf3436 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1798613 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 1b44e61b7eb7..9491554b0d51 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -88,6 +88,10 @@ qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; From 9f5ed8c738351f46bc01a65aef6bf58d0d82ed89 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Thu, 12 Nov 2020 14:56:06 +0800 Subject: [PATCH 0072/1247] Therm:Support&Enable System Temperature Support system temperature. Enable it for Ibiza and Denver Change-Id: I9432eead46b674619c0151e1ec9789fbaa0a0860 Reviewed-on: https://gerrit.mot.com/1799635 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 1 + qcom/holi-ibiza-common-overlay.dtsi | 2 ++ qcom/moto_therm_sys_temp.dtsi | 8 ++++++++ 3 files changed, 11 insertions(+) create mode 100644 qcom/moto_therm_sys_temp.dtsi diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index ad50a3a87a6f..bffbfe4b6684 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -18,6 +18,7 @@ #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "denver-fps-overlay.dtsi" #include "holi-denver-fmr-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 7da9ff539070..efd54c94cd2c 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -16,6 +16,8 @@ #include "denver-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-ibiza-fmr-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" &tlmm { tps61280_en_default: tps61280_en_default { diff --git a/qcom/moto_therm_sys_temp.dtsi b/qcom/moto_therm_sys_temp.dtsi new file mode 100644 index 000000000000..17a9d23fe8dc --- /dev/null +++ b/qcom/moto_therm_sys_temp.dtsi @@ -0,0 +1,8 @@ +&soc { + sys_temp_support { + compatible = "mmi,sys-temp"; + mmi,temperature-names = "front_temp", + "back_temp"; + status = "ok"; + }; +}; From 2a21c0a6861e0fe8e4d63a7aed1240d7e7b0ad8b Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 13 Nov 2020 14:15:34 +0800 Subject: [PATCH 0073/1247] arm/dts: Add device config for mmi_relay. Add device config for mmi_relay module so that FPS can call it and notify event to TP. Change-Id: I58df2ee5ad8b47a2583c175683f696ee7e1692ae Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1801616 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index db1d72d19f1f..8e44577e1254 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -134,6 +134,10 @@ mem-size = <0x20000>; }; + mmi_relay{ + compatible = "mmi,sys-relay"; + }; + gpio_keys: gpio_keys { compatible = "gpio-keys"; label = "gpio-keys"; From 1c8e9afb2881d20365ebf879f774f9fd0eb22680 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 13 Nov 2020 16:17:32 +0800 Subject: [PATCH 0074/1247] driver/sar-sensor: sx937x bring up 1.update paramters 2.adjust driver to match new params Change-Id: I94246fd45911d05d121ef449496b618c0399abd6 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1801961 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 43 +++++++++++++++++------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 8e44577e1254..1b658b115a17 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -213,30 +213,36 @@ interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 24 0x02>; cap_vdd-supply = <&pm6150a_l8>; - Semtech,button-flag = <0x3b>; - Semtech,ref-phases-a = <2>; - Semtech,ref-phases-b = <6>; - Semtech,reg-num = <24>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <25>; Semtech,reg-init = < - 0x8024 0xF700 /*PHEN*/ + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ + 0x8028 0x85C /*AFE_PARAM_PH0*/ 0x8034 0x85C /*AFE_PARAM_PH1*/ 0x8040 0x85C /*AFE_PARAM_PH2*/ - /* 0x804C 0x85C */ /*AFE_PARAM_PH3*/ + 0x804C 0x85C /*AFE_PARAM_PH3*/ 0x8058 0x85C /*AFE_PARAM_PH4*/ 0x8064 0x85C /*AFE_PARAM_PH5*/ 0x8070 0x85C /*AFE_PARAM_PH6*/ - 0x807C 0x85C /*AFE_PARAM_PH7*/ + /* 0x807C 0x85C */ /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0*/ - 0x803C 0xFFF9EF /*REG_AFEPH_PH1*/ - 0x8048 0xFFF97F /*REG_AFEPH_PH2*/ - /* 0x8054 0xFFFBFF */ /*REG_AFEPH_PH3*/ - 0x8060 0xFFD9FF /*REG_AFEPH_PH4*/ - 0x806C 0xFEF9FF /*REG_AFEPH_PH5*/ - 0x8078 0xF7F9FF /*REG_AFEPH_PH6*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + /*prox1 5000 0x64*/ /*prox2 10000 0x8D*/ /*prox3 15000 0xAD*/ @@ -244,12 +250,13 @@ 0x8098 0xC8AD8D64 /*prox threshold ph0*/ 0x80B8 0xC8AD8D64 /*prox threshold ph1*/ 0x80D8 0xC8AD8D64 /*prox threshold ph2*/ - /* 0x80F8 0x64*/ /*prox threshold ph3*/ + 0x80F8 0xC8AD8D64 /*prox threshold ph3*/ 0x8118 0xC8AD8D64 /*prox threshold ph4*/ 0x8138 0xC8AD8D64 /*prox threshold ph5*/ 0x8158 0xC8AD8D64 /*prox threshold ph6*/ - 0x8178 0xC8AD8D64 /*prox threshold ph7*/ - 0x8024 0xF7F7 /*PHEN*/ + /*0x8178 0xC8AD8D64*/ /*prox threshold ph7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; status = "ok"; From 05973f8c27d2c097477a44df226d1b2925da865e Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 16 Nov 2020 15:27:37 +0800 Subject: [PATCH 0075/1247] arm/dts: config pd default sink caps config pd default sink caps <5000 3000> 5V3A <9000 2000> 9V2A Change-Id: I2796d896c312f9099a448a1407f563c8e087f43c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1803295 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 1b658b115a17..1efdc8e63fc3 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -429,6 +429,8 @@ vdd-pdphy-supply = <&L3A>; vbus-supply = <&smb5_vbus>; vconn-supply = <&smb5_vconn>; + qcom,default-sink-caps = <5000 3000>, /*5V @ 3A*/ + <9000 2000>; /*9V @ 2A*/ #io-channel-cells = <1>; io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, From bac056555799ce608e027cea29cbb97b44217ad8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 16 Nov 2020 14:20:45 +0800 Subject: [PATCH 0076/1247] dts/panel: 8-bits backlight for the second panel The second panel: TXD + BOE + nt36675 The 51h is 8bits Change-Id: Ib705f1cd1717ab100dc752b6193d31aa2ced49e3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1803251 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 2251fba1ca9b..6bcd561e20b3 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -59,7 +59,7 @@ [ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 - 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 51 CC 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 From 4f3bf99adc573aed4833b3565d071497f7718c37 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 16 Nov 2020 11:32:27 +0800 Subject: [PATCH 0077/1247] arm64/dts: Denver: Support multi panel-supplier for novatek - Compatible with boe and auo panel. - Denver will inport novatek boe and auo panel with the same IC, but now because of android R need to support for GKI so we can't continue to use chosen property of devicetree to confirm which panel will be used, so get the right panel-supplier from active panel name. Change-Id: Iec12f5411ceca29905caa5fb0d1ac0a8073984cc Reviewed-on: https://gerrit.mot.com/1803198 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-touchscreen.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi index 68dc270e83ec..cb397c5d56fb 100755 --- a/qcom/denver-touchscreen.dtsi +++ b/qcom/denver-touchscreen.dtsi @@ -83,7 +83,8 @@ novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; - panel = <&dsi_nt36675_auo_video>; + novatek,panel-supplier = "auo","boe"; + panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video>; status = "ok"; }; From 91c0541ab6ec0e63131f26c4f18f7cd68ab6b60a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 16 Nov 2020 15:19:51 +0800 Subject: [PATCH 0078/1247] dts/denver: 8-bits backlight for the second panel Backlight is 8bits. So write 0xFF to 51h, to enable HBM. Change-Id: I1472ae91ef84181c5166f19964e146b84256cc3f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1803287 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 9dbca0806a6b..4852df2a259a 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -130,9 +130,9 @@ qcom,tp_state_check_enable; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 03 51 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 03 51 CC]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From b1cd77061368adaf9b5c8c6c923f7fcb0338ef62 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 17 Nov 2020 14:40:57 +0800 Subject: [PATCH 0079/1247] driver/sar-sensor: sx937x bring up 1.add denver specific dts for sarsensor 2.update paramters about channels mapping Change-Id: I11bc59f7516fab3451332d3f730462cda77240c3 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1804142 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 48 ++++++++++++++++++++++++++++ qcom/holi-moto-common-overlay.dtsi | 2 +- 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index bffbfe4b6684..068c55f8c0f2 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -262,3 +262,51 @@ &pm8008_9 { status = "disabled"; }; + +&sx937x { + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <25>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + + 0x8028 0x85C /*AFE_PARAM_PH0*/ + 0x8034 0x85C /*AFE_PARAM_PH1*/ + 0x8040 0x85C /*AFE_PARAM_PH2*/ + 0x804C 0x85C /*AFE_PARAM_PH3*/ + 0x8058 0x85C /*AFE_PARAM_PH4*/ + 0x8064 0x85C /*AFE_PARAM_PH5*/ + 0x8070 0x85C /*AFE_PARAM_PH6*/ + /* 0x807C 0x85C */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xBFF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Main*/ + 0x8048 0xFFF9EF /*REG_AFEPH_PH2, CS1, ANT4, Top Right*/ + 0x8054 0xFFF9FD /*REG_AFEPH_PH3, CS0, ANT5, Top Middle*/ + 0x8060 0xFEF9FF /*REG_AFEPH_PH4, CS5, ANT8, Bottom Right*/ + 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*prox1 5000 0x64*/ + /*prox2 10000 0x8D*/ + /*prox3 15000 0xAD*/ + /*prox4 20000 0xC8*/ + 0x8098 0xC8AD8D64 /*prox threshold ph0*/ + 0x80B8 0xC8AD8D64 /*prox threshold ph1*/ + 0x80D8 0xC8AD8D64 /*prox threshold ph2*/ + 0x80F8 0xC8AD8D64 /*prox threshold ph3*/ + 0x8118 0xC8AD8D64 /*prox threshold ph4*/ + 0x8138 0xC8AD8D64 /*prox threshold ph5*/ + 0x8158 0xC8AD8D64 /*prox threshold ph6*/ + /*0x8178 0xC8AD8D64*/ /*prox threshold ph7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; +}; diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 1efdc8e63fc3..2e6623850f03 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -205,7 +205,7 @@ &dsi_rm69299_visionox_amoled_cmd>; }; - sx937x@2c { + sx937x:sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; interrupt-parent = <&tlmm>; From d27b8b5d90292f42ffaca0999f64d643b5dbf8c1 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 17 Nov 2020 14:52:20 +0800 Subject: [PATCH 0080/1247] arch/dts: config dcp max current 2A As inbox charger is 10W, so config dcp max current 2A Change-Id: I1d55a448b3564f3205d9c9356df1af441cc7cf31 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1804207 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 4 ++++ qcom/holi-ibiza-common-overlay.dtsi | 1 + 2 files changed, 5 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 068c55f8c0f2..b6624ebb796e 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -127,6 +127,10 @@ }; }; +&pm7250b_charger { + qcom,dcp-curr-max = <2000000>; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index efd54c94cd2c..85ffae6b7fa6 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -273,6 +273,7 @@ &pm7250b_charger { qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4400000>; + qcom,dcp-curr-max = <2000000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 From 56e89bc3ba15854f9bd5dc730fa8fc6e579c64e7 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Wed, 18 Nov 2020 10:40:04 +0800 Subject: [PATCH 0081/1247] arm64/dts: update EVT2 hwid configuration for ibiza project update EVT2 hwid configuration for ibiza project according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Because motorola bootloader don't have EVB version for SW, EVB for HW is EVT1 in SW, EVT1 for HW is EVT2 in SW, etc. Change-Id: I911db74b5825ad341207645d57aa6a0cfa8f5b25 Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1805146 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 2 ++ qcom/holi-ibiza-evt3-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 qcom/holi-ibiza-evt3-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 6a4496a4c797..ac3ca89f6c45 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -21,12 +21,14 @@ holi-denver-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_IBIZA_DTB) += \ holi-ibiza-evt1-overlay.dtbo \ holi-ibiza-evt2-overlay.dtbo \ + holi-ibiza-evt3-overlay.dtbo \ holi-ibiza-dvt1-overlay.dtbo \ holi-ibiza-dvt2-overlay.dtbo \ holi-ibiza-pvt-overlay.dtbo holi-ibiza-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-ibiza-evt3-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-dvt1-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-dvt2-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-pvt-overlay.dtbo-base := holi-moto-base.dtb diff --git a/qcom/holi-ibiza-evt3-overlay.dts b/qcom/holi-ibiza-evt3-overlay.dts new file mode 100644 index 000000000000..02dafe911e47 --- /dev/null +++ b/qcom/holi-ibiza-evt3-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-ibiza-common-overlay.dtsi" + +/ { + model = "ibiza"; + compatible = "qcom,holi-ibiza", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x43 0xA300>; +}; + From e8734018b0e17a9b64bea85cc3f1301d1d798acc Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 18 Nov 2020 15:03:55 +0800 Subject: [PATCH 0082/1247] dts:denver/ibiza:rename snd_card_name rename snd_card_name to holi-9370_aw882xx-snd-card. Change-Id: Id3bda2f1f0da61e644f9999f07c61630d900ca5d Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1805326 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuesheng Huang Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index 9f661fc55770..894c5c511896 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -239,7 +239,7 @@ }; &holi_snd { - qcom,model = "holi-9370-aw882xx-snd-card"; + qcom,model = "holi-9370_aw882xx-snd-card"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; From 73be7adc8761379bfbe0b00e5e15b4ffaad8d64b Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 19 Nov 2020 10:14:11 +0800 Subject: [PATCH 0083/1247] dts: add qpnp-power-on-mmi dts config Adding dts configuration for qpnp-power-on-mmi. And it is a common feature that will be implemented for every projects. So we add it in moto 4350 common dts file. Change-Id: I5050faa78e0598e149648f93771e134dcf7bd0f5 Signed-off-by: weiweij Reviewed-on: https://gerrit.mot.com/1806123 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 2e6623850f03..7f94e47f0624 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -384,6 +384,14 @@ qcom,force-hvdcp-5v; }; }; + + qcom,pm6350@0 { + qpnp-power-on-mmi@800 { + compatible = "qcom,qpnp-power-on-mmi"; + interrupts = <0x0 0x8 0x3 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "kpdpwr-bark"; + }; + }; }; &pm7250b_qg { From 34eae55938271618b45c1ab03555114fdad73284 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 19 Nov 2020 15:26:26 +0800 Subject: [PATCH 0084/1247] dts/panel: update the right value of 51h 1.The max value of 51h is 0x07FF. 2.Under normal mode, the current is 20mA = 25mA * 80%. So 51h must be 0x07FF*80% = 0x0666 Change-Id: I60fe00fbe07180613c14b7c5df2d707f853db067 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1806455 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 658ad9bd5631..48247bfbaf5c 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -63,7 +63,7 @@ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 68 03 01 - 39 00 00 00 00 00 03 51 0C CC + 39 00 00 00 00 00 03 51 06 66 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 From 1678b048a43f00832835cd06e78c63702361e237 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Nov 2020 11:30:26 +0800 Subject: [PATCH 0085/1247] dts/panel: update the right value of 51h 1.The max value of 51h is 0x07FF. 2.Under normal mode, the current is 20mA = 25mA * 80%. So 51h must be 0x07FF*80% = 0x0666 Change-Id: Ibb3e01249683872e43ccc2d1bd5ea8dd3a79f3ad Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1807525 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 76504a5b37bd..0a958be2f3dd 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -61,7 +61,7 @@ 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 68 02 01 39 00 00 00 00 00 02 B0 00 - 39 00 00 00 00 00 03 51 0C CC + 39 00 00 00 00 00 03 51 06 66 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 From 44677d46da95163d400ce3a5fda250838e174aa5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Nov 2020 11:33:48 +0800 Subject: [PATCH 0086/1247] dts/denver: update the right command for HBM on/off 1.The max value of 51h is 0x07FF. 2.Under HBM OFF, the current is 20mA = 25mA * 80%. So 51h must be 0x07FF*80% = 0x0666 Change-Id: I575f4ae52c58d96269551590cdcdb42c15021b84 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1807526 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 4852df2a259a..a29d600b43a8 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -91,9 +91,9 @@ qcom,tp_state_check_enable; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From 752c4792ef91c69a4b56ebbc5b831d6156718178 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Nov 2020 11:34:26 +0800 Subject: [PATCH 0087/1247] dts/ibiza: update the right command for HBM on/off 1.The max value of 51h is 0x07FF. 2.Under HBM OFF, the current is 20mA = 25mA * 80%. So 51h must be 0x07FF*80% = 0x0666 Change-Id: I106ee744c3f4c91fb3b54a24baef78424c105567 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1807527 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 9491554b0d51..bf322163e8c5 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -92,9 +92,9 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From 6411cf3e8b02a63ae57ad8982699b905bba47743 Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 12 Nov 2020 11:05:09 +0800 Subject: [PATCH 0088/1247] arm/dt: lito: Remove fstab Per Google DAP implementation guide, "Devices launching with Android Q must not use system-as-root. The device tree and device tree overlays must not contain fstab entries. Use an fstab file that will be part of the ramdisk." This change removes fstab entries from kernel device tree. Ported from: https://gerrit.mot.com/1415874 Change-Id: Id3037da89a16ef1053cc86691f07b1327a6289e9 Reviewed-on: https://gerrit.mot.com/1800290 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Mark Reed Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Binsheng Que Submit-Approved: Jira Key --- qcom/holi-moto-base.dts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-moto-base.dts b/qcom/holi-moto-base.dts index bc797ca72449..6ae104340a5b 100644 --- a/qcom/holi-moto-base.dts +++ b/qcom/holi-moto-base.dts @@ -35,3 +35,7 @@ &tlmm { /delete-node/ nfc; }; + +&firmware { + /delete-node/ android; +}; From 18e19dfb1e96ac7bcaf6a245b45ed66cb7020c6c Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 18 Nov 2020 14:31:31 +0800 Subject: [PATCH 0089/1247] arm64/dt: ibiza: add fpc fingerprint device node Ibiza will use fpc1520 to replace the goodix sensor as second fps. Add new device node for it. Change-Id: Ic4fd8a8ba943268b965c39f8a850669c543b059d Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1806081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Zhong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 2 +- qcom/ibiza-fps-overlay.dtsi | 123 ++++++++++++++++++++++++++++ 2 files changed, 124 insertions(+), 1 deletion(-) create mode 100644 qcom/ibiza-fps-overlay.dtsi diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 85ffae6b7fa6..9b1a7da79830 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -13,7 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" -#include "denver-fps-overlay.dtsi" +#include "ibiza-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "holi-ibiza-fmr-overlay.dtsi" diff --git a/qcom/ibiza-fps-overlay.dtsi b/qcom/ibiza-fps-overlay.dtsi new file mode 100644 index 000000000000..da55900ab2c4 --- /dev/null +++ b/qcom/ibiza-fps-overlay.dtsi @@ -0,0 +1,123 @@ +&tlmm { + chipone { + chipone_int_active: chipone_int_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + bias-pull-up; + }; + }; + chipone_int_suspend: chipone_int_suspend { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + bias-pull-up; + }; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + input-enable; + }; + }; +}; + +&pm6350_l8 { + qcom,init-voltage = <3304000>; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-always-on; +}; + +&soc { + fingerprint { + compatible = "qcom,fingerprint-gpio"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-gpio-int = <&tlmm 17 0x2>; + fp-gpio-reset = <&tlmm 18 0x2>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&chipone_int_active>; + pinctrl-1 = <&chipone_int_suspend>; + }; + + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; From 79200f3765207b98fd0fb898f4a1c1c75387b7ee Mon Sep 17 00:00:00 2001 From: liaoxl Date: Wed, 25 Nov 2020 10:53:44 +0800 Subject: [PATCH 0090/1247] arm64/dts: fix current leak on GPIO47 default state set as high will lead to ELNA module on, which will consume battery power. turn it off as default settings to fix this issue. Change-Id: I4b023b32e4f22431bb991c88c7d293568b3dd49b Reviewed-on: https://gerrit.mot.com/1810702 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Yongbin Chen Submit-Approved: Jira Key --- qcom/holi-denver-fmr-overlay.dtsi | 2 +- qcom/holi-ibiza-fmr-overlay.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-denver-fmr-overlay.dtsi b/qcom/holi-denver-fmr-overlay.dtsi index 6a2fba46a9a9..8ce398dbec2e 100644 --- a/qcom/holi-denver-fmr-overlay.dtsi +++ b/qcom/holi-denver-fmr-overlay.dtsi @@ -7,7 +7,7 @@ config { pins = "gpio47"; drive_strength = <16>; - output-high; + output-low; }; }; diff --git a/qcom/holi-ibiza-fmr-overlay.dtsi b/qcom/holi-ibiza-fmr-overlay.dtsi index 6a2fba46a9a9..8ce398dbec2e 100644 --- a/qcom/holi-ibiza-fmr-overlay.dtsi +++ b/qcom/holi-ibiza-fmr-overlay.dtsi @@ -7,7 +7,7 @@ config { pins = "gpio47"; drive_strength = <16>; - output-high; + output-low; }; }; From 3295584182a43532ecf7cf43d073846648c4777d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Nov 2020 15:58:58 +0800 Subject: [PATCH 0091/1247] Ibiza: dts/panel: bringup the second panel The second panel: TM +ICNL9911C Change-Id: Id0d21840abc8346219e21e823021399252ea0a71 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1807799 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 140 +++++++++++++++++++++++++++++++--------- 1 file changed, 111 insertions(+), 29 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index bf322163e8c5..734aef48c4ed 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-djn-nt36525c-hd-video.dtsi" +#include "dsi-panel-mot-tm-icnl9911c-hd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -36,37 +37,77 @@ qcom,dsi-default-panel = <&dsi_nt36525c_djn_video>; }; -&dsi_panel_pwr_supply { - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; - qcom,supply-enable-load = <32000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep= <0>; - qcom,supply-post-off-sleep = <21>; +&soc { + dsi_panel_pwr_supply_djn_panel: dsi_panel_pwr_supply_djn_panel{ + #address-cells = <1>; + #size-cells = <0>; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; }; - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-on-sleep = <3>; - }; + dsi_panel_pwr_supply_tm_panel: dsi_panel_pwr_supply_tm_panel{ + #address-cells = <1>; + #size-cells = <0>; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; }; }; @@ -74,7 +115,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <27>; @@ -111,6 +152,47 @@ }; }; +&dsi_icnl9911c_tm_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_tm_panel>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90>; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 C0 00]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0D>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 07 06 22 21 07 + 07 07 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; From 432564791491b02df6abc82b27ee0da76c8c9f83 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Nov 2020 15:58:24 +0800 Subject: [PATCH 0092/1247] dts/panel: add the second panel file for Ibiza The second panel: TM + ICNL9911C Change-Id: Ib997df0f1beb45ef7539aa8e0af16ad9c0bd1ab3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1807798 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 96 +++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi new file mode 100644 index 000000000000..59db53942e1e --- /dev/null +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -0,0 +1,96 @@ +&mdss_mdp { + dsi_icnl9911c_tm_video: qcom,mdss_dsi_icnl9911c_tm_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_720p_651"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03 + 39 01 00 00 00 00 03 F0 5A 59 + 39 01 00 00 00 00 03 F1 A5 A6 + 39 01 00 00 00 00 1B E0 30 00 80 88 11 3F 22 62 DF A0 04 CC 01 FF FA FF F0 FD FF FB F8 F5 FC FC FB FF + 39 01 00 00 00 00 18 E1 BC F8 CC FA DB 9B F0 E7 F0 85 F0 70 00 50 00 9A FD F0 E0 FF 00 07 D0 + 39 01 00 00 00 00 03 F1 5A 59 + 39 01 00 00 00 00 03 F0 A5 A6]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01 + 39 01 00 00 00 00 03 F0 5A 59 + 39 01 00 00 00 00 03 F1 A5 A6 + 39 01 00 00 00 00 1B E0 30 00 80 88 11 3F 22 62 DF A0 04 CC 01 FF F6 FF F0 FD FF FD F8 F5 FC FC FD FF + 39 01 00 00 00 00 18 E1 EF FE FE FE FE EE F0 20 33 FF 00 00 6A 90 C0 0D 6A F0 3E FF 00 07 D0 + 39 01 00 00 00 00 03 F1 5A 59 + 39 01 00 00 00 00 03 F0 A5 A6]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <48>; + qcom,mdss-dsi-h-back-porch = <48>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <150>; + qcom,mdss-dsi-v-pulse-width = <6>; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 00 00 00 00 00 03 51 C0 00 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 39 01 00 00 00 00 03 F0 5A 59 + 39 01 00 00 00 00 03 F1 A5 A6 + 39 01 00 00 00 00 1B E0 30 00 80 88 11 3F 22 62 DF A0 04 CC 01 FF F6 FF F0 FD FF FD F8 F5 FC FC FD FF + 39 01 00 00 00 00 18 E1 EF FE FE FE FE EE F0 20 33 FF 00 00 6A 90 C0 0D 6A F0 3E FF 00 07 D0 + 39 01 00 00 00 00 03 F1 5A 59 + 39 01 00 00 00 00 03 F0 A5 A6 + 05 01 00 00 5A 00 01 11 + 05 01 00 00 32 00 01 29 + 15 00 00 00 00 00 02 26 02 + ]; + qcom,mdss-dsi-off-command = [ + 15 00 00 00 00 00 02 26 08 + 05 00 00 00 0A 00 01 28 + 05 01 00 00 78 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; From 942d688313b1041fd90435be9514d56b005cb89c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 26 Nov 2020 14:06:49 +0800 Subject: [PATCH 0093/1247] dts/ibiza: update the max/min level of bl Get bl curve from KP at 2020.11.16 Max_brightness for DJN panel: 1691 Max_brightness for tianma panel: 2047 Change-Id: Ib9cda2b4a671de0649b6c7806b219395d40c9b66 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1811806 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 734aef48c4ed..8e87a2d7fd08 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -118,9 +118,9 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <27>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <1024>; + qcom,mdss-dsi-bl-default-level = <1691>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -159,9 +159,9 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_tm_panel>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <27>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From 5f247adce0cf9a9af74911f02217a4059d818dbe Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 26 Nov 2020 15:21:02 +0800 Subject: [PATCH 0094/1247] dts/panel corret the physical size of DJN panel DJN panel AA area: 67.93 * 150.96 Change-Id: I147f8fbb3ec1bd5db112d45c4ea3860e3417b6c4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1811881 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 48247bfbaf5c..654d12c38406 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -28,8 +28,8 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; - qcom,mdss-pan-physical-width-dimension = <70>; - qcom,mdss-pan-physical-height-dimension = <157>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; From 1a34c6518b47ba73c2367e49ed0d64e09934cbe8 Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 2 Dec 2020 13:42:04 +0800 Subject: [PATCH 0095/1247] arm64/dts: Update masks in codec Fs clock sequence qc/LA.UM.9.14.r1-10900-LAHAINA.0, qc/LA.UM.9.16.r1-02100-MANNAR.0 Update masks in codec Fs clock sequence on lahaina target. Change-Id: I850a3a0cfb527ac595cfa09a30989eafbd431bd7 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1815835 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Qinghong Yang --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index 894c5c511896..1bc6ff1a5103 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -67,7 +67,6 @@ qcom,msm-mi2s-tx-lines = <0>; }; - &q6core { cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { compatible = "qcom,msm-cdc-pinctrl"; @@ -87,8 +86,8 @@ #size-cells = <1>; bolero-clk-rsc-mngr { compatible = "qcom,bolero-clk-rsc-mngr"; - qcom,fs-gen-sequence = <0x3000 0x1>, - <0x3004 0x1>, <0x3080 0x2>; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; qcom,va_mclk_mode_muxsel = <0x0A7A0000>; clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", @@ -131,6 +130,11 @@ <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; qcom,swr-clock-stop-mode0 = <1>; qcom,swr-mstr-irq-wakeup-capable = <1>; qcom,is-always-on = <1>; From 2b5e092fd36285b33f3e823e21e7e9d5d865fbed Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 24 Nov 2020 10:42:41 +0800 Subject: [PATCH 0096/1247] ibiza: arm64/dts: Support for icnl9911c - Add second supplier chipone icnl9911c. - def-build-id and def-config-id need to be updated. Change-Id: Iee330d44be94f3611c3d09a8ddedc179d378e3b7 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1809669 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-touchscreen.dtsi | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/qcom/ibiza-touchscreen.dtsi b/qcom/ibiza-touchscreen.dtsi index 5f0b0fe4881a..ae589eb055e0 100755 --- a/qcom/ibiza-touchscreen.dtsi +++ b/qcom/ibiza-touchscreen.dtsi @@ -87,4 +87,22 @@ status = "ok"; }; + chipone_tddi@1 { + compatible = "chipone-tddi"; + reg = <0x1>; + spi-max-frequency = <4800000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2008>; + chipone,x-res = <720>; + chipone,y-res = <1600>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + panel = <&dsi_icnl9911c_tm_video>; + status = "ok"; + }; + }; From 3592ce4b0ffd50515bfb0bbd612a502bf31e3765 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 27 Nov 2020 13:20:36 +0800 Subject: [PATCH 0097/1247] dts/panel: enlarge "VBP + VSW" to avoid the issue of PFS When "VBP+VSW" < 24 when FPS=60, (or "VBP+VSW" < 36 when FPS=90) Qcom code enable PFS(programmable_fetch_pulse) to prefill lines. But now the issue has bug. When 60fps -> 90fps, the display is abnormal(flicker) Change-Id: Ifa099ba020f13d322eedf288c840caccc185f775 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1812627 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi index 59db53942e1e..a241e84b57f4 100644 --- a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -59,9 +59,9 @@ qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-back-porch = <36>; qcom,mdss-dsi-v-front-porch = <150>; - qcom,mdss-dsi-v-pulse-width = <6>; + qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <90>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; @@ -69,6 +69,7 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ + 15 00 00 00 00 00 02 35 00 39 00 00 00 00 00 03 51 C0 00 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 From 1278314309edef937fbce6047a87d5dcae96368c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 27 Nov 2020 13:27:13 +0800 Subject: [PATCH 0098/1247] dts/panel: enable te signal Enable te signal. That we can make debug with te signal. Change-Id: I50964bb41bb59f1bed49f67cc29f4dc881f9819f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1812634 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 654d12c38406..84b14e68f8e8 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -64,6 +64,7 @@ 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 68 03 01 39 00 00 00 00 00 03 51 06 66 + 15 00 00 00 00 00 02 35 00 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 From a65d24decba73a84bdb7802e64e436b51fa7804b Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 3 Nov 2020 15:57:44 +0800 Subject: [PATCH 0099/1247] DTS: holi modify qusb phy tun1 parameter tune1 from default value 0x45 to 0x47 increase pre-emphasis. Change-Id: Icbc91d987b7206b3a66fd2692145648c167617e1 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/1792018 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-usb.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-usb.dtsi b/qcom/holi-usb.dtsi index c5ecb20a9142..ebbe07ed35a1 100644 --- a/qcom/holi-usb.dtsi +++ b/qcom/holi-usb.dtsi @@ -129,7 +129,7 @@ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x45 0x240 /* TUNE1 */ + 0x47 0x240 /* TUNE1 */ 0x29 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ @@ -150,7 +150,7 @@ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x45 0x240 /* TUNE1 */ + 0x47 0x240 /* TUNE1 */ 0x29 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ From 7897762a81e7a8160160757bf697e63e1c47b163 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 2 Dec 2020 16:33:07 +0800 Subject: [PATCH 0100/1247] denver/sensor: update sarsensor params 1.update params 2.adjust driver for debug when necessary Change-Id: I3fc936e31aa313741f1b87485e3f76ff1a73e60f Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1816427 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 82 +++++++++++++++++----------- 1 file changed, 51 insertions(+), 31 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index b6624ebb796e..aff6e8edf561 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -274,43 +274,63 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <25>; + Semtech,reg-num = <55>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - - 0x8028 0x85C /*AFE_PARAM_PH0*/ - 0x8034 0x85C /*AFE_PARAM_PH1*/ - 0x8040 0x85C /*AFE_PARAM_PH2*/ - 0x804C 0x85C /*AFE_PARAM_PH3*/ - 0x8058 0x85C /*AFE_PARAM_PH4*/ - 0x8064 0x85C /*AFE_PARAM_PH5*/ - 0x8070 0x85C /*AFE_PARAM_PH6*/ - /* 0x807C 0x85C */ /*AFE_PARAM_PH7*/ - + 0x8028 0x785 /*AFE_PARAM_PH0*/ + 0x8034 0x885 /*AFE_PARAM_PH1*/ + 0x8040 0x984 /*AFE_PARAM_PH2*/ + 0x804C 0x785 /*AFE_PARAM_PH3*/ + 0x8058 0x785 /*AFE_PARAM_PH4*/ + 0x8064 0x785 /*AFE_PARAM_PH5*/ + 0x8070 0x785 /*AFE_PARAM_PH6*/ + 0x807C 0x785 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xBFF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Main*/ - 0x8048 0xFFF9EF /*REG_AFEPH_PH2, CS1, ANT4, Top Right*/ - 0x8054 0xFFF9FD /*REG_AFEPH_PH3, CS0, ANT5, Top Middle*/ - 0x8060 0xFEF9FF /*REG_AFEPH_PH4, CS5, ANT8, Bottom Right*/ + 0x8030 0xBFF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ + 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ + 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*prox1 5000 0x64*/ - /*prox2 10000 0x8D*/ - /*prox3 15000 0xAD*/ - /*prox4 20000 0xC8*/ - 0x8098 0xC8AD8D64 /*prox threshold ph0*/ - 0x80B8 0xC8AD8D64 /*prox threshold ph1*/ - 0x80D8 0xC8AD8D64 /*prox threshold ph2*/ - 0x80F8 0xC8AD8D64 /*prox threshold ph3*/ - 0x8118 0xC8AD8D64 /*prox threshold ph4*/ - 0x8138 0xC8AD8D64 /*prox threshold ph5*/ - 0x8158 0xC8AD8D64 /*prox threshold ph6*/ - /*0x8178 0xC8AD8D64*/ /*prox threshold ph7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + 0x8088 0x200000 + 0x80A8 0x200001 + 0x80C8 0x200000 + 0x80A0 0x17170001 + 0x80C0 0x0 + 0x80E0 0x22220001 + 0x8100 0x30300002 + 0x8120 0x09090002 + 0x8188 0x5 + 0x818C 0x6 + 0x8190 0x6 + 0x8098 0x00008643 + 0x80B8 0x0000783C + 0x80D8 0x00008642 + 0x80F8 0x00009059 + 0x8118 0x00009059 + 0x8138 0x00000000 + 0x8158 0x00000000 + 0x808C 0x20600019 + 0x80AC 0x20600019 + 0x80CC 0x20600019 + 0x80EC 0x20600019 + 0x810C 0x20600019 + 0x812C 0x20600019 + 0x814C 0x20600019 + 0x816C 0x20600019 + 0x8090 0x28A87000 + 0x80B0 0x28A87000 + 0x80D0 0x28A87000 + 0x80F0 0x28A87000 + 0x8110 0x28A87000 + 0x8130 0x28A87000 + 0x8150 0x28A87000 + 0x8170 0x28A87000 + 0x8074 0x8 + 0x8024 0x7F7F + 0x4280 0xe >; }; From 84cb5b7c9204939896c9c910854709b8abd3dc20 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 3 Dec 2020 13:51:25 +0800 Subject: [PATCH 0101/1247] ibiza/sensor: update sarsensor params update params for dvt Change-Id: Idafd3b91c19a8318b9159ece0c609a85ab783489 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1817662 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 87 ++++++++++++++++++++++-------- 1 file changed, 65 insertions(+), 22 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 7f94e47f0624..97499ef701e7 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -219,19 +219,19 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <25>; + Semtech,reg-num = <60>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - 0x8028 0x85C /*AFE_PARAM_PH0*/ - 0x8034 0x85C /*AFE_PARAM_PH1*/ - 0x8040 0x85C /*AFE_PARAM_PH2*/ - 0x804C 0x85C /*AFE_PARAM_PH3*/ - 0x8058 0x85C /*AFE_PARAM_PH4*/ - 0x8064 0x85C /*AFE_PARAM_PH5*/ - 0x8070 0x85C /*AFE_PARAM_PH6*/ - /* 0x807C 0x85C */ /*AFE_PARAM_PH7*/ + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x886 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x886 /*AFE_PARAM_PH5*/ + 0x8070 0x886 /*AFE_PARAM_PH6*/ + /*0x807C 0x886 */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ @@ -243,20 +243,63 @@ 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - /*prox1 5000 0x64*/ - /*prox2 10000 0x8D*/ - /*prox3 15000 0xAD*/ - /*prox4 20000 0xC8*/ - 0x8098 0xC8AD8D64 /*prox threshold ph0*/ - 0x80B8 0xC8AD8D64 /*prox threshold ph1*/ - 0x80D8 0xC8AD8D64 /*prox threshold ph2*/ - 0x80F8 0xC8AD8D64 /*prox threshold ph3*/ - 0x8118 0xC8AD8D64 /*prox threshold ph4*/ - 0x8138 0xC8AD8D64 /*prox threshold ph5*/ - 0x8158 0xC8AD8D64 /*prox threshold ph6*/ - /*0x8178 0xC8AD8D64*/ /*prox threshold ph7*/ + /*Set Phase Proximity Threshold*/ + 0x8098 0x00008643 /*prox threshold ph0*/ + 0x80B8 0x0000783C /*prox threshold ph1*/ + 0x80D8 0x0000004D /*prox threshold ph2*/ + 0x80F8 0x00000059 /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x28A87000 + 0x80B0 0x28A87000 + 0x80D0 0x28A87000 + 0x80F0 0x28A87000 + 0x8110 0x28A87000 + 0x8130 0x28A87000 + 0x8150 0x28A87000 + 0x8170 0x28A87000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x200000 + 0x80A8 0x200000 + 0x80C8 0x200000 + 0x80E8 0x200000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x4 /*Reference Correction Setup B ENG1*/ + 0x818C 0x5 /*Reference Correction Setup B ENG2*/ + 0x8190 0x6 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x1E1E0001 /*Reference Correction Setup A PH0*/ + 0x80C0 0x1C1C001A /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; status = "ok"; From 98a70091951d030ecc33d032ac41ce57f79c3c22 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 3 Dec 2020 16:40:23 +0800 Subject: [PATCH 0102/1247] arch/dts: add first support battery parameter add first support battery parameter for ibiza Change-Id: Ia0d887589f9d7fc1880a4db165c3c3fc2a58ff88 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1818005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 7 + qcom/qg-batterydata-jk50-sunwoda-5000mah.dtsi | 1018 +++++++++++++++++ qcom/qg-batterydata-jk50-swd-5000mah.dtsi | 1018 +++++++++++++++++ 3 files changed, 2043 insertions(+) create mode 100644 qcom/qg-batterydata-jk50-sunwoda-5000mah.dtsi create mode 100644 qcom/qg-batterydata-jk50-swd-5000mah.dtsi diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 9b1a7da79830..ebc0558fe26b 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -270,6 +270,13 @@ }; }; +&mot_batterydata { + df-serialnum = "SB18C85291"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-swd-5000mah.dtsi" + #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" +}; + &pm7250b_charger { qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4400000>; diff --git a/qcom/qg-batterydata-jk50-sunwoda-5000mah.dtsi b/qcom/qg-batterydata-jk50-sunwoda-5000mah.dtsi new file mode 100644 index 000000000000..316e913fcc53 --- /dev/null +++ b/qcom/qg-batterydata-jk50-sunwoda-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,jk50-sunwoda-5000mah { + /* 4875124_Lenovo_Ibiza_sunwoda_5000mAH_PM7250B_averaged_MasterSlave_Dec1th2020 */ + serialnum = "SB18C98449"; + qcom,sdam-magic-number = <0x18C98449>; + qcom,max-voltage-uv = <4400000>; + qcom,fg-cc-cv-threshold-uv = <4390000>; + qcom,fastchg-current-ma = <3000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "JK50-SUNWODA-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4747 4849 4974 5036 5057>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4962 4962 4976 4963 4976 4975>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43469 43626 43753 43809 43825>, + <43194 43361 43509 43591 43605>, + <42948 43112 43267 43360 43385>, + <42714 42875 43026 43127 43162>, + <42489 42643 42786 42894 42930>, + <42273 42416 42550 42658 42692>, + <42065 42196 42319 42425 42459>, + <41864 41983 42092 42192 42227>, + <41670 41778 41871 41963 41999>, + <41485 41578 41655 41738 41772>, + <41301 41391 41447 41516 41547>, + <41101 41202 41256 41299 41327>, + <40886 40997 41064 41085 41108>, + <40655 40778 40850 40878 40897>, + <40385 40547 40618 40674 40691>, + <40094 40277 40392 40475 40492>, + <39888 40016 40166 40276 40300>, + <39766 39853 39963 40078 40115>, + <39666 39751 39821 39902 39939>, + <39560 39649 39716 39764 39788>, + <39453 39522 39580 39618 39633>, + <39344 39377 39334 39388 39412>, + <39227 39204 39067 39089 39117>, + <39106 38960 38892 38889 38906>, + <38974 38745 38759 38775 38793>, + <38820 38637 38655 38682 38702>, + <38676 38563 38576 38588 38595>, + <38575 38505 38510 38500 38484>, + <38494 38457 38444 38414 38387>, + <38435 38416 38380 38328 38306>, + <38397 38377 38321 38251 38234>, + <38368 38341 38265 38185 38168>, + <38338 38305 38214 38128 38109>, + <38311 38271 38168 38075 38050>, + <38284 38239 38129 38028 37993>, + <38256 38205 38090 37983 37936>, + <38226 38173 38052 37935 37881>, + <38187 38133 38012 37885 37827>, + <38124 38066 37950 37818 37756>, + <38041 37969 37856 37723 37655>, + <37941 37862 37750 37616 37540>, + <37811 37741 37635 37505 37427>, + <37674 37602 37503 37380 37301>, + <37532 37432 37335 37217 37136>, + <37405 37291 37191 37083 37011>, + <37300 37192 37100 36999 36934>, + <37263 37169 37070 36969 36909>, + <37232 37161 37050 36948 36890>, + <37201 37147 37027 36928 36866>, + <37145 37092 36980 36871 36800>, + <36941 36873 36747 36614 36522>, + <36499 36428 36311 36176 36084>, + <35925 35856 35736 35602 35511>, + <35155 35077 34956 34825 34730>, + <33936 33856 33739 33613 33519>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <43855 43820 43785 43715 43685 43660>, + <43371 43395 43426 43399 43410 43400>, + <42943 43013 43096 43106 43146 43147>, + <42579 42683 42800 42839 42895 42903>, + <42268 42399 42533 42598 42656 42667>, + <41985 42130 42283 42364 42421 42433>, + <41666 41820 42050 42129 42188 42199>, + <41390 41529 41826 41897 41959 41967>, + <41327 41385 41572 41672 41732 41739>, + <41322 41291 41267 41451 41509 41515>, + <41315 41207 41044 41240 41288 41293>, + <41060 41077 40963 41052 41072 41075>, + <40528 40857 40904 40871 40859 40861>, + <40142 40574 40746 40655 40648 40655>, + <39815 40116 40296 40385 40435 40453>, + <39547 39722 39902 40133 40234 40259>, + <39374 39543 39761 39946 40051 40075>, + <39229 39415 39661 39784 39880 39898>, + <39044 39258 39513 39638 39718 39730>, + <38781 39065 39290 39514 39572 39578>, + <38555 38858 39059 39376 39411 39411>, + <38434 38623 38859 39158 39184 39186>, + <38345 38382 38671 38886 38925 38934>, + <38271 38244 38500 38686 38732 38743>, + <38209 38171 38334 38543 38589 38598>, + <38155 38117 38197 38423 38468 38474>, + <38103 38069 38099 38314 38359 38362>, + <38055 38028 38018 38217 38262 38262>, + <38007 37990 37964 38128 38173 38172>, + <37960 37953 37927 38045 38091 38091>, + <37912 37917 37894 37970 38018 38018>, + <37864 37882 37863 37902 37955 37953>, + <37815 37845 37833 37841 37898 37893>, + <37763 37807 37800 37791 37835 37828>, + <37712 37768 37764 37756 37764 37756>, + <37657 37727 37725 37720 37688 37677>, + <37596 37683 37682 37672 37607 37579>, + <37531 37637 37635 37613 37522 37468>, + <37459 37579 37575 37545 37442 37374>, + <37376 37505 37497 37468 37368 37302>, + <37291 37417 37405 37380 37290 37229>, + <37214 37315 37295 37277 37197 37135>, + <37141 37195 37166 37156 37088 37024>, + <37070 37056 37038 37026 36960 36899>, + <36997 36926 36917 36909 36851 36798>, + <36915 36843 36812 36839 36798 36749>, + <36867 36816 36779 36820 36787 36738>, + <36812 36786 36747 36799 36770 36720>, + <36742 36750 36697 36769 36740 36691>, + <36635 36676 36616 36697 36659 36593>, + <36418 36485 36418 36498 36388 36285>, + <36023 36062 36003 36052 35909 35794>, + <35447 35449 35397 35450 35288 35159>, + <34604 34590 34552 34643 34456 34298>, + <33231 33266 33257 33424 33243 33051>, + <29354 28911 28617 28464 28599 28631>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13322 12783 12353 12092 11964>, + <13328 12790 12350 12086 11968>, + <13352 12780 12345 12077 11961>, + <13358 12758 12341 12069 11952>, + <13343 12743 12334 12059 11946>, + <13329 12730 12325 12049 11940>, + <13324 12723 12314 12042 11936>, + <13319 12727 12304 12035 11933>, + <13313 12737 12303 12031 11932>, + <13293 12740 12303 12029 11932>, + <13270 12731 12303 12028 11932>, + <13259 12716 12299 12029 11934>, + <13242 12699 12294 12033 11938>, + <13219 12677 12286 12034 11940>, + <13186 12664 12274 12025 11937>, + <13150 12653 12268 12016 11933>, + <13133 12643 12267 12015 11932>, + <13131 12642 12266 12016 11933>, + <13130 12656 12270 12017 11934>, + <13125 12666 12283 12020 11935>, + <13120 12665 12290 12024 11935>, + <13121 12663 12289 12027 11936>, + <13126 12663 12288 12028 11937>, + <13133 12671 12291 12030 11938>, + <13137 12681 12301 12032 11941>, + <13135 12687 12307 12034 11944>, + <13131 12693 12307 12037 11946>, + <13133 12696 12308 12039 11948>, + <13138 12696 12309 12042 11951>, + <13141 12697 12314 12046 11954>, + <13143 12703 12318 12050 11958>, + <13144 12715 12320 12053 11961>, + <13148 12723 12325 12056 11964>, + <13159 12723 12330 12060 11967>, + <13172 12721 12338 12066 11971>, + <13191 12724 12344 12072 11976>, + <13218 12738 12349 12076 11979>, + <13228 12750 12355 12080 11982>, + <13215 12755 12360 12085 11986>, + <13198 12760 12365 12089 11990>, + <13197 12765 12369 12094 11994>, + <13208 12780 12370 12100 11999>, + <13219 12789 12372 12106 12005>, + <13230 12790 12379 12109 12008>, + <13249 12796 12399 12118 12013>, + <13263 12810 12396 12124 12016>, + <13267 12815 12402 12121 12014>, + <13263 12817 12396 12123 12015>, + <13263 12812 12396 12127 12018>, + <13296 12815 12408 12133 12025>, + <13294 12830 12409 12140 12030>, + <13327 12836 12433 12150 12038>, + <13305 12864 12427 12165 12049>, + <13343 12895 12461 12177 12067>, + <13343 12895 12461 12177 12067>, + <13343 12895 12461 12177 12067>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9309 9805 10152 10368 10181>, + <9740 10388 10378 10283 10164>, + <10173 10438 10515 10372 10169>, + <10314 10457 10530 10414 10179>, + <10315 10460 10532 10374 10220>, + <10310 10443 10527 10317 10284>, + <10305 10420 10490 10288 10288>, + <10302 10404 10446 10252 10219>, + <10297 10389 10428 10237 10155>, + <10292 10377 10417 10242 10108>, + <10284 10367 10407 10250 10064>, + <10270 10358 10394 10265 10059>, + <10239 10354 10384 10288 10076>, + <10216 10350 10392 10295 10087>, + <10218 10349 10421 10240 10084>, + <10225 10363 10435 10174 10079>, + <10225 10385 10422 10159 10084>, + <10213 10394 10404 10154 10104>, + <10200 10398 10400 10159 10125>, + <10201 10404 10405 10171 10141>, + <10214 10430 10421 10193 10161>, + <10232 10475 10556 10322 10221>, + <10253 10504 10712 10602 10353>, + <10278 10522 10698 10685 10408>, + <10306 10536 10573 10445 10325>, + <10341 10548 10505 10215 10231>, + <10372 10560 10507 10233 10359>, + <10387 10565 10514 10313 10771>, + <10397 10560 10529 10387 10933>, + <10401 10553 10565 10488 10728>, + <10399 10552 10591 10559 10456>, + <10396 10555 10601 10538 10287>, + <10396 10558 10609 10475 10146>, + <10406 10561 10610 10409 10107>, + <10419 10566 10607 10324 10115>, + <10431 10573 10607 10271 10129>, + <10444 10583 10613 10280 10161>, + <10457 10596 10622 10305 10216>, + <10469 10612 10639 10342 10261>, + <10481 10629 10670 10416 10302>, + <10493 10637 10689 10464 10327>, + <10507 10638 10677 10456 10329>, + <10485 10638 10662 10445 10327>, + <10309 10640 10657 10469 10374>, + <10552 10746 10679 10467 10374>, + <10569 10758 10680 10438 10324>, + <10942 10757 10669 10422 10328>, + <11114 11385 10612 10419 10335>, + <11107 14000 10613 10443 10353>, + <11006 12103 10692 10515 10414>, + <10724 14471 10668 10491 10374>, + <10236 11170 10637 10354 10191>, + <10094 10757 10551 10290 10139>, + <9835 10903 10470 10257 10091>, + <9835 10903 10470 10257 10091>, + <9835 10903 10470 10257 10091>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19417 19408 19368 19345 19335>, + <19617 19495 19407 19353 19351>, + <19668 19529 19434 19377 19363>, + <19680 19550 19445 19392 19372>, + <19682 19556 19453 19396 19381>, + <19684 19556 19455 19399 19389>, + <19681 19555 19454 19400 19392>, + <19673 19553 19453 19401 19393>, + <19666 19549 19451 19402 19394>, + <19663 19546 19449 19401 19393>, + <19660 19542 19447 19400 19391>, + <19655 19538 19443 19400 19389>, + <19647 19529 19439 19400 19386>, + <19641 19516 19435 19399 19383>, + <19646 19509 19431 19392 19380>, + <19657 19509 19428 19384 19377>, + <19660 19509 19426 19381 19374>, + <19642 19506 19423 19378 19371>, + <19616 19493 19417 19375 19368>, + <19602 19484 19408 19369 19362>, + <19592 19483 19404 19364 19356>, + <19588 19483 19414 19369 19358>, + <19588 19484 19426 19382 19365>, + <19588 19488 19425 19386 19368>, + <19589 19493 19415 19369 19353>, + <19595 19493 19408 19353 19336>, + <19602 19491 19406 19355 19350>, + <19602 19489 19406 19363 19397>, + <19599 19487 19407 19373 19416>, + <19595 19485 19412 19389 19411>, + <19589 19483 19417 19401 19403>, + <19582 19482 19420 19400 19395>, + <19576 19481 19422 19396 19387>, + <19570 19479 19422 19391 19379>, + <19564 19478 19419 19383 19372>, + <19558 19475 19416 19375 19366>, + <19553 19471 19411 19370 19359>, + <19548 19466 19406 19365 19352>, + <19544 19464 19403 19364 19349>, + <19540 19462 19402 19362 19349>, + <19535 19459 19400 19362 19349>, + <19530 19455 19396 19360 19351>, + <19505 19450 19392 19359 19354>, + <19398 19447 19390 19360 19359>, + <19271 19425 19383 19357 19356>, + <19260 19419 19371 19346 19347>, + <19259 19401 19369 19344 19340>, + <19259 19327 19365 19339 19330>, + <19259 19259 19362 19334 19326>, + <19259 19259 19357 19328 19322>, + <19259 19258 19357 19341 19335>, + <19261 19260 19361 19355 19351>, + <19262 19261 19364 19358 19350>, + <19264 19260 19354 19349 19347>, + <19264 19260 19354 19349 19347>, + <19264 19260 19354 19349 19347>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15975 15518 15130 14898 14825>, + <16165 15602 15122 14931 14884>, + <15998 15513 15104 14913 14871>, + <15823 15323 15064 14890 14853>, + <15649 15185 14983 14862 14834>, + <15488 15091 14919 14832 14814>, + <15362 15013 14876 14808 14794>, + <15257 14951 14841 14787 14776>, + <15172 14899 14813 14768 14760>, + <15107 14860 14790 14750 14746>, + <15052 14831 14770 14735 14733>, + <14995 14807 14752 14724 14723>, + <14933 14783 14737 14715 14715>, + <14896 14758 14727 14710 14709>, + <14892 14748 14720 14706 14705>, + <14892 14754 14718 14704 14701>, + <14888 14763 14721 14703 14698>, + <14859 14759 14724 14702 14696>, + <14819 14729 14716 14700 14693>, + <14792 14707 14691 14688 14684>, + <14768 14706 14680 14676 14676>, + <14752 14707 14724 14703 14698>, + <14743 14715 14787 14778 14778>, + <14737 14782 14815 14812 14816>, + <14737 14844 14834 14820 14817>, + <14760 14845 14840 14823 14817>, + <14786 14835 14829 14814 14797>, + <14795 14824 14809 14788 14736>, + <14800 14809 14793 14762 14705>, + <14802 14793 14776 14736 14701>, + <14795 14779 14762 14715 14699>, + <14783 14766 14751 14708 14695>, + <14772 14755 14742 14703 14692>, + <14762 14745 14736 14701 14689>, + <14752 14737 14733 14700 14687>, + <14742 14730 14730 14700 14686>, + <14732 14722 14725 14698 14686>, + <14725 14717 14722 14696 14686>, + <14719 14718 14722 14697 14688>, + <14715 14720 14723 14705 14700>, + <14712 14720 14724 14711 14710>, + <14710 14714 14717 14704 14703>, + <14725 14706 14707 14695 14692>, + <14819 14700 14701 14694 14694>, + <14884 14676 14681 14681 14685>, + <14885 14664 14665 14663 14661>, + <14881 14675 14658 14658 14658>, + <14876 14743 14651 14648 14651>, + <14869 14804 14643 14635 14633>, + <14859 14799 14639 14630 14626>, + <14858 14802 14653 14650 14660>, + <14874 14816 14660 14654 14665>, + <14883 14819 14659 14657 14673>, + <14894 14824 14671 14666 14679>, + <14894 14824 14671 14666 14679>, + <14894 14824 14671 14666 14679>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <11973 12883 13652 14619 14814>, + <13624 14572 15238 15414 16145>, + <14390 15684 16618 17257 17212>, + <14942 16578 17757 18592 18269>, + <15401 17447 18732 19125 19497>, + <15807 18258 19614 19549 20759>, + <16226 19079 20374 20123 21727>, + <16648 20035 21135 20900 22485>, + <17159 21178 22080 21739 23188>, + <17854 22466 23196 22632 23904>, + <18631 24144 24287 23689 24646>, + <19337 25633 25374 25323 25486>, + <19978 26284 26421 27644 26495>, + <20796 26624 27711 28644 27483>, + <22643 27126 29646 27821 28446>, + <25138 28911 30473 26811 29382>, + <26021 30943 29277 26545 30191>, + <25089 31303 27817 26159 31017>, + <23908 31131 28188 26387 31718>, + <23892 31030 30703 27769 32219>, + <25149 34887 34466 29941 32756>, + <27106 43230 44658 34176 33840>, + <30572 48723 55019 40793 35621>, + <35766 52415 52775 42253 36121>, + <41646 54546 39376 31179 27854>, + <50639 52727 30433 20494 18443>, + <57834 47079 27757 19844 20763>, + <58125 42926 26249 19945 30366>, + <56106 40463 26392 20675 34887>, + <53519 38875 27886 25539 35032>, + <50020 38770 29899 30894 34828>, + <46103 39135 33016 33657 34562>, + <43673 39704 36626 35726 33911>, + <41994 41396 39230 36159 33775>, + <40861 43692 41496 35541 34316>, + <40292 44627 42436 35001 34782>, + <39877 45038 41879 34942 34167>, + <39870 45345 40885 34872 32548>, + <41202 45682 40179 34711 31417>, + <42764 46051 39660 34112 30538>, + <42810 45857 38857 33328 29940>, + <41486 42490 35589 31155 29729>, + <37802 40708 33049 28930 29780>, + <26245 40731 33618 30892 33606>, + <13058 40549 34936 31403 34029>, + <11841 40760 32111 27329 29569>, + <11763 35960 31753 26024 25067>, + <11709 24395 30263 25468 21822>, + <11688 11801 31095 27066 24993>, + <11704 11837 29953 26592 27073>, + <11753 11891 26279 27520 26082>, + <11758 11867 23435 25863 23265>, + <11637 11752 23368 24239 20025>, + <11543 11618 19023 18876 16846>, + <11543 11618 19023 18876 16846>, + <11543 11618 19023 18876 16846>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16142 15513 15004 14781 14717>, + <16250 15560 15004 14798 14748>, + <16153 15511 15004 14797 14747>, + <16047 15407 14993 14795 14745>, + <15931 15328 14954 14785 14741>, + <15820 15267 14920 14769 14736>, + <15732 15215 14896 14758 14730>, + <15655 15172 14875 14749 14722>, + <15592 15134 14859 14740 14715>, + <15544 15104 14844 14732 14708>, + <15502 15080 14832 14725 14702>, + <15454 15058 14820 14720 14696>, + <15397 15031 14809 14717 14692>, + <15355 14998 14800 14713 14688>, + <15338 14980 14790 14705 14684>, + <15327 14976 14786 14698 14680>, + <15312 14974 14785 14695 14676>, + <15282 14967 14785 14694 14674>, + <15249 14950 14779 14691 14670>, + <15226 14939 14766 14683 14663>, + <15207 14939 14760 14675 14657>, + <15196 14942 14786 14690 14667>, + <15194 14950 14821 14731 14705>, + <15192 14982 14830 14746 14723>, + <15194 15011 14835 14742 14717>, + <15208 15012 14836 14736 14709>, + <15225 15009 14831 14731 14707>, + <15230 15005 14824 14726 14706>, + <15233 15000 14819 14722 14705>, + <15233 14993 14816 14720 14701>, + <15230 14988 14813 14718 14696>, + <15222 14983 14811 14715 14691>, + <15217 14979 14810 14712 14686>, + <15212 14976 14808 14708 14681>, + <15208 14973 14806 14704 14677>, + <15204 14971 14805 14701 14674>, + <15200 14969 14802 14698 14670>, + <15198 14967 14800 14695 14666>, + <15200 14970 14800 14695 14666>, + <15204 14976 14803 14699 14671>, + <15208 14978 14805 14701 14675>, + <15213 14977 14801 14699 14674>, + <15216 14977 14798 14696 14672>, + <15217 14980 14798 14697 14676>, + <15205 14970 14791 14691 14670>, + <15200 14966 14781 14678 14656>, + <15199 14963 14777 14674 14651>, + <15198 14956 14772 14668 14643>, + <15197 14951 14768 14660 14633>, + <15198 14953 14767 14656 14629>, + <15207 14960 14778 14674 14652>, + <15223 14974 14787 14685 14665>, + <15239 14987 14793 14692 14671>, + <15268 15004 14802 14696 14676>, + <15268 15004 14802 14696 14676>, + <15268 15004 14802 14696 14676>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6584 6170 5846 5605 5440 5364>, + <6552 6150 5836 5602 5439 5365>, + <6529 6131 5829 5598 5438 5365>, + <6515 6116 5824 5594 5436 5365>, + <6508 6105 5821 5590 5435 5365>, + <6505 6101 5820 5588 5433 5364>, + <6518 6106 5822 5585 5432 5363>, + <6541 6113 5826 5584 5429 5360>, + <6544 6116 5827 5584 5427 5359>, + <6529 6115 5823 5587 5425 5359>, + <6517 6114 5821 5590 5423 5358>, + <6514 6116 5821 5587 5422 5356>, + <6513 6120 5820 5583 5421 5353>, + <6515 6121 5821 5582 5420 5353>, + <6527 6118 5828 5586 5416 5353>, + <6539 6118 5835 5590 5414 5353>, + <6548 6119 5837 5591 5416 5354>, + <6554 6121 5836 5592 5421 5354>, + <6556 6123 5836 5594 5422 5355>, + <6555 6126 5838 5598 5420 5355>, + <6554 6128 5841 5602 5419 5354>, + <6557 6127 5841 5605 5421 5355>, + <6561 6126 5840 5608 5424 5355>, + <6563 6126 5841 5608 5426 5356>, + <6557 6134 5842 5607 5428 5358>, + <6551 6142 5844 5606 5430 5360>, + <6554 6138 5842 5607 5432 5363>, + <6559 6129 5838 5611 5434 5366>, + <6560 6128 5838 5615 5437 5368>, + <6544 6137 5843 5620 5441 5371>, + <6530 6145 5848 5625 5445 5373>, + <6529 6142 5848 5630 5448 5376>, + <6529 6134 5847 5635 5452 5380>, + <6529 6132 5847 5636 5455 5383>, + <6528 6134 5849 5636 5458 5385>, + <6527 6136 5852 5636 5460 5388>, + <6526 6139 5857 5640 5462 5389>, + <6525 6143 5865 5647 5464 5391>, + <6523 6146 5868 5651 5467 5392>, + <6523 6150 5863 5654 5470 5395>, + <6522 6153 5858 5655 5474 5397>, + <6524 6150 5860 5658 5476 5399>, + <6532 6142 5864 5661 5479 5401>, + <6526 6144 5862 5669 5486 5405>, + <6520 6149 5863 5674 5497 5411>, + <6569 6152 5871 5674 5502 5413>, + <6569 6157 5880 5675 5498 5411>, + <6590 6168 5879 5671 5496 5411>, + <6596 6178 5882 5676 5494 5412>, + <6598 6157 5902 5687 5490 5411>, + <6618 6183 5898 5686 5496 5413>, + <6632 6204 5919 5693 5508 5419>, + <6623 6217 5927 5704 5516 5429>, + <6714 6228 5949 5716 5529 5440>, + <6714 6228 5949 5716 5529 5440>, + <6714 6228 5949 5716 5529 5440>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9688 10500 10215 11211 10960 10831>, + <9689 10336 10459 11181 10949 10815>, + <9688 10242 10635 11152 10933 10800>, + <9686 10205 10751 11122 10913 10786>, + <9684 10209 10818 11096 10890 10773>, + <9681 10239 10843 11072 10866 10763>, + <9677 10480 10793 11052 10832 10756>, + <9672 10850 10705 11034 10800 10750>, + <9671 10894 10695 11018 10797 10744>, + <9672 10621 10761 11006 10821 10724>, + <9673 10416 10811 10992 10837 10710>, + <9673 10533 10868 10958 10811 10706>, + <9673 10766 10958 10916 10766 10702>, + <9672 10834 10987 10918 10760 10703>, + <9670 10574 11058 11009 10790 10705>, + <9669 10376 11154 11115 10832 10707>, + <9669 10478 11309 11177 10879 10712>, + <9668 10606 11493 11233 10941 10719>, + <9668 10574 11537 11316 11027 10756>, + <9668 10102 11535 11472 11169 10934>, + <9667 9717 11531 11580 11259 11069>, + <9667 9698 11481 11519 11213 11053>, + <9667 9691 11348 11387 11123 11015>, + <9666 9688 11175 11350 11093 11004>, + <9666 9684 10871 11384 11100 11010>, + <9665 9681 10646 11421 11112 11019>, + <9665 9678 10623 11439 11125 11035>, + <9665 9676 10613 11459 11148 11062>, + <9665 9673 10592 11480 11185 11093>, + <9664 9671 10526 11509 11261 11132>, + <9664 9670 10462 11529 11326 11171>, + <9664 9668 10434 11512 11368 11222>, + <9663 9667 10399 11465 11416 11288>, + <9663 9666 10320 11433 11427 11308>, + <9663 9665 10070 11419 11398 11294>, + <9663 9664 9852 11405 11357 11270>, + <9663 9663 9770 11374 11317 11222>, + <9663 9663 9716 11323 11274 11151>, + <9663 9662 9694 11271 11246 11129>, + <9662 9662 9682 11223 11224 11136>, + <9662 9661 9675 11171 11212 11143>, + <9662 9661 9671 11104 11233 11136>, + <9662 9661 9668 11024 11265 11103>, + <9662 9661 9666 10945 11145 11029>, + <9661 9661 9664 10864 11025 10920>, + <9661 9660 9664 10820 11018 10849>, + <9661 9660 9663 10853 11055 10878>, + <9661 9660 9662 10832 11082 10897>, + <9660 9660 9662 10838 11110 10946>, + <9660 9660 9662 10868 11145 10978>, + <9660 9659 9661 10849 11102 10857>, + <9659 9659 9661 10718 10969 10762>, + <9658 9659 9659 10538 10858 10650>, + <9655 9658 9658 10185 10793 10560>, + <9655 9658 9658 10185 10793 10560>, + <9655 9658 9658 10185 10793 10560>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13832 13630 13399 13301 13285 13280>, + <13866 13609 13401 13303 13285 13280>, + <13870 13595 13402 13305 13285 13281>, + <13850 13585 13404 13307 13286 13282>, + <13812 13578 13405 13308 13286 13283>, + <13764 13571 13407 13309 13287 13284>, + <13679 13556 13410 13310 13287 13284>, + <13585 13535 13414 13310 13288 13285>, + <13567 13511 13411 13311 13289 13285>, + <13577 13446 13386 13313 13290 13286>, + <13585 13401 13367 13314 13291 13286>, + <13593 13416 13365 13317 13291 13287>, + <13606 13444 13363 13319 13292 13287>, + <13604 13448 13363 13319 13292 13287>, + <13569 13424 13360 13318 13292 13288>, + <13541 13401 13358 13315 13292 13289>, + <13548 13393 13357 13312 13293 13289>, + <13564 13388 13355 13308 13296 13290>, + <13567 13386 13352 13307 13296 13290>, + <13557 13387 13343 13308 13295 13290>, + <13548 13388 13332 13308 13293 13290>, + <13552 13375 13324 13305 13289 13288>, + <13567 13352 13316 13298 13284 13282>, + <13584 13347 13307 13294 13282 13280>, + <13606 13357 13293 13293 13281 13279>, + <13631 13372 13283 13293 13281 13279>, + <13652 13389 13288 13291 13281 13279>, + <13674 13410 13301 13290 13280 13278>, + <13698 13433 13305 13289 13280 13278>, + <13726 13457 13306 13288 13280 13278>, + <13756 13484 13307 13288 13279 13278>, + <13785 13512 13309 13287 13279 13278>, + <13814 13542 13314 13286 13280 13278>, + <13843 13575 13320 13286 13280 13278>, + <13873 13612 13330 13288 13280 13278>, + <13904 13651 13344 13290 13280 13279>, + <13937 13693 13362 13292 13280 13279>, + <13973 13737 13388 13293 13279 13278>, + <14007 13777 13415 13295 13279 13278>, + <14036 13814 13444 13297 13280 13280>, + <14065 13849 13476 13299 13282 13282>, + <14097 13882 13513 13301 13283 13282>, + <14132 13912 13555 13303 13284 13281>, + <14178 13940 13606 13305 13284 13280>, + <14235 13971 13661 13308 13284 13281>, + <14274 13998 13660 13312 13288 13286>, + <14270 13994 13662 13312 13291 13288>, + <14318 14038 13710 13318 13293 13289>, + <14368 14080 13751 13326 13295 13291>, + <14442 14122 13785 13332 13295 13289>, + <14501 14160 13802 13334 13291 13286>, + <14585 14201 13840 13333 13292 13287>, + <14860 14279 13949 13342 13297 13292>, + <15472 14430 14075 13362 13307 13303>, + <15472 14430 14075 13362 13307 13303>, + <15472 14430 14075 13362 13307 13303>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17407 16929 16824 16546 16489 16481>, + <17354 17022 16840 16559 16488 16479>, + <17332 17085 16866 16570 16487 16477>, + <17334 17125 16894 16579 16485 16475>, + <17353 17147 16917 16586 16484 16474>, + <17382 17158 16927 16588 16484 16472>, + <17446 17142 16928 16586 16483 16471>, + <17550 17113 16927 16581 16483 16470>, + <17661 17160 16927 16581 16483 16470>, + <17805 17441 16936 16582 16484 16471>, + <17888 17645 16963 16584 16486 16471>, + <17705 17595 17090 16592 16487 16473>, + <17341 17474 17267 16606 16490 16475>, + <17157 17347 17266 16609 16493 16478>, + <17042 17116 17009 16602 16498 16482>, + <16964 16957 16820 16597 16506 16487>, + <16928 16956 16853 16611 16517 16493>, + <16892 16968 16916 16642 16533 16502>, + <16840 16960 16924 16672 16554 16517>, + <16741 16898 16865 16705 16588 16549>, + <16669 16815 16793 16726 16608 16570>, + <16663 16722 16738 16679 16576 16547>, + <16661 16622 16687 16575 16510 16499>, + <16661 16595 16645 16528 16483 16477>, + <16662 16596 16608 16514 16473 16467>, + <16663 16597 16576 16507 16468 16463>, + <16667 16598 16543 16506 16469 16464>, + <16673 16602 16512 16505 16472 16465>, + <16679 16606 16507 16504 16475 16468>, + <16683 16613 16522 16500 16481 16474>, + <16689 16622 16543 16495 16488 16482>, + <16695 16632 16561 16492 16498 16493>, + <16704 16643 16579 16488 16508 16507>, + <16712 16655 16598 16487 16510 16511>, + <16723 16666 16620 16496 16504 16512>, + <16732 16677 16640 16507 16496 16513>, + <16734 16686 16657 16513 16486 16501>, + <16733 16694 16673 16517 16473 16476>, + <16731 16699 16683 16523 16471 16469>, + <16727 16701 16690 16532 16478 16479>, + <16724 16702 16694 16543 16487 16490>, + <16727 16699 16694 16556 16492 16493>, + <16740 16687 16692 16570 16496 16494>, + <16760 16671 16693 16581 16487 16475>, + <16789 16661 16699 16592 16482 16465>, + <16801 16663 16697 16600 16495 16493>, + <16776 16661 16701 16592 16513 16522>, + <16798 16684 16730 16619 16544 16557>, + <16822 16717 16771 16656 16580 16590>, + <16834 16751 16828 16693 16593 16586>, + <16829 16756 16854 16698 16540 16515>, + <16821 16733 16831 16663 16514 16493>, + <16872 16727 16816 16674 16524 16494>, + <17103 16752 16815 16714 16550 16506>, + <17103 16752 16815 16714 16550 16506>, + <17103 16752 16815 16714 16550 16506>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <8712 8712 14185 16776 18939 17693>, + <11084 11535 14737 17802 19261 19057>, + <12553 13614 15507 18572 19365 19976>, + <13330 14958 16371 19101 19336 20534>, + <13637 15750 17205 19410 19253 20816>, + <13690 16173 17883 19513 19199 20908>, + <13073 16787 18598 19285 19112 20534>, + <12037 17490 19267 18892 18953 19910>, + <12231 17303 18842 18772 18832 19734>, + <15208 15614 15494 18792 18655 19483>, + <18117 15112 13119 18769 18421 19146>, + <20120 19044 14660 17710 17937 18523>, + <22145 24656 17573 15917 17258 17712>, + <22037 25337 18731 15642 16797 17361>, + <18765 20169 18622 16905 16428 17224>, + <16279 16064 18427 17902 16138 17068>, + <18072 16933 19265 17220 15838 16485>, + <21652 19117 20807 15846 15543 15677>, + <22218 20842 21759 15764 15565 15478>, + <18237 22532 22567 18476 16070 15665>, + <14507 23565 23114 21229 16843 16014>, + <13691 20976 23326 22224 18298 17697>, + <13203 15329 23478 22879 20127 20376>, + <13082 13339 23336 23392 20745 21084>, + <13163 13137 21107 23897 20842 20980>, + <13278 13051 19101 24191 20767 20763>, + <13365 13152 18685 24058 20339 20021>, + <13489 13418 18114 23755 19638 18758>, + <13641 13633 17744 23726 19202 18088>, + <13879 13857 17224 24484 18791 17722>, + <14093 14082 16750 25184 18532 17543>, + <14230 14267 16509 24482 19232 17674>, + <14392 14473 16301 22649 20956 18116>, + <14483 14710 16057 21974 22170 18922>, + <14612 14995 15706 22244 23337 21342>, + <14719 15348 15540 22519 24044 23268>, + <14774 15935 15749 22168 23536 23009>, + <14914 16721 16119 21002 22373 22263>, + <14921 16984 16255 19925 21711 22061>, + <14553 16814 16214 19031 21346 22677>, + <14099 16608 16144 18215 21154 23249>, + <13868 16536 15962 17521 21491 23318>, + <13715 16442 15642 16945 21998 23112>, + <13693 15629 15535 16571 20426 21598>, + <13761 14688 15356 16321 18410 18927>, + <14000 14306 14798 16456 17655 16710>, + <14304 14527 15023 16756 17563 16166>, + <14443 14410 15296 16593 17059 15405>, + <14734 14570 15551 16798 16713 15340>, + <15463 14864 16344 17218 16517 15109>, + <15612 15527 16468 17534 17340 15739>, + <14472 14950 15787 17332 18272 16346>, + <13321 14510 14988 16739 18193 16735>, + <11889 14027 14398 16378 21078 22912>, + <11889 14027 14398 16378 21078 22912>, + <11889 14027 14398 16378 21078 22912>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6380 5805 5436 5128 5060 5043>, + <6339 5820 5436 5133 5059 5043>, + <6300 5823 5436 5137 5059 5044>, + <6263 5817 5435 5139 5059 5044>, + <6228 5808 5435 5141 5058 5045>, + <6196 5797 5434 5141 5058 5045>, + <6161 5779 5432 5140 5058 5045>, + <6131 5756 5429 5138 5059 5045>, + <6132 5754 5423 5137 5059 5045>, + <6176 5786 5405 5138 5060 5045>, + <6209 5810 5393 5139 5060 5046>, + <6164 5809 5423 5142 5061 5047>, + <6071 5801 5474 5146 5062 5047>, + <6016 5773 5474 5147 5063 5048>, + <5965 5687 5403 5143 5064 5050>, + <5933 5626 5350 5140 5066 5052>, + <5930 5627 5358 5143 5070 5054>, + <5928 5631 5375 5150 5077 5057>, + <5920 5631 5376 5157 5084 5061>, + <5890 5617 5356 5167 5091 5070>, + <5866 5597 5331 5173 5096 5076>, + <5870 5572 5313 5158 5084 5067>, + <5883 5545 5297 5123 5061 5049>, + <5897 5539 5283 5109 5052 5041>, + <5915 5556 5270 5105 5049 5038>, + <5934 5580 5261 5103 5047 5037>, + <5953 5601 5261 5103 5048 5037>, + <5971 5625 5267 5104 5049 5037>, + <5991 5649 5277 5104 5050 5038>, + <6013 5676 5294 5104 5052 5040>, + <6036 5703 5314 5104 5054 5043>, + <6059 5733 5336 5104 5057 5046>, + <6084 5763 5360 5104 5061 5050>, + <6109 5796 5387 5106 5062 5052>, + <6135 5830 5416 5112 5061 5053>, + <6162 5866 5448 5120 5059 5053>, + <6189 5903 5483 5126 5056 5050>, + <6216 5940 5522 5132 5053 5042>, + <6242 5974 5562 5139 5052 5040>, + <6265 6005 5603 5148 5055 5045>, + <6288 6033 5647 5159 5060 5050>, + <6317 6058 5690 5172 5063 5051>, + <6351 6081 5735 5188 5065 5051>, + <6394 6101 5786 5207 5064 5046>, + <6448 6126 5839 5229 5064 5044>, + <6488 6149 5840 5244 5073 5057>, + <6483 6146 5843 5234 5079 5066>, + <6531 6187 5891 5254 5089 5077>, + <6577 6230 5935 5276 5100 5088>, + <6642 6272 5983 5293 5103 5085>, + <6694 6308 6006 5299 5086 5063>, + <6767 6337 6035 5296 5081 5059>, + <7031 6402 6121 5344 5090 5064>, + <7621 6537 6227 5402 5107 5076>, + <7621 6537 6227 5402 5107 5076>, + <7621 6537 6227 5402 5107 5076>; + }; + +}; diff --git a/qcom/qg-batterydata-jk50-swd-5000mah.dtsi b/qcom/qg-batterydata-jk50-swd-5000mah.dtsi new file mode 100644 index 000000000000..bceac986ea29 --- /dev/null +++ b/qcom/qg-batterydata-jk50-swd-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,jk50-swd-5000mah { + /* 4875124_Lenovo_Ibiza_sunwoda_5000mAH_PM7250B_averaged_MasterSlave_Dec1th2020 */ + serialnum = "SB18C85291"; + qcom,sdam-magic-number = <0x18C85291>; + qcom,max-voltage-uv = <4400000>; + qcom,fg-cc-cv-threshold-uv = <4390000>; + qcom,fastchg-current-ma = <3000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "JK50-SWD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4747 4849 4974 5036 5057>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4962 4962 4976 4963 4976 4975>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43469 43626 43753 43809 43825>, + <43194 43361 43509 43591 43605>, + <42948 43112 43267 43360 43385>, + <42714 42875 43026 43127 43162>, + <42489 42643 42786 42894 42930>, + <42273 42416 42550 42658 42692>, + <42065 42196 42319 42425 42459>, + <41864 41983 42092 42192 42227>, + <41670 41778 41871 41963 41999>, + <41485 41578 41655 41738 41772>, + <41301 41391 41447 41516 41547>, + <41101 41202 41256 41299 41327>, + <40886 40997 41064 41085 41108>, + <40655 40778 40850 40878 40897>, + <40385 40547 40618 40674 40691>, + <40094 40277 40392 40475 40492>, + <39888 40016 40166 40276 40300>, + <39766 39853 39963 40078 40115>, + <39666 39751 39821 39902 39939>, + <39560 39649 39716 39764 39788>, + <39453 39522 39580 39618 39633>, + <39344 39377 39334 39388 39412>, + <39227 39204 39067 39089 39117>, + <39106 38960 38892 38889 38906>, + <38974 38745 38759 38775 38793>, + <38820 38637 38655 38682 38702>, + <38676 38563 38576 38588 38595>, + <38575 38505 38510 38500 38484>, + <38494 38457 38444 38414 38387>, + <38435 38416 38380 38328 38306>, + <38397 38377 38321 38251 38234>, + <38368 38341 38265 38185 38168>, + <38338 38305 38214 38128 38109>, + <38311 38271 38168 38075 38050>, + <38284 38239 38129 38028 37993>, + <38256 38205 38090 37983 37936>, + <38226 38173 38052 37935 37881>, + <38187 38133 38012 37885 37827>, + <38124 38066 37950 37818 37756>, + <38041 37969 37856 37723 37655>, + <37941 37862 37750 37616 37540>, + <37811 37741 37635 37505 37427>, + <37674 37602 37503 37380 37301>, + <37532 37432 37335 37217 37136>, + <37405 37291 37191 37083 37011>, + <37300 37192 37100 36999 36934>, + <37263 37169 37070 36969 36909>, + <37232 37161 37050 36948 36890>, + <37201 37147 37027 36928 36866>, + <37145 37092 36980 36871 36800>, + <36941 36873 36747 36614 36522>, + <36499 36428 36311 36176 36084>, + <35925 35856 35736 35602 35511>, + <35155 35077 34956 34825 34730>, + <33936 33856 33739 33613 33519>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <43855 43820 43785 43715 43685 43660>, + <43371 43395 43426 43399 43410 43400>, + <42943 43013 43096 43106 43146 43147>, + <42579 42683 42800 42839 42895 42903>, + <42268 42399 42533 42598 42656 42667>, + <41985 42130 42283 42364 42421 42433>, + <41666 41820 42050 42129 42188 42199>, + <41390 41529 41826 41897 41959 41967>, + <41327 41385 41572 41672 41732 41739>, + <41322 41291 41267 41451 41509 41515>, + <41315 41207 41044 41240 41288 41293>, + <41060 41077 40963 41052 41072 41075>, + <40528 40857 40904 40871 40859 40861>, + <40142 40574 40746 40655 40648 40655>, + <39815 40116 40296 40385 40435 40453>, + <39547 39722 39902 40133 40234 40259>, + <39374 39543 39761 39946 40051 40075>, + <39229 39415 39661 39784 39880 39898>, + <39044 39258 39513 39638 39718 39730>, + <38781 39065 39290 39514 39572 39578>, + <38555 38858 39059 39376 39411 39411>, + <38434 38623 38859 39158 39184 39186>, + <38345 38382 38671 38886 38925 38934>, + <38271 38244 38500 38686 38732 38743>, + <38209 38171 38334 38543 38589 38598>, + <38155 38117 38197 38423 38468 38474>, + <38103 38069 38099 38314 38359 38362>, + <38055 38028 38018 38217 38262 38262>, + <38007 37990 37964 38128 38173 38172>, + <37960 37953 37927 38045 38091 38091>, + <37912 37917 37894 37970 38018 38018>, + <37864 37882 37863 37902 37955 37953>, + <37815 37845 37833 37841 37898 37893>, + <37763 37807 37800 37791 37835 37828>, + <37712 37768 37764 37756 37764 37756>, + <37657 37727 37725 37720 37688 37677>, + <37596 37683 37682 37672 37607 37579>, + <37531 37637 37635 37613 37522 37468>, + <37459 37579 37575 37545 37442 37374>, + <37376 37505 37497 37468 37368 37302>, + <37291 37417 37405 37380 37290 37229>, + <37214 37315 37295 37277 37197 37135>, + <37141 37195 37166 37156 37088 37024>, + <37070 37056 37038 37026 36960 36899>, + <36997 36926 36917 36909 36851 36798>, + <36915 36843 36812 36839 36798 36749>, + <36867 36816 36779 36820 36787 36738>, + <36812 36786 36747 36799 36770 36720>, + <36742 36750 36697 36769 36740 36691>, + <36635 36676 36616 36697 36659 36593>, + <36418 36485 36418 36498 36388 36285>, + <36023 36062 36003 36052 35909 35794>, + <35447 35449 35397 35450 35288 35159>, + <34604 34590 34552 34643 34456 34298>, + <33231 33266 33257 33424 33243 33051>, + <29354 28911 28617 28464 28599 28631>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13322 12783 12353 12092 11964>, + <13328 12790 12350 12086 11968>, + <13352 12780 12345 12077 11961>, + <13358 12758 12341 12069 11952>, + <13343 12743 12334 12059 11946>, + <13329 12730 12325 12049 11940>, + <13324 12723 12314 12042 11936>, + <13319 12727 12304 12035 11933>, + <13313 12737 12303 12031 11932>, + <13293 12740 12303 12029 11932>, + <13270 12731 12303 12028 11932>, + <13259 12716 12299 12029 11934>, + <13242 12699 12294 12033 11938>, + <13219 12677 12286 12034 11940>, + <13186 12664 12274 12025 11937>, + <13150 12653 12268 12016 11933>, + <13133 12643 12267 12015 11932>, + <13131 12642 12266 12016 11933>, + <13130 12656 12270 12017 11934>, + <13125 12666 12283 12020 11935>, + <13120 12665 12290 12024 11935>, + <13121 12663 12289 12027 11936>, + <13126 12663 12288 12028 11937>, + <13133 12671 12291 12030 11938>, + <13137 12681 12301 12032 11941>, + <13135 12687 12307 12034 11944>, + <13131 12693 12307 12037 11946>, + <13133 12696 12308 12039 11948>, + <13138 12696 12309 12042 11951>, + <13141 12697 12314 12046 11954>, + <13143 12703 12318 12050 11958>, + <13144 12715 12320 12053 11961>, + <13148 12723 12325 12056 11964>, + <13159 12723 12330 12060 11967>, + <13172 12721 12338 12066 11971>, + <13191 12724 12344 12072 11976>, + <13218 12738 12349 12076 11979>, + <13228 12750 12355 12080 11982>, + <13215 12755 12360 12085 11986>, + <13198 12760 12365 12089 11990>, + <13197 12765 12369 12094 11994>, + <13208 12780 12370 12100 11999>, + <13219 12789 12372 12106 12005>, + <13230 12790 12379 12109 12008>, + <13249 12796 12399 12118 12013>, + <13263 12810 12396 12124 12016>, + <13267 12815 12402 12121 12014>, + <13263 12817 12396 12123 12015>, + <13263 12812 12396 12127 12018>, + <13296 12815 12408 12133 12025>, + <13294 12830 12409 12140 12030>, + <13327 12836 12433 12150 12038>, + <13305 12864 12427 12165 12049>, + <13343 12895 12461 12177 12067>, + <13343 12895 12461 12177 12067>, + <13343 12895 12461 12177 12067>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9309 9805 10152 10368 10181>, + <9740 10388 10378 10283 10164>, + <10173 10438 10515 10372 10169>, + <10314 10457 10530 10414 10179>, + <10315 10460 10532 10374 10220>, + <10310 10443 10527 10317 10284>, + <10305 10420 10490 10288 10288>, + <10302 10404 10446 10252 10219>, + <10297 10389 10428 10237 10155>, + <10292 10377 10417 10242 10108>, + <10284 10367 10407 10250 10064>, + <10270 10358 10394 10265 10059>, + <10239 10354 10384 10288 10076>, + <10216 10350 10392 10295 10087>, + <10218 10349 10421 10240 10084>, + <10225 10363 10435 10174 10079>, + <10225 10385 10422 10159 10084>, + <10213 10394 10404 10154 10104>, + <10200 10398 10400 10159 10125>, + <10201 10404 10405 10171 10141>, + <10214 10430 10421 10193 10161>, + <10232 10475 10556 10322 10221>, + <10253 10504 10712 10602 10353>, + <10278 10522 10698 10685 10408>, + <10306 10536 10573 10445 10325>, + <10341 10548 10505 10215 10231>, + <10372 10560 10507 10233 10359>, + <10387 10565 10514 10313 10771>, + <10397 10560 10529 10387 10933>, + <10401 10553 10565 10488 10728>, + <10399 10552 10591 10559 10456>, + <10396 10555 10601 10538 10287>, + <10396 10558 10609 10475 10146>, + <10406 10561 10610 10409 10107>, + <10419 10566 10607 10324 10115>, + <10431 10573 10607 10271 10129>, + <10444 10583 10613 10280 10161>, + <10457 10596 10622 10305 10216>, + <10469 10612 10639 10342 10261>, + <10481 10629 10670 10416 10302>, + <10493 10637 10689 10464 10327>, + <10507 10638 10677 10456 10329>, + <10485 10638 10662 10445 10327>, + <10309 10640 10657 10469 10374>, + <10552 10746 10679 10467 10374>, + <10569 10758 10680 10438 10324>, + <10942 10757 10669 10422 10328>, + <11114 11385 10612 10419 10335>, + <11107 14000 10613 10443 10353>, + <11006 12103 10692 10515 10414>, + <10724 14471 10668 10491 10374>, + <10236 11170 10637 10354 10191>, + <10094 10757 10551 10290 10139>, + <9835 10903 10470 10257 10091>, + <9835 10903 10470 10257 10091>, + <9835 10903 10470 10257 10091>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19417 19408 19368 19345 19335>, + <19617 19495 19407 19353 19351>, + <19668 19529 19434 19377 19363>, + <19680 19550 19445 19392 19372>, + <19682 19556 19453 19396 19381>, + <19684 19556 19455 19399 19389>, + <19681 19555 19454 19400 19392>, + <19673 19553 19453 19401 19393>, + <19666 19549 19451 19402 19394>, + <19663 19546 19449 19401 19393>, + <19660 19542 19447 19400 19391>, + <19655 19538 19443 19400 19389>, + <19647 19529 19439 19400 19386>, + <19641 19516 19435 19399 19383>, + <19646 19509 19431 19392 19380>, + <19657 19509 19428 19384 19377>, + <19660 19509 19426 19381 19374>, + <19642 19506 19423 19378 19371>, + <19616 19493 19417 19375 19368>, + <19602 19484 19408 19369 19362>, + <19592 19483 19404 19364 19356>, + <19588 19483 19414 19369 19358>, + <19588 19484 19426 19382 19365>, + <19588 19488 19425 19386 19368>, + <19589 19493 19415 19369 19353>, + <19595 19493 19408 19353 19336>, + <19602 19491 19406 19355 19350>, + <19602 19489 19406 19363 19397>, + <19599 19487 19407 19373 19416>, + <19595 19485 19412 19389 19411>, + <19589 19483 19417 19401 19403>, + <19582 19482 19420 19400 19395>, + <19576 19481 19422 19396 19387>, + <19570 19479 19422 19391 19379>, + <19564 19478 19419 19383 19372>, + <19558 19475 19416 19375 19366>, + <19553 19471 19411 19370 19359>, + <19548 19466 19406 19365 19352>, + <19544 19464 19403 19364 19349>, + <19540 19462 19402 19362 19349>, + <19535 19459 19400 19362 19349>, + <19530 19455 19396 19360 19351>, + <19505 19450 19392 19359 19354>, + <19398 19447 19390 19360 19359>, + <19271 19425 19383 19357 19356>, + <19260 19419 19371 19346 19347>, + <19259 19401 19369 19344 19340>, + <19259 19327 19365 19339 19330>, + <19259 19259 19362 19334 19326>, + <19259 19259 19357 19328 19322>, + <19259 19258 19357 19341 19335>, + <19261 19260 19361 19355 19351>, + <19262 19261 19364 19358 19350>, + <19264 19260 19354 19349 19347>, + <19264 19260 19354 19349 19347>, + <19264 19260 19354 19349 19347>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15975 15518 15130 14898 14825>, + <16165 15602 15122 14931 14884>, + <15998 15513 15104 14913 14871>, + <15823 15323 15064 14890 14853>, + <15649 15185 14983 14862 14834>, + <15488 15091 14919 14832 14814>, + <15362 15013 14876 14808 14794>, + <15257 14951 14841 14787 14776>, + <15172 14899 14813 14768 14760>, + <15107 14860 14790 14750 14746>, + <15052 14831 14770 14735 14733>, + <14995 14807 14752 14724 14723>, + <14933 14783 14737 14715 14715>, + <14896 14758 14727 14710 14709>, + <14892 14748 14720 14706 14705>, + <14892 14754 14718 14704 14701>, + <14888 14763 14721 14703 14698>, + <14859 14759 14724 14702 14696>, + <14819 14729 14716 14700 14693>, + <14792 14707 14691 14688 14684>, + <14768 14706 14680 14676 14676>, + <14752 14707 14724 14703 14698>, + <14743 14715 14787 14778 14778>, + <14737 14782 14815 14812 14816>, + <14737 14844 14834 14820 14817>, + <14760 14845 14840 14823 14817>, + <14786 14835 14829 14814 14797>, + <14795 14824 14809 14788 14736>, + <14800 14809 14793 14762 14705>, + <14802 14793 14776 14736 14701>, + <14795 14779 14762 14715 14699>, + <14783 14766 14751 14708 14695>, + <14772 14755 14742 14703 14692>, + <14762 14745 14736 14701 14689>, + <14752 14737 14733 14700 14687>, + <14742 14730 14730 14700 14686>, + <14732 14722 14725 14698 14686>, + <14725 14717 14722 14696 14686>, + <14719 14718 14722 14697 14688>, + <14715 14720 14723 14705 14700>, + <14712 14720 14724 14711 14710>, + <14710 14714 14717 14704 14703>, + <14725 14706 14707 14695 14692>, + <14819 14700 14701 14694 14694>, + <14884 14676 14681 14681 14685>, + <14885 14664 14665 14663 14661>, + <14881 14675 14658 14658 14658>, + <14876 14743 14651 14648 14651>, + <14869 14804 14643 14635 14633>, + <14859 14799 14639 14630 14626>, + <14858 14802 14653 14650 14660>, + <14874 14816 14660 14654 14665>, + <14883 14819 14659 14657 14673>, + <14894 14824 14671 14666 14679>, + <14894 14824 14671 14666 14679>, + <14894 14824 14671 14666 14679>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <11973 12883 13652 14619 14814>, + <13624 14572 15238 15414 16145>, + <14390 15684 16618 17257 17212>, + <14942 16578 17757 18592 18269>, + <15401 17447 18732 19125 19497>, + <15807 18258 19614 19549 20759>, + <16226 19079 20374 20123 21727>, + <16648 20035 21135 20900 22485>, + <17159 21178 22080 21739 23188>, + <17854 22466 23196 22632 23904>, + <18631 24144 24287 23689 24646>, + <19337 25633 25374 25323 25486>, + <19978 26284 26421 27644 26495>, + <20796 26624 27711 28644 27483>, + <22643 27126 29646 27821 28446>, + <25138 28911 30473 26811 29382>, + <26021 30943 29277 26545 30191>, + <25089 31303 27817 26159 31017>, + <23908 31131 28188 26387 31718>, + <23892 31030 30703 27769 32219>, + <25149 34887 34466 29941 32756>, + <27106 43230 44658 34176 33840>, + <30572 48723 55019 40793 35621>, + <35766 52415 52775 42253 36121>, + <41646 54546 39376 31179 27854>, + <50639 52727 30433 20494 18443>, + <57834 47079 27757 19844 20763>, + <58125 42926 26249 19945 30366>, + <56106 40463 26392 20675 34887>, + <53519 38875 27886 25539 35032>, + <50020 38770 29899 30894 34828>, + <46103 39135 33016 33657 34562>, + <43673 39704 36626 35726 33911>, + <41994 41396 39230 36159 33775>, + <40861 43692 41496 35541 34316>, + <40292 44627 42436 35001 34782>, + <39877 45038 41879 34942 34167>, + <39870 45345 40885 34872 32548>, + <41202 45682 40179 34711 31417>, + <42764 46051 39660 34112 30538>, + <42810 45857 38857 33328 29940>, + <41486 42490 35589 31155 29729>, + <37802 40708 33049 28930 29780>, + <26245 40731 33618 30892 33606>, + <13058 40549 34936 31403 34029>, + <11841 40760 32111 27329 29569>, + <11763 35960 31753 26024 25067>, + <11709 24395 30263 25468 21822>, + <11688 11801 31095 27066 24993>, + <11704 11837 29953 26592 27073>, + <11753 11891 26279 27520 26082>, + <11758 11867 23435 25863 23265>, + <11637 11752 23368 24239 20025>, + <11543 11618 19023 18876 16846>, + <11543 11618 19023 18876 16846>, + <11543 11618 19023 18876 16846>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16142 15513 15004 14781 14717>, + <16250 15560 15004 14798 14748>, + <16153 15511 15004 14797 14747>, + <16047 15407 14993 14795 14745>, + <15931 15328 14954 14785 14741>, + <15820 15267 14920 14769 14736>, + <15732 15215 14896 14758 14730>, + <15655 15172 14875 14749 14722>, + <15592 15134 14859 14740 14715>, + <15544 15104 14844 14732 14708>, + <15502 15080 14832 14725 14702>, + <15454 15058 14820 14720 14696>, + <15397 15031 14809 14717 14692>, + <15355 14998 14800 14713 14688>, + <15338 14980 14790 14705 14684>, + <15327 14976 14786 14698 14680>, + <15312 14974 14785 14695 14676>, + <15282 14967 14785 14694 14674>, + <15249 14950 14779 14691 14670>, + <15226 14939 14766 14683 14663>, + <15207 14939 14760 14675 14657>, + <15196 14942 14786 14690 14667>, + <15194 14950 14821 14731 14705>, + <15192 14982 14830 14746 14723>, + <15194 15011 14835 14742 14717>, + <15208 15012 14836 14736 14709>, + <15225 15009 14831 14731 14707>, + <15230 15005 14824 14726 14706>, + <15233 15000 14819 14722 14705>, + <15233 14993 14816 14720 14701>, + <15230 14988 14813 14718 14696>, + <15222 14983 14811 14715 14691>, + <15217 14979 14810 14712 14686>, + <15212 14976 14808 14708 14681>, + <15208 14973 14806 14704 14677>, + <15204 14971 14805 14701 14674>, + <15200 14969 14802 14698 14670>, + <15198 14967 14800 14695 14666>, + <15200 14970 14800 14695 14666>, + <15204 14976 14803 14699 14671>, + <15208 14978 14805 14701 14675>, + <15213 14977 14801 14699 14674>, + <15216 14977 14798 14696 14672>, + <15217 14980 14798 14697 14676>, + <15205 14970 14791 14691 14670>, + <15200 14966 14781 14678 14656>, + <15199 14963 14777 14674 14651>, + <15198 14956 14772 14668 14643>, + <15197 14951 14768 14660 14633>, + <15198 14953 14767 14656 14629>, + <15207 14960 14778 14674 14652>, + <15223 14974 14787 14685 14665>, + <15239 14987 14793 14692 14671>, + <15268 15004 14802 14696 14676>, + <15268 15004 14802 14696 14676>, + <15268 15004 14802 14696 14676>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6584 6170 5846 5605 5440 5364>, + <6552 6150 5836 5602 5439 5365>, + <6529 6131 5829 5598 5438 5365>, + <6515 6116 5824 5594 5436 5365>, + <6508 6105 5821 5590 5435 5365>, + <6505 6101 5820 5588 5433 5364>, + <6518 6106 5822 5585 5432 5363>, + <6541 6113 5826 5584 5429 5360>, + <6544 6116 5827 5584 5427 5359>, + <6529 6115 5823 5587 5425 5359>, + <6517 6114 5821 5590 5423 5358>, + <6514 6116 5821 5587 5422 5356>, + <6513 6120 5820 5583 5421 5353>, + <6515 6121 5821 5582 5420 5353>, + <6527 6118 5828 5586 5416 5353>, + <6539 6118 5835 5590 5414 5353>, + <6548 6119 5837 5591 5416 5354>, + <6554 6121 5836 5592 5421 5354>, + <6556 6123 5836 5594 5422 5355>, + <6555 6126 5838 5598 5420 5355>, + <6554 6128 5841 5602 5419 5354>, + <6557 6127 5841 5605 5421 5355>, + <6561 6126 5840 5608 5424 5355>, + <6563 6126 5841 5608 5426 5356>, + <6557 6134 5842 5607 5428 5358>, + <6551 6142 5844 5606 5430 5360>, + <6554 6138 5842 5607 5432 5363>, + <6559 6129 5838 5611 5434 5366>, + <6560 6128 5838 5615 5437 5368>, + <6544 6137 5843 5620 5441 5371>, + <6530 6145 5848 5625 5445 5373>, + <6529 6142 5848 5630 5448 5376>, + <6529 6134 5847 5635 5452 5380>, + <6529 6132 5847 5636 5455 5383>, + <6528 6134 5849 5636 5458 5385>, + <6527 6136 5852 5636 5460 5388>, + <6526 6139 5857 5640 5462 5389>, + <6525 6143 5865 5647 5464 5391>, + <6523 6146 5868 5651 5467 5392>, + <6523 6150 5863 5654 5470 5395>, + <6522 6153 5858 5655 5474 5397>, + <6524 6150 5860 5658 5476 5399>, + <6532 6142 5864 5661 5479 5401>, + <6526 6144 5862 5669 5486 5405>, + <6520 6149 5863 5674 5497 5411>, + <6569 6152 5871 5674 5502 5413>, + <6569 6157 5880 5675 5498 5411>, + <6590 6168 5879 5671 5496 5411>, + <6596 6178 5882 5676 5494 5412>, + <6598 6157 5902 5687 5490 5411>, + <6618 6183 5898 5686 5496 5413>, + <6632 6204 5919 5693 5508 5419>, + <6623 6217 5927 5704 5516 5429>, + <6714 6228 5949 5716 5529 5440>, + <6714 6228 5949 5716 5529 5440>, + <6714 6228 5949 5716 5529 5440>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9688 10500 10215 11211 10960 10831>, + <9689 10336 10459 11181 10949 10815>, + <9688 10242 10635 11152 10933 10800>, + <9686 10205 10751 11122 10913 10786>, + <9684 10209 10818 11096 10890 10773>, + <9681 10239 10843 11072 10866 10763>, + <9677 10480 10793 11052 10832 10756>, + <9672 10850 10705 11034 10800 10750>, + <9671 10894 10695 11018 10797 10744>, + <9672 10621 10761 11006 10821 10724>, + <9673 10416 10811 10992 10837 10710>, + <9673 10533 10868 10958 10811 10706>, + <9673 10766 10958 10916 10766 10702>, + <9672 10834 10987 10918 10760 10703>, + <9670 10574 11058 11009 10790 10705>, + <9669 10376 11154 11115 10832 10707>, + <9669 10478 11309 11177 10879 10712>, + <9668 10606 11493 11233 10941 10719>, + <9668 10574 11537 11316 11027 10756>, + <9668 10102 11535 11472 11169 10934>, + <9667 9717 11531 11580 11259 11069>, + <9667 9698 11481 11519 11213 11053>, + <9667 9691 11348 11387 11123 11015>, + <9666 9688 11175 11350 11093 11004>, + <9666 9684 10871 11384 11100 11010>, + <9665 9681 10646 11421 11112 11019>, + <9665 9678 10623 11439 11125 11035>, + <9665 9676 10613 11459 11148 11062>, + <9665 9673 10592 11480 11185 11093>, + <9664 9671 10526 11509 11261 11132>, + <9664 9670 10462 11529 11326 11171>, + <9664 9668 10434 11512 11368 11222>, + <9663 9667 10399 11465 11416 11288>, + <9663 9666 10320 11433 11427 11308>, + <9663 9665 10070 11419 11398 11294>, + <9663 9664 9852 11405 11357 11270>, + <9663 9663 9770 11374 11317 11222>, + <9663 9663 9716 11323 11274 11151>, + <9663 9662 9694 11271 11246 11129>, + <9662 9662 9682 11223 11224 11136>, + <9662 9661 9675 11171 11212 11143>, + <9662 9661 9671 11104 11233 11136>, + <9662 9661 9668 11024 11265 11103>, + <9662 9661 9666 10945 11145 11029>, + <9661 9661 9664 10864 11025 10920>, + <9661 9660 9664 10820 11018 10849>, + <9661 9660 9663 10853 11055 10878>, + <9661 9660 9662 10832 11082 10897>, + <9660 9660 9662 10838 11110 10946>, + <9660 9660 9662 10868 11145 10978>, + <9660 9659 9661 10849 11102 10857>, + <9659 9659 9661 10718 10969 10762>, + <9658 9659 9659 10538 10858 10650>, + <9655 9658 9658 10185 10793 10560>, + <9655 9658 9658 10185 10793 10560>, + <9655 9658 9658 10185 10793 10560>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13832 13630 13399 13301 13285 13280>, + <13866 13609 13401 13303 13285 13280>, + <13870 13595 13402 13305 13285 13281>, + <13850 13585 13404 13307 13286 13282>, + <13812 13578 13405 13308 13286 13283>, + <13764 13571 13407 13309 13287 13284>, + <13679 13556 13410 13310 13287 13284>, + <13585 13535 13414 13310 13288 13285>, + <13567 13511 13411 13311 13289 13285>, + <13577 13446 13386 13313 13290 13286>, + <13585 13401 13367 13314 13291 13286>, + <13593 13416 13365 13317 13291 13287>, + <13606 13444 13363 13319 13292 13287>, + <13604 13448 13363 13319 13292 13287>, + <13569 13424 13360 13318 13292 13288>, + <13541 13401 13358 13315 13292 13289>, + <13548 13393 13357 13312 13293 13289>, + <13564 13388 13355 13308 13296 13290>, + <13567 13386 13352 13307 13296 13290>, + <13557 13387 13343 13308 13295 13290>, + <13548 13388 13332 13308 13293 13290>, + <13552 13375 13324 13305 13289 13288>, + <13567 13352 13316 13298 13284 13282>, + <13584 13347 13307 13294 13282 13280>, + <13606 13357 13293 13293 13281 13279>, + <13631 13372 13283 13293 13281 13279>, + <13652 13389 13288 13291 13281 13279>, + <13674 13410 13301 13290 13280 13278>, + <13698 13433 13305 13289 13280 13278>, + <13726 13457 13306 13288 13280 13278>, + <13756 13484 13307 13288 13279 13278>, + <13785 13512 13309 13287 13279 13278>, + <13814 13542 13314 13286 13280 13278>, + <13843 13575 13320 13286 13280 13278>, + <13873 13612 13330 13288 13280 13278>, + <13904 13651 13344 13290 13280 13279>, + <13937 13693 13362 13292 13280 13279>, + <13973 13737 13388 13293 13279 13278>, + <14007 13777 13415 13295 13279 13278>, + <14036 13814 13444 13297 13280 13280>, + <14065 13849 13476 13299 13282 13282>, + <14097 13882 13513 13301 13283 13282>, + <14132 13912 13555 13303 13284 13281>, + <14178 13940 13606 13305 13284 13280>, + <14235 13971 13661 13308 13284 13281>, + <14274 13998 13660 13312 13288 13286>, + <14270 13994 13662 13312 13291 13288>, + <14318 14038 13710 13318 13293 13289>, + <14368 14080 13751 13326 13295 13291>, + <14442 14122 13785 13332 13295 13289>, + <14501 14160 13802 13334 13291 13286>, + <14585 14201 13840 13333 13292 13287>, + <14860 14279 13949 13342 13297 13292>, + <15472 14430 14075 13362 13307 13303>, + <15472 14430 14075 13362 13307 13303>, + <15472 14430 14075 13362 13307 13303>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17407 16929 16824 16546 16489 16481>, + <17354 17022 16840 16559 16488 16479>, + <17332 17085 16866 16570 16487 16477>, + <17334 17125 16894 16579 16485 16475>, + <17353 17147 16917 16586 16484 16474>, + <17382 17158 16927 16588 16484 16472>, + <17446 17142 16928 16586 16483 16471>, + <17550 17113 16927 16581 16483 16470>, + <17661 17160 16927 16581 16483 16470>, + <17805 17441 16936 16582 16484 16471>, + <17888 17645 16963 16584 16486 16471>, + <17705 17595 17090 16592 16487 16473>, + <17341 17474 17267 16606 16490 16475>, + <17157 17347 17266 16609 16493 16478>, + <17042 17116 17009 16602 16498 16482>, + <16964 16957 16820 16597 16506 16487>, + <16928 16956 16853 16611 16517 16493>, + <16892 16968 16916 16642 16533 16502>, + <16840 16960 16924 16672 16554 16517>, + <16741 16898 16865 16705 16588 16549>, + <16669 16815 16793 16726 16608 16570>, + <16663 16722 16738 16679 16576 16547>, + <16661 16622 16687 16575 16510 16499>, + <16661 16595 16645 16528 16483 16477>, + <16662 16596 16608 16514 16473 16467>, + <16663 16597 16576 16507 16468 16463>, + <16667 16598 16543 16506 16469 16464>, + <16673 16602 16512 16505 16472 16465>, + <16679 16606 16507 16504 16475 16468>, + <16683 16613 16522 16500 16481 16474>, + <16689 16622 16543 16495 16488 16482>, + <16695 16632 16561 16492 16498 16493>, + <16704 16643 16579 16488 16508 16507>, + <16712 16655 16598 16487 16510 16511>, + <16723 16666 16620 16496 16504 16512>, + <16732 16677 16640 16507 16496 16513>, + <16734 16686 16657 16513 16486 16501>, + <16733 16694 16673 16517 16473 16476>, + <16731 16699 16683 16523 16471 16469>, + <16727 16701 16690 16532 16478 16479>, + <16724 16702 16694 16543 16487 16490>, + <16727 16699 16694 16556 16492 16493>, + <16740 16687 16692 16570 16496 16494>, + <16760 16671 16693 16581 16487 16475>, + <16789 16661 16699 16592 16482 16465>, + <16801 16663 16697 16600 16495 16493>, + <16776 16661 16701 16592 16513 16522>, + <16798 16684 16730 16619 16544 16557>, + <16822 16717 16771 16656 16580 16590>, + <16834 16751 16828 16693 16593 16586>, + <16829 16756 16854 16698 16540 16515>, + <16821 16733 16831 16663 16514 16493>, + <16872 16727 16816 16674 16524 16494>, + <17103 16752 16815 16714 16550 16506>, + <17103 16752 16815 16714 16550 16506>, + <17103 16752 16815 16714 16550 16506>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <8712 8712 14185 16776 18939 17693>, + <11084 11535 14737 17802 19261 19057>, + <12553 13614 15507 18572 19365 19976>, + <13330 14958 16371 19101 19336 20534>, + <13637 15750 17205 19410 19253 20816>, + <13690 16173 17883 19513 19199 20908>, + <13073 16787 18598 19285 19112 20534>, + <12037 17490 19267 18892 18953 19910>, + <12231 17303 18842 18772 18832 19734>, + <15208 15614 15494 18792 18655 19483>, + <18117 15112 13119 18769 18421 19146>, + <20120 19044 14660 17710 17937 18523>, + <22145 24656 17573 15917 17258 17712>, + <22037 25337 18731 15642 16797 17361>, + <18765 20169 18622 16905 16428 17224>, + <16279 16064 18427 17902 16138 17068>, + <18072 16933 19265 17220 15838 16485>, + <21652 19117 20807 15846 15543 15677>, + <22218 20842 21759 15764 15565 15478>, + <18237 22532 22567 18476 16070 15665>, + <14507 23565 23114 21229 16843 16014>, + <13691 20976 23326 22224 18298 17697>, + <13203 15329 23478 22879 20127 20376>, + <13082 13339 23336 23392 20745 21084>, + <13163 13137 21107 23897 20842 20980>, + <13278 13051 19101 24191 20767 20763>, + <13365 13152 18685 24058 20339 20021>, + <13489 13418 18114 23755 19638 18758>, + <13641 13633 17744 23726 19202 18088>, + <13879 13857 17224 24484 18791 17722>, + <14093 14082 16750 25184 18532 17543>, + <14230 14267 16509 24482 19232 17674>, + <14392 14473 16301 22649 20956 18116>, + <14483 14710 16057 21974 22170 18922>, + <14612 14995 15706 22244 23337 21342>, + <14719 15348 15540 22519 24044 23268>, + <14774 15935 15749 22168 23536 23009>, + <14914 16721 16119 21002 22373 22263>, + <14921 16984 16255 19925 21711 22061>, + <14553 16814 16214 19031 21346 22677>, + <14099 16608 16144 18215 21154 23249>, + <13868 16536 15962 17521 21491 23318>, + <13715 16442 15642 16945 21998 23112>, + <13693 15629 15535 16571 20426 21598>, + <13761 14688 15356 16321 18410 18927>, + <14000 14306 14798 16456 17655 16710>, + <14304 14527 15023 16756 17563 16166>, + <14443 14410 15296 16593 17059 15405>, + <14734 14570 15551 16798 16713 15340>, + <15463 14864 16344 17218 16517 15109>, + <15612 15527 16468 17534 17340 15739>, + <14472 14950 15787 17332 18272 16346>, + <13321 14510 14988 16739 18193 16735>, + <11889 14027 14398 16378 21078 22912>, + <11889 14027 14398 16378 21078 22912>, + <11889 14027 14398 16378 21078 22912>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6380 5805 5436 5128 5060 5043>, + <6339 5820 5436 5133 5059 5043>, + <6300 5823 5436 5137 5059 5044>, + <6263 5817 5435 5139 5059 5044>, + <6228 5808 5435 5141 5058 5045>, + <6196 5797 5434 5141 5058 5045>, + <6161 5779 5432 5140 5058 5045>, + <6131 5756 5429 5138 5059 5045>, + <6132 5754 5423 5137 5059 5045>, + <6176 5786 5405 5138 5060 5045>, + <6209 5810 5393 5139 5060 5046>, + <6164 5809 5423 5142 5061 5047>, + <6071 5801 5474 5146 5062 5047>, + <6016 5773 5474 5147 5063 5048>, + <5965 5687 5403 5143 5064 5050>, + <5933 5626 5350 5140 5066 5052>, + <5930 5627 5358 5143 5070 5054>, + <5928 5631 5375 5150 5077 5057>, + <5920 5631 5376 5157 5084 5061>, + <5890 5617 5356 5167 5091 5070>, + <5866 5597 5331 5173 5096 5076>, + <5870 5572 5313 5158 5084 5067>, + <5883 5545 5297 5123 5061 5049>, + <5897 5539 5283 5109 5052 5041>, + <5915 5556 5270 5105 5049 5038>, + <5934 5580 5261 5103 5047 5037>, + <5953 5601 5261 5103 5048 5037>, + <5971 5625 5267 5104 5049 5037>, + <5991 5649 5277 5104 5050 5038>, + <6013 5676 5294 5104 5052 5040>, + <6036 5703 5314 5104 5054 5043>, + <6059 5733 5336 5104 5057 5046>, + <6084 5763 5360 5104 5061 5050>, + <6109 5796 5387 5106 5062 5052>, + <6135 5830 5416 5112 5061 5053>, + <6162 5866 5448 5120 5059 5053>, + <6189 5903 5483 5126 5056 5050>, + <6216 5940 5522 5132 5053 5042>, + <6242 5974 5562 5139 5052 5040>, + <6265 6005 5603 5148 5055 5045>, + <6288 6033 5647 5159 5060 5050>, + <6317 6058 5690 5172 5063 5051>, + <6351 6081 5735 5188 5065 5051>, + <6394 6101 5786 5207 5064 5046>, + <6448 6126 5839 5229 5064 5044>, + <6488 6149 5840 5244 5073 5057>, + <6483 6146 5843 5234 5079 5066>, + <6531 6187 5891 5254 5089 5077>, + <6577 6230 5935 5276 5100 5088>, + <6642 6272 5983 5293 5103 5085>, + <6694 6308 6006 5299 5086 5063>, + <6767 6337 6035 5296 5081 5059>, + <7031 6402 6121 5344 5090 5064>, + <7621 6537 6227 5402 5107 5076>, + <7621 6537 6227 5402 5107 5076>, + <7621 6537 6227 5402 5107 5076>; + }; + +}; From 70ddfccc4a9b105172741834b6c0ec769d8039ee Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 3 Dec 2020 16:42:17 +0800 Subject: [PATCH 0103/1247] arch/dts: add denver first support battery parameter add first support battery parameter for denver Change-Id: Icbd225ddd18d2fa41e2183547008aa269c55c676 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1818006 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 +- qcom/qg-batterydata-md50-amperex-5000mah.dtsi | 1018 +++++++++++++++++ 2 files changed, 1020 insertions(+), 2 deletions(-) create mode 100644 qcom/qg-batterydata-md50-amperex-5000mah.dtsi diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 97499ef701e7..576ffe77d5c1 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -157,9 +157,9 @@ }; mot_batterydata: qcom,battery-data { - df-serialnum = "SB18C74375"; + df-serialnum = "SB18D00294"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-lz50-scud-5000mah.dtsi" + #include "qg-batterydata-md50-amperex-5000mah.dtsi" }; }; diff --git a/qcom/qg-batterydata-md50-amperex-5000mah.dtsi b/qcom/qg-batterydata-md50-amperex-5000mah.dtsi new file mode 100644 index 000000000000..553477d2729f --- /dev/null +++ b/qcom/qg-batterydata-md50-amperex-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,md50-amperex-5000mah { + /* 4951798_Lenovo_Denver_5000mAH_PM7250B_averaged_MasterSlave_Dec1th2020 */ + serialnum = "SB18D00294"; + qcom,sdam-magic-number = <0x18D00294>; + qcom,max-voltage-uv = <4450000>; + qcom,fg-cc-cv-threshold-uv = <4440000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "MD50-AMPEREX-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4792 4942 5084 5128 5138>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4936 5039 5081 5108 5078 5086>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43856 44015 44194 44254 44266>, + <43624 43799 43956 43999 44007>, + <43397 43578 43741 43782 43786>, + <43170 43352 43528 43574 43581>, + <42935 43121 43301 43357 43368>, + <42695 42884 43063 43127 43141>, + <42459 42639 42824 42891 42908>, + <42222 42398 42582 42652 42671>, + <41990 42168 42338 42407 42430>, + <41766 41944 42097 42165 42189>, + <41548 41715 41857 41925 41950>, + <41334 41479 41622 41687 41712>, + <41123 41252 41393 41455 41480>, + <40918 41040 41169 41226 41250>, + <40714 40837 40952 41007 41028>, + <40511 40638 40742 40796 40812>, + <40318 40439 40542 40593 40604>, + <40142 40250 40350 40396 40406>, + <39977 40081 40167 40208 40216>, + <39820 39922 40005 40034 40042>, + <39676 39751 39845 39873 39884>, + <39530 39563 39629 39678 39696>, + <39363 39363 39322 39391 39416>, + <39176 39133 39073 39122 39145>, + <38999 38886 38935 38971 38992>, + <38828 38733 38830 38862 38883>, + <38676 38653 38734 38760 38781>, + <38580 38591 38649 38663 38682>, + <38517 38526 38570 38573 38587>, + <38465 38464 38494 38487 38489>, + <38417 38406 38425 38407 38395>, + <38374 38351 38360 38331 38313>, + <38335 38300 38301 38258 38242>, + <38300 38254 38244 38191 38175>, + <38268 38212 38191 38129 38107>, + <38234 38171 38140 38070 38041>, + <38202 38135 38091 38014 37975>, + <38161 38095 38045 37961 37913>, + <38101 38033 37983 37894 37837>, + <38021 37940 37893 37798 37734>, + <37926 37834 37786 37685 37616>, + <37804 37715 37671 37573 37499>, + <37664 37576 37540 37451 37372>, + <37501 37407 37373 37291 37210>, + <37350 37250 37218 37144 37068>, + <37242 37150 37112 37049 36989>, + <37197 37116 37078 37019 36957>, + <37159 37095 37059 36998 36937>, + <37128 37073 37036 36979 36915>, + <37093 37032 36997 36932 36857>, + <37022 36852 36798 36704 36606>, + <36747 36412 36372 36271 36168>, + <36244 35823 35797 35695 35590>, + <35563 34994 35011 34912 34804>, + <34404 33567 33789 33692 33577>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44130 44200 44170 44205 44085 44140>, + <43800 43905 43906 43933 43835 43873>, + <43497 43631 43652 43674 43592 43618>, + <43228 43380 43411 43433 43359 43381>, + <42993 43154 43183 43210 43135 43160>, + <42759 42925 42952 42981 42908 42935>, + <42498 42680 42709 42741 42670 42699>, + <42232 42430 42462 42497 42428 42458>, + <41997 42182 42216 42253 42187 42217>, + <41792 41935 41969 42008 41946 41975>, + <41589 41695 41727 41767 41709 41738>, + <41370 41463 41490 41528 41475 41503>, + <41142 41240 41259 41296 41246 41273>, + <40906 41036 41036 41071 41023 41048>, + <40663 40849 40821 40851 40805 40829>, + <40407 40644 40614 40640 40597 40619>, + <40119 40400 40420 40433 40394 40417>, + <39810 40142 40224 40234 40201 40223>, + <39538 39892 40010 40052 40021 40041>, + <39306 39644 39782 39874 39850 39867>, + <39092 39412 39550 39669 39656 39675>, + <38885 39197 39305 39425 39421 39455>, + <38690 38999 39079 39192 39190 39237>, + <38531 38821 38897 38991 38994 39034>, + <38400 38661 38737 38811 38817 38843>, + <38293 38510 38596 38665 38672 38692>, + <38215 38360 38472 38543 38553 38571>, + <38154 38227 38358 38435 38448 38464>, + <38098 38125 38250 38334 38352 38363>, + <38045 38040 38149 38241 38263 38269>, + <37994 37978 38056 38156 38182 38186>, + <37941 37933 37968 38077 38107 38110>, + <37887 37894 37898 38006 38035 38037>, + <37830 37848 37848 37943 37968 37970>, + <37771 37801 37807 37882 37902 37901>, + <37711 37751 37767 37816 37821 37810>, + <37647 37700 37728 37746 37726 37696>, + <37583 37644 37683 37672 37630 37587>, + <37512 37578 37624 37594 37537 37492>, + <37432 37500 37552 37512 37444 37401>, + <37346 37411 37458 37426 37356 37310>, + <37253 37302 37336 37330 37268 37217>, + <37151 37177 37200 37207 37146 37100>, + <37056 37032 37041 37068 37006 36963>, + <36968 36873 36868 36935 36894 36839>, + <36886 36755 36766 36882 36854 36801>, + <36849 36715 36735 36865 36841 36790>, + <36804 36681 36697 36844 36827 36776>, + <36761 36645 36644 36815 36802 36748>, + <36715 36592 36550 36745 36708 36645>, + <36655 36493 36314 36489 36403 36324>, + <36545 36197 35854 35990 35885 35813>, + <36308 35588 35195 35337 35218 35144>, + <35798 34615 34216 34436 34271 34212>, + <34977 33356 32765 33077 33015 32896>, + <34023 31708 27243 28003 28075 28051>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12740 12138 11636 11341 11267>, + <12788 12161 11645 11364 11288>, + <12778 12168 11641 11362 11288>, + <12768 12159 11636 11361 11289>, + <12759 12139 11628 11359 11289>, + <12739 12120 11615 11355 11288>, + <12727 12099 11603 11351 11287>, + <12713 12084 11593 11348 11287>, + <12699 12078 11584 11347 11288>, + <12686 12074 11576 11347 11290>, + <12675 12066 11569 11349 11295>, + <12661 12049 11567 11351 11299>, + <12642 12036 11570 11351 11300>, + <12620 12031 11572 11351 11300>, + <12605 12028 11572 11351 11300>, + <12590 12028 11571 11352 11301>, + <12580 12028 11570 11353 11302>, + <12576 12029 11572 11354 11304>, + <12574 12027 11574 11355 11306>, + <12573 12025 11576 11357 11307>, + <12568 12025 11578 11359 11309>, + <12563 12037 11579 11361 11311>, + <12564 12049 11580 11361 11312>, + <12569 12048 11580 11362 11313>, + <12572 12044 11582 11363 11315>, + <12568 12042 11586 11366 11317>, + <12564 12045 11590 11369 11319>, + <12569 12050 11595 11372 11322>, + <12597 12058 11600 11376 11325>, + <12620 12072 11605 11379 11329>, + <12624 12077 11609 11383 11332>, + <12622 12075 11614 11388 11336>, + <12622 12073 11617 11392 11340>, + <12624 12075 11622 11397 11343>, + <12627 12083 11628 11402 11348>, + <12630 12091 11635 11407 11353>, + <12640 12099 11641 11412 11357>, + <12651 12107 11647 11416 11361>, + <12663 12121 11654 11420 11364>, + <12678 12143 11661 11425 11367>, + <12699 12156 11668 11429 11370>, + <12734 12158 11677 11434 11374>, + <12752 12161 11688 11439 11377>, + <12758 12183 11700 11444 11380>, + <12779 12197 11716 11451 11384>, + <12813 12205 11726 11456 11387>, + <12816 12195 11726 11457 11387>, + <12789 12200 11726 11457 11387>, + <12767 12199 11732 11459 11390>, + <12770 12202 11731 11464 11394>, + <12816 12213 11739 11470 11397>, + <12807 12226 11759 11478 11404>, + <12842 12245 11775 11488 11413>, + <12897 12294 11789 11503 11427>, + <12897 12294 11789 11503 11427>, + <12897 12294 11789 11503 11427>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10428 10539 10573 10334 10230>, + <10366 10549 10655 10459 10259>, + <10342 10545 10631 10553 10453>, + <10323 10514 10591 10522 10435>, + <10302 10464 10552 10487 10415>, + <10285 10427 10507 10442 10394>, + <10273 10394 10470 10401 10370>, + <10264 10375 10441 10378 10333>, + <10258 10407 10418 10361 10287>, + <10269 10467 10397 10341 10274>, + <10309 10473 10380 10313 10277>, + <10329 10414 10375 10298 10281>, + <10304 10372 10386 10317 10283>, + <10272 10384 10401 10349 10285>, + <10270 10409 10418 10352 10291>, + <10278 10437 10438 10342 10310>, + <10291 10473 10461 10337 10327>, + <10315 10507 10491 10348 10333>, + <10353 10533 10515 10367 10337>, + <10391 10555 10525 10378 10326>, + <10429 10573 10534 10385 10279>, + <10463 10587 10570 10406 10263>, + <10486 10599 10700 10577 10473>, + <10503 10612 10781 10744 10706>, + <10516 10624 10697 10640 10634>, + <10527 10626 10574 10372 10396>, + <10536 10614 10558 10293 10315>, + <10543 10602 10576 10329 10337>, + <10547 10605 10597 10372 10377>, + <10551 10620 10626 10405 10506>, + <10558 10633 10652 10443 10701>, + <10566 10646 10660 10476 10731>, + <10575 10655 10664 10541 10623>, + <10586 10656 10665 10577 10498>, + <10597 10656 10664 10555 10379>, + <10607 10656 10663 10526 10281>, + <10617 10661 10665 10525 10273>, + <10629 10670 10669 10540 10299>, + <10646 10685 10678 10565 10334>, + <10668 10710 10717 10642 10393>, + <10694 10733 10757 10714 10458>, + <10724 10748 10771 10705 10497>, + <10770 10768 10780 10671 10531>, + <10855 10816 10790 10663 10597>, + <11173 11075 10863 10645 10585>, + <10956 11260 10953 10559 10451>, + <10881 11255 10928 10553 10429>, + <10872 11442 10907 10553 10460>, + <10766 11821 10906 10568 10475>, + <10663 11979 10974 10653 10540>, + <10630 11837 11025 10606 10480>, + <10549 11596 10970 10403 10240>, + <10360 11358 10868 10315 10161>, + <10190 10935 10774 10279 10120>, + <10190 10935 10774 10279 10120>, + <10190 10935 10774 10279 10120>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19628 19517 19386 19347 19333>, + <19747 19566 19449 19393 19363>, + <19786 19594 19460 19413 19395>, + <19802 19604 19466 19418 19399>, + <19806 19610 19475 19422 19404>, + <19809 19611 19485 19429 19413>, + <19809 19610 19488 19433 19419>, + <19806 19610 19484 19434 19420>, + <19802 19616 19479 19435 19419>, + <19799 19624 19476 19435 19418>, + <19796 19620 19473 19432 19414>, + <19793 19594 19469 19428 19411>, + <19781 19571 19461 19424 19407>, + <19765 19563 19454 19419 19404>, + <19758 19557 19449 19413 19401>, + <19755 19550 19445 19406 19397>, + <19752 19539 19442 19399 19393>, + <19739 19531 19438 19395 19389>, + <19718 19529 19433 19391 19384>, + <19705 19528 19425 19386 19377>, + <19699 19529 19417 19379 19367>, + <19695 19535 19419 19377 19363>, + <19697 19543 19441 19387 19370>, + <19707 19549 19455 19398 19378>, + <19712 19554 19443 19389 19371>, + <19712 19555 19424 19367 19349>, + <19711 19546 19417 19357 19339>, + <19709 19536 19413 19355 19337>, + <19702 19531 19412 19354 19337>, + <19693 19528 19415 19356 19352>, + <19687 19527 19419 19361 19383>, + <19682 19530 19424 19369 19390>, + <19676 19532 19429 19384 19387>, + <19670 19533 19433 19393 19384>, + <19665 19533 19434 19392 19378>, + <19660 19533 19435 19390 19371>, + <19656 19530 19433 19386 19365>, + <19652 19525 19426 19378 19359>, + <19647 19522 19421 19374 19356>, + <19641 19518 19419 19374 19354>, + <19632 19513 19417 19374 19353>, + <19619 19506 19412 19372 19355>, + <19602 19497 19406 19369 19360>, + <19580 19486 19402 19369 19367>, + <19435 19451 19391 19366 19367>, + <19315 19416 19376 19353 19346>, + <19307 19412 19376 19347 19341>, + <19304 19360 19369 19345 19333>, + <19295 19299 19369 19337 19328>, + <19294 19291 19356 19330 19324>, + <19293 19295 19358 19341 19338>, + <19297 19300 19358 19365 19362>, + <19301 19301 19354 19367 19364>, + <19323 19331 19348 19360 19359>, + <19323 19331 19348 19360 19359>, + <19323 19331 19348 19360 19359>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15640 15507 15022 14865 14839>, + <15954 15370 15123 14879 14818>, + <15744 15252 15065 14906 14861>, + <15522 15150 14978 14866 14835>, + <15389 15063 14922 14833 14810>, + <15277 14996 14878 14808 14789>, + <15187 14945 14843 14786 14770>, + <15113 14899 14817 14767 14754>, + <15050 14842 14795 14749 14741>, + <14990 14788 14775 14734 14727>, + <14934 14772 14757 14719 14713>, + <14897 14780 14742 14708 14701>, + <14877 14785 14729 14700 14696>, + <14862 14772 14719 14694 14692>, + <14846 14755 14712 14691 14688>, + <14827 14747 14706 14688 14685>, + <14813 14744 14701 14686 14681>, + <14806 14741 14696 14681 14678>, + <14801 14731 14693 14677 14676>, + <14792 14716 14691 14674 14673>, + <14767 14712 14690 14672 14670>, + <14745 14716 14697 14673 14671>, + <14745 14725 14745 14718 14715>, + <14754 14753 14787 14771 14771>, + <14766 14804 14805 14792 14789>, + <14791 14822 14817 14806 14800>, + <14819 14817 14817 14808 14803>, + <14825 14810 14809 14801 14795>, + <14820 14801 14798 14789 14782>, + <14813 14791 14785 14776 14754>, + <14805 14779 14770 14759 14714>, + <14795 14766 14754 14739 14693>, + <14785 14753 14736 14712 14683>, + <14774 14743 14722 14694 14677>, + <14764 14734 14711 14685 14674>, + <14753 14726 14703 14680 14673>, + <14742 14719 14701 14679 14672>, + <14733 14714 14700 14678 14671>, + <14724 14712 14700 14678 14671>, + <14716 14712 14705 14686 14682>, + <14711 14711 14709 14695 14694>, + <14707 14704 14707 14695 14691>, + <14701 14696 14701 14691 14681>, + <14689 14689 14696 14689 14679>, + <14753 14670 14682 14680 14672>, + <14856 14667 14662 14665 14661>, + <14863 14666 14657 14664 14661>, + <14863 14717 14650 14656 14656>, + <14867 14779 14636 14644 14640>, + <14865 14781 14643 14638 14631>, + <14859 14781 14655 14654 14651>, + <14860 14789 14671 14651 14651>, + <14877 14795 14679 14655 14655>, + <14876 14775 14689 14666 14663>, + <14876 14775 14689 14666 14663>, + <14876 14775 14689 14666 14663>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <14142 14482 14438 14074 13730>, + <14203 15591 16398 17487 16580>, + <14677 16416 16880 18337 19043>, + <15195 16914 17289 18778 19541>, + <15595 17313 17988 19329 20189>, + <15992 17842 18934 20100 21526>, + <16448 18519 19527 20931 22885>, + <16998 19208 19762 21723 23631>, + <17622 20065 19983 22520 24156>, + <18330 20952 20431 23352 24885>, + <19139 21255 21107 24237 26051>, + <19912 21270 21788 25153 27250>, + <20538 21388 22508 26334 28188>, + <21192 22055 23293 27402 29049>, + <22312 23124 24143 27480 29966>, + <24428 23849 25071 27043 31021>, + <25824 24265 26082 26808 32071>, + <25632 24776 27403 27789 33357>, + <25184 25829 28168 29056 34447>, + <25160 27704 27921 29261 34010>, + <27598 30682 27475 29278 31797>, + <32007 37675 30444 29670 30838>, + <39676 44278 48133 36586 34522>, + <53017 46972 59546 43491 38576>, + <59794 48773 48851 38538 34762>, + <59547 48844 31968 25367 23362>, + <58949 42032 26419 19929 18234>, + <57523 34374 24057 18570 17023>, + <52378 32068 23274 18011 16500>, + <47310 30756 23490 18140 18989>, + <44987 30436 23987 18552 24397>, + <43313 31810 25044 19705 27123>, + <42202 34038 27467 23751 28515>, + <41307 36302 30347 27845 29266>, + <40748 38982 34686 31221 29600>, + <40849 40742 38088 33747 29822>, + <41561 41758 38279 33841 29919>, + <42531 42373 38149 33103 30051>, + <44569 42424 37911 32761 30100>, + <46946 42369 37090 32990 29657>, + <46920 42232 35718 33239 28909>, + <43256 39589 32660 30866 28053>, + <41591 36883 29293 25971 27204>, + <41383 35898 29387 27012 30897>, + <27291 36795 30120 27861 33429>, + <13418 29466 30007 25135 24159>, + <13080 27846 30372 22553 21460>, + <12951 19629 28007 22984 20085>, + <12646 13094 31452 23001 21815>, + <12597 12869 25755 22617 23443>, + <12643 13066 23585 23372 25064>, + <12749 13047 19601 24762 25585>, + <12575 12882 17795 22685 23029>, + <13336 14055 16375 18289 18472>, + <13336 14055 16375 18289 18472>, + <13336 14055 16375 18289 18472>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15614 15223 14779 14632 14603>, + <15777 15178 14853 14664 14611>, + <15683 15132 14831 14685 14645>, + <15579 15085 14796 14672 14638>, + <15508 15039 14775 14661 14631>, + <15444 15003 14758 14653 14627>, + <15390 14973 14743 14646 14622>, + <15344 14946 14728 14639 14617>, + <15304 14920 14714 14632 14612>, + <15268 14896 14702 14625 14606>, + <15237 14879 14692 14618 14599>, + <15210 14866 14683 14612 14593>, + <15188 14855 14673 14606 14588>, + <15168 14843 14665 14600 14585>, + <15152 14831 14659 14595 14581>, + <15138 14822 14654 14590 14577>, + <15124 14814 14649 14585 14573>, + <15109 14808 14645 14581 14569>, + <15094 14801 14641 14577 14565>, + <15079 14796 14636 14572 14560>, + <15063 14795 14632 14567 14554>, + <15051 14800 14637 14567 14552>, + <15053 14809 14671 14594 14577>, + <15062 14826 14693 14622 14604>, + <15073 14852 14693 14622 14605>, + <15086 14860 14691 14619 14601>, + <15098 14855 14689 14616 14596>, + <15099 14848 14684 14612 14592>, + <15095 14842 14680 14608 14588>, + <15089 14837 14676 14604 14585>, + <15084 14833 14673 14600 14584>, + <15078 14830 14669 14596 14581>, + <15072 14827 14666 14593 14576>, + <15066 14824 14663 14590 14571>, + <15061 14822 14660 14588 14567>, + <15057 14820 14658 14585 14564>, + <15054 14817 14655 14582 14560>, + <15052 14815 14653 14578 14557>, + <15054 14816 14652 14576 14556>, + <15056 14818 14654 14580 14559>, + <15058 14819 14656 14584 14563>, + <15060 14818 14655 14583 14563>, + <15060 14815 14651 14580 14562>, + <15057 14812 14650 14580 14565>, + <15024 14795 14642 14576 14563>, + <15014 14780 14628 14563 14547>, + <15013 14777 14626 14560 14545>, + <15012 14773 14620 14555 14539>, + <15011 14770 14615 14546 14529>, + <15012 14770 14612 14540 14523>, + <15016 14777 14621 14554 14539>, + <15027 14788 14631 14568 14555>, + <15047 14799 14637 14573 14561>, + <15073 14819 14643 14578 14565>, + <15073 14819 14643 14578 14565>, + <15073 14819 14643 14578 14565>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6386 5842 5554 5249 5082 5024>, + <6369 5843 5554 5244 5078 5023>, + <6358 5844 5553 5238 5074 5021>, + <6352 5846 5550 5233 5070 5020>, + <6349 5847 5548 5229 5067 5019>, + <6349 5848 5547 5224 5064 5017>, + <6352 5849 5544 5221 5062 5016>, + <6359 5849 5542 5217 5061 5015>, + <6362 5849 5541 5214 5059 5014>, + <6360 5847 5539 5210 5058 5014>, + <6358 5846 5537 5207 5056 5014>, + <6358 5848 5533 5204 5055 5013>, + <6357 5850 5530 5202 5054 5013>, + <6359 5852 5529 5202 5054 5013>, + <6365 5855 5530 5202 5054 5013>, + <6370 5857 5530 5202 5054 5013>, + <6372 5858 5530 5203 5055 5014>, + <6373 5859 5530 5203 5055 5015>, + <6373 5860 5530 5204 5056 5015>, + <6369 5861 5531 5205 5057 5016>, + <6365 5862 5532 5206 5058 5017>, + <6364 5863 5535 5208 5058 5018>, + <6363 5864 5538 5211 5059 5019>, + <6362 5867 5540 5214 5061 5020>, + <6361 5870 5542 5217 5063 5021>, + <6359 5873 5544 5221 5065 5023>, + <6357 5874 5545 5224 5067 5025>, + <6355 5875 5547 5228 5070 5027>, + <6354 5876 5549 5232 5072 5029>, + <6355 5876 5552 5237 5074 5031>, + <6358 5877 5554 5241 5077 5033>, + <6358 5877 5556 5245 5080 5035>, + <6357 5878 5558 5249 5083 5037>, + <6356 5879 5562 5253 5086 5039>, + <6363 5880 5566 5257 5089 5042>, + <6372 5880 5568 5261 5091 5043>, + <6370 5880 5570 5264 5093 5045>, + <6356 5880 5572 5267 5095 5047>, + <6347 5881 5577 5268 5096 5048>, + <6348 5882 5583 5269 5098 5050>, + <6351 5884 5586 5272 5099 5051>, + <6355 5886 5588 5276 5100 5052>, + <6362 5888 5592 5281 5102 5054>, + <6363 5891 5597 5287 5105 5056>, + <6364 5902 5600 5294 5109 5058>, + <6374 5924 5611 5300 5112 5061>, + <6410 5926 5610 5304 5113 5060>, + <6437 5931 5613 5306 5112 5061>, + <6424 5938 5613 5309 5112 5061>, + <6447 5948 5616 5310 5113 5062>, + <6454 5974 5630 5311 5115 5064>, + <6546 6012 5657 5324 5120 5068>, + <6674 6156 5714 5345 5128 5076>, + <6958 6471 5836 5372 5139 5085>, + <6958 6471 5836 5372 5139 5085>, + <6958 6471 5836 5372 5139 5085>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10138 10811 11322 11435 11239 11131>, + <10177 10853 11285 11382 11173 11074>, + <10255 10883 11249 11330 11093 11011>, + <10346 10902 11214 11282 11012 10950>, + <10423 10912 11180 11239 10945 10899>, + <10458 10915 11146 11200 10908 10866>, + <10458 10903 11110 11163 10894 10844>, + <10456 10887 11078 11133 10883 10830>, + <10483 10887 11055 11119 10867 10826>, + <10677 10901 11036 11108 10846 10828>, + <10833 10918 11030 11105 10838 10824>, + <10798 10934 11038 11101 10852 10799>, + <10721 10956 11054 11098 10870 10776>, + <10706 11001 11083 11100 10878 10776>, + <10782 11091 11135 11109 10889 10783>, + <10860 11163 11192 11123 10897 10793>, + <10749 11212 11258 11167 10926 10823>, + <10448 11243 11316 11228 10969 10864>, + <10313 11241 11352 11311 11037 10906>, + <10012 11221 11380 11403 11151 10957>, + <9713 11212 11386 11431 11230 11017>, + <9686 11220 11378 11438 11285 11106>, + <9682 11232 11372 11440 11314 11163>, + <9679 11245 11391 11436 11264 11134>, + <9675 11261 11433 11429 11161 11077>, + <9672 11266 11460 11431 11136 11065>, + <9670 11236 11476 11453 11168 11082>, + <9669 11204 11487 11483 11215 11102>, + <9667 11206 11493 11527 11286 11142>, + <9666 11218 11497 11576 11373 11197>, + <9665 11221 11497 11611 11411 11224>, + <9664 11157 11491 11638 11424 11243>, + <9663 11032 11482 11658 11440 11271>, + <9662 10670 11466 11674 11487 11379>, + <9662 10009 11442 11685 11539 11503>, + <9661 9747 11408 11671 11530 11500>, + <9661 9711 11353 11626 11452 11423>, + <9661 9692 11289 11586 11390 11353>, + <9660 9681 11218 11552 11352 11278>, + <9660 9674 11131 11523 11322 11211>, + <9660 9669 11015 11504 11334 11201>, + <9660 9666 10862 11488 11373 11217>, + <9660 9663 10731 11466 11345 11225>, + <9659 9661 10482 11436 11259 11197>, + <9659 9660 9883 11408 11162 11031>, + <9658 9659 9757 11316 11045 10899>, + <9657 9658 9709 11293 11066 10894>, + <9657 9657 9685 11266 11088 10910>, + <9656 9656 9673 11245 11120 10956>, + <9654 9655 9666 11265 11120 10926>, + <9651 9654 9660 11191 11029 10846>, + <9650 9650 9656 11091 10932 10782>, + <9648 9649 9652 10951 10884 10698>, + <9648 9648 9653 10809 10735 10546>, + <9648 9648 9653 10809 10735 10546>, + <9648 9648 9653 10809 10735 10546>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13594 13386 13332 13293 13281 13279>, + <13607 13393 13336 13294 13282 13279>, + <13615 13401 13339 13295 13283 13280>, + <13619 13410 13343 13296 13284 13281>, + <13621 13417 13346 13298 13284 13282>, + <13621 13422 13349 13299 13285 13282>, + <13613 13423 13351 13299 13285 13284>, + <13599 13425 13353 13300 13286 13285>, + <13598 13425 13354 13300 13287 13285>, + <13611 13425 13355 13301 13287 13285>, + <13623 13425 13356 13301 13288 13286>, + <13585 13431 13356 13301 13289 13286>, + <13509 13440 13356 13301 13289 13287>, + <13487 13434 13355 13303 13290 13287>, + <13500 13403 13350 13307 13291 13287>, + <13511 13387 13348 13309 13292 13287>, + <13500 13394 13347 13309 13294 13289>, + <13473 13404 13346 13309 13296 13292>, + <13464 13401 13344 13308 13297 13293>, + <13466 13386 13341 13307 13299 13294>, + <13468 13374 13337 13305 13300 13294>, + <13467 13368 13331 13303 13295 13292>, + <13464 13363 13326 13300 13290 13288>, + <13460 13358 13323 13297 13286 13285>, + <13456 13353 13321 13293 13283 13281>, + <13452 13350 13320 13292 13281 13280>, + <13460 13348 13319 13291 13281 13280>, + <13490 13346 13318 13291 13281 13280>, + <13525 13340 13317 13291 13282 13280>, + <13562 13327 13314 13291 13282 13278>, + <13603 13323 13313 13291 13282 13278>, + <13647 13327 13312 13291 13281 13278>, + <13694 13333 13311 13291 13281 13279>, + <13744 13340 13312 13292 13282 13280>, + <13798 13349 13313 13292 13283 13282>, + <13854 13362 13314 13292 13283 13282>, + <13910 13380 13318 13292 13282 13281>, + <13965 13405 13321 13291 13281 13280>, + <14017 13436 13325 13290 13281 13280>, + <14063 13477 13328 13290 13280 13281>, + <14106 13527 13332 13290 13281 13282>, + <14145 13593 13335 13291 13285 13283>, + <14182 13675 13340 13292 13284 13283>, + <14228 13778 13347 13292 13281 13282>, + <14291 13900 13351 13289 13280 13278>, + <14385 13983 13375 13296 13286 13284>, + <14416 14094 13410 13299 13289 13288>, + <14515 14220 13453 13303 13293 13290>, + <14698 14356 13520 13310 13296 13292>, + <15015 14540 13639 13314 13295 13290>, + <16087 14958 13847 13311 13290 13287>, + <19329 17084 14250 13312 13290 13287>, + <29072 26276 15249 13322 13295 13291>, + <61994 65535 21487 13340 13302 13300>, + <61994 65535 21487 13340 13302 13300>, + <61994 65535 21487 13340 13302 13300>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16957 16701 16591 16503 16470 16461>, + <17020 16737 16618 16503 16469 16464>, + <17129 16801 16649 16503 16469 16465>, + <17250 16872 16678 16503 16469 16466>, + <17350 16929 16699 16503 16469 16466>, + <17394 16952 16706 16503 16470 16466>, + <17391 16949 16701 16504 16470 16466>, + <17382 16944 16693 16504 16472 16465>, + <17368 16943 16688 16506 16473 16465>, + <17335 16944 16684 16510 16475 16467>, + <17311 16944 16682 16515 16478 16469>, + <17376 16941 16687 16522 16482 16471>, + <17509 16938 16697 16529 16487 16474>, + <17540 16969 16715 16534 16491 16477>, + <17428 17090 16747 16538 16496 16482>, + <17287 17150 16779 16546 16500 16487>, + <17188 17080 16812 16561 16506 16490>, + <17099 16973 16834 16582 16514 16495>, + <17035 16908 16824 16616 16531 16506>, + <16994 16859 16787 16655 16556 16522>, + <16955 16815 16744 16657 16562 16527>, + <16895 16773 16680 16612 16548 16526>, + <16821 16737 16624 16563 16527 16525>, + <16791 16707 16598 16526 16503 16507>, + <16786 16683 16579 16497 16478 16475>, + <16784 16653 16570 16493 16472 16467>, + <16784 16602 16565 16493 16473 16467>, + <16786 16562 16560 16495 16475 16468>, + <16787 16562 16554 16499 16479 16472>, + <16789 16574 16548 16505 16486 16480>, + <16793 16585 16538 16510 16494 16487>, + <16797 16595 16521 16516 16505 16495>, + <16804 16607 16512 16522 16514 16503>, + <16812 16633 16517 16528 16519 16511>, + <16819 16673 16529 16532 16523 16517>, + <16825 16703 16544 16528 16520 16513>, + <16830 16723 16565 16517 16505 16494>, + <16835 16737 16586 16506 16492 16483>, + <16838 16747 16608 16497 16483 16481>, + <16835 16753 16627 16491 16478 16480>, + <16828 16754 16637 16495 16480 16484>, + <16822 16748 16642 16502 16486 16492>, + <16814 16739 16645 16505 16483 16489>, + <16814 16729 16649 16504 16469 16474>, + <16821 16720 16653 16483 16456 16448>, + <16834 16705 16661 16494 16467 16466>, + <16813 16717 16685 16511 16489 16498>, + <16823 16735 16716 16533 16525 16539>, + <16834 16762 16762 16570 16566 16579>, + <16853 16802 16826 16608 16567 16572>, + <16955 16843 16875 16581 16504 16498>, + <17448 17110 16919 16556 16481 16480>, + <19570 20596 17091 16592 16486 16481>, + <38612 65535 21689 16651 16511 16500>, + <38612 65535 21689 16651 16511 16500>, + <38612 65535 21689 16651 16511 16500>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <12010 15568 18224 19088 18322 18909>, + <12652 15849 18175 18793 18260 18823>, + <13688 16238 18187 18473 18090 18747>, + <14832 16646 18232 18136 17846 18683>, + <15799 16984 18279 17793 17560 18634>, + <16300 17164 18298 17453 17262 18604>, + <16381 17241 18325 17120 16896 18608>, + <16427 17286 18355 16763 16506 18608>, + <16785 17206 18253 16323 16215 18369>, + <18782 16873 17839 15792 15981 17633>, + <20349 16694 17372 15303 15725 17190>, + <19312 17132 16903 14773 15377 16825>, + <17136 17709 16375 14419 15060 16410>, + <16803 17565 15685 14573 14951 15995>, + <20086 16722 14865 14996 15024 15345>, + <23009 16337 14647 15105 15071 15144>, + <21852 18895 15789 14790 15037 15546>, + <18761 22031 17482 14522 15034 15949>, + <17199 22138 19151 14705 15144 15866>, + <16523 21313 20897 15289 15355 15587>, + <15930 20930 21479 16502 15873 15742>, + <15446 21103 21559 19919 18191 17712>, + <14883 21338 21611 22099 20086 19306>, + <14199 21470 21657 21370 19727 19281>, + <13076 21642 21702 20106 18739 19133>, + <12157 21858 21844 19568 18019 18915>, + <12080 22253 22390 19196 17375 18479>, + <12159 22576 22771 19046 17031 17898>, + <12239 20910 22701 19018 17071 16840>, + <12425 16198 22514 19002 17146 15696>, + <12654 14376 22267 19134 17105 15527>, + <12760 14777 21864 19551 16768 15680>, + <12828 15177 21361 20144 16548 15948>, + <12893 14821 20574 21373 17408 17090>, + <12958 13861 19768 22493 18833 18596>, + <13027 13532 19456 22743 19480 19173>, + <13139 13716 19258 22865 19894 19435>, + <13325 13941 19115 22801 20050 19767>, + <13452 14108 18967 21618 19459 20443>, + <13536 14291 18759 20230 18689 21082>, + <13601 14332 18413 19470 19237 21242>, + <13498 14219 17908 18952 21085 21313>, + <13081 14096 17674 18715 20738 23236>, + <12726 13964 17182 18612 19652 24198>, + <12459 13287 14389 18777 18120 17690>, + <12340 13092 13841 18881 17529 17967>, + <12523 13122 13935 18271 17446 17025>, + <12421 13304 13891 17856 17260 16123>, + <12609 13347 13828 18161 17050 15722>, + <12756 13249 13849 18393 16451 14986>, + <12272 13259 13592 18294 16921 16256>, + <10925 11687 13199 19245 17494 16415>, + <9605 9516 12194 18959 18614 16705>, + <8931 8859 9787 19350 22432 22857>, + <8931 8859 9787 19350 22432 22857>, + <8931 8859 9787 19350 22432 22857>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5930 5399 5192 5049 5011 5002>, + <5979 5416 5203 5050 5011 5003>, + <6014 5435 5212 5050 5011 5003>, + <6037 5452 5218 5050 5012 5004>, + <6049 5465 5222 5050 5012 5005>, + <6052 5469 5223 5051 5013 5006>, + <6041 5467 5221 5051 5013 5006>, + <6022 5462 5217 5051 5014 5007>, + <6016 5458 5214 5051 5015 5007>, + <6015 5454 5211 5052 5016 5008>, + <6015 5453 5210 5053 5017 5009>, + <6011 5454 5210 5055 5018 5010>, + <6003 5456 5211 5057 5020 5011>, + <5992 5461 5213 5059 5022 5013>, + <5977 5474 5218 5063 5024 5014>, + <5956 5480 5224 5067 5027 5016>, + <5923 5468 5233 5072 5029 5018>, + <5879 5446 5239 5077 5033 5021>, + <5851 5426 5235 5086 5039 5025>, + <5835 5404 5222 5096 5047 5030>, + <5823 5386 5207 5096 5049 5032>, + <5812 5373 5185 5081 5041 5030>, + <5802 5363 5166 5065 5031 5026>, + <5799 5357 5158 5052 5021 5017>, + <5806 5353 5152 5042 5012 5006>, + <5819 5348 5151 5040 5010 5004>, + <5837 5342 5151 5040 5010 5004>, + <5867 5337 5151 5041 5011 5004>, + <5901 5338 5151 5043 5012 5005>, + <5936 5346 5150 5045 5015 5006>, + <5974 5357 5149 5047 5017 5008>, + <6015 5377 5147 5050 5020 5011>, + <6058 5405 5146 5052 5022 5014>, + <6102 5434 5150 5055 5025 5018>, + <6148 5468 5159 5058 5027 5021>, + <6194 5506 5170 5057 5027 5019>, + <6239 5550 5184 5054 5022 5013>, + <6284 5600 5202 5051 5018 5010>, + <6325 5653 5222 5049 5015 5010>, + <6361 5712 5245 5047 5014 5010>, + <6394 5775 5270 5049 5015 5012>, + <6426 5842 5298 5052 5019 5015>, + <6457 5919 5333 5055 5018 5014>, + <6497 6011 5374 5056 5012 5009>, + <6553 6118 5398 5050 5008 5000>, + <6644 6189 5451 5060 5016 5010>, + <6674 6286 5512 5068 5025 5022>, + <6764 6396 5588 5078 5038 5036>, + <6921 6520 5692 5094 5052 5049>, + <7201 6688 5840 5109 5052 5045>, + <8133 7055 6056 5100 5031 5022>, + <10769 8801 6422 5097 5024 5018>, + <18261 16402 7289 5123 5031 5022>, + <46153 62544 13257 5165 5045 5035>, + <46153 62544 13257 5165 5045 5035>, + <46153 62544 13257 5165 5045 5035>; + }; + +}; From d130b90eb850cadf534c8321669e4264df0639d3 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 4 Dec 2020 15:18:23 +0800 Subject: [PATCH 0104/1247] ibiza: dts/panel: set the right pwr_supply for dummy panel Set the right pwr_supply for dummy panel. qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; Change-Id: I470f1a4f102deb7a1390d7086f6925ba5ee8de64 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1819222 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 8e87a2d7fd08..1fe17244a66f 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -197,7 +197,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; From 85f518c1758f1ede28423f1dacb42e9ddc25e925 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 3 Dec 2020 14:06:11 +0800 Subject: [PATCH 0105/1247] Dts/Ibiza/panel: update the backlight configure 1.HAL get Max value of backlight from "qcom,mdss-brightness-max-level" 2.The max value for backlight driver is "qcom,mdss-dsi-bl-max-level" For pm6150l, the max brightness is 4095. TM panel: the max brightness = 380nits (HAL= 4095) DJN panel: the brightness = 380nits ,when HAL= 3382. So set max level = 3382 for DJN panel, and max level = 4095 for TM panel. Change-Id: I76b2bb4b439e5d4ab00a9d2945684227370f5d45 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1817673 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 1fe17244a66f..813ba3596e6e 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -119,8 +119,9 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <16>; - qcom,mdss-dsi-bl-max-level = <1024>; + qcom,mdss-dsi-bl-max-level = <3382>; qcom,mdss-dsi-bl-default-level = <1691>; + qcom,mdss-brightness-max-level = <3382>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -160,8 +161,9 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <16>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From 2131e691074d4f85af1400786b41b47eddfb44f8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 3 Dec 2020 13:48:50 +0800 Subject: [PATCH 0106/1247] Dts/denver/panel: update the backlight configure 1.HAL get Max value of backlight from "qcom,mdss-brightness-max-level" 2.The max value for backlight driver is "qcom,mdss-dsi-bl-max-level" For pm6150l,the max brightness is 4095. To avoid flicker, set the min brightness to 47, follow minsk. Change-Id: Ibd414957f0d690be7ea143fa43209a47baca2d99 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1817659 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index a29d600b43a8..4baf439c4426 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -78,9 +78,11 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <27>; + + qcom,mdss-dsi-bl-min-level = <47>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -117,9 +119,11 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <27>; + + qcom,mdss-dsi-bl-min-level = <47>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From dcd3a9e921cad596a6cb5bfad1e2ebe5a99eb932 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 3 Dec 2020 16:46:20 +0800 Subject: [PATCH 0107/1247] arm64/dts: remove "consumer-enable" element in L1E For GKI version, this element will cause regualtor disable operation in probe stage. So we will see the screen losing power during boot. (USER and userdebug version do not have this problem) And before why we find out why it happens. We will submit the temp change to walk around this problem. MMI_STOPSHIP dts: temporarily change for GKI version. Or display and TP may not work properly. And we will resume it as soon as we fix the problem of regulator initialization. Change-Id: I5a9e40b158c10ce2e1869f0b9bdbd53523ae7a54 Signed-off-by: weiweij Reviewed-on: https://gerrit.mot.com/1818024 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-regulators-pm6350.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/holi-regulators-pm6350.dtsi b/qcom/holi-regulators-pm6350.dtsi index c0679f636d22..ed3b15845884 100644 --- a/qcom/holi-regulators-pm6350.dtsi +++ b/qcom/holi-regulators-pm6350.dtsi @@ -443,7 +443,11 @@ regulator-min-microvolt = <1650000>; regulator-max-microvolt = <1980000>; qcom,init-voltage = <1800000>; - qcom,proxy-consumer-enable; + /*MMI_STOPSHIP : temporarily change for GKI version. Or display and TP + may not work properly. And we will resume it as soon as we fix the + problem of regulator initialization. + Just work in this branch, should not be integrated to others*/ + /*qcom,proxy-consumer-enable;*/ qcom,proxy-consumer-current = <62000>; status = "okay"; }; From b1476d9d68a627e6df18ba6cf29b1bfe081ab340 Mon Sep 17 00:00:00 2001 From: linyx10 Date: Mon, 7 Dec 2020 10:16:53 +0800 Subject: [PATCH 0108/1247] SM4350: remove cdsp_secure_heap_mem noholos region. cdsp_secure_heap_mem is not using on SM4350 So remove it to save memory Change-Id: I196493e8b9481ab8a105808a5693d788dea47b57 Signed-off-by: linyx10 Reviewed-on: https://gerrit.mot.com/1820295 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghui Jia Reviewed-by: Binsheng Que Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ion.dtsi | 9 --------- qcom/holi.dtsi | 5 ----- 2 files changed, 14 deletions(-) diff --git a/qcom/holi-ion.dtsi b/qcom/holi-ion.dtsi index 88962f965c93..7e4e15b2811e 100644 --- a/qcom/holi-ion.dtsi +++ b/qcom/holi-ion.dtsi @@ -16,15 +16,6 @@ qcom,ion-heap-type = "SYSTEM_SECURE"; }; - qcom,ion-heap@14 { /* SECURE CARVEOUT HEAP */ - reg = ; - qcom,ion-heap-type = "SECURE_CARVEOUT"; - cdsp { - memory-region = <&cdsp_secure_heap_mem>; - token = <0x20000000>; - }; - }; - qcom,ion-heap@10 { /* SECURE DISPLAY HEAP */ reg = ; memory-region = <&secure_display_memory>; diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 880953151a60..4e041d8fc4b8 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -310,11 +310,6 @@ reg = <0x0 0x80b00000 0x0 0x100000>; }; - cdsp_secure_heap_mem: cdsp_secure_heap_mem@80c00000 { - no-map; - reg = <0x0 0x80c00000 0x0 0x1e00000>; - }; - pil_wlan_mem: wlan@86500000 { no-map; reg = <0x0 0x86500000 0x0 0x200000>; From b166495a0bf4e8339c9dc206ba03caf5ce953b15 Mon Sep 17 00:00:00 2001 From: liaoxl Date: Wed, 9 Dec 2020 11:59:49 +0800 Subject: [PATCH 0109/1247] Denver: remove FM ELNA support Per project team requirement, remove ELNA module support for cost down. Change-Id: I8dc397f5aaf55a8d2a5f675f42dffd9463420883 Reviewed-on: https://gerrit.mot.com/1822811 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key Reviewed-by: Yongbin Chen --- qcom/holi-denver-common-overlay.dtsi | 1 - qcom/holi-ibiza-common-overlay.dtsi | 1 - 2 files changed, 2 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index aff6e8edf561..3d7394873f4e 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -17,7 +17,6 @@ #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "denver-fps-overlay.dtsi" -#include "holi-denver-fmr-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" &tlmm { diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index ebc0558fe26b..04f248b7b7c6 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -16,7 +16,6 @@ #include "ibiza-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "holi-ibiza-fmr-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" &tlmm { From 065ac41afd635951dedd701bceab4a324cd70209 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 10 Dec 2020 15:05:07 +0800 Subject: [PATCH 0110/1247] denver/sensor: pullup sarsensor int pin pullup sarsensor int pin pin is"gpio24. Change-Id: I0362ad7949267609efe64649f4580505c65daa89 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1824237 Tested-by: Jira Key SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 576ffe77d5c1..bfff8c87aebd 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -172,6 +172,34 @@ qcom,init-voltage = <1800000>; }; +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + &qupv3_se8_i2c { status = "okay"; qcom,i2c-touch-active="synaptics,tcm-i2c"; @@ -208,6 +236,9 @@ sx937x:sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; interrupt-parent = <&tlmm>; interrupts = <24 0x02>; interrupt-names = "sx937x_irq"; From 5980d9d69a918ae8e20fe09b80ed7da4af20ea67 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 9 Dec 2020 10:55:52 +0800 Subject: [PATCH 0111/1247] Ibiza: dts/panel: Keep IOVDD and reset always on Keep IOVDD and reset always on . Let spi_cs pull up. Change-Id: I2ce8783b2a0ba52ee20988fc96dcc0dd2a94e747 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1822734 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 813ba3596e6e..d55003fd2145 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -50,6 +50,7 @@ qcom,supply-disable-load = <80>; qcom,supply-post-on-sleep= <0>; qcom,supply-post-off-sleep = <21>; + qcom,supply-always-on; }; qcom,panel-supply-entry@1 { @@ -117,6 +118,8 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; + qcom,platform-reset-gpio-always-on; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <16>; qcom,mdss-dsi-bl-max-level = <3382>; From a41d9ffb3b1fdd6bdc9ba9a4759f351fe3208ead Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 15 Dec 2020 08:42:50 +0800 Subject: [PATCH 0112/1247] ibiza/sensor: update sarsensor params 1.update params for ch2,ch3 2.ch2,ch3 support only 0,2 for 5mm detect. Change-Id: Id62babcd1ea648873738e2ee3cddacc65130f669 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1827235 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index bfff8c87aebd..bc2f89422c26 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -277,8 +277,8 @@ /*Set Phase Proximity Threshold*/ 0x8098 0x00008643 /*prox threshold ph0*/ 0x80B8 0x0000783C /*prox threshold ph1*/ - 0x80D8 0x0000004D /*prox threshold ph2*/ - 0x80F8 0x00000059 /*prox threshold ph3*/ + 0x80D8 0x00004D00 /*prox threshold ph2*/ + 0x80F8 0x00005900 /*prox threshold ph3*/ 0x8118 0x00000000 /*prox threshold ph4*/ 0x8138 0x00000000 /*prox threshold ph5*/ 0x8158 0x00000000 /*prox threshold ph6*/ From 923078336a97ca1a00e38be0769105bfaea0111b Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 15 Dec 2020 08:42:50 +0800 Subject: [PATCH 0113/1247] ibiza/sensor: update sarsensor params 1.update params for ch2,ch3 2.ch2,ch3 support only 0,2 for 5mm detect. Change-Id: Ic49397345905acf8ca963c42767aaf8d48cb9ceb Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1827254 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index bc2f89422c26..30b230ea7a12 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -277,8 +277,8 @@ /*Set Phase Proximity Threshold*/ 0x8098 0x00008643 /*prox threshold ph0*/ 0x80B8 0x0000783C /*prox threshold ph1*/ - 0x80D8 0x00004D00 /*prox threshold ph2*/ - 0x80F8 0x00005900 /*prox threshold ph3*/ + 0x80D8 0x00004D4D /*prox threshold ph2*/ + 0x80F8 0x00005959 /*prox threshold ph3*/ 0x8118 0x00000000 /*prox threshold ph4*/ 0x8138 0x00000000 /*prox threshold ph5*/ 0x8158 0x00000000 /*prox threshold ph6*/ From 047ab75110587395cf0ad4eb180a524fdde0acdd Mon Sep 17 00:00:00 2001 From: liaohj Date: Tue, 15 Dec 2020 14:04:25 +0800 Subject: [PATCH 0114/1247] arch/dts:denver/ibiza:set gpio-cells for cdc_sec_mi2s_gpios set gpio-cells for cdc_sec_mi2s_gpios. avoid warning log. Change-Id: Id3995ed3167dc249c17b4f695d82672879a20bb9 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/1827381 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index 1bc6ff1a5103..cd62a6f4a95b 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -76,6 +76,7 @@ pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; qcom,lpi-gpios; + #gpio-cells = <0>; }; }; From 831c21a0ac527360c8388da858d12b6305086e71 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Tue, 15 Dec 2020 13:59:03 +0800 Subject: [PATCH 0115/1247] arm64/config: change spm-level to 3 for ufs PROPAGATED_from (CR) from qcom's suggestion , change the ufs spm-level to 3. it maybe improve stability of ufs. spm-level 3: UFS_SLEEP_PWR_MODE, UIC_LINK_HIBERN8_STATE spm-level 5: UFS_POWERDOWN_PWR_MODE, UIC_LINK_OFF_STATE Change-Id: I1415ff19b5dc822ac654126661c50d57d1348995 Reviewed-on: https://gerrit.mot.com/1827382 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dongliang Yue Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 30b230ea7a12..0ac5a75aee6f 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -568,3 +568,7 @@ &usb0 { extcon = <&pm7250b_pdphy>, <&eud>; }; + +&ufshc_mem { + spm-level = <3>; +}; From 2e43e9e24aee827504975426a463bbbd30994954 Mon Sep 17 00:00:00 2001 From: weiweij Date: Wed, 16 Dec 2020 10:02:15 +0800 Subject: [PATCH 0116/1247] arm64/dts: remove STOPSHIP signature For this problem could not be avoid in GKI version, so we will remove STOPSHIP signature. For GKI version, LCD driver will probed much more later, so L1E will not vote for enable before flush work called. As a result, we have to remove this feature to avoid L1E closed by flush work. Change-Id: Ibe8a0c99a0246f6aeb04672c0834ebbe084bb18e Signed-off-by: weiweij Reviewed-on: https://gerrit.mot.com/1828436 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-regulators-pm6350.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qcom/holi-regulators-pm6350.dtsi b/qcom/holi-regulators-pm6350.dtsi index ed3b15845884..6041969b1ab9 100644 --- a/qcom/holi-regulators-pm6350.dtsi +++ b/qcom/holi-regulators-pm6350.dtsi @@ -443,10 +443,6 @@ regulator-min-microvolt = <1650000>; regulator-max-microvolt = <1980000>; qcom,init-voltage = <1800000>; - /*MMI_STOPSHIP : temporarily change for GKI version. Or display and TP - may not work properly. And we will resume it as soon as we fix the - problem of regulator initialization. - Just work in this branch, should not be integrated to others*/ /*qcom,proxy-consumer-enable;*/ qcom,proxy-consumer-current = <62000>; status = "okay"; From f16e0be0835037b0066fb23fe08c31a7c0c24ec0 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Wed, 16 Dec 2020 10:57:06 +0800 Subject: [PATCH 0117/1247] Denver: arm64/dts: Add charger detection feature - According to the requirement of vendor, add charger detection function. Change-Id: I7887aba33b66e86c7dee1b18337df2585d194dd2 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1828491 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi index cb397c5d56fb..dac7acdc06fa 100755 --- a/qcom/denver-touchscreen.dtsi +++ b/qcom/denver-touchscreen.dtsi @@ -83,6 +83,7 @@ novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; + novatek,usb_charger; novatek,panel-supplier = "auo","boe"; panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video>; status = "ok"; From 54d8d874fbe5b8d3054da6eed9500c9d43d5b2ea Mon Sep 17 00:00:00 2001 From: quebs2 Date: Thu, 17 Dec 2020 15:03:45 +0800 Subject: [PATCH 0118/1247] ARM: dts: msm: Add bus scaling support Add flag to enable driver support for scaling the bus for crypto operation. Change-Id: I4ae9d301253ff58444c085c9a88d6510a9578526 Mot-CRs-fixed: (CR) Signed-off-by: quebs2 Change-Id: I7e98bc38ef91724f4fa6c8c102eea17d2c732c33 Reviewed-on: https://gerrit.mot.com/1829698 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 4e041d8fc4b8..303a4b795fa0 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -3030,6 +3030,7 @@ qcom,fde-key-size; qcom,appsbl-qseecom-support; qcom,commonlib64-loaded-by-uefi; + qcom,support-bus-scaling; interconnect-names = "data_path"; interconnects = <&system_noc MASTER_CRYPTO_CORE0 &bimc SLAVE_EBI>; clock-names = From 623bbfd200d216d054802941004256b3b956db3d Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 17 Dec 2020 16:02:26 +0800 Subject: [PATCH 0119/1247] arm64/dts: denver: add fpc1020 device node 1. Change INT pin as pull disable to match HW. 2. Replace goodix with fpc sensor Change-Id: Ic29a88f85519b1e156b8a9223678001afc7efbd7 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1829812 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/denver-fps-overlay.dtsi | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/qcom/denver-fps-overlay.dtsi b/qcom/denver-fps-overlay.dtsi index 70b7f01ca4bf..2f6aa418a796 100644 --- a/qcom/denver-fps-overlay.dtsi +++ b/qcom/denver-fps-overlay.dtsi @@ -11,7 +11,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; chipone_int_suspend: chipone_int_suspend { @@ -25,7 +25,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; }; @@ -60,12 +60,12 @@ fps_int_active: fps_int_active { /* active state */ mux { - pins = "gpio18"; + pins = "gpio17"; function = "gpio"; }; config { - pins = "gpio18"; + pins = "gpio17"; drive-strength = <2>; /* 2 MA */ bias-disable; input-enable; @@ -102,20 +102,20 @@ reg = <0>; interrupt-parent = <&tlmm>; interrupts = <17 0x0>; - fp-gpio-int = <&tlmm 17 0x2>; - fp-gpio-reset = <&tlmm 18 0x2>; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&chipone_int_active>; pinctrl-1 = <&chipone_int_suspend>; }; - goodix_fingerprint{ - compatible = "goodix,fingerprint"; - fp-gpio-reset = <&tlmm 18 0x2>; - fp-gpio-irq = <&tlmm 17 0x2>; + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; interrupt-parent = <&tlmm>; interrupts = <17 0>; - interrupt-controller; pinctrl-names = "default", "suspend"; pinctrl-0 = <&fps_rst_active &fps_int_active>; pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; From d9783e4bb71fd8c51e6970b5c71005c9c605a2ae Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 22 Dec 2020 15:31:29 +0800 Subject: [PATCH 0120/1247] arm/dt: disable cabc when brightness value is low - Disable cabc when brightness is low, for peak current and backlight flicker - Set chipone ic backlight 80% of max brightness Change-Id: I794e9b220e4a174b4053cd5bc88607ca830b78c5 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1834391 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 2 +- qcom/ibiza-display.dtsi | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi index a241e84b57f4..8f67d850805c 100644 --- a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -70,7 +70,7 @@ qcom,mdss-dsi-on-command = [ 15 00 00 00 00 00 02 35 00 - 39 00 00 00 00 00 03 51 C0 00 + 39 00 00 00 00 00 03 51 CC 0C 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 39 01 00 00 00 00 03 F0 5A 59 diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index d55003fd2145..d944e0925838 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -27,6 +27,11 @@ qcom,ovp = <29500>; qcom,boost-current-limit = <875>; + + mmi,low-bl-force-cabc-disable; + mmi,low-bl-threshold = <200>; + mmi,low-bl-remap-percent = <80>; + mmi,low-bl-delay-ms = <50>; }; &sde_dsi { @@ -181,7 +186,7 @@ qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 C0 00]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From 5d1e713e94fca528988b2b1f246a66a962a5c00b Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 22 Dec 2020 14:06:54 +0800 Subject: [PATCH 0121/1247] Revert "(CR) dts/panel: update the right value of 51h" This reverts commit e06273b418457ac9ec61e43d3625c239bacc2e79. R51h is 12 bits. So change it to 4096*80% Mot-CRs-fixed: (CR) Change-Id: I9067bdcacda5b1dd5ac4824b3f075188241d426f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1834350 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 0a958be2f3dd..76504a5b37bd 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -61,7 +61,7 @@ 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 68 02 01 39 00 00 00 00 00 02 B0 00 - 39 00 00 00 00 00 03 51 06 66 + 39 00 00 00 00 00 03 51 0C CC 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 From a6e50c7e067affe9e9bb2a31c17b7ab1f571d270 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 23 Dec 2020 09:48:28 +0800 Subject: [PATCH 0122/1247] Revert "(CR) dts/denver: update the right command for HBM on/off" This reverts commit 1497d76c0b0fd1bd433b0ac25212aa6eccf1ebf9. R51h is 12 bits. So change it to 4096*80% Mot-CRs-fixed: (CR) Change-Id: Iab46409b9684720ccc2a1b0ec95b3cfda11449a0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1835073 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 4baf439c4426..4cbf324ebd3a 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -93,9 +93,9 @@ qcom,tp_state_check_enable; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From e622372f26c2abf2b5ac678ae03d19956ef25fdd Mon Sep 17 00:00:00 2001 From: zhouwl Date: Thu, 24 Dec 2020 13:41:32 +0800 Subject: [PATCH 0123/1247] arm/dts: enable aw882xx volume fade in/out There has a pop noise when speaker is turned off, enable volume fade in/out function. Change-Id: Icdc063ce784881dd10ea6cfd60d56bbcf19a2a43 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/1836291 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuesheng Huang Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index cd62a6f4a95b..f647466c3251 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -311,6 +311,7 @@ reset-gpio = <&tlmm 58 0>; irq-gpio = <&tlmm 59 0x2008>; monitor-flag = <1>; + fade-flag = <1>; monitor-timer-val = <3000>; afe-rx-portid = <0x1002>; afe-tx-portid = <0x1003>; @@ -319,7 +320,7 @@ low-temp-table-down = <0xFFFFFFFB 0x4 0x10 0xFFBEAE7E 0x0 0x5 0x9 0xFFD80505 0x5 0x6 0x6 0xFFED714D>; low-temp-table-up = <0x7 0x9 0x0 0x00000000 0x2 0x6 0x06 0xFFED714D 0xFFFFFFE 0x05 0x09 0xFFD80505>; status = "okay"; - }; + }; }; &va_cdc_dma_0_tx { From 2450e121c6e8cb98f79eadd3818e180eccec6eaf Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 23 Dec 2020 19:18:49 +0800 Subject: [PATCH 0124/1247] arm/dts: Config atl battery profile for ibiza arm/dts Config atl battery profile for ibiza product Change-Id: I7bba734726f718f9d1167e08863f65a433d40c7c Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1834458 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 3 +- qcom/qg-batterydata-jk50-atl-5000mah.dtsi | 1020 +++++++++++++++++++++ 2 files changed, 1022 insertions(+), 1 deletion(-) create mode 100644 qcom/qg-batterydata-jk50-atl-5000mah.dtsi diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 04f248b7b7c6..304ae50b3e22 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -270,10 +270,11 @@ }; &mot_batterydata { - df-serialnum = "SB18C85291"; + df-serialnum = "SB18C77591"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-jk50-swd-5000mah.dtsi" #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" + #include "qg-batterydata-jk50-atl-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-jk50-atl-5000mah.dtsi b/qcom/qg-batterydata-jk50-atl-5000mah.dtsi new file mode 100644 index 000000000000..d288393535d3 --- /dev/null +++ b/qcom/qg-batterydata-jk50-atl-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,jk50-atl-5000mah { + /* 4984199_Lenovo_Ibiza_5000mAH_PM7250B_averaged_MasterSlave_Dec17th2020 */ + serialnum = "SB18C77591"; + qcom,sdam-magic-number = <0x18C77591>; + qcom,max-voltage-uv = <4400000>; + qcom,fg-cc-cv-threshold-uv = <4390000>; + qcom,fastchg-current-ma = <3000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "JK50-ATL-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4803 4942 5112 5157 5169>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <5083 5090 5118 5132 5106 5121>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43640 43864 44154 44224 44236>, + <43359 43617 43874 43911 43909>, + <43118 43373 43622 43662 43662>, + <42886 43132 43397 43433 43432>, + <42648 42893 43162 43205 43203>, + <42411 42655 42918 42968 42971>, + <42181 42419 42675 42731 42737>, + <41959 42186 42435 42492 42501>, + <41742 41959 42197 42254 42265>, + <41532 41737 41963 42018 42029>, + <41329 41519 41732 41784 41796>, + <41130 41305 41506 41554 41565>, + <40936 41098 41287 41330 41339>, + <40742 40901 41073 41110 41115>, + <40529 40708 40863 40897 40900>, + <40281 40503 40657 40691 40694>, + <40052 40272 40455 40489 40495>, + <39883 40059 40250 40290 40302>, + <39743 39894 40057 40097 40114>, + <39611 39753 39892 39925 39938>, + <39481 39613 39742 39776 39780>, + <39358 39477 39577 39603 39603>, + <39237 39334 39392 39336 39350>, + <39120 39160 39194 39056 39082>, + <39007 38964 38961 38883 38907>, + <38896 38792 38723 38760 38784>, + <38790 38635 38590 38655 38676>, + <38691 38508 38516 38561 38575>, + <38598 38431 38454 38476 38484>, + <38512 38374 38389 38395 38396>, + <38438 38327 38328 38320 38315>, + <38371 38285 38273 38251 38241>, + <38315 38248 38223 38188 38172>, + <38269 38214 38175 38128 38106>, + <38228 38183 38129 38069 38040>, + <38189 38149 38085 38011 37974>, + <38153 38115 38039 37957 37911>, + <38112 38076 37994 37910 37854>, + <38058 38018 37934 37850 37785>, + <37991 37935 37848 37756 37687>, + <37906 37836 37743 37642 37571>, + <37783 37717 37630 37530 37456>, + <37643 37579 37500 37408 37333>, + <37483 37416 37341 37253 37180>, + <37336 37268 37191 37103 37036>, + <37255 37172 37089 37008 36945>, + <37222 37144 37062 36978 36914>, + <37192 37120 37043 36958 36896>, + <37166 37105 37023 36941 36876>, + <37112 37062 36982 36889 36813>, + <36906 36840 36763 36650 36550>, + <36454 36403 36336 36215 36108>, + <35874 35828 35761 35637 35529>, + <35087 35044 34973 34850 34734>, + <33840 33803 33746 33622 33492>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44170 44165 44110 44130 44005 44070>, + <43765 43796 43801 43822 43722 43767>, + <43400 43460 43513 43537 43454 43486>, + <43080 43166 43247 43277 43204 43230>, + <42796 42906 43003 43040 42971 42998>, + <42537 42653 42761 42805 42738 42767>, + <42310 42395 42514 42564 42500 42529>, + <42090 42144 42270 42324 42261 42290>, + <41826 41913 42032 42087 42026 42054>, + <41525 41697 41798 41852 41793 41819>, + <41297 41479 41569 41620 41563 41587>, + <41169 41245 41342 41388 41335 41359>, + <41045 41022 41124 41164 41112 41136>, + <40828 40848 40928 40955 40900 40918>, + <40504 40701 40744 40755 40696 40705>, + <40180 40494 40537 40546 40490 40499>, + <39836 40122 40297 40322 40278 40299>, + <39535 39757 40054 40110 40077 40108>, + <39347 39549 39821 39933 39905 39932>, + <39205 39392 39595 39765 39743 39761>, + <39047 39225 39385 39564 39559 39579>, + <38862 39043 39188 39326 39343 39382>, + <38687 38871 39008 39104 39131 39182>, + <38537 38720 38844 38913 38930 38967>, + <38402 38579 38694 38743 38743 38760>, + <38298 38435 38561 38605 38598 38610>, + <38217 38280 38439 38488 38481 38492>, + <38147 38158 38330 38382 38377 38386>, + <38082 38082 38232 38283 38280 38286>, + <38022 38023 38139 38192 38191 38194>, + <37964 37969 38050 38109 38111 38113>, + <37908 37920 37965 38034 38039 38038>, + <37852 37873 37897 37963 37969 37967>, + <37794 37827 37845 37897 37904 37902>, + <37736 37783 37801 37834 37837 37834>, + <37676 37737 37759 37772 37755 37741>, + <37613 37689 37719 37710 37663 37632>, + <37547 37635 37674 37642 37572 37528>, + <37475 37572 37620 37569 37483 37429>, + <37400 37499 37557 37491 37395 37335>, + <37328 37418 37475 37409 37312 37251>, + <37257 37323 37373 37316 37224 37164>, + <37182 37208 37244 37197 37105 37050>, + <37108 37081 37108 37064 36975 36918>, + <37035 36960 36959 36930 36857 36800>, + <36935 36860 36879 36878 36821 36764>, + <36883 36818 36850 36862 36807 36750>, + <36821 36779 36824 36843 36791 36737>, + <36745 36724 36781 36810 36760 36704>, + <36623 36634 36699 36721 36652 36588>, + <36390 36415 36472 36439 36293 36232>, + <35985 35976 35996 35931 35776 35710>, + <35372 35340 35336 35272 35089 35023>, + <34458 34431 34436 34348 34107 34043>, + <32987 32935 33138 33029 32671 32707>, + <28320 27840 27870 27984 28103 27815>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13435 12740 12162 11845 11730>, + <13474 12764 12162 11860 11756>, + <13445 12773 12156 11854 11754>, + <13418 12765 12154 11847 11752>, + <13418 12748 12150 11842 11751>, + <13427 12731 12136 11836 11749>, + <13431 12709 12121 11831 11748>, + <13434 12694 12108 11828 11748>, + <13434 12690 12095 11826 11749>, + <13418 12686 12086 11825 11751>, + <13377 12681 12078 11826 11755>, + <13347 12669 12075 11828 11761>, + <13337 12657 12076 11831 11765>, + <13330 12638 12077 11836 11768>, + <13316 12608 12076 11837 11769>, + <13278 12593 12073 11836 11769>, + <13245 12584 12072 11835 11770>, + <13235 12580 12071 11835 11771>, + <13226 12582 12071 11836 11772>, + <13224 12587 12073 11838 11774>, + <13229 12594 12079 11841 11775>, + <13235 12603 12083 11843 11777>, + <13227 12611 12086 11844 11777>, + <13195 12618 12089 11845 11778>, + <13173 12625 12092 11846 11779>, + <13175 12632 12096 11848 11781>, + <13183 12638 12099 11850 11784>, + <13192 12642 12103 11854 11786>, + <13204 12642 12107 11857 11789>, + <13214 12641 12112 11861 11792>, + <13220 12640 12117 11866 11795>, + <13229 12642 12124 11870 11799>, + <13237 12646 12131 11875 11803>, + <13241 12654 12140 11880 11807>, + <13242 12671 12148 11886 11812>, + <13243 12683 12156 11892 11817>, + <13245 12689 12164 11898 11822>, + <13247 12694 12170 11903 11825>, + <13251 12705 12178 11908 11829>, + <13261 12726 12189 11914 11832>, + <13274 12741 12199 11919 11836>, + <13297 12747 12205 11924 11840>, + <13326 12755 12210 11930 11844>, + <13362 12774 12225 11936 11848>, + <13381 12795 12239 11944 11852>, + <13355 12786 12250 11951 11856>, + <13331 12789 12246 11951 11856>, + <13311 12788 12245 11952 11858>, + <13321 12783 12251 11954 11861>, + <13369 12798 12256 11959 11864>, + <13378 12821 12262 11965 11869>, + <13406 12809 12280 11975 11876>, + <13378 12851 12295 11985 11887>, + <13451 12865 12319 12005 11904>, + <13451 12865 12319 12005 11904>, + <13451 12865 12319 12005 11904>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10176 10295 10466 10362 10301>, + <10378 10383 10798 10500 10304>, + <10380 10420 10592 10668 10626>, + <10378 10401 10568 10655 10663>, + <10367 10367 10539 10637 10674>, + <10346 10351 10505 10607 10655>, + <10337 10342 10473 10567 10610>, + <10343 10336 10445 10533 10568>, + <10351 10332 10420 10501 10522>, + <10355 10329 10396 10474 10489>, + <10357 10322 10371 10449 10470>, + <10355 10309 10361 10432 10457>, + <10345 10298 10362 10430 10461>, + <10325 10342 10366 10436 10479>, + <10304 10422 10376 10443 10481>, + <10276 10431 10403 10466 10386>, + <10256 10353 10446 10482 10295>, + <10254 10295 10697 10477 10305>, + <10254 10307 10942 10462 10340>, + <10254 10335 10852 10440 10369>, + <10254 10362 10592 10399 10388>, + <10254 10387 10522 10377 10420>, + <10251 10414 10594 10546 10600>, + <10243 10450 10651 10771 10838>, + <10238 10490 10641 10731 10809>, + <10240 10505 10617 10495 10538>, + <10244 10507 10602 10393 10404>, + <10250 10508 10588 10403 10423>, + <10259 10508 10580 10419 10454>, + <10270 10508 10596 10434 10481>, + <10280 10509 10624 10453 10509>, + <10291 10510 10637 10484 10514>, + <10302 10511 10644 10543 10486>, + <10312 10514 10649 10602 10458>, + <10322 10520 10657 10643 10461>, + <10332 10526 10665 10675 10476>, + <10341 10532 10668 10670 10476>, + <10352 10538 10672 10627 10462>, + <10368 10548 10677 10604 10460>, + <10388 10561 10698 10666 10510>, + <10409 10576 10720 10742 10572>, + <10431 10588 10728 10742 10585>, + <10467 10604 10732 10724 10582>, + <10540 10636 10740 10719 10575>, + <10927 10834 10788 10701 10573>, + <10827 10953 10874 10643 10585>, + <10714 10955 10855 10653 10594>, + <10710 10971 10840 10619 10570>, + <10612 11105 10843 10647 10587>, + <10565 11219 10879 10760 10685>, + <10513 11089 10912 10734 10594>, + <10504 11071 10878 10516 10330>, + <10298 10924 10757 10430 10257>, + <10059 10722 10666 10396 10206>, + <10059 10722 10666 10396 10206>, + <10059 10722 10666 10396 10206>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19704 19567 19392 19346 19329>, + <19759 19623 19468 19377 19356>, + <19701 19650 19488 19411 19385>, + <19648 19652 19490 19417 19397>, + <19638 19654 19492 19420 19403>, + <19634 19653 19494 19422 19406>, + <19633 19646 19495 19423 19408>, + <19636 19636 19492 19423 19409>, + <19640 19626 19485 19421 19408>, + <19643 19616 19480 19419 19408>, + <19646 19609 19475 19418 19406>, + <19649 19604 19469 19415 19403>, + <19650 19600 19464 19410 19400>, + <19651 19596 19458 19400 19394>, + <19655 19590 19449 19394 19388>, + <19671 19585 19439 19390 19379>, + <19685 19570 19434 19386 19370>, + <19680 19554 19440 19384 19366>, + <19667 19541 19446 19381 19363>, + <19658 19527 19438 19375 19359>, + <19653 19520 19421 19365 19352>, + <19650 19517 19415 19359 19348>, + <19652 19515 19423 19369 19354>, + <19664 19523 19429 19381 19361>, + <19674 19541 19429 19379 19359>, + <19682 19549 19428 19364 19342>, + <19689 19549 19426 19354 19331>, + <19691 19549 19420 19350 19327>, + <19689 19548 19416 19348 19326>, + <19687 19544 19415 19348 19327>, + <19683 19539 19415 19351 19330>, + <19678 19534 19415 19353 19334>, + <19671 19528 19416 19358 19341>, + <19663 19523 19417 19363 19348>, + <19653 19518 19419 19370 19354>, + <19642 19514 19421 19377 19359>, + <19631 19510 19421 19376 19359>, + <19621 19506 19419 19368 19352>, + <19611 19504 19417 19363 19347>, + <19602 19502 19415 19363 19345>, + <19595 19500 19413 19363 19344>, + <19591 19495 19409 19362 19344>, + <19584 19488 19405 19359 19347>, + <19568 19482 19401 19358 19348>, + <19503 19453 19392 19355 19347>, + <19369 19424 19379 19342 19334>, + <19330 19413 19374 19340 19332>, + <19324 19410 19370 19339 19325>, + <19309 19353 19370 19332 19321>, + <19306 19331 19352 19324 19317>, + <19310 19401 19354 19329 19334>, + <19329 19391 19351 19355 19356>, + <19336 19363 19351 19359 19355>, + <19342 19322 19350 19351 19351>, + <19342 19322 19350 19351 19351>, + <19342 19322 19350 19351 19351>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16078 15865 14999 14834 14833>, + <16773 15655 15199 14853 14812>, + <16522 15477 15191 14942 14872>, + <16217 15324 15060 14899 14849>, + <16011 15195 14973 14855 14820>, + <15829 15100 14917 14827 14800>, + <15678 15026 14873 14804 14781>, + <15552 14967 14838 14784 14765>, + <15445 14920 14809 14766 14750>, + <15360 14882 14786 14750 14736>, + <15291 14849 14765 14733 14722>, + <15228 14821 14747 14719 14709>, + <15164 14796 14730 14710 14700>, + <15105 14764 14716 14703 14693>, + <15061 14732 14709 14696 14689>, + <15028 14723 14706 14688 14687>, + <14999 14729 14700 14681 14686>, + <14971 14733 14679 14676 14682>, + <14944 14727 14659 14672 14675>, + <14919 14718 14657 14669 14671>, + <14896 14710 14662 14665 14667>, + <14874 14702 14669 14664 14665>, + <14849 14696 14676 14699 14696>, + <14820 14700 14688 14752 14749>, + <14794 14713 14728 14776 14775>, + <14773 14727 14787 14792 14792>, + <14755 14750 14800 14796 14797>, + <14746 14767 14790 14790 14792>, + <14742 14766 14777 14780 14782>, + <14739 14757 14766 14769 14772>, + <14737 14747 14753 14755 14757>, + <14736 14738 14740 14740 14741>, + <14735 14729 14727 14723 14721>, + <14732 14720 14715 14707 14702>, + <14729 14712 14702 14690 14685>, + <14727 14704 14690 14677 14672>, + <14725 14697 14683 14672 14669>, + <14723 14691 14678 14671 14668>, + <14720 14690 14676 14670 14668>, + <14717 14689 14682 14678 14678>, + <14715 14689 14688 14687 14691>, + <14713 14690 14687 14687 14690>, + <14710 14691 14686 14684 14682>, + <14702 14688 14685 14683 14682>, + <14692 14673 14677 14679 14678>, + <14803 14668 14658 14664 14662>, + <14844 14673 14654 14659 14659>, + <14847 14670 14648 14648 14652>, + <14858 14726 14637 14637 14634>, + <14852 14745 14650 14638 14630>, + <14846 14671 14667 14660 14646>, + <14847 14699 14684 14651 14644>, + <14858 14739 14690 14653 14649>, + <14870 14793 14696 14665 14658>, + <14870 14793 14696 14665 14658>, + <14870 14793 14696 14665 14658>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13965 14018 14708 14714 13874>, + <13646 14899 16525 17556 16946>, + <13758 15591 17147 18406 18349>, + <13933 16076 17498 19062 19760>, + <14180 16479 17982 19635 20965>, + <14542 16905 18692 20075 21571>, + <14869 17340 19325 20467 22024>, + <15158 17765 19790 20879 22559>, + <15410 18147 20228 21296 23152>, + <15590 18546 20621 21841 23842>, + <15734 19134 21231 22865 24749>, + <15839 20132 21929 23808 25769>, + <15894 21138 22987 24072 26838>, + <15940 23127 23946 24193 27981>, + <16100 25816 24050 24468 28307>, + <16736 26283 23945 25312 27155>, + <17256 25497 24227 26452 26035>, + <17213 24967 31015 28040 26735>, + <17054 24850 38195 29709 28556>, + <16995 24655 37014 29924 29628>, + <17208 24696 32389 29329 30074>, + <17630 26253 32949 29010 30757>, + <18358 29283 45186 39916 35874>, + <20045 40149 55207 54482 42763>, + <22268 60347 54498 51773 40945>, + <25604 65535 51766 35614 28789>, + <29844 65535 47811 26141 21313>, + <33454 63513 40372 23210 19427>, + <36965 59705 34528 21662 18465>, + <39497 53865 32081 21269 18364>, + <40530 49066 30555 21058 18358>, + <41212 45483 30389 21122 18493>, + <41350 42578 30613 22319 19811>, + <39740 40368 30999 24348 21987>, + <37257 38525 33398 29507 26441>, + <35146 37656 36902 35990 31960>, + <32574 37358 39259 36772 32989>, + <30651 37201 41389 35012 32705>, + <29600 37605 42132 34045 32265>, + <28873 39120 41386 34290 31436>, + <28896 39890 40045 34586 30180>, + <30293 37272 36996 32363 28281>, + <31856 34776 32519 26956 26046>, + <33377 34945 31446 26600 26436>, + <31464 35539 31361 26689 26668>, + <15864 30495 31786 24225 23147>, + <13240 25744 29517 23582 22029>, + <13028 25005 27866 24554 20780>, + <12594 15928 29916 24017 23361>, + <12573 14407 23543 22150 22767>, + <12817 24233 21320 19790 23926>, + <13203 19238 18059 22759 25956>, + <13000 15863 17006 21908 22723>, + <12785 13018 16149 18004 18844>, + <12785 13018 16149 18004 18844>, + <12785 13018 16149 18004 18844>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16148 15593 14877 14704 14677>, + <16444 15509 14997 14731 14685>, + <16268 15429 15000 14784 14724>, + <16060 15350 14940 14769 14720>, + <15933 15277 14900 14752 14713>, + <15827 15218 14874 14740 14707>, + <15741 15170 14852 14730 14700>, + <15670 15129 14831 14721 14693>, + <15612 15095 14814 14713 14687>, + <15565 15065 14799 14705 14681>, + <15528 15042 14786 14697 14676>, + <15491 15024 14774 14691 14670>, + <15445 15007 14764 14683 14664>, + <15400 14983 14754 14676 14658>, + <15371 14959 14746 14670 14653>, + <15354 14943 14739 14663 14647>, + <15338 14935 14732 14658 14642>, + <15318 14927 14727 14654 14637>, + <15297 14917 14722 14651 14633>, + <15279 14908 14716 14646 14628>, + <15264 14902 14710 14639 14623>, + <15251 14899 14709 14635 14620>, + <15241 14897 14715 14657 14638>, + <15232 14903 14726 14687 14666>, + <15225 14919 14745 14691 14670>, + <15219 14933 14769 14691 14669>, + <15214 14944 14774 14690 14668>, + <15211 14952 14768 14687 14665>, + <15209 14951 14762 14681 14660>, + <15207 14946 14757 14677 14656>, + <15206 14941 14752 14673 14652>, + <15205 14935 14748 14669 14649>, + <15203 14930 14744 14665 14644>, + <15200 14926 14740 14662 14640>, + <15195 14922 14738 14660 14638>, + <15191 14919 14735 14658 14635>, + <15187 14917 14733 14656 14633>, + <15185 14916 14732 14651 14629>, + <15186 14916 14731 14650 14628>, + <15189 14920 14734 14653 14631>, + <15193 14923 14738 14658 14636>, + <15200 14926 14738 14658 14636>, + <15203 14928 14737 14656 14635>, + <15205 14930 14737 14656 14636>, + <15180 14920 14733 14654 14634>, + <15168 14907 14721 14641 14621>, + <15165 14903 14717 14638 14619>, + <15163 14901 14712 14633 14612>, + <15161 14897 14708 14625 14603>, + <15163 14898 14706 14622 14599>, + <15171 14907 14716 14635 14615>, + <15189 14920 14726 14647 14629>, + <15209 14931 14733 14653 14634>, + <15237 14949 14742 14658 14639>, + <15237 14949 14742 14658 14639>, + <15237 14949 14742 14658 14639>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6665 6212 5880 5547 5357 5287>, + <6666 6210 5878 5541 5352 5284>, + <6667 6210 5875 5535 5347 5282>, + <6668 6210 5872 5530 5342 5279>, + <6669 6212 5869 5524 5338 5277>, + <6669 6214 5867 5519 5334 5275>, + <6672 6217 5866 5514 5331 5272>, + <6676 6221 5865 5510 5328 5271>, + <6676 6220 5861 5505 5325 5269>, + <6671 6218 5853 5502 5322 5268>, + <6670 6217 5849 5498 5319 5267>, + <6670 6217 5849 5495 5318 5266>, + <6671 6218 5849 5493 5316 5264>, + <6673 6220 5847 5490 5315 5263>, + <6675 6226 5844 5488 5314 5263>, + <6678 6231 5843 5488 5313 5262>, + <6685 6238 5847 5488 5313 5263>, + <6691 6242 5851 5488 5313 5263>, + <6688 6243 5853 5489 5313 5264>, + <6683 6243 5855 5490 5314 5264>, + <6681 6243 5855 5492 5315 5265>, + <6681 6243 5854 5492 5315 5266>, + <6680 6242 5854 5494 5316 5266>, + <6670 6241 5854 5496 5318 5267>, + <6648 6238 5853 5500 5319 5268>, + <6643 6238 5855 5503 5321 5270>, + <6656 6237 5860 5506 5324 5271>, + <6665 6237 5864 5510 5327 5273>, + <6657 6236 5867 5515 5330 5275>, + <6646 6235 5869 5519 5333 5278>, + <6646 6235 5871 5524 5336 5280>, + <6657 6237 5874 5529 5340 5283>, + <6662 6239 5875 5534 5343 5286>, + <6661 6233 5875 5539 5347 5288>, + <6659 6226 5876 5544 5350 5290>, + <6656 6225 5878 5548 5353 5292>, + <6653 6225 5881 5552 5355 5294>, + <6651 6225 5883 5554 5357 5295>, + <6649 6224 5887 5556 5358 5297>, + <6647 6222 5889 5558 5360 5299>, + <6642 6223 5889 5559 5362 5300>, + <6635 6225 5890 5561 5363 5301>, + <6633 6225 5899 5568 5366 5303>, + <6630 6226 5903 5578 5370 5305>, + <6635 6241 5910 5579 5374 5310>, + <6682 6248 5913 5589 5379 5313>, + <6682 6244 5914 5592 5380 5312>, + <6688 6258 5915 5595 5379 5313>, + <6690 6241 5916 5595 5379 5312>, + <6693 6238 5919 5595 5380 5313>, + <6708 6254 5928 5599 5384 5317>, + <6703 6268 5930 5613 5391 5323>, + <6708 6264 5946 5634 5403 5332>, + <6718 6292 5969 5656 5417 5343>, + <6718 6292 5969 5656 5417 5343>, + <6718 6292 5969 5656 5417 5343>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10087 10266 10852 11261 11188 11138>, + <10052 10287 10847 11249 11163 11143>, + <10042 10317 10841 11233 11125 11132>, + <10053 10350 10837 11212 11085 11111>, + <10077 10378 10832 11190 11052 11083>, + <10109 10396 10828 11165 11037 11054>, + <10152 10410 10823 11133 11034 11009>, + <10213 10421 10820 11104 11032 10966>, + <10327 10421 10823 11090 11016 10951>, + <10519 10421 10828 11080 10980 10946>, + <10598 10444 10832 11078 10959 10946>, + <10539 10596 10837 11093 10957 10956>, + <10473 10761 10845 11108 10964 10962>, + <10528 10792 10879 11106 10992 10950>, + <10701 10796 10957 11102 11047 10932>, + <10738 10796 11025 11110 11094 10936>, + <10220 10818 11097 11169 11133 11022>, + <9713 10852 11141 11242 11176 11116>, + <9684 10908 11142 11318 11245 11161>, + <9680 10995 11140 11385 11334 11200>, + <9677 11059 11146 11387 11390 11280>, + <9674 11114 11173 11342 11432 11448>, + <9672 11143 11203 11317 11452 11540>, + <9671 11123 11230 11336 11389 11391>, + <9670 11065 11260 11366 11285 11185>, + <9669 10962 11291 11388 11261 11165>, + <9668 10695 11323 11412 11276 11201>, + <9667 10488 11347 11437 11285 11239>, + <9666 10429 11365 11472 11313 11281>, + <9665 10388 11377 11504 11361 11325>, + <9664 10285 11376 11533 11406 11355>, + <9664 9941 11370 11567 11480 11379>, + <9663 9740 11361 11585 11523 11413>, + <9663 9711 11349 11594 11547 11492>, + <9662 9694 11332 11598 11564 11553>, + <9662 9687 11306 11593 11560 11520>, + <9661 9682 11270 11579 11541 11436>, + <9661 9678 11235 11561 11514 11396>, + <9661 9674 11203 11534 11461 11373>, + <9660 9671 11165 11513 11416 11350>, + <9660 9668 11116 11504 11412 11304>, + <9660 9666 11046 11490 11416 11265>, + <9659 9664 10578 11436 11390 11342>, + <9659 9662 10706 11422 11357 11296>, + <9659 9661 10625 11393 11319 11214>, + <9658 9660 10448 11304 11266 11043>, + <9658 9659 10347 11291 11220 11007>, + <9658 9658 10254 11296 11245 11058>, + <9658 9658 10200 11282 11271 11119>, + <9658 9657 10160 11282 11293 11095>, + <9657 9657 10141 11250 11192 10938>, + <9656 9656 9937 11147 11126 10882>, + <9656 9656 9686 11046 11041 10805>, + <9653 9655 9668 10946 10902 10690>, + <9653 9655 9668 10946 10902 10690>, + <9653 9655 9668 10946 10902 10690>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13882 13509 13347 13293 13281 13277>, + <13856 13511 13352 13294 13281 13278>, + <13827 13511 13356 13296 13282 13278>, + <13799 13512 13360 13298 13282 13279>, + <13778 13512 13363 13299 13282 13279>, + <13768 13511 13364 13300 13283 13280>, + <13770 13506 13363 13300 13283 13280>, + <13772 13500 13362 13300 13284 13281>, + <13751 13504 13361 13300 13284 13281>, + <13676 13522 13361 13301 13285 13282>, + <13617 13530 13361 13302 13285 13282>, + <13559 13493 13361 13301 13285 13283>, + <13512 13450 13361 13300 13286 13283>, + <13515 13443 13361 13302 13287 13284>, + <13531 13442 13361 13306 13291 13284>, + <13535 13441 13360 13307 13292 13284>, + <13496 13432 13357 13306 13292 13287>, + <13458 13422 13354 13305 13291 13289>, + <13461 13413 13350 13306 13292 13290>, + <13472 13402 13346 13308 13293 13290>, + <13475 13390 13341 13307 13293 13290>, + <13472 13376 13335 13303 13291 13289>, + <13468 13364 13331 13298 13288 13287>, + <13461 13360 13327 13295 13285 13283>, + <13452 13356 13324 13293 13282 13278>, + <13452 13351 13322 13292 13281 13278>, + <13464 13340 13320 13292 13280 13278>, + <13481 13331 13318 13292 13280 13278>, + <13502 13328 13317 13292 13279 13277>, + <13529 13327 13316 13292 13278 13276>, + <13554 13327 13315 13292 13279 13276>, + <13577 13332 13313 13292 13280 13277>, + <13601 13338 13313 13292 13281 13277>, + <13627 13347 13313 13292 13281 13278>, + <13655 13359 13314 13292 13282 13279>, + <13686 13369 13315 13292 13282 13279>, + <13720 13381 13318 13293 13281 13278>, + <13755 13395 13320 13293 13281 13278>, + <13790 13419 13322 13292 13280 13277>, + <13828 13449 13323 13291 13279 13277>, + <13870 13481 13324 13291 13280 13279>, + <13914 13519 13325 13291 13281 13280>, + <13954 13564 13320 13292 13281 13280>, + <13999 13621 13324 13293 13280 13279>, + <14018 13654 13319 13290 13277 13276>, + <14052 13726 13325 13294 13284 13283>, + <14101 13790 13331 13296 13287 13285>, + <14154 13861 13343 13301 13292 13290>, + <14219 13931 13356 13306 13295 13291>, + <14295 14011 13366 13309 13295 13289>, + <14384 14079 13388 13307 13289 13285>, + <14510 14172 13403 13307 13291 13286>, + <14708 14327 13453 13315 13296 13290>, + <15191 14518 13560 13326 13302 13297>, + <15191 14518 13560 13326 13302 13297>, + <15191 14518 13560 13326 13302 13297>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17045 16829 16628 16514 16466 16467>, + <17215 16854 16643 16505 16465 16464>, + <17321 16892 16653 16498 16464 16462>, + <17378 16932 16660 16494 16463 16461>, + <17401 16963 16663 16491 16463 16460>, + <17405 16975 16664 16491 16463 16459>, + <17356 16975 16659 16493 16464 16460>, + <17286 16973 16654 16496 16466 16461>, + <17268 16965 16654 16499 16469 16462>, + <17291 16939 16658 16504 16474 16465>, + <17336 16930 16663 16509 16478 16468>, + <17501 17011 16668 16519 16484 16471>, + <17663 17108 16676 16530 16490 16475>, + <17582 17151 16707 16539 16494 16480>, + <17303 17214 16766 16549 16499 16486>, + <17153 17217 16787 16563 16505 16491>, + <17107 17013 16786 16586 16514 16494>, + <17074 16824 16780 16609 16526 16499>, + <17043 16816 16744 16632 16547 16511>, + <17004 16818 16678 16651 16571 16527>, + <16955 16815 16634 16644 16574 16537>, + <16884 16790 16604 16589 16561 16543>, + <16823 16757 16582 16539 16541 16545>, + <16791 16723 16567 16505 16506 16514>, + <16767 16686 16557 16482 16470 16470>, + <16762 16656 16553 16480 16464 16464>, + <16761 16619 16550 16481 16465 16464>, + <16760 16599 16548 16482 16468 16464>, + <16758 16605 16546 16487 16474 16469>, + <16756 16618 16544 16493 16482 16477>, + <16756 16630 16536 16499 16491 16486>, + <16757 16647 16522 16507 16501 16495>, + <16759 16661 16517 16513 16509 16504>, + <16762 16671 16523 16518 16516 16514>, + <16765 16680 16532 16521 16520 16520>, + <16765 16692 16542 16518 16514 16512>, + <16762 16708 16555 16512 16495 16493>, + <16760 16718 16567 16506 16483 16480>, + <16761 16719 16580 16497 16475 16471>, + <16762 16717 16589 16493 16471 16467>, + <16766 16715 16591 16497 16475 16473>, + <16776 16712 16593 16501 16481 16480>, + <16798 16704 16608 16502 16479 16479>, + <16822 16692 16595 16498 16470 16468>, + <16814 16677 16566 16478 16456 16447>, + <16808 16683 16582 16492 16466 16460>, + <16823 16702 16601 16507 16482 16486>, + <16846 16731 16630 16527 16514 16524>, + <16873 16772 16669 16562 16554 16560>, + <16887 16823 16721 16585 16558 16556>, + <16879 16834 16726 16556 16484 16483>, + <16855 16809 16718 16536 16480 16475>, + <16854 16806 16755 16559 16489 16480>, + <16946 16831 16831 16612 16526 16507>, + <16946 16831 16831 16612 16526 16507>, + <16946 16831 16831 16612 16526 16507>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13537 13041 13942 16492 19962 19872>, + <12632 13403 14990 17715 19718 20076>, + <12277 13824 16013 18441 19392 20087>, + <12343 14235 16884 18795 19003 19973>, + <12702 14567 17476 18902 18569 19799>, + <13235 14751 17661 18872 18107 19626>, + <14566 14795 17462 18092 17567 19192>, + <15935 14834 17134 17035 17015 18592>, + <15684 15418 16828 16581 16557 18040>, + <14180 17131 16452 16290 16138 17339>, + <13386 17843 16221 15893 15717 16774>, + <13727 15905 16094 15089 15189 16379>, + <14531 13767 15962 14493 14826 16014>, + <16734 14721 15720 14528 15002 15543>, + <21108 17983 15399 14652 15490 15062>, + <22432 19601 15544 14691 15606 14987>, + <17644 19327 17832 14598 15089 15408>, + <13002 18814 20082 14542 14648 15740>, + <13366 18705 20924 15719 14756 15690>, + <14738 18583 21486 18084 15134 15595>, + <15204 18575 21521 19969 16087 15998>, + <15046 18631 21171 21777 19359 18352>, + <14747 18760 20805 22533 21537 19818>, + <13968 19942 20485 21616 21291 19789>, + <12797 21973 20230 20405 20744 19719>, + <12408 21831 20143 20165 20127 19570>, + <12313 17705 19904 20237 19134 19173>, + <12286 14535 19871 20225 18219 18622>, + <12407 14056 20750 20078 17377 17444>, + <12636 13768 21727 19994 16740 16394>, + <12818 13487 21583 20156 16826 16339>, + <12981 13176 20824 20548 17455 16434>, + <13090 13103 20476 21024 18194 16635>, + <13155 13277 20126 21695 19082 17553>, + <13203 13456 19829 22392 20001 18667>, + <13257 13514 19924 23097 20788 19501>, + <13402 13617 20117 23721 21496 20211>, + <13469 13696 20167 23626 21593 20320>, + <13322 13881 20120 22371 20352 19957>, + <13101 14091 20037 21056 19168 19621>, + <12979 14161 19777 19920 19080 19814>, + <12886 14196 19233 19235 19200 20301>, + <12645 14030 16891 19098 18966 20705>, + <12508 13695 17455 19234 19257 20673>, + <12984 13445 16131 19033 16627 17695>, + <13068 13342 15585 18194 17500 18457>, + <13292 13341 15134 17620 17914 17313>, + <13374 13596 15203 17573 18295 17328>, + <13599 13679 15120 17779 17991 16698>, + <13923 14028 15394 17994 17720 16415>, + <13876 13969 16187 18886 18479 17007>, + <13468 13564 15220 19380 19969 17670>, + <13058 13446 13811 19982 21375 18479>, + <12417 13265 13683 21736 24001 22751>, + <12417 13265 13683 21736 24001 22751>, + <12417 13265 13683 21736 24001 22751>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6344 5658 5292 5087 5039 5028>, + <6330 5661 5294 5086 5038 5028>, + <6316 5662 5294 5085 5038 5028>, + <6301 5663 5292 5084 5037 5028>, + <6285 5663 5289 5083 5037 5028>, + <6268 5663 5285 5083 5037 5028>, + <6252 5655 5278 5082 5038 5028>, + <6234 5644 5271 5082 5038 5029>, + <6205 5641 5267 5082 5039 5030>, + <6160 5640 5264 5084 5041 5031>, + <6142 5639 5262 5085 5042 5032>, + <6151 5633 5260 5087 5044 5033>, + <6162 5628 5260 5089 5046 5035>, + <6149 5634 5266 5092 5048 5036>, + <6099 5652 5279 5097 5052 5038>, + <6050 5655 5283 5102 5055 5040>, + <5991 5599 5281 5108 5057 5042>, + <5950 5542 5277 5113 5060 5045>, + <5948 5535 5264 5120 5066 5050>, + <5948 5532 5242 5127 5073 5055>, + <5946 5527 5226 5124 5074 5057>, + <5931 5515 5213 5106 5068 5057>, + <5918 5504 5204 5088 5060 5056>, + <5915 5500 5198 5077 5048 5045>, + <5913 5497 5195 5069 5036 5029>, + <5914 5492 5194 5068 5034 5026>, + <5931 5483 5194 5069 5034 5026>, + <5951 5479 5194 5070 5034 5027>, + <5971 5489 5196 5072 5036 5028>, + <5992 5510 5198 5074 5038 5030>, + <6013 5529 5198 5077 5041 5032>, + <6035 5551 5198 5080 5045 5035>, + <6057 5573 5198 5083 5048 5039>, + <6080 5597 5204 5086 5051 5042>, + <6103 5623 5214 5087 5053 5045>, + <6128 5650 5224 5087 5051 5043>, + <6154 5680 5236 5087 5046 5037>, + <6181 5712 5248 5086 5042 5033>, + <6210 5746 5262 5084 5040 5031>, + <6239 5782 5276 5083 5038 5030>, + <6272 5821 5290 5084 5040 5032>, + <6307 5863 5305 5087 5043 5035>, + <6347 5908 5320 5089 5043 5035>, + <6392 5961 5341 5090 5040 5031>, + <6412 5993 5333 5084 5034 5024>, + <6445 6057 5372 5093 5043 5034>, + <6490 6113 5398 5100 5050 5042>, + <6539 6180 5435 5110 5062 5057>, + <6598 6249 5475 5125 5076 5068>, + <6663 6326 5522 5134 5077 5066>, + <6734 6389 5559 5126 5052 5043>, + <6837 6463 5596 5123 5053 5042>, + <7006 6589 5691 5142 5061 5047>, + <7456 6757 5844 5173 5079 5063>, + <7456 6757 5844 5173 5079 5063>, + <7456 6757 5844 5173 5079 5063>; + }; + +}; From 245482e4331ae25dd3fbc93b0d246f8ac5592f34 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Wed, 23 Dec 2020 17:56:27 +0800 Subject: [PATCH 0125/1247] arm64/dts:modify fps dts config for Ibiza FPS: 1. Change INT pin as pull disable to match HW. 2. modify reset &INT pin to match HW Change-Id: I87915cd7f93c720826bcb2bba0cbcd9c58dc598e Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1835477 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Weilong Wu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-fps-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/ibiza-fps-overlay.dtsi b/qcom/ibiza-fps-overlay.dtsi index da55900ab2c4..2f6aa418a796 100644 --- a/qcom/ibiza-fps-overlay.dtsi +++ b/qcom/ibiza-fps-overlay.dtsi @@ -11,7 +11,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; chipone_int_suspend: chipone_int_suspend { @@ -25,7 +25,7 @@ pins = "gpio17"; drive-strength = <2>; /* 2 MA */ input-enable; - bias-pull-up; + bias-disable; }; }; }; @@ -60,14 +60,14 @@ fps_int_active: fps_int_active { /* active state */ mux { - pins = "gpio18"; + pins = "gpio17"; function = "gpio"; }; config { - pins = "gpio18"; + pins = "gpio17"; drive-strength = <2>; /* 2 MA */ - bias-pull-down; + bias-disable; input-enable; }; }; @@ -82,7 +82,7 @@ config { pins = "gpio17"; drive-strength = <2>; /* 2 MA */ - bias-pull-down; + bias-disable; input-enable; }; }; @@ -102,8 +102,8 @@ reg = <0>; interrupt-parent = <&tlmm>; interrupts = <17 0x0>; - fp-gpio-int = <&tlmm 17 0x2>; - fp-gpio-reset = <&tlmm 18 0x2>; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&chipone_int_active>; pinctrl-1 = <&chipone_int_suspend>; From 68c3400e76f0685c8aff6c61213e4884384708ae Mon Sep 17 00:00:00 2001 From: Yiwen Liu Date: Wed, 23 Dec 2020 11:18:28 +0800 Subject: [PATCH 0126/1247] arm64/dt: ibiza: remove tps61280 boost holi-ibiza-common-overlay: Remove tps61280 node since it never been used on ibiza Change-Id: I5a10afa671f5e8309c31e9058dcf8704d084382a Signed-off-by: Yiwen Liu Reviewed-on: https://gerrit.mot.com/1835151 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Chuanchun Zhu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 26 -------------------------- 1 file changed, 26 deletions(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index 304ae50b3e22..a9030496c91e 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -19,17 +19,6 @@ #include "moto_therm_sys_temp.dtsi" &tlmm { - tps61280_en_default: tps61280_en_default { - mux { - pins = "gpio102"; - }; - config { - pins = "gpio102"; - drive_strength = <16>; - output-high; - }; - }; - google_key_default: google_key_default { mux { pins = "gpio11"; @@ -153,21 +142,6 @@ }; }; - -&qupv3_se10_i2c { - status = "ok"; - tps61280@75 { - compatible = "ti,tps61280"; - reg = <0x75>; - ti,config = <0x0D>; - ti,vout-floor = <0x13>; - ti,vout-roof = <0x17>; - ti,ilim = <0x0F>; - pinctrl-names = "default"; - pinctrl-0 = <&tps61280_en_default>; - }; -}; - &sdhc_2 { status = "ok"; cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; From d4d2958181bdf4d030ad9b1fc3601836bceecde4 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 24 Dec 2020 21:51:58 +0800 Subject: [PATCH 0127/1247] arm/dts: Config qg iterm for ibiza product arm/dts Ibiza product use 5000mAh battehr, config qg iterm to about 0.1C Change-Id: Id0655195c0c91974b53997bc8993fc53ad6fc803 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1836529 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index a9030496c91e..b4861e681f61 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -269,6 +269,11 @@ qcom,iterm-ma = <150>; }; + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; From 2b6394e995afe2db0c508326a8b0836d0f1a712a Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 24 Dec 2020 20:24:03 +0800 Subject: [PATCH 0128/1247] arm/dts: Config thermal zone polling time arm/dts: Config thermal zone polling time for ibiza product Change-Id: If3962b3d162b11dfe59d590b55a0fb3444aba7a2 Reviewed-on: https://gerrit.mot.com/1836526 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-ibiza-common-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index b4861e681f61..b8c537f34c58 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -317,8 +317,8 @@ }; }; msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -359,8 +359,8 @@ }; }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; @@ -373,8 +373,8 @@ }; }; chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -401,8 +401,8 @@ }; }; xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; wake-capable-sensor; From 9fa895d24191b1add426429ff0710a5d72e2c1e5 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 28 Dec 2020 11:21:46 +0800 Subject: [PATCH 0129/1247] arm/dts: config NFC GPIO7 and GPIO9 to output-low config NFC GPIO7 and GPIO9 to output-low for denver. Because denver don't support NFC, GPIO7 have a mode change when system resume. It will load to system hung. Change-Id: I7e8526a6d790ca586d11efeeed082a9f627245be Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1837450 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 32 ++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 3d7394873f4e..04edf25b7210 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -63,6 +63,34 @@ bias-pull-down; }; }; + + nfc_clk_active: nfc_clk_active { + /* active state */ + mux { + pins = "gpio7", "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio7", "gpio9"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + nfc_clk_suspend: nfc_clk_suspend { + /* sleep state */ + mux { + pins = "gpio7", "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio7", "gpio9"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; }; &qupv3_se10_i2c { @@ -267,6 +295,10 @@ }; &sx937x { + /*MMI_STOPSHIP:PMIC:unit shutdown issue*/ + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default &nfc_clk_active>; + pinctrl-1 = <&sar_int_sleep &nfc_clk_suspend>; /*use PH4/5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; From 711ec3d771de2207a3eea7c2f330c087790692f9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 18 Dec 2020 15:15:27 +0800 Subject: [PATCH 0130/1247] dts/panel: send command to notify panel when switch FPS Some panel need send command to DDIC. That TP can get the current refresh rate. Change-Id: Id7888214dbfff58ffd133831ec71fec9ff21073a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1831552 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Shanshan Dai Reviewed-by: Hua Tan Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index d944e0925838..3bb154e70d1e 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -183,6 +183,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90>; + qcom,mdss-dsi-pan-dpfs-send-command; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; @@ -199,6 +200,11 @@ 07 07 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; + + qcom,mdss-dsi-dfps-60-command = [15 01 00 00 00 00 02 26 01]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dfps-90-command = [15 01 00 00 00 00 02 26 02]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; }; }; }; From 423047918b7a94090e295815e1e57a2d1d863c7e Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 28 Dec 2020 15:29:38 +0800 Subject: [PATCH 0131/1247] arm/dts: config upper limit capacity 65% as factory requirement, config upper limit capacity to 65% Change-Id: Ib40a2929a70d6f38f27c8d38c1c9aecf88ee7f56 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1837575 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Lu Chai Reviewed-by: Shicheng Gong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 0ac5a75aee6f..296ae46cce0b 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -446,7 +446,7 @@ "charge_full", "charge_full_design"; qcom,enable-charging-limit; - qcom,upper-limit-capacity = <75>; + qcom,upper-limit-capacity = <65>; qcom,lower-limit-capacity = <60>; qcom,mmi-temp-zones = <0 4200 970 0>, <10 4200 2500 970>, From 1745f03bc8bdeb6f5194a98a97665c5a69610421 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Mon, 28 Dec 2020 10:02:31 +0800 Subject: [PATCH 0132/1247] arm/dts: Config thermal zone polling time arm/dts: Config thermal zone polling time for denver product Change-Id: I2a5c4e16471a3bc215addd7ab6076e71b06df0da Reviewed-on: https://gerrit.mot.com/1837403 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 04edf25b7210..f7eeef0a0b28 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -201,8 +201,8 @@ }; }; msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -257,8 +257,8 @@ }; }; chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; From b45b0c9ecf6bfe13c9b31aaf3eb26dce9e82edce Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 28 Dec 2020 17:36:15 +0800 Subject: [PATCH 0133/1247] arm/dt: ibiza: close feature: disable cabc when bl low arm/dt: Close feature: disable cabc when brightness low. Otherwise cause backlight flicker when screen on. Change-Id: Ieed101d079c47de643a4c7e10978ce7065d65fe4 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1837700 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 3bb154e70d1e..5e3d73dba949 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -27,11 +27,6 @@ qcom,ovp = <29500>; qcom,boost-current-limit = <875>; - - mmi,low-bl-force-cabc-disable; - mmi,low-bl-threshold = <200>; - mmi,low-bl-remap-percent = <80>; - mmi,low-bl-delay-ms = <50>; }; &sde_dsi { From de31a267f7095d2776a02dfe344ffe3c41b12d4c Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 30 Dec 2020 16:17:30 +0800 Subject: [PATCH 0134/1247] ibiza/sensor: update sarsensor params 1.update params ibiza sar sensor 2.holi-moto-common-overlay.dtsi Change-Id: I4e37a8457f23b8b206746ad8c330a4f4306b5598 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1839354 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 50 +++++++++++++++--------------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 296ae46cce0b..4c49a461022c 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -255,14 +255,14 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x886 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x886 /*AFE_PARAM_PH5*/ - 0x8070 0x886 /*AFE_PARAM_PH6*/ - /*0x807C 0x886 */ /*AFE_PARAM_PH7*/ + 0x8028 0x86E /*AFE_PARAM_PH0*/ + 0x8034 0x86E /*AFE_PARAM_PH1*/ + 0x8040 0x86E /*AFE_PARAM_PH2*/ + 0x804C 0x86E /*AFE_PARAM_PH3*/ + 0x8058 0x86E /*AFE_PARAM_PH4*/ + 0x8064 0x86E /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + /*0x807C 0x86E */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ @@ -275,10 +275,10 @@ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00008643 /*prox threshold ph0*/ - 0x80B8 0x0000783C /*prox threshold ph1*/ - 0x80D8 0x00004D4D /*prox threshold ph2*/ - 0x80F8 0x00005959 /*prox threshold ph3*/ + 0x8098 0x0000924A /*prox threshold ph0*/ + 0x80B8 0x00008038 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003F3F /*prox threshold ph3*/ 0x8118 0x00000000 /*prox threshold ph4*/ 0x8138 0x00000000 /*prox threshold ph5*/ 0x8158 0x00000000 /*prox threshold ph6*/ @@ -294,14 +294,14 @@ 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - 0x8090 0x28A87000 - 0x80B0 0x28A87000 - 0x80D0 0x28A87000 - 0x80F0 0x28A87000 - 0x8110 0x28A87000 - 0x8130 0x28A87000 - 0x8150 0x28A87000 - 0x8170 0x28A87000 + 0x8090 0x50D47000 + 0x80B0 0x46DA7000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 /*PH0123 raw filter 1/4*/ 0x8088 0x200000 @@ -315,14 +315,14 @@ 0x8148 0x600000 /*Set Reference Phase*/ - 0x8188 0x4 /*Reference Correction Setup B ENG1*/ - 0x818C 0x5 /*Reference Correction Setup B ENG2*/ - 0x8190 0x6 /*Reference Correction Setup B ENG3*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ 0x8194 0x0 /*Reference Correction Setup B ENG4*/ /*Set Reference Correction*/ - 0x80A0 0x1E1E0001 /*Reference Correction Setup A PH0*/ - 0x80C0 0x1C1C001A /*Reference Correction Setup A PH1*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ 0x80E0 0x0 /*Reference Correction Setup A PH2*/ 0x8100 0x0 /*Reference Correction Setup A PH3*/ 0x8120 0x0 /*Reference Correction Setup A PH4*/ From 8d98d292bdd9a942a6d81a63858dda530a5644dc Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Mon, 28 Dec 2020 17:42:22 +0800 Subject: [PATCH 0135/1247] arm64/dts: remove TI boost For RF is not need TI boost any more, we need remove its config in DTS. Change-Id: I178b96698e7c2beca149e460830d24807d8400d4 Reviewed-on: https://gerrit.mot.com/1837703 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 27 --------------------------- 1 file changed, 27 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index f7eeef0a0b28..fc16d25967b8 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -19,33 +19,6 @@ #include "denver-fps-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" -&tlmm { - tps61280_en_default: tps61280_en_default { - mux { - pins = "gpio102"; - }; - config { - pins = "gpio102"; - drive_strength = <16>; - output-high; - }; - }; -}; - -&qupv3_se10_i2c { - status = "ok"; - tps61280@75 { - compatible = "ti,tps61280"; - reg = <0x75>; - ti,config = <0x0D>; - ti,vout-floor = <0x13>; - ti,vout-roof = <0x17>; - ti,ilim = <0x0F>; - pinctrl-names = "default"; - pinctrl-0 = <&tps61280_en_default>; - }; -}; - &sdhc_2 { status = "ok"; cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; From 974241f940aef2b2bda8c14b50dc96dddc829aa9 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 31 Dec 2020 19:06:28 +0800 Subject: [PATCH 0136/1247] arm/dts: Config charge type iio channel for holi arm/dts Config charge type iio channel for holi Change-Id: Id25a3dfa39e335c05721adfcdfe1885572cf6d19 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1840756 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 4c49a461022c..047f17336cd0 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -567,6 +567,9 @@ &usb0 { extcon = <&pm7250b_pdphy>, <&eud>; + #io-channel-cells = <1>; + io-channels= <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; + io-channel-names = "chg_type"; }; &ufshc_mem { From 05a44f156086c52bd1b8ef9f2ee4b9863909cdd5 Mon Sep 17 00:00:00 2001 From: liaohs Date: Mon, 4 Jan 2021 15:55:19 +0800 Subject: [PATCH 0137/1247] dts : remove MMI_STOPSHIP comment HW team confirm Denver should config NFC gpio7 to output-low . it is a NFC clk req input gpio, and it connect to MGPI . NFC request clk will cause a PMIC SPMI operation,But Denver no NFC, this gpio is in float status w/o NFC , So HW team worry it will cause some stability unknown issues . Change-Id: I92185a9ea125156ff0f3fd918b43ccd71d5f5e47 Reviewed-on: https://gerrit.mot.com/1841853 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index fc16d25967b8..3bf5c6d24a41 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -268,7 +268,6 @@ }; &sx937x { - /*MMI_STOPSHIP:PMIC:unit shutdown issue*/ pinctrl-names = "default","sleep"; pinctrl-0 = <&sar_int_default &nfc_clk_active>; pinctrl-1 = <&sar_int_sleep &nfc_clk_suspend>; From 8e0292248093f60cfef42437ba8fe58dba5ce0fd Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 31 Dec 2020 14:57:03 +0800 Subject: [PATCH 0138/1247] arm/dt: cmds including delay need to be sent separately arm/dt: Cmds including delay need to be sent separately. Otherwise delay has no effect. Change-Id: Ic5d1593f6f7a3a30726acd88321392bc6479b9f8 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1840224 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi index 8f67d850805c..e89bb8cb3855 100644 --- a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -81,11 +81,11 @@ 39 01 00 00 00 00 03 F0 A5 A6 05 01 00 00 5A 00 01 11 05 01 00 00 32 00 01 29 - 15 00 00 00 00 00 02 26 02 + 15 01 00 00 00 00 02 26 02 ]; qcom,mdss-dsi-off-command = [ - 15 00 00 00 00 00 02 26 08 - 05 00 00 00 0A 00 01 28 + 15 01 00 00 00 00 02 26 08 + 05 01 00 00 0A 00 01 28 05 01 00 00 78 00 01 10 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; From cc10abb277ea4bd4eec84b3ab0b9586247498c1c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 31 Dec 2020 15:06:03 +0800 Subject: [PATCH 0139/1247] arm/dt: add panel-supplier for ibiza panels arm/dt: Add panel-supplier info for ibiza panels. Change-Id: Iab214f21a6a17c92777ba65c23038a7f605c3740 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1840225 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 5e3d73dba949..73fa61156096 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -119,6 +119,7 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; qcom,platform-reset-gpio-always-on; + qcom,mdss-dsi-panel-supplier = "djn"; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <16>; @@ -162,6 +163,8 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_tm_panel>; + qcom,mdss-dsi-panel-supplier = "tianma"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-bl-min-level = <16>; qcom,mdss-dsi-bl-max-level = <4095>; From 60d48e58fbab1a7962cd992344665a0e26797773 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 7 Jan 2021 17:45:44 +0800 Subject: [PATCH 0140/1247] arch/dts: add second support battery parameter add second support battery parameter for denver Change-Id: Id59f0f4c7f0d4ad88a3ad0ae64c50f3ebeda153c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1845683 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 7 + qcom/qg-batterydata-md50-scud-5000mah.dtsi | 1018 ++++++++++++++++++++ 2 files changed, 1025 insertions(+) create mode 100644 qcom/qg-batterydata-md50-scud-5000mah.dtsi diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 3bf5c6d24a41..fb35f1a7c3b2 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -127,6 +127,13 @@ }; }; +&mot_batterydata { + df-serialnum = "SB18D00294"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-md50-amperex-5000mah.dtsi" + #include "qg-batterydata-md50-scud-5000mah.dtsi" +}; + &pm7250b_charger { qcom,dcp-curr-max = <2000000>; }; diff --git a/qcom/qg-batterydata-md50-scud-5000mah.dtsi b/qcom/qg-batterydata-md50-scud-5000mah.dtsi new file mode 100644 index 000000000000..41d08ca206e1 --- /dev/null +++ b/qcom/qg-batterydata-md50-scud-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,md50-scud-5000mah { + /* 5012248_Lenovo_Denver_5000mAH_PM7250B_averaged_MasterSlave_Jan4th2021 */ + serialnum = "SB18D01192"; + qcom,sdam-magic-number = <0x18D01192>; + qcom,max-voltage-uv = <4450000>; + qcom,fg-cc-cv-threshold-uv = <4440000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "MD50-SCUD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4706 4870 5061 5119 5136>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <5021 5025 5038 5085 5048 5048>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43697 43986 44200 44244 44262>, + <43475 43754 44029 44056 44069>, + <43251 43531 43824 43871 43877>, + <43024 43314 43608 43687 43687>, + <42795 43092 43389 43484 43487>, + <42567 42859 43163 43255 43272>, + <42337 42625 42931 43019 43047>, + <42111 42392 42691 42781 42815>, + <41890 42161 42449 42540 42576>, + <41676 41934 42208 42301 42337>, + <41465 41710 41970 42067 42099>, + <41258 41491 41737 41832 41862>, + <41055 41279 41510 41595 41627>, + <40852 41077 41290 41361 41394>, + <40640 40876 41081 41138 41168>, + <40432 40667 40877 40923 40948>, + <40241 40457 40667 40716 40736>, + <40064 40263 40451 40516 40535>, + <39896 40083 40248 40322 40341>, + <39738 39907 40076 40135 40152>, + <39587 39732 39903 39954 39970>, + <39435 39559 39669 39737 39762>, + <39279 39366 39367 39440 39483>, + <39123 39112 39128 39170 39216>, + <38975 38879 38970 39010 39047>, + <38829 38756 38845 38890 38920>, + <38707 38675 38741 38780 38803>, + <38620 38607 38655 38678 38696>, + <38550 38542 38573 38585 38596>, + <38491 38483 38492 38494 38501>, + <38442 38428 38418 38409 38412>, + <38399 38376 38350 38331 38327>, + <38359 38327 38288 38259 38246>, + <38324 38283 38228 38189 38168>, + <38289 38243 38171 38118 38093>, + <38254 38202 38117 38050 38020>, + <38218 38162 38068 37988 37951>, + <38173 38116 38023 37933 37887>, + <38112 38046 37961 37865 37811>, + <38036 37951 37866 37770 37709>, + <37941 37844 37754 37658 37593>, + <37816 37716 37635 37540 37470>, + <37669 37572 37500 37408 37336>, + <37497 37400 37334 37248 37177>, + <37339 37261 37183 37103 37037>, + <37242 37183 37094 37013 36955>, + <37204 37160 37069 36993 36930>, + <37174 37130 37054 36976 36915>, + <37145 37101 37034 36961 36897>, + <37087 37055 36996 36918 36846>, + <36887 36857 36794 36692 36604>, + <36428 36405 36361 36257 36167>, + <35841 35818 35781 35678 35589>, + <35046 35020 34990 34888 34805>, + <33784 33769 33762 33667 33582>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44165 44145 44110 44160 44100 44070>, + <43787 43844 43855 43940 43872 43849>, + <43441 43561 43606 43721 43647 43629>, + <43133 43297 43366 43504 43427 43413>, + <42857 43055 43135 43290 43212 43199>, + <42595 42810 42899 43070 42992 42980>, + <42339 42544 42652 42835 42760 42750>, + <42090 42276 42401 42594 42522 42514>, + <41833 42033 42154 42354 42286 42279>, + <41562 41811 41910 42112 42047 42041>, + <41347 41583 41670 41875 41812 41807>, + <41221 41331 41428 41641 41579 41575>, + <41110 41081 41193 41412 41351 41347>, + <40918 40878 40976 41186 41128 41123>, + <40610 40711 40773 40963 40910 40904>, + <40288 40529 40574 40748 40698 40693>, + <39974 40301 40378 40540 40492 40489>, + <39670 40051 40179 40337 40291 40291>, + <39412 39804 39961 40141 40102 40103>, + <39187 39555 39724 39949 39923 39923>, + <38981 39311 39489 39732 39721 39720>, + <38773 39071 39251 39473 39463 39467>, + <38592 38840 39026 39226 39208 39216>, + <38470 38622 38842 39029 39016 39025>, + <38380 38407 38682 38856 38855 38864>, + <38303 38263 38536 38709 38716 38723>, + <38235 38184 38402 38584 38593 38599>, + <38172 38125 38279 38473 38485 38488>, + <38109 38068 38157 38370 38384 38386>, + <38046 38017 38041 38274 38290 38290>, + <37986 37969 37961 38185 38204 38202>, + <37928 37924 37912 38101 38126 38121>, + <37871 37880 37872 38024 38051 38043>, + <37811 37833 37825 37955 37974 37965>, + <37750 37785 37779 37889 37897 37886>, + <37687 37733 37730 37819 37811 37793>, + <37621 37677 37680 37745 37713 37674>, + <37551 37616 37624 37667 37613 37555>, + <37471 37542 37551 37583 37519 37456>, + <37381 37455 37463 37494 37428 37364>, + <37287 37356 37361 37401 37331 37266>, + <37187 37241 37240 37298 37229 37164>, + <37087 37112 37108 37165 37104 37039>, + <36994 36967 36970 37018 36957 36892>, + <36915 36843 36848 36902 36856 36800>, + <36833 36765 36749 36859 36827 36774>, + <36787 36734 36706 36846 36818 36763>, + <36737 36705 36660 36830 36803 36747>, + <36669 36661 36602 36799 36776 36713>, + <36555 36578 36506 36717 36683 36583>, + <36319 36350 36276 36436 36346 36200>, + <35898 35887 35827 35931 35833 35670>, + <35268 35226 35186 35266 35161 34970>, + <34356 34290 34281 34338 34209 33967>, + <32823 32751 32749 32980 32675 32489>, + <28965 28440 27863 27737 28090 28589>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12829 12188 11620 11327 11230>, + <12844 12196 11627 11344 11248>, + <12852 12203 11637 11344 11248>, + <12852 12212 11645 11342 11248>, + <12851 12216 11639 11339 11247>, + <12847 12215 11625 11333 11244>, + <12827 12212 11616 11327 11240>, + <12803 12206 11610 11322 11237>, + <12794 12194 11604 11318 11235>, + <12796 12180 11593 11314 11235>, + <12796 12157 11581 11312 11236>, + <12779 12134 11577 11310 11237>, + <12745 12128 11575 11308 11236>, + <12723 12128 11573 11307 11236>, + <12713 12128 11570 11307 11235>, + <12706 12122 11566 11307 11234>, + <12701 12111 11563 11307 11234>, + <12689 12102 11560 11305 11234>, + <12679 12092 11559 11304 11235>, + <12675 12086 11560 11305 11235>, + <12672 12090 11562 11305 11236>, + <12666 12101 11563 11306 11237>, + <12654 12105 11564 11305 11236>, + <12639 12099 11564 11305 11236>, + <12631 12092 11567 11306 11236>, + <12623 12092 11570 11308 11236>, + <12616 12094 11570 11309 11237>, + <12610 12096 11571 11311 11239>, + <12604 12099 11572 11313 11242>, + <12601 12103 11576 11317 11245>, + <12599 12104 11581 11321 11248>, + <12597 12105 11585 11326 11252>, + <12598 12106 11589 11330 11256>, + <12603 12108 11593 11334 11260>, + <12608 12109 11598 11340 11264>, + <12616 12113 11604 11346 11269>, + <12632 12123 11607 11350 11272>, + <12639 12134 11610 11353 11275>, + <12651 12143 11616 11356 11278>, + <12668 12153 11627 11359 11281>, + <12685 12162 11637 11362 11284>, + <12715 12170 11643 11366 11286>, + <12745 12184 11647 11371 11288>, + <12771 12216 11648 11376 11290>, + <12725 12210 11654 11381 11294>, + <12736 12203 11663 11386 11297>, + <12719 12199 11662 11388 11297>, + <12716 12213 11664 11386 11298>, + <12734 12198 11652 11390 11301>, + <12727 12214 11669 11392 11304>, + <12754 12225 11669 11398 11308>, + <12777 12240 11685 11404 11313>, + <12760 12232 11692 11414 11322>, + <12800 12271 11710 11427 11335>, + <12800 12271 11710 11427 11335>, + <12800 12271 11710 11427 11335>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10207 13019 12184 10529 10396>, + <10187 10667 13860 10635 10385>, + <10166 10426 12145 11080 10591>, + <10143 10400 10677 11779 10582>, + <10118 10375 10577 11902 10568>, + <10098 10340 10538 11158 10525>, + <10080 10308 10504 10529 10469>, + <10066 10286 10471 10460 10430>, + <10062 10270 10444 10425 10396>, + <10061 10258 10418 10503 10361>, + <10061 10249 10398 10976 10314>, + <10062 10243 10395 11274 10286>, + <10064 10243 10400 10942 10305>, + <10065 10252 10411 10472 10344>, + <10059 10262 10656 10506 10364>, + <10050 10272 11016 10880 10378>, + <10051 10284 11011 11069 10383>, + <10065 10301 10704 11337 10338>, + <10083 10332 10528 11639 10278>, + <10101 10361 10540 11433 10293>, + <10121 10378 10564 10805 10399>, + <10141 10392 10600 10579 10511>, + <10160 10398 10659 10674 10651>, + <10180 10400 10684 10761 10758>, + <10199 10401 10643 10693 10674>, + <10219 10401 10595 10539 10438>, + <10239 10401 10593 10501 10360>, + <10259 10401 10605 10530 10394>, + <10280 10407 10615 10560 10428>, + <10297 10417 10630 10599 10436>, + <10309 10428 10643 10649 10442>, + <10320 10441 10642 10658 10469>, + <10334 10454 10639 10658 10568>, + <10348 10464 10638 10658 10631>, + <10363 10473 10649 10658 10619>, + <10380 10484 10665 10660 10601>, + <10398 10494 10678 10679 10604>, + <10407 10507 10692 10735 10637>, + <10368 10525 10714 10787 10680>, + <10310 10549 10755 10835 10755>, + <10248 10572 10792 10867 10822>, + <10112 10592 10805 10867 10833>, + <10026 10623 10815 10863 10829>, + <9965 10688 10838 10866 10817>, + <9722 11016 10982 10900 10763>, + <9516 10899 11105 10940 10682>, + <9514 10691 11085 10786 10650>, + <9515 10650 11063 10764 10653>, + <9517 10661 11055 10803 10696>, + <9536 10595 11122 10948 10852>, + <9556 10635 11231 10880 10707>, + <9436 10499 11215 10715 10423>, + <9384 10361 11129 10585 10333>, + <9344 10237 11079 10469 10292>, + <9344 10237 11079 10469 10292>, + <9344 10237 11079 10469 10292>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19714 19381 19358 19365 19337>, + <19773 19583 19357 19401 19363>, + <19811 19626 19428 19417 19396>, + <19822 19643 19484 19424 19404>, + <19828 19649 19494 19431 19409>, + <19833 19651 19500 19440 19416>, + <19840 19651 19501 19446 19421>, + <19846 19649 19500 19446 19421>, + <19845 19644 19498 19446 19421>, + <19830 19640 19496 19449 19420>, + <19813 19638 19493 19468 19415>, + <19806 19634 19486 19479 19409>, + <19799 19630 19471 19456 19405>, + <19798 19624 19463 19421 19400>, + <19813 19618 19476 19413 19396>, + <19833 19616 19497 19417 19392>, + <19837 19613 19494 19420 19388>, + <19834 19611 19462 19422 19377>, + <19831 19605 19442 19422 19367>, + <19831 19602 19438 19411 19366>, + <19830 19603 19437 19391 19366>, + <19830 19608 19442 19385 19367>, + <19834 19614 19464 19396 19375>, + <19839 19625 19475 19407 19382>, + <19839 19634 19467 19400 19376>, + <19836 19633 19455 19384 19360>, + <19830 19624 19447 19375 19351>, + <19820 19616 19440 19371 19347>, + <19805 19608 19438 19369 19345>, + <19791 19600 19440 19369 19346>, + <19779 19596 19442 19371 19349>, + <19767 19595 19444 19375 19354>, + <19756 19593 19446 19381 19370>, + <19745 19590 19448 19386 19379>, + <19735 19586 19449 19389 19377>, + <19726 19583 19450 19392 19373>, + <19717 19580 19447 19391 19369>, + <19701 19577 19441 19384 19364>, + <19623 19573 19437 19380 19360>, + <19538 19566 19435 19378 19357>, + <19490 19559 19434 19376 19356>, + <19388 19552 19429 19374 19357>, + <19357 19543 19423 19371 19362>, + <19347 19527 19418 19369 19362>, + <19314 19468 19404 19364 19360>, + <19285 19377 19384 19355 19341>, + <19284 19311 19384 19345 19338>, + <19284 19304 19379 19343 19330>, + <19282 19299 19377 19336 19326>, + <19276 19296 19372 19326 19319>, + <19274 19301 19364 19336 19337>, + <19287 19301 19365 19367 19361>, + <19291 19301 19366 19367 19363>, + <19296 19301 19336 19362 19351>, + <19296 19301 19336 19362 19351>, + <19296 19301 19336 19362 19351>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15763 15397 15010 14899 14871>, + <15624 15348 15124 14943 14864>, + <15501 15271 15070 14940 14898>, + <15395 15166 15003 14873 14867>, + <15301 15079 14952 14835 14838>, + <15220 15015 14905 14820 14814>, + <15147 14962 14866 14806 14792>, + <15086 14920 14833 14788 14773>, + <15047 14887 14805 14767 14756>, + <15020 14859 14780 14735 14741>, + <14998 14835 14759 14680 14729>, + <14974 14814 14745 14650 14717>, + <14952 14796 14737 14668 14707>, + <14929 14779 14727 14693 14697>, + <14899 14764 14688 14690 14690>, + <14871 14753 14641 14666 14683>, + <14853 14744 14642 14652 14680>, + <14841 14736 14678 14639 14679>, + <14829 14729 14698 14624 14679>, + <14813 14724 14694 14630 14677>, + <14797 14722 14689 14650 14672>, + <14786 14722 14700 14678 14671>, + <14779 14723 14744 14728 14712>, + <14775 14761 14777 14771 14764>, + <14776 14804 14795 14788 14784>, + <14785 14808 14806 14799 14798>, + <14792 14801 14804 14800 14800>, + <14790 14793 14795 14792 14793>, + <14784 14784 14784 14782 14782>, + <14777 14774 14769 14768 14769>, + <14770 14763 14753 14752 14753>, + <14763 14750 14737 14734 14732>, + <14756 14738 14721 14713 14701>, + <14748 14729 14710 14696 14681>, + <14741 14720 14700 14685 14677>, + <14733 14714 14694 14678 14675>, + <14725 14707 14693 14677 14674>, + <14725 14704 14693 14678 14675>, + <14797 14705 14693 14679 14676>, + <14877 14706 14700 14688 14686>, + <14918 14707 14706 14697 14697>, + <15018 14702 14704 14698 14694>, + <15031 14697 14701 14696 14686>, + <15000 14692 14698 14696 14686>, + <14914 14680 14683 14688 14682>, + <14925 14740 14663 14665 14669>, + <14922 14806 14656 14666 14666>, + <14917 14810 14647 14655 14658>, + <14914 14810 14638 14645 14641>, + <14912 14811 14640 14646 14639>, + <14910 14807 14661 14662 14652>, + <14919 14818 14674 14647 14646>, + <14926 14822 14675 14651 14649>, + <14939 14829 14712 14661 14664>, + <14939 14829 14712 14661 14664>, + <14939 14829 14712 14661 14664>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13796 12013 13654 15514 14108>, + <14482 15376 13089 17210 16215>, + <15001 16499 15171 17301 17998>, + <15297 17055 17070 17262 18462>, + <15494 17504 17650 17379 18850>, + <15744 17966 18014 18612 19420>, + <16255 18361 18438 19944 20012>, + <16758 18680 18915 20493 20512>, + <16832 19056 19457 20949 20957>, + <16658 19458 20300 23276 21171>, + <16512 19985 21154 32246 21167>, + <16537 20642 21280 37725 21308>, + <16659 21255 21077 32499 22043>, + <16872 21818 20956 24892 23220>, + <18037 22507 30023 26046 24316>, + <19763 23554 43712 35857 25512>, + <20954 24947 43534 40727 26078>, + <21761 26424 31786 44638 25072>, + <22717 27891 25038 48166 23662>, + <24227 29771 25476 43256 24111>, + <26411 32914 26612 33557 27059>, + <29390 37728 33090 30766 30435>, + <34956 43200 52809 39925 35306>, + <41436 51205 62296 48302 39155>, + <46239 57714 51612 42768 35733>, + <50714 56062 36901 29574 25597>, + <53118 47110 30609 23532 20540>, + <52141 39969 26571 21127 18851>, + <49519 36356 25164 20027 18018>, + <47004 33940 25054 19862 17838>, + <44484 33738 25188 19823 17778>, + <42292 34753 25938 20164 18456>, + <41029 36114 27943 21926 22683>, + <39611 37611 30643 24417 26708>, + <38809 39430 35833 29422 29117>, + <38621 41416 39856 34360 30817>, + <38264 44028 39743 34833 30946>, + <37865 45851 38903 34393 30535>, + <33367 46085 38275 33729 29907>, + <28379 46015 37656 32353 28313>, + <24691 45670 36725 30408 26636>, + <14537 44216 34202 27659 25995>, + <12224 42622 31267 24895 25609>, + <12276 41505 30531 24678 25837>, + <12637 35568 32418 25152 25910>, + <12081 21047 31790 26051 22104>, + <12063 13245 32729 22695 21084>, + <12035 12981 31772 23743 20137>, + <11993 12841 32869 23256 22408>, + <11987 12771 30841 21204 21240>, + <12045 13022 23772 20824 23156>, + <12096 12885 20340 25746 26258>, + <12016 12731 19676 24135 24359>, + <11913 12556 15240 20338 18409>, + <11913 12556 15240 20338 18409>, + <11913 12556 15240 20338 18409>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16006 15293 14791 14657 14612>, + <15923 15338 14836 14696 14624>, + <15844 15321 14838 14701 14654>, + <15769 15255 14838 14680 14646>, + <15696 15194 14827 14668 14639>, + <15634 15150 14800 14663 14632>, + <15582 15110 14778 14658 14625>, + <15536 15077 14760 14650 14618>, + <15496 15048 14744 14640 14610>, + <15460 15023 14729 14630 14603>, + <15428 15003 14716 14620 14596>, + <15400 14984 14703 14610 14588>, + <15374 14967 14692 14602 14581>, + <15353 14949 14682 14595 14574>, + <15337 14934 14672 14588 14568>, + <15324 14923 14663 14581 14563>, + <15310 14913 14658 14575 14558>, + <15297 14905 14655 14569 14552>, + <15284 14898 14653 14564 14546>, + <15272 14893 14649 14562 14543>, + <15260 14894 14647 14561 14542>, + <15252 14897 14655 14563 14542>, + <15248 14902 14687 14591 14565>, + <15246 14925 14704 14617 14590>, + <15243 14948 14706 14617 14592>, + <15241 14949 14707 14615 14590>, + <15238 14943 14705 14613 14588>, + <15231 14936 14698 14608 14584>, + <15219 14929 14692 14602 14579>, + <15208 14922 14687 14597 14574>, + <15198 14916 14682 14592 14569>, + <15189 14910 14678 14587 14564>, + <15181 14906 14673 14582 14560>, + <15174 14901 14670 14579 14557>, + <15168 14898 14668 14577 14554>, + <15162 14896 14667 14576 14552>, + <15158 14895 14665 14574 14549>, + <15156 14894 14663 14571 14546>, + <15156 14896 14663 14570 14545>, + <15157 14899 14666 14573 14548>, + <15157 14900 14669 14576 14552>, + <15159 14900 14668 14576 14551>, + <15157 14900 14666 14574 14551>, + <15152 14897 14664 14574 14551>, + <15111 14871 14655 14568 14548>, + <15102 14855 14639 14555 14533>, + <15101 14850 14636 14550 14530>, + <15099 14849 14629 14544 14523>, + <15100 14848 14625 14536 14514>, + <15104 14850 14625 14532 14509>, + <15113 14857 14633 14545 14524>, + <15129 14869 14642 14557 14537>, + <15146 14879 14647 14561 14542>, + <15172 14895 14653 14566 14545>, + <15172 14895 14653 14566 14545>, + <15172 14895 14653 14566 14545>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6305 5877 5547 5247 5066 5018>, + <6307 5865 5551 5244 5064 5016>, + <6308 5857 5554 5239 5062 5013>, + <6309 5852 5555 5235 5060 5010>, + <6310 5850 5555 5231 5059 5007>, + <6310 5850 5555 5229 5058 5005>, + <6311 5853 5554 5227 5057 5002>, + <6312 5859 5552 5226 5057 5000>, + <6313 5861 5551 5224 5055 4998>, + <6318 5862 5551 5221 5053 4996>, + <6322 5863 5550 5219 5051 4995>, + <6326 5865 5550 5218 5050 4994>, + <6331 5868 5549 5217 5049 4992>, + <6334 5869 5550 5216 5048 4991>, + <6343 5870 5551 5215 5047 4990>, + <6348 5871 5551 5214 5047 4990>, + <6346 5871 5552 5213 5046 4990>, + <6343 5871 5553 5212 5045 4989>, + <6341 5872 5553 5213 5045 4990>, + <6336 5875 5553 5216 5046 4990>, + <6333 5877 5553 5217 5046 4990>, + <6333 5878 5553 5216 5047 4990>, + <6333 5878 5554 5216 5047 4990>, + <6333 5878 5555 5218 5047 4990>, + <6331 5876 5555 5220 5048 4991>, + <6329 5873 5556 5221 5049 4992>, + <6329 5871 5556 5222 5050 4993>, + <6329 5869 5557 5223 5051 4993>, + <6328 5868 5558 5225 5052 4994>, + <6326 5868 5560 5227 5054 4997>, + <6324 5867 5561 5229 5056 4998>, + <6322 5866 5559 5231 5058 5000>, + <6320 5864 5558 5233 5060 5002>, + <6318 5861 5558 5235 5062 5003>, + <6315 5856 5560 5237 5064 5004>, + <6314 5854 5561 5239 5065 5005>, + <6312 5854 5558 5240 5066 5007>, + <6311 5854 5556 5241 5067 5008>, + <6309 5851 5555 5242 5068 5009>, + <6305 5846 5555 5242 5069 5009>, + <6304 5844 5554 5243 5071 5010>, + <6299 5845 5554 5244 5073 5011>, + <6296 5846 5554 5247 5074 5012>, + <6300 5843 5557 5250 5075 5015>, + <6309 5850 5560 5253 5079 5018>, + <6324 5868 5566 5256 5081 5020>, + <6335 5870 5568 5258 5082 5020>, + <6338 5875 5570 5258 5082 5020>, + <6338 5874 5573 5259 5081 5021>, + <6341 5871 5574 5262 5082 5022>, + <6351 5870 5581 5261 5085 5024>, + <6341 5876 5586 5267 5087 5029>, + <6383 5892 5596 5279 5096 5035>, + <6537 5924 5616 5294 5105 5044>, + <6537 5924 5616 5294 5105 5044>, + <6537 5924 5616 5294 5105 5044>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9658 10162 10711 11512 11368 11171>, + <9661 10218 10790 11447 11301 11134>, + <9664 10305 10851 11385 11219 11096>, + <9668 10399 10893 11327 11138 11059>, + <9670 10473 10917 11276 11073 11021>, + <9672 10502 10925 11235 11040 10984>, + <9674 10495 10905 11199 11032 10941>, + <9676 10484 10876 11171 11031 10904>, + <9676 10515 10867 11155 11033 10889>, + <9676 10668 10864 11145 11041 10879>, + <9675 10757 10863 11134 11045 10877>, + <9677 10737 10870 11115 11042 10918>, + <9680 10708 10887 11101 11041 10967>, + <9680 10722 10925 11104 11053 10962>, + <9680 10807 11015 11117 11079 10921>, + <9679 10881 11090 11136 11103 10902>, + <9676 10926 11135 11172 11117 10959>, + <9673 10956 11170 11223 11134 11049>, + <9671 10958 11201 11286 11179 11116>, + <9670 10946 11231 11360 11267 11178>, + <9669 10916 11242 11400 11333 11224>, + <9668 10418 11235 11416 11375 11266>, + <9667 9797 11225 11432 11404 11296>, + <9667 9702 11218 11464 11413 11299>, + <9666 9691 11213 11505 11417 11290>, + <9665 9684 11204 11532 11424 11293>, + <9665 9680 11170 11548 11449 11319>, + <9665 9678 11128 11567 11478 11357>, + <9665 9675 11102 11602 11539 11427>, + <9664 9673 11080 11643 11658 11537>, + <9664 9670 11051 11666 11718 11603>, + <9663 9668 11003 11683 11755 11638>, + <9663 9666 10925 11690 11781 11665>, + <9663 9665 10694 11682 11787 11711>, + <9663 9664 10251 11669 11790 11777>, + <9663 9663 9987 11661 11775 11789>, + <9663 9663 9863 11655 11708 11722>, + <9662 9662 9785 11644 11646 11649>, + <9662 9662 9741 11609 11622 11570>, + <9662 9662 9711 11562 11606 11456>, + <9662 9661 9694 11529 11606 11437>, + <9662 9661 9684 11501 11626 11502>, + <9662 9661 9676 11476 11625 11502>, + <9661 9661 9671 11436 11572 11365>, + <9661 9660 9667 11395 11401 11211>, + <9660 9659 9666 11352 11322 11129>, + <9660 9659 9665 11349 11316 11149>, + <9659 9659 9664 11321 11312 11156>, + <9659 9659 9662 11307 11318 11195>, + <9658 9658 9661 11290 11341 11160>, + <9657 9658 9660 11263 11285 11007>, + <9656 9657 9659 11189 11182 10952>, + <9654 9656 9658 11079 11102 10904>, + <9652 9654 9657 10933 10975 10753>, + <9652 9654 9657 10933 10975 10753>, + <9652 9654 9657 10933 10975 10753>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <14170 13565 13383 13299 13283 13284>, + <14094 13567 13387 13301 13283 13283>, + <14019 13567 13393 13303 13283 13282>, + <13950 13566 13398 13305 13284 13282>, + <13890 13565 13403 13307 13285 13282>, + <13843 13563 13406 13308 13285 13282>, + <13810 13558 13407 13308 13286 13283>, + <13782 13552 13407 13308 13287 13284>, + <13743 13554 13408 13308 13288 13285>, + <13688 13566 13408 13308 13289 13286>, + <13661 13572 13409 13309 13290 13287>, + <13666 13529 13411 13311 13290 13288>, + <13672 13470 13413 13314 13291 13288>, + <13673 13462 13409 13314 13292 13288>, + <13667 13469 13394 13313 13296 13288>, + <13659 13473 13385 13312 13298 13288>, + <13633 13466 13384 13313 13297 13290>, + <13603 13452 13383 13314 13296 13293>, + <13598 13438 13380 13314 13297 13294>, + <13598 13420 13372 13314 13299 13295>, + <13598 13412 13363 13313 13299 13295>, + <13593 13422 13356 13309 13295 13291>, + <13587 13434 13349 13305 13289 13286>, + <13589 13428 13345 13301 13286 13283>, + <13606 13401 13341 13298 13284 13281>, + <13628 13388 13337 13296 13283 13281>, + <13655 13398 13334 13294 13282 13280>, + <13688 13416 13331 13294 13282 13280>, + <13721 13438 13325 13294 13282 13280>, + <13755 13468 13317 13296 13283 13280>, + <13792 13501 13314 13296 13283 13280>, + <13832 13541 13319 13295 13283 13280>, + <13873 13583 13326 13295 13283 13279>, + <13910 13625 13328 13295 13283 13280>, + <13944 13668 13329 13295 13283 13281>, + <13979 13710 13333 13295 13283 13281>, + <14016 13752 13346 13295 13283 13280>, + <14053 13794 13365 13295 13282 13279>, + <14086 13837 13383 13294 13282 13279>, + <14117 13880 13403 13293 13282 13279>, + <14147 13920 13426 13294 13282 13280>, + <14176 13956 13455 13296 13285 13282>, + <14208 13993 13491 13295 13284 13282>, + <14248 14037 13538 13294 13281 13278>, + <14321 14087 13611 13296 13282 13281>, + <14366 14107 13608 13297 13287 13286>, + <14438 14162 13659 13301 13291 13290>, + <14522 14222 13720 13307 13295 13292>, + <14625 14289 13796 13312 13298 13294>, + <14771 14365 13880 13315 13297 13291>, + <14976 14459 13954 13312 13293 13287>, + <15390 14622 14063 13312 13290 13288>, + <16713 14895 14258 13319 13296 13295>, + <20926 15613 14486 13331 13303 13301>, + <20926 15613 14486 13331 13303 13301>, + <20926 15613 14486 13331 13303 13301>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17221 16923 16741 16516 16468 16458>, + <17337 17036 16801 16518 16469 16460>, + <17442 17163 16862 16519 16470 16461>, + <17528 17281 16917 16520 16471 16462>, + <17586 17369 16957 16520 16471 16464>, + <17607 17401 16971 16521 16472 16465>, + <17580 17386 16961 16521 16473 16466>, + <17540 17355 16943 16522 16474 16466>, + <17534 17319 16930 16524 16475 16468>, + <17541 17268 16920 16528 16478 16469>, + <17550 17244 16910 16531 16482 16471>, + <17576 17300 16897 16534 16487 16475>, + <17606 17378 16887 16538 16492 16480>, + <17579 17387 16901 16544 16496 16486>, + <17428 17374 16963 16557 16499 16494>, + <17276 17353 16996 16571 16504 16501>, + <17171 17301 16997 16588 16514 16506>, + <17078 17224 16995 16608 16530 16511>, + <17001 17150 16980 16636 16549 16523>, + <16936 17072 16929 16667 16573 16543>, + <16882 16993 16870 16670 16581 16550>, + <16829 16911 16802 16613 16547 16526>, + <16791 16833 16738 16553 16504 16494>, + <16788 16767 16702 16524 16486 16480>, + <16793 16704 16678 16504 16474 16469>, + <16796 16681 16654 16500 16471 16466>, + <16795 16685 16629 16502 16475 16469>, + <16795 16693 16604 16506 16480 16473>, + <16797 16699 16578 16510 16487 16479>, + <16805 16705 16551 16515 16495 16487>, + <16811 16711 16542 16520 16505 16496>, + <16814 16717 16551 16527 16518 16509>, + <16818 16724 16568 16533 16528 16518>, + <16822 16733 16595 16539 16528 16521>, + <16828 16743 16637 16543 16528 16522>, + <16831 16753 16669 16540 16526 16520>, + <16834 16762 16691 16527 16507 16500>, + <16835 16768 16708 16516 16490 16482>, + <16833 16768 16720 16507 16484 16480>, + <16827 16767 16729 16501 16481 16479>, + <16820 16766 16730 16504 16481 16479>, + <16813 16758 16723 16512 16483 16482>, + <16810 16746 16721 16513 16482 16480>, + <16822 16727 16723 16512 16471 16465>, + <16825 16719 16732 16493 16461 16456>, + <16818 16708 16728 16501 16471 16472>, + <16834 16721 16769 16516 16488 16499>, + <16855 16739 16813 16538 16518 16534>, + <16883 16774 16870 16574 16556 16572>, + <16902 16818 16937 16603 16570 16558>, + <16901 16820 16965 16561 16486 16481>, + <16906 16797 16963 16543 16480 16480>, + <17120 16803 16976 16564 16488 16483>, + <18668 16971 16989 16616 16513 16511>, + <18668 16971 16989 16616 16513 16511>, + <18668 16971 16989 16616 16513 16511>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <11053 12553 14231 19165 18526 21593>, + <11726 13178 14641 19040 18072 20738>, + <12418 13816 15040 18833 17577 19700>, + <13070 14417 15409 18580 17099 18659>, + <13626 14926 15731 18320 16694 17795>, + <14027 15291 15988 18085 16419 17289>, + <14334 15486 16209 17556 16267 17065>, + <14549 15658 16375 16857 16139 16904>, + <14474 16196 16432 16337 15955 16737>, + <13985 17541 16457 15786 15713 16574>, + <13700 18268 16455 15463 15437 16365>, + <15166 16864 16330 15517 15018 16033>, + <17551 14911 16110 15601 14656 15617>, + <18781 15036 15832 15247 14752 15124>, + <19615 16962 15367 14529 15238 14512>, + <19926 18545 15167 14160 15458 14271>, + <18376 19237 16154 14033 14868 14543>, + <16200 19761 17697 13971 14179 14903>, + <15722 20313 18690 14260 14202 15029>, + <15642 20889 19486 15199 14595 15104>, + <15489 21120 20099 16503 15238 15308>, + <14266 20924 20546 19035 17249 17079>, + <12708 20455 20919 20792 19122 18899>, + <12240 18776 21271 20430 19124 18990>, + <12034 14428 21590 19569 18662 18833>, + <11970 12254 21963 19026 18143 18590>, + <12104 12153 22569 18579 17443 17681>, + <12294 12106 23041 18352 16907 16802>, + <12359 12131 21457 18879 16898 16633>, + <12362 12259 16864 19783 17087 16551>, + <12387 12430 15043 20072 17271 16460>, + <12547 12721 15294 20138 17486 16235>, + <12755 13022 15548 20250 17779 16059>, + <12871 13182 15135 21102 18221 16766>, + <12953 13311 14016 22225 18835 18429>, + <13045 13404 13619 22562 19437 19155>, + <13190 13574 13840 22710 20124 19196>, + <13307 13733 14056 22727 20561 19133>, + <13300 13764 14071 21315 20228 18918>, + <13220 13777 14066 19643 19478 18527>, + <13098 13777 14063 19475 19399 18723>, + <12822 13703 14068 19492 20183 20100>, + <12491 13597 13983 18521 19975 20183>, + <12126 13392 13591 17534 18518 18711>, + <12322 13072 13643 19589 19058 18833>, + <12356 12846 13773 18088 17800 17782>, + <12457 12899 13608 18250 18668 17618>, + <12657 13116 13713 18595 18391 17073>, + <12967 13181 13956 18380 17938 16728>, + <13311 13308 14544 18533 17466 16140>, + <13280 13229 14520 19843 19910 17448>, + <12823 13100 13735 20268 18112 17379>, + <11714 13076 13007 20764 20628 20364>, + <10008 12399 12751 21731 23378 23621>, + <10008 12399 12751 21731 23378 23621>, + <10008 12399 12751 21731 23378 23621>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6518 5800 5357 5070 5011 5004>, + <6484 5842 5384 5071 5012 5003>, + <6450 5867 5401 5072 5012 5003>, + <6414 5882 5412 5073 5013 5003>, + <6379 5887 5417 5073 5013 5003>, + <6342 5889 5418 5073 5014 5004>, + <6304 5875 5412 5073 5015 5004>, + <6265 5852 5402 5072 5016 5005>, + <6228 5839 5394 5072 5017 5006>, + <6188 5831 5388 5073 5018 5007>, + <6170 5821 5382 5073 5019 5008>, + <6177 5802 5376 5075 5021 5010>, + <6187 5784 5371 5077 5023 5011>, + <6180 5782 5372 5079 5025 5013>, + <6135 5783 5377 5082 5028 5015>, + <6086 5784 5379 5085 5031 5017>, + <6041 5769 5379 5090 5034 5020>, + <6000 5741 5377 5096 5037 5024>, + <5975 5716 5371 5104 5043 5028>, + <5958 5690 5351 5112 5051 5034>, + <5945 5665 5330 5112 5053 5036>, + <5934 5640 5307 5094 5040 5026>, + <5925 5618 5286 5073 5023 5012>, + <5928 5598 5275 5062 5016 5006>, + <5946 5579 5268 5054 5011 5002>, + <5968 5572 5262 5052 5009 5000>, + <5991 5590 5257 5053 5010 5001>, + <6018 5622 5252 5053 5011 5002>, + <6045 5653 5246 5055 5013 5003>, + <6073 5689 5239 5058 5016 5006>, + <6102 5727 5238 5060 5020 5009>, + <6132 5766 5252 5062 5024 5012>, + <6163 5807 5275 5065 5027 5015>, + <6192 5846 5298 5067 5027 5016>, + <6221 5885 5326 5069 5027 5018>, + <6250 5923 5357 5069 5026 5017>, + <6278 5960 5391 5066 5021 5010>, + <6304 5996 5427 5064 5016 5004>, + <6329 6030 5463 5061 5014 5004>, + <6352 6061 5501 5060 5014 5004>, + <6374 6092 5540 5062 5014 5005>, + <6396 6119 5582 5067 5016 5008>, + <6423 6147 5630 5068 5016 5007>, + <6459 6176 5688 5068 5011 5000>, + <6518 6216 5765 5066 5010 5000>, + <6565 6233 5766 5070 5016 5009>, + <6624 6280 5824 5079 5024 5019>, + <6697 6331 5894 5090 5036 5031>, + <6789 6390 5971 5104 5048 5043>, + <6907 6462 6059 5115 5052 5038>, + <7069 6540 6130 5102 5025 5012>, + <7394 6656 6223 5099 5023 5014>, + <8484 6863 6378 5116 5030 5021>, + <12046 7465 6554 5145 5043 5035>, + <12046 7465 6554 5145 5043 5035>, + <12046 7465 6554 5145 5043 5035>; + }; + +}; From 1fecc8ad374c0020b208a922f2649b81aa9ef1a3 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 8 Jan 2021 16:58:28 +0800 Subject: [PATCH 0141/1247] denver/sensor: update sarsensor params 1.update params 2.holi-denver-common-overlay.dtsi Change-Id: I4b9a5dc69d3ce74e013718175cea1fbbbb962fe0 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1846865 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 54 ++++++++++++++-------------- 1 file changed, 28 insertions(+), 26 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index fb35f1a7c3b2..d382804fabe8 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -284,43 +284,45 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <55>; + Semtech,reg-num = <57>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - 0x8028 0x785 /*AFE_PARAM_PH0*/ - 0x8034 0x885 /*AFE_PARAM_PH1*/ - 0x8040 0x984 /*AFE_PARAM_PH2*/ - 0x804C 0x785 /*AFE_PARAM_PH3*/ - 0x8058 0x785 /*AFE_PARAM_PH4*/ - 0x8064 0x785 /*AFE_PARAM_PH5*/ - 0x8070 0x785 /*AFE_PARAM_PH6*/ - 0x807C 0x785 /*AFE_PARAM_PH7*/ + 0x8028 0x78D /*AFE_PARAM_PH0*/ + 0x8034 0x78D /*AFE_PARAM_PH1*/ + 0x8040 0x78D /*AFE_PARAM_PH2*/ + 0x804C 0x78D /*AFE_PARAM_PH3*/ + 0x8058 0x58D /*AFE_PARAM_PH4*/ + 0x8064 0x78D /*AFE_PARAM_PH5*/ + 0x8070 0x78D /*AFE_PARAM_PH6*/ + 0x807C 0x78D /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xBFF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ - 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ + 0x8048 0xBFF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x8088 0x200000 - 0x80A8 0x200001 + 0x80A8 0x200000 0x80C8 0x200000 - 0x80A0 0x17170001 + 0x80E8 0x200000 + 0x8108 0x200000 + 0x80A0 0x1F1F0001 0x80C0 0x0 - 0x80E0 0x22220001 - 0x8100 0x30300002 + 0x80E0 0x24240001 + 0x8100 0x27270002 0x8120 0x09090002 0x8188 0x5 0x818C 0x6 0x8190 0x6 - 0x8098 0x00008643 + 0x8098 0x00008637 0x80B8 0x0000783C - 0x80D8 0x00008642 - 0x80F8 0x00009059 - 0x8118 0x00009059 + 0x80D8 0x0000A580 + 0x80F8 0x00008050 + 0x8118 0x00006540 0x8138 0x00000000 0x8158 0x00000000 0x808C 0x20600019 @@ -331,13 +333,13 @@ 0x812C 0x20600019 0x814C 0x20600019 0x816C 0x20600019 - 0x8090 0x28A87000 - 0x80B0 0x28A87000 - 0x80D0 0x28A87000 - 0x80F0 0x28A87000 - 0x8110 0x28A87000 - 0x8130 0x28A87000 - 0x8150 0x28A87000 + 0x8090 0x16097000 + 0x80B0 0x40277000 + 0x80D0 0x32097000 + 0x80F0 0x40287000 + 0x8110 0x40287000 + 0x8130 0x40287000 + 0x8150 0x40287000 0x8170 0x28A87000 0x8074 0x8 0x8024 0x7F7F From f2f53b6658f8ccc8b0786bbae46b2c9c9fce9a41 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 7 Jan 2021 14:27:09 +0800 Subject: [PATCH 0142/1247] denver/display: optimize the display timing 1.set the right volt. 2.optimize the timing of power down Change-Id: Id6c16b762edc281d324da0e3af4fac93011126eb Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1845445 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 67 +++++++++++++++++++++------------------- 1 file changed, 36 insertions(+), 31 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 4cbf324ebd3a..6a5bbf024f86 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -37,37 +37,42 @@ qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; }; -&dsi_panel_pwr_supply { - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; - qcom,supply-enable-load = <32000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep= <0>; - qcom,supply-post-off-sleep = <21>; - }; +&soc { + dsi_panel_pwr_supply_denver: dsi_panel_pwr_supply_denver{ + #address-cells = <1>; + #size-cells = <0>; - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-on-sleep = <3>; - }; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; }; }; @@ -75,7 +80,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; @@ -116,7 +121,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; From ff71c094b32cb37e06e106029ba43024783b9788 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 13 Jan 2021 18:05:04 +0800 Subject: [PATCH 0143/1247] arm/dts: config qg iterm 500ma config qg iterm 500ma for denver 5000mah battery Change-Id: Ie28b09859a25a89775eaa72acec7180dab1f594d Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1850449 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index d382804fabe8..78676ad7b6d7 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -138,6 +138,10 @@ qcom,dcp-curr-max = <2000000>; }; +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; From 1e236229263be47014af9b392a995e6370393867 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 13 Jan 2021 18:55:00 +0800 Subject: [PATCH 0144/1247] denver dts/display: set the right supply entries for dummy panel dts/display: set the right supply entries for dummy panel Change-Id: I8ac538499bc3920efe1fe47e677566ebae8ddf82 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1850481 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 6a5bbf024f86..821a07fa4a4d 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -162,7 +162,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; From b2ab9e7ca96d8106f9127f188b86f88bb55f1939 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Thu, 7 Jan 2021 14:34:34 +0800 Subject: [PATCH 0145/1247] denver: Add dummy panel for match active panel. - Add dummy panel for match active panel, this will make driver works, when dummy panel Change-Id: I7f8fbc7427a0e2e422e26cc128bfb6f3870d1a09 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1845450 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/denver-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi index dac7acdc06fa..04548ec7b6c9 100755 --- a/qcom/denver-touchscreen.dtsi +++ b/qcom/denver-touchscreen.dtsi @@ -85,7 +85,7 @@ novatek,report_gesture_key; novatek,usb_charger; novatek,panel-supplier = "auo","boe"; - panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video>; + panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video &mot_dummy_vid_qhd>; status = "ok"; }; From 96e8d34706ee1deaad3892b5c58b9fb6e015e236 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 14 Jan 2021 17:26:23 +0800 Subject: [PATCH 0146/1247] arm/dt: ibiza: set default frame refresh rate to 90Hz arm/dt: Hwc uses index 0 of dsi-supported-dfps-list as default fps. Move 90Hz to index 0, set as default fps. Change-Id: Iff7860fb9464e47b95ccfe949c81a50d34f484d5 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1851477 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Chuwei Xu Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 73fa61156096..00365bffbf68 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -136,7 +136,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90>; + qcom,dsi-supported-dfps-list = <90 60>; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; @@ -180,7 +180,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90>; + qcom,dsi-supported-dfps-list = <90 60>; qcom,mdss-dsi-pan-dpfs-send-command; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; From 35b5a6badee94da3296630f47766f3e8b40af0ff Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 15 Jan 2021 14:48:42 +0800 Subject: [PATCH 0147/1247] ibiza/sensor: update sarsensor params 1.update params about ibiza sar sensor 2.holi-moto-common-overlay.dtsi Change-Id: I8acbbb92ff71bbc5e4da0aa360f6474f51d63b54 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1852234 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 37 +++++++++++++++--------------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 047f17336cd0..d79832b81db2 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -250,19 +250,20 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <60>; + Semtech,reg-num = <61>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - - 0x8028 0x86E /*AFE_PARAM_PH0*/ - 0x8034 0x86E /*AFE_PARAM_PH1*/ - 0x8040 0x86E /*AFE_PARAM_PH2*/ - 0x804C 0x86E /*AFE_PARAM_PH3*/ - 0x8058 0x86E /*AFE_PARAM_PH4*/ - 0x8064 0x86E /*AFE_PARAM_PH5*/ - 0x8070 0x86E /*AFE_PARAM_PH6*/ - /*0x807C 0x86E */ /*AFE_PARAM_PH7*/ + 0x8020 0x10 /*Set scan period*/ + /*set Phase sampling frequency*/ + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x886 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x886 /*AFE_PARAM_PH5*/ + 0x8070 0x886 /*AFE_PARAM_PH6*/ + /*0x807C 0x886 */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ @@ -275,10 +276,10 @@ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x0000924A /*prox threshold ph0*/ - 0x80B8 0x00008038 /*prox threshold ph1*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003F3F /*prox threshold ph3*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ 0x8118 0x00000000 /*prox threshold ph4*/ 0x8138 0x00000000 /*prox threshold ph5*/ 0x8158 0x00000000 /*prox threshold ph6*/ @@ -295,7 +296,7 @@ 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ 0x8090 0x50D47000 - 0x80B0 0x46DA7000 + 0x80B0 0x46D87000 0x80D0 0x46D07000 0x80F0 0x3CDE7000 0x8110 0x50D27000 @@ -304,10 +305,10 @@ 0x8170 0x50D27000 /*PH0123 raw filter 1/4*/ - 0x8088 0x200000 - 0x80A8 0x200000 - 0x80C8 0x200000 - 0x80E8 0x200000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 /*PH456 raw filter 1/64*/ 0x8108 0x600000 From 45f25a3815abcd198d1bfd0abd6c7210de5b601b Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 15 Jan 2021 15:31:08 +0800 Subject: [PATCH 0148/1247] denver/sensor: update sarsensor params 1.update params 2.holi-denver-common-overlay.dtsi Change-Id: I61bf5f22812e13694678651e4fb4dddf5196899f Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1852263 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 78676ad7b6d7..980c2fc1cde2 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -314,14 +314,14 @@ 0x80C8 0x200000 0x80E8 0x200000 0x8108 0x200000 - 0x80A0 0x1F1F0001 + 0x80A0 0x222200E1 0x80C0 0x0 - 0x80E0 0x24240001 - 0x8100 0x27270002 - 0x8120 0x09090002 - 0x8188 0x5 - 0x818C 0x6 - 0x8190 0x6 + 0x80E0 0x1E1E00E1 + 0x8100 0x2B2B00E2 + 0x8120 0x090900E2 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 0x8098 0x00008637 0x80B8 0x0000783C 0x80D8 0x0000A580 From 9ad7d5867eabfc7e1ebb1371ab3d00e81851d817 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Sat, 9 Jan 2021 14:41:05 +0800 Subject: [PATCH 0149/1247] arm/dts: Conifg QG cap learning QG Config QG cap learning for holi Change-Id: I9bcba6e6610e8052de0cb92302844e6d4b0dfdd6 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1847733 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index d79832b81db2..46dc407fa39f 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -489,6 +489,14 @@ qcom,hold-soc-while-full; qcom,linearize-soc; qcom,cl-feedback-on; + qcom,cl-min-start-soc = <0>; + qcom,cl-max-start-soc = <5>; + qcom,cl-min-temp = <150>; + qcom,cl-max-temp = <450>; + qcom,cl-max-increment = <5>; + qcom,cl-max-decrement = <10>; + qcom,cl-min-limit = <200>; + qcom,cl-max-limit = <30>; qcom,tcss-enable; qcom,fvss-enable; qcom,fvss-vbatt-mv = <3300>; From f26c6f88af8a34337edd8d75449077ae148e5c70 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 13 Jan 2021 16:52:21 +0800 Subject: [PATCH 0150/1247] denver/display: decreasing manner of strength drive offset MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The clock and data lanes have a calibration circuitry feature. To offset the drive strength from the calibrated value in an increasing or decreasing manner, use 6 bit two’s complement values. LCD desense has 1.2-1.5dB improve Change-Id: I2c096604941f79b3ec31aa69afc5e1481652f03b Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1850390 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 821a07fa4a4d..f1fd4510fc86 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -37,6 +37,14 @@ qcom,dsi-default-panel = <&dsi_nt36675_auo_video>; }; +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 00 30 30]; +}; + &soc { dsi_panel_pwr_supply_denver: dsi_panel_pwr_supply_denver{ #address-cells = <1>; From 2a1379fdfde18c3ec4ab5c62bb5692ca86c09d2d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 15 Jan 2021 16:30:57 +0800 Subject: [PATCH 0151/1247] display/holi: support the configuration of strength offset in each projects MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The clock and data lanes have a calibration circuitry feature. To offset the drive strength from the calibrated value in an increasing or decreasing manner, use 6 bit two’s complement values. For some project ,will change the strength offset to reduce the mipi voltage, to fix rf desense issue. By default, there are only two bytes to config the strength of lane. Support the configuration of strength offset in each projects, we must expand to 4 bytes. And the default value is 0. Change-Id: Ifaa2a0024b10176c638d4bc44756f9d09a1927ef Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1852325 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 46dc407fa39f..996398a2885c 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -584,3 +584,11 @@ &ufshc_mem { spm-level = <3>; }; + +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 00 00 + 55 03 00 00 + 55 03 00 00 + 55 03 00 00 + 55 00 00 00]; +}; From 2ed99606f958bc759bc51d8dcc18cd3d4295909b Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 20 Jan 2021 16:52:52 +0800 Subject: [PATCH 0152/1247] arm/dt: ibiza: change tianma vsp voltage to 6v to meet spec arm/dt: Change tinam panel vsp voltage to 6v to meet module spec. Change-Id: I1c9cf769b13845908c468039dd25c997431a88c9 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1856009 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 00365bffbf68..1c618980ad5c 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -92,8 +92,8 @@ qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-on-sleep = <3>; From 3784a935525d2cefee14ea5e7a407c77bb84f258 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 18 Jan 2021 13:50:01 +0800 Subject: [PATCH 0153/1247] Denver: dts/panel_boe: set vsn/vsp to 5.5V First panel: VSP/VSN is 5.8/-5.8V. second panel: VSP/VSN is5.5/-5.5V. Change-Id: Ibf2a2619b5a55f33498c2c88647ff08306e1d718 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1853326 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index f1fd4510fc86..566f70891acf 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -82,6 +82,43 @@ qcom,supply-post-on-sleep = <10>; }; }; + + dsi_panel_pwr_supply_denver_boe: dsi_panel_pwr_supply_denver_boe{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <10>; + }; + }; }; &dsi_nt36675_auo_video { @@ -129,7 +166,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver_boe>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; From 0cf7ff6ec52f99f797b3d2f737c72d457a2f1a49 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 18 Jan 2021 14:28:17 +0800 Subject: [PATCH 0154/1247] denver: dts/panel_BOE: download gamma code for DVT1/EVT2 borad The OTP code of DVT1/EVT2 panel is mistake. DVT2 panel will be right. So in kernel DVT1/EVT2 dts file , add code to set PWM frequency to 20K, Set the bits of pwm to 12bits, and set the GAMMA to 2.2. Change-Id: Ia3d704efcd27422fb11e0ecbabadde0f5b15b3b4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1853354 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-dvt1-overlay.dts | 268 ++++++++++++++++++++++++++++++ qcom/holi-denver-evt2-overlay.dts | 268 ++++++++++++++++++++++++++++++ 2 files changed, 536 insertions(+) diff --git a/qcom/holi-denver-dvt1-overlay.dts b/qcom/holi-denver-dvt1-overlay.dts index d8ed96615fd0..b9b4b95f27a5 100644 --- a/qcom/holi-denver-dvt1-overlay.dts +++ b/qcom/holi-denver-dvt1-overlay.dts @@ -22,3 +22,271 @@ qcom,board-id = <0x42 0xB100>; }; +&dsi_nt36675_boe_video { + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 B0 00 + 15 00 00 00 00 00 02 FF 20 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 07 3C + 15 00 00 00 00 00 02 69 92 + 15 00 00 00 00 00 02 88 FF + 15 00 00 00 00 00 02 89 13 + 15 00 00 00 00 00 02 8A 13 + 15 00 00 00 00 00 02 8B 13 + 15 00 00 00 00 00 02 8C 13 + 15 00 00 00 00 00 02 8D 13 + 15 00 00 00 00 00 02 8E 13 + 15 00 00 00 00 00 02 8F 13 + 15 00 00 00 00 00 02 90 13 + 15 00 00 00 00 00 02 95 D1 + 15 00 00 00 00 00 02 96 D1 + 15 00 00 00 00 00 02 F2 54 + 15 00 00 00 00 00 02 F4 54 + 15 00 00 00 00 00 02 F6 54 + 15 00 00 00 00 00 02 F8 54 + 15 00 00 00 00 00 02 FF 24 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 A3 + 15 00 00 00 00 00 02 01 A3 + 15 00 00 00 00 00 02 02 00 + 15 00 00 00 00 00 02 03 22 + 15 00 00 00 00 00 02 04 0F + 15 00 00 00 00 00 02 05 0F + 15 00 00 00 00 00 02 06 28 + 15 00 00 00 00 00 02 07 17 + 15 00 00 00 00 00 02 08 27 + 15 00 00 00 00 00 02 09 15 + 15 00 00 00 00 00 02 0A 26 + 15 00 00 00 00 00 02 0B 13 + 15 00 00 00 00 00 02 10 03 + 15 00 00 00 00 00 02 11 04 + 15 00 00 00 00 00 02 12 1C + 15 00 00 00 00 00 02 13 24 + 15 00 00 00 00 00 02 14 24 + 15 00 00 00 00 00 02 15 0B + 15 00 00 00 00 00 02 16 0C + 15 00 00 00 00 00 02 17 01 + 15 00 00 00 00 00 02 18 A3 + 15 00 00 00 00 00 02 19 A3 + 15 00 00 00 00 00 02 1A 00 + 15 00 00 00 00 00 02 1B 22 + 15 00 00 00 00 00 02 1C 0F + 15 00 00 00 00 00 02 1D 0F + 15 00 00 00 00 00 02 1E 28 + 15 00 00 00 00 00 02 1F 17 + 15 00 00 00 00 00 02 20 27 + 15 00 00 00 00 00 02 21 15 + 15 00 00 00 00 00 02 22 26 + 15 00 00 00 00 00 02 23 13 + 15 00 00 00 00 00 02 28 03 + 15 00 00 00 00 00 02 29 04 + 15 00 00 00 00 00 02 2A 1C + 15 00 00 00 00 00 02 2B 24 + 15 00 00 00 00 00 02 2D 24 + 15 00 00 00 00 00 02 2F 0B + 15 00 00 00 00 00 02 30 0C + 15 00 00 00 00 00 02 31 01 + 15 00 00 00 00 00 02 32 09 + 15 00 00 00 00 00 02 33 02 + 15 00 00 00 00 00 02 34 00 + 15 00 00 00 00 00 02 35 01 + 15 00 00 00 00 00 02 36 01 + 15 00 00 00 00 00 02 37 2A + 15 00 00 00 00 00 02 38 09 + 15 00 00 00 00 00 02 45 02 + 15 00 00 00 00 00 02 46 03 + 15 00 00 00 00 00 02 47 02 + 15 00 00 00 00 00 02 48 03 + 15 00 00 00 00 00 02 49 0A + 15 00 00 00 00 00 02 4A 05 + 15 00 00 00 00 00 02 4B 49 + 15 00 00 00 00 00 02 4E 70 + 15 00 00 00 00 00 02 4F 70 + 15 00 00 00 00 00 02 50 05 + 15 00 00 00 00 00 02 53 70 + 15 00 00 00 00 00 02 7B 8E + 15 00 00 00 00 00 02 7D 04 + 15 00 00 00 00 00 02 80 04 + 15 00 00 00 00 00 02 81 04 + 15 00 00 00 00 00 02 82 16 + 15 00 00 00 00 00 02 83 34 + 15 00 00 00 00 00 02 84 52 + 15 00 00 00 00 00 02 85 25 + 15 00 00 00 00 00 02 86 43 + 15 00 00 00 00 00 02 87 61 + 15 00 00 00 00 00 02 90 25 + 15 00 00 00 00 00 02 91 43 + 15 00 00 00 00 00 02 92 61 + 15 00 00 00 00 00 02 93 16 + 15 00 00 00 00 00 02 94 34 + 15 00 00 00 00 00 02 95 52 + 15 00 00 00 00 00 02 9C F4 + 15 00 00 00 00 00 02 9D 01 + 15 00 00 00 00 00 02 A0 0E + 15 00 00 00 00 00 02 A2 0E + 15 00 00 00 00 00 02 A4 04 + 15 00 00 00 00 00 02 A5 04 + 15 00 00 00 00 00 02 AA 05 + 15 00 00 00 00 00 02 AD 02 + 15 00 00 00 00 00 02 B0 0B + 15 00 00 00 00 00 02 B3 08 + 15 00 00 00 00 00 02 B6 11 + 15 00 00 00 00 00 02 B9 0E + 15 00 00 00 00 00 02 BC 17 + 15 00 00 00 00 00 02 BF 14 + 15 00 00 00 00 00 02 C4 C0 + 15 00 00 00 00 00 02 CA C9 + 15 00 00 00 00 00 02 D9 80 + 15 00 00 00 00 00 02 E5 06 + 15 00 00 00 00 00 02 E6 80 + 15 00 00 00 00 00 02 ED C0 + 15 00 00 00 00 00 02 FF 25 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 66 D8 + 15 00 00 00 00 00 02 67 01 + 15 00 00 00 00 00 02 68 58 + 15 00 00 00 00 00 02 69 10 + 15 00 00 00 00 00 02 6B 00 + 15 00 00 00 00 00 02 6C 15 + 15 00 00 00 00 00 02 71 1D + 15 00 00 00 00 00 02 77 72 + 15 00 00 00 00 00 02 7E 15 + 15 00 00 00 00 00 02 7F 00 + 15 00 00 00 00 00 02 8D 00 + 15 00 00 00 00 00 02 C0 5D + 15 00 00 00 00 00 02 C1 11 + 15 00 00 00 00 00 02 C3 00 + 15 00 00 00 00 00 02 C4 01 + 15 00 00 00 00 00 02 C5 01 + 15 00 00 00 00 00 02 EF 00 + 15 00 00 00 00 00 02 F0 00 + 15 00 00 00 00 00 02 F1 04 + 15 00 00 00 00 00 02 FF 26 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 00 + 15 00 00 00 00 00 02 01 F2 + 15 00 00 00 00 00 02 02 F2 + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 04 F2 + 15 00 00 00 00 00 02 05 08 + 15 00 00 00 00 00 02 06 1F + 15 00 00 00 00 00 02 07 1F + 15 00 00 00 00 00 02 08 1F + 15 00 00 00 00 00 02 74 AF + 15 00 00 00 00 00 02 81 0E + 15 00 00 00 00 00 02 83 04 + 15 00 00 00 00 00 02 84 03 + 15 00 00 00 00 00 02 85 01 + 15 00 00 00 00 00 02 86 03 + 15 00 00 00 00 00 02 87 01 + 15 00 00 00 00 00 02 88 0A + 15 00 00 00 00 00 02 8A 1A + 15 00 00 00 00 00 02 8C 54 + 15 00 00 00 00 00 02 8D 27 + 15 00 00 00 00 00 02 8E 63 + 15 00 00 00 00 00 02 8F 36 + 15 00 00 00 00 00 02 90 72 + 15 00 00 00 00 00 02 91 45 + 15 00 00 00 00 00 02 9A 80 + 15 00 00 00 00 00 02 9B 04 + 15 00 00 00 00 00 02 9C 00 + 15 00 00 00 00 00 02 9D 00 + 15 00 00 00 00 00 02 9E 00 + 15 00 00 00 00 00 02 FF 27 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 01 60 + 15 00 00 00 00 00 02 20 80 + 15 00 00 00 00 00 02 21 95 + 15 00 00 00 00 00 02 25 81 + 15 00 00 00 00 00 02 26 DF + 15 00 00 00 00 00 02 88 02 + 15 00 00 00 00 00 02 8A 0A + 15 00 00 00 00 00 02 F9 00 + 15 00 00 00 00 00 02 FF 2A + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 07 32 + 15 00 00 00 00 00 02 0A 40 + 15 00 00 00 00 00 02 0C 0E + 15 00 00 00 00 00 02 0E 03 + 15 00 00 00 00 00 02 11 9F + 15 00 00 00 00 00 02 15 0F + 15 00 00 00 00 00 02 16 2E + 15 00 00 00 00 00 02 19 0F + 15 00 00 00 00 00 02 1A 01 + 15 00 00 00 00 00 02 1B 11 + 15 00 00 00 00 00 02 1D 12 + 15 00 00 00 00 00 02 1E 79 + 15 00 00 00 00 00 02 1F 79 + 15 00 00 00 00 00 02 20 79 + 15 00 00 00 00 00 02 2D 01 + 15 00 00 00 00 00 02 33 0B + 15 00 00 00 00 00 02 34 28 + 15 00 00 00 00 00 02 36 09 + 15 00 00 00 00 00 02 37 28 + 15 00 00 00 00 00 02 45 F0 + 15 00 00 00 00 00 02 75 A0 + 15 00 00 00 00 00 02 A5 78 + 15 00 00 00 00 00 02 D8 40 + 15 00 00 00 00 00 02 EE 01 + 15 00 00 00 00 00 02 F0 A8 + 15 00 00 00 00 00 02 FF F0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 BB 40 + 15 00 00 00 00 00 02 FF 20 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 11 B0 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B1 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 B2 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F B3 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 39 00 00 00 00 00 11 B4 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B5 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 B6 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F B7 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 39 00 00 00 00 00 11 B8 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B9 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 BA 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F BB 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 15 00 00 00 00 00 02 FF 21 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 11 B0 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B1 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 B2 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F B3 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 39 00 00 00 00 00 11 B4 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B5 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 B6 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F B7 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 39 00 00 00 00 00 11 B8 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B9 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 BA 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F BB 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 80 + 15 00 00 00 00 00 02 07 00 + 15 00 00 00 00 00 02 08 01 + 15 00 00 00 00 00 02 09 55 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + }; + }; +}; + diff --git a/qcom/holi-denver-evt2-overlay.dts b/qcom/holi-denver-evt2-overlay.dts index 0fbb4000f529..47f042dca90c 100644 --- a/qcom/holi-denver-evt2-overlay.dts +++ b/qcom/holi-denver-evt2-overlay.dts @@ -22,3 +22,271 @@ qcom,board-id = <0x42 0xA200>; }; +&dsi_nt36675_boe_video { + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 B0 00 + 15 00 00 00 00 00 02 FF 20 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 07 3C + 15 00 00 00 00 00 02 69 92 + 15 00 00 00 00 00 02 88 FF + 15 00 00 00 00 00 02 89 13 + 15 00 00 00 00 00 02 8A 13 + 15 00 00 00 00 00 02 8B 13 + 15 00 00 00 00 00 02 8C 13 + 15 00 00 00 00 00 02 8D 13 + 15 00 00 00 00 00 02 8E 13 + 15 00 00 00 00 00 02 8F 13 + 15 00 00 00 00 00 02 90 13 + 15 00 00 00 00 00 02 95 D1 + 15 00 00 00 00 00 02 96 D1 + 15 00 00 00 00 00 02 F2 54 + 15 00 00 00 00 00 02 F4 54 + 15 00 00 00 00 00 02 F6 54 + 15 00 00 00 00 00 02 F8 54 + 15 00 00 00 00 00 02 FF 24 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 A3 + 15 00 00 00 00 00 02 01 A3 + 15 00 00 00 00 00 02 02 00 + 15 00 00 00 00 00 02 03 22 + 15 00 00 00 00 00 02 04 0F + 15 00 00 00 00 00 02 05 0F + 15 00 00 00 00 00 02 06 28 + 15 00 00 00 00 00 02 07 17 + 15 00 00 00 00 00 02 08 27 + 15 00 00 00 00 00 02 09 15 + 15 00 00 00 00 00 02 0A 26 + 15 00 00 00 00 00 02 0B 13 + 15 00 00 00 00 00 02 10 03 + 15 00 00 00 00 00 02 11 04 + 15 00 00 00 00 00 02 12 1C + 15 00 00 00 00 00 02 13 24 + 15 00 00 00 00 00 02 14 24 + 15 00 00 00 00 00 02 15 0B + 15 00 00 00 00 00 02 16 0C + 15 00 00 00 00 00 02 17 01 + 15 00 00 00 00 00 02 18 A3 + 15 00 00 00 00 00 02 19 A3 + 15 00 00 00 00 00 02 1A 00 + 15 00 00 00 00 00 02 1B 22 + 15 00 00 00 00 00 02 1C 0F + 15 00 00 00 00 00 02 1D 0F + 15 00 00 00 00 00 02 1E 28 + 15 00 00 00 00 00 02 1F 17 + 15 00 00 00 00 00 02 20 27 + 15 00 00 00 00 00 02 21 15 + 15 00 00 00 00 00 02 22 26 + 15 00 00 00 00 00 02 23 13 + 15 00 00 00 00 00 02 28 03 + 15 00 00 00 00 00 02 29 04 + 15 00 00 00 00 00 02 2A 1C + 15 00 00 00 00 00 02 2B 24 + 15 00 00 00 00 00 02 2D 24 + 15 00 00 00 00 00 02 2F 0B + 15 00 00 00 00 00 02 30 0C + 15 00 00 00 00 00 02 31 01 + 15 00 00 00 00 00 02 32 09 + 15 00 00 00 00 00 02 33 02 + 15 00 00 00 00 00 02 34 00 + 15 00 00 00 00 00 02 35 01 + 15 00 00 00 00 00 02 36 01 + 15 00 00 00 00 00 02 37 2A + 15 00 00 00 00 00 02 38 09 + 15 00 00 00 00 00 02 45 02 + 15 00 00 00 00 00 02 46 03 + 15 00 00 00 00 00 02 47 02 + 15 00 00 00 00 00 02 48 03 + 15 00 00 00 00 00 02 49 0A + 15 00 00 00 00 00 02 4A 05 + 15 00 00 00 00 00 02 4B 49 + 15 00 00 00 00 00 02 4E 70 + 15 00 00 00 00 00 02 4F 70 + 15 00 00 00 00 00 02 50 05 + 15 00 00 00 00 00 02 53 70 + 15 00 00 00 00 00 02 7B 8E + 15 00 00 00 00 00 02 7D 04 + 15 00 00 00 00 00 02 80 04 + 15 00 00 00 00 00 02 81 04 + 15 00 00 00 00 00 02 82 16 + 15 00 00 00 00 00 02 83 34 + 15 00 00 00 00 00 02 84 52 + 15 00 00 00 00 00 02 85 25 + 15 00 00 00 00 00 02 86 43 + 15 00 00 00 00 00 02 87 61 + 15 00 00 00 00 00 02 90 25 + 15 00 00 00 00 00 02 91 43 + 15 00 00 00 00 00 02 92 61 + 15 00 00 00 00 00 02 93 16 + 15 00 00 00 00 00 02 94 34 + 15 00 00 00 00 00 02 95 52 + 15 00 00 00 00 00 02 9C F4 + 15 00 00 00 00 00 02 9D 01 + 15 00 00 00 00 00 02 A0 0E + 15 00 00 00 00 00 02 A2 0E + 15 00 00 00 00 00 02 A4 04 + 15 00 00 00 00 00 02 A5 04 + 15 00 00 00 00 00 02 AA 05 + 15 00 00 00 00 00 02 AD 02 + 15 00 00 00 00 00 02 B0 0B + 15 00 00 00 00 00 02 B3 08 + 15 00 00 00 00 00 02 B6 11 + 15 00 00 00 00 00 02 B9 0E + 15 00 00 00 00 00 02 BC 17 + 15 00 00 00 00 00 02 BF 14 + 15 00 00 00 00 00 02 C4 C0 + 15 00 00 00 00 00 02 CA C9 + 15 00 00 00 00 00 02 D9 80 + 15 00 00 00 00 00 02 E5 06 + 15 00 00 00 00 00 02 E6 80 + 15 00 00 00 00 00 02 ED C0 + 15 00 00 00 00 00 02 FF 25 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 66 D8 + 15 00 00 00 00 00 02 67 01 + 15 00 00 00 00 00 02 68 58 + 15 00 00 00 00 00 02 69 10 + 15 00 00 00 00 00 02 6B 00 + 15 00 00 00 00 00 02 6C 15 + 15 00 00 00 00 00 02 71 1D + 15 00 00 00 00 00 02 77 72 + 15 00 00 00 00 00 02 7E 15 + 15 00 00 00 00 00 02 7F 00 + 15 00 00 00 00 00 02 8D 00 + 15 00 00 00 00 00 02 C0 5D + 15 00 00 00 00 00 02 C1 11 + 15 00 00 00 00 00 02 C3 00 + 15 00 00 00 00 00 02 C4 01 + 15 00 00 00 00 00 02 C5 01 + 15 00 00 00 00 00 02 EF 00 + 15 00 00 00 00 00 02 F0 00 + 15 00 00 00 00 00 02 F1 04 + 15 00 00 00 00 00 02 FF 26 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 00 + 15 00 00 00 00 00 02 01 F2 + 15 00 00 00 00 00 02 02 F2 + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 04 F2 + 15 00 00 00 00 00 02 05 08 + 15 00 00 00 00 00 02 06 1F + 15 00 00 00 00 00 02 07 1F + 15 00 00 00 00 00 02 08 1F + 15 00 00 00 00 00 02 74 AF + 15 00 00 00 00 00 02 81 0E + 15 00 00 00 00 00 02 83 04 + 15 00 00 00 00 00 02 84 03 + 15 00 00 00 00 00 02 85 01 + 15 00 00 00 00 00 02 86 03 + 15 00 00 00 00 00 02 87 01 + 15 00 00 00 00 00 02 88 0A + 15 00 00 00 00 00 02 8A 1A + 15 00 00 00 00 00 02 8C 54 + 15 00 00 00 00 00 02 8D 27 + 15 00 00 00 00 00 02 8E 63 + 15 00 00 00 00 00 02 8F 36 + 15 00 00 00 00 00 02 90 72 + 15 00 00 00 00 00 02 91 45 + 15 00 00 00 00 00 02 9A 80 + 15 00 00 00 00 00 02 9B 04 + 15 00 00 00 00 00 02 9C 00 + 15 00 00 00 00 00 02 9D 00 + 15 00 00 00 00 00 02 9E 00 + 15 00 00 00 00 00 02 FF 27 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 01 60 + 15 00 00 00 00 00 02 20 80 + 15 00 00 00 00 00 02 21 95 + 15 00 00 00 00 00 02 25 81 + 15 00 00 00 00 00 02 26 DF + 15 00 00 00 00 00 02 88 02 + 15 00 00 00 00 00 02 8A 0A + 15 00 00 00 00 00 02 F9 00 + 15 00 00 00 00 00 02 FF 2A + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 07 32 + 15 00 00 00 00 00 02 0A 40 + 15 00 00 00 00 00 02 0C 0E + 15 00 00 00 00 00 02 0E 03 + 15 00 00 00 00 00 02 11 9F + 15 00 00 00 00 00 02 15 0F + 15 00 00 00 00 00 02 16 2E + 15 00 00 00 00 00 02 19 0F + 15 00 00 00 00 00 02 1A 01 + 15 00 00 00 00 00 02 1B 11 + 15 00 00 00 00 00 02 1D 12 + 15 00 00 00 00 00 02 1E 79 + 15 00 00 00 00 00 02 1F 79 + 15 00 00 00 00 00 02 20 79 + 15 00 00 00 00 00 02 2D 01 + 15 00 00 00 00 00 02 33 0B + 15 00 00 00 00 00 02 34 28 + 15 00 00 00 00 00 02 36 09 + 15 00 00 00 00 00 02 37 28 + 15 00 00 00 00 00 02 45 F0 + 15 00 00 00 00 00 02 75 A0 + 15 00 00 00 00 00 02 A5 78 + 15 00 00 00 00 00 02 D8 40 + 15 00 00 00 00 00 02 EE 01 + 15 00 00 00 00 00 02 F0 A8 + 15 00 00 00 00 00 02 FF F0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 BB 40 + 15 00 00 00 00 00 02 FF 20 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 11 B0 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B1 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 B2 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F B3 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 39 00 00 00 00 00 11 B4 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B5 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 B6 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F B7 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 39 00 00 00 00 00 11 B8 00 08 00 2B 00 5A 00 7D 00 9B 00 B4 00 CA 00 DE + 39 00 00 00 00 00 11 B9 00 F0 01 2A 01 53 01 95 01 C3 02 0D 02 42 02 44 + 39 00 00 00 00 00 11 BA 02 79 02 B4 02 DE 03 0E 03 32 03 58 03 68 03 77 + 39 00 00 00 00 00 0F BB 03 89 03 9F 03 B7 03 CD 03 DA 03 DC 00 00 + 15 00 00 00 00 00 02 FF 21 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 11 B0 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B1 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 B2 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F B3 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 39 00 00 00 00 00 11 B4 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B5 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 B6 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F B7 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 39 00 00 00 00 00 11 B8 00 00 00 23 00 52 00 75 00 93 00 AC 00 C2 00 D6 + 39 00 00 00 00 00 11 B9 00 E8 01 22 01 4B 01 8D 01 BB 02 05 02 3A 02 3C + 39 00 00 00 00 00 11 BA 02 71 02 AC 02 D6 03 06 03 2A 03 50 03 60 03 6F + 39 00 00 00 00 00 0F BB 03 81 03 97 03 AF 03 C5 03 D2 03 D4 00 00 + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 80 + 15 00 00 00 00 00 02 07 00 + 15 00 00 00 00 00 02 08 01 + 15 00 00 00 00 00 02 09 55 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 0C CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + }; + }; +}; + From 9705564a4d67b1856e76d39d108b3cfdbc4d6b50 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 18 Jan 2021 17:07:02 +0800 Subject: [PATCH 0155/1247] denver: dts/panel_BOE: the bits of 51 changed to 12bits The OTP code of DVT1/EVT2 panel is mistake. DVT2 panel will be right. For DVT2 panel, the bits of 51 is 12bits. So we set 51h to 0x0C CC Change-Id: I664e018f3bdd7282e6b3a5d2d9549c1078c2faed Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1853441 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 6bcd561e20b3..2251fba1ca9b 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -59,7 +59,7 @@ [ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 51 CC + 39 00 00 00 00 00 03 51 0C CC 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 From 446828a2039007945fa786fd13a5c4700edbeccd Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 18 Jan 2021 17:09:47 +0800 Subject: [PATCH 0156/1247] denver: dts/panel_BOE: correct the command of HBM on/off For DVT2 panel, the bits of 51h is 12bits. So set 51 0x0F FF to enable HBM. Change-Id: Ie33d9958f535ee8c3d1e09b4e0642bcfe698ab6c Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1853444 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 566f70891acf..7bed8c145aa3 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -184,9 +184,9 @@ qcom,tp_state_check_enable; - qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 03 51 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 03 51 CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From fc99b0428bf788267141345c8570f8097f463263 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 21 Jan 2021 12:58:48 +0800 Subject: [PATCH 0157/1247] Denver: dts/panel: change the HBM_OFF command KP's requirement is 17.3mA for max brightness under the normal mode, and 25mA when HBM enabled. 51h = 17.3mA / 25mA *4095 = 0x0B13 Change-Id: I3ae7e8d5368efe4036b0e3ca34e030a7d2af0e18 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1854410 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 7bed8c145aa3..936e1016d139 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -145,7 +145,7 @@ qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0B 13]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; @@ -186,7 +186,7 @@ qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0B 13]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From ece616c42c4b613ed1b29e5bc914a9021af38c17 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 19 Jan 2021 18:35:11 +0800 Subject: [PATCH 0158/1247] Denver: dts/panel_AUO: change the value of 51h under the normal mode KP's requirement is 17.3mA for max brightness under the normal mode, and 25mA when HBM enabled. 51h = 17.3mA / 25mA *4095 = 0x0B13 Change-Id: Ie9db2d406cdc6865a423c3fbea30f8d04cf40f04 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1854408 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 76504a5b37bd..d4cafa89ddda 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -61,7 +61,7 @@ 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 68 02 01 39 00 00 00 00 00 02 B0 00 - 39 00 00 00 00 00 03 51 0C CC + 39 00 00 00 00 00 03 51 0B 13 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 From e09d4b747fe3352ef98a858faa642f534335eff5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 21 Jan 2021 12:57:48 +0800 Subject: [PATCH 0159/1247] Denver: dts/panel_BOE: change the value of 51h under the normal mode KP's requirement is 17.3mA for max brightness under the normal mode, and 25mA when HBM enabled. 51h = 17.3mA / 25mA *4095 = 0x0B13 Change-Id: I0620653aa66110be34d2a9c4fde3065a58a23f95 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1854409 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 2251fba1ca9b..6c545cdd93b9 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -59,7 +59,7 @@ [ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 - 39 00 00 00 00 00 03 51 0C CC + 39 00 00 00 00 00 03 51 0B 13 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 From 0c99559e5d10f7f5459f7265772293ce103c2f11 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 20 Jan 2021 14:13:29 +0800 Subject: [PATCH 0160/1247] Denver: dts/panel_auo: timming optimization 1. reset: L 6ms-> H 6ms ->L 6ms -> H 6ms 2. Add the delay time after 29 command, that time of BLON >40mS Change-Id: I6efe2a4236e9790bb2615d66444b2d4a9214cedb Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1855627 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index d4cafa89ddda..c86832d8772c 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; @@ -65,7 +65,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 00 00 01 29 + 05 01 00 00 28 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 30419af0bc13de625b7cea183491ad6f952295ce Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 20 Jan 2021 14:13:44 +0800 Subject: [PATCH 0161/1247] Denver: dts/panel_boe: timming optimization 1. reset: L 6ms-> H 6ms ->L 6ms -> H 6ms 2. Add the delay time after 29 command, that time of BLON >40mS Change-Id: I201725815bfff690d61466348f8e0a9bbf426370 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1855628 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 6c545cdd93b9..6845b0655aef 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; @@ -62,8 +62,8 @@ 39 00 00 00 00 00 03 51 0B 13 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 - 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 + 05 01 00 00 64 00 01 11 + 05 01 00 00 28 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 9ab05ddc3c21441e30cf0f897e2b75c277394661 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Mon, 25 Jan 2021 10:52:13 +0800 Subject: [PATCH 0162/1247] arm/dts: modify qg s3 entry and exit ibat Modify qg S3 entry and exit ibat to avoid wake up frequently PROPAGATED_from (CR) Change-Id: I847109cdf0420a84f7930dc92e285ffb05b8a32a Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1860237 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 996398a2885c..5591196b166b 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -502,6 +502,8 @@ qcom,fvss-vbatt-mv = <3300>; qcom,bass-enable; qcom,use-cp-iin-sns; + qcom,s3-entry-ibat-ua = <35000>; + qcom,s3-exit-ibat-ua = <50000>; }; &pm7250b_charger { From 4de0083901eebc6f4b45ab2605b1e004014d9d0f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 22 Jan 2021 17:37:06 +0800 Subject: [PATCH 0163/1247] dts/denver: panel_BOE: change mipi clock to 1099M Get the requirements from RF team for BOE panel. Change the frequency of mipi clock to 1099M Change-Id: Ib09759e6abbe855f2990a3f8dadfb7baf36da46d Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1859135 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 6845b0655aef..56d6ec50455c 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -42,9 +42,9 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <56>; - qcom,mdss-dsi-h-back-porch = <68>; - qcom,mdss-dsi-h-pulse-width = <20>; + qcom,mdss-dsi-h-front-porch = <80>; + qcom,mdss-dsi-h-back-porch = <80>; + qcom,mdss-dsi-h-pulse-width = <12>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; qcom,mdss-dsi-v-back-porch = <10>; From 7c6e0d92058d97463de8bfadfde4147a2c9352db Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 25 Jan 2021 09:42:44 +0800 Subject: [PATCH 0164/1247] dts/denver/panel: change the dsi timing RF requirement change the mipi clock to 1099M. So we also change the dsi timing. Change-Id: I3d7abcce677b38404c2bf460e628e68b51fc505b Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1860159 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 936e1016d139..a9907115302e 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -151,11 +151,11 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; - qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-t-clk-pre = <0x3B>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 - 0A 06 02 04 00]; + 0A 09 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; @@ -192,11 +192,11 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; - qcom,mdss-dsi-t-clk-pre = <0x37>; + qcom,mdss-dsi-t-clk-pre = <0x3B>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 - 0A 06 02 04 00]; + 0A 09 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From 54d6cc0a23f9e350d0c26887b01f9f696e3127ba Mon Sep 17 00:00:00 2001 From: liuwang2 Date: Thu, 28 Jan 2021 14:16:48 +0800 Subject: [PATCH 0165/1247] arm/dts: Denver/Ibiza: modify camera pmic dts - let camera pmic en pin default output low as we use i2c control it. - modify pmic ldo voltage to correct value. Change-Id: I095091b410f89930cffcf0c0156c415e145f4cac Signed-off-by: liuwang2 Reviewed-on: https://gerrit.mot.com/1863821 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jian Zhang Reviewed-by: Long Cheng Reviewed-by: Dawei Wang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 15 ++++++++------- qcom/holi-ibiza-common-overlay.dtsi | 15 ++++++++------- 2 files changed, 16 insertions(+), 14 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 980c2fc1cde2..25ca2f371e53 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -34,6 +34,7 @@ pins = "gpio38"; drive-strength = <2>; bias-pull-down; + output-low; }; }; @@ -85,43 +86,43 @@ cam_ldo1: ldo1 { regulator-name = "ldo1"; regulator-min-microvolt = <600000>; - regulator-max-microvolt = <3787500>; + regulator-max-microvolt = <1800000>; }; cam_ldo2: ldo2 { regulator-name = "ldo2"; regulator-min-microvolt = <600000>; - regulator-max-microvolt = <3787500>; + regulator-max-microvolt = <1800000>; }; cam_ldo3: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo4: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo5: ldo5 { regulator-name = "ldo5"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo6: ldo6 { regulator-name = "ldo6"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo7: ldo7 { regulator-name = "ldo7"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; }; }; diff --git a/qcom/holi-ibiza-common-overlay.dtsi b/qcom/holi-ibiza-common-overlay.dtsi index b8c537f34c58..e8d6e24d0018 100644 --- a/qcom/holi-ibiza-common-overlay.dtsi +++ b/qcom/holi-ibiza-common-overlay.dtsi @@ -157,6 +157,7 @@ pins = "gpio38"; drive-strength = <2>; bias-pull-down; + output-low; }; }; }; @@ -180,43 +181,43 @@ cam_ldo1: ldo1 { regulator-name = "ldo1"; regulator-min-microvolt = <600000>; - regulator-max-microvolt = <3787500>; + regulator-max-microvolt = <1800000>; }; cam_ldo2: ldo2 { regulator-name = "ldo2"; regulator-min-microvolt = <600000>; - regulator-max-microvolt = <3787500>; + regulator-max-microvolt = <1800000>; }; cam_ldo3: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo4: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo5: ldo5 { regulator-name = "ldo5"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo6: ldo6 { regulator-name = "ldo6"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; cam_ldo7: ldo7 { regulator-name = "ldo7"; regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4387500>; + regulator-max-microvolt = <4300000>; }; }; }; From 5015d9fc82bf8d51cbc49b5cc5145aa688e53dad Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 1 Feb 2021 08:58:10 +0800 Subject: [PATCH 0166/1247] ibiza/sensor: update sarsensor params 1.update params about ibiza sar sensor 2.holi-moto-common-overlay.dtsi Change-Id: Ie877188c9480461fe4fe29257b8f48667cb6e212 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1866709 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 5591196b166b..d1135ec30edd 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -255,15 +255,16 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ 0x8020 0x10 /*Set scan period*/ - /*set Phase sampling frequency*/ - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x886 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x886 /*AFE_PARAM_PH5*/ - 0x8070 0x886 /*AFE_PARAM_PH6*/ - /*0x807C 0x886 */ /*AFE_PARAM_PH7*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ From bf5aad769460d539bd381a03014ec13e0c7ee731 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 29 Jan 2021 16:53:05 +0800 Subject: [PATCH 0167/1247] Revert "(CR) arm/dt: ibiza: close feature: disable cabc when bl low" This reverts commit cfc554c2f7d3988b3bf1a9e1a88875e6f817847e. Fix the backlight flicker issue, enable this feature again. Mot-CRs-fixed: (CR) Change-Id: Ia79affe1c5a98f0a71900e79bf1f44400f862d88 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1865434 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 1c618980ad5c..4e24757ba26a 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -27,6 +27,11 @@ qcom,ovp = <29500>; qcom,boost-current-limit = <875>; + + mmi,low-bl-force-cabc-disable; + mmi,low-bl-threshold = <200>; + mmi,low-bl-remap-percent = <80>; + mmi,low-bl-delay-ms = <50>; }; &sde_dsi { From 6eb6b8bd26f914916a784247d6f40ea1fbee354f Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 29 Jan 2021 16:59:57 +0800 Subject: [PATCH 0168/1247] arm/dt: Decrease the dimming time of djn panel Decrease the dimming time of din panel, avoid baclight flicker when resume. If dimming is long, when cabc enable, the pwm output of panel is small, then user senses the brightness changes before and after cabc enabled. Change-Id: I084c6a07b944de21382b8befe6595bccff231d40 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1865436 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 84b14e68f8e8..20c1f1be36cf 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -60,9 +60,14 @@ 15 00 00 00 00 00 02 FF F0 15 00 00 00 00 00 02 FB 01 15 00 00 00 00 00 02 CF 22 + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 04 02 + 15 00 00 00 00 00 02 05 22 + 15 00 00 00 00 00 02 06 02 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 - 39 00 00 00 00 00 03 68 03 01 + 39 00 00 00 00 00 03 68 02 01 39 00 00 00 00 00 03 51 06 66 15 00 00 00 00 00 02 35 00 15 00 00 00 00 00 02 53 2C From b2af262dc2dc3a525a2c804990096da34e1f6a84 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 4 Feb 2021 09:40:19 +0800 Subject: [PATCH 0169/1247] arm64/dt: denver: change vibrator voltage Change the vibrator voltage from 3v to 2.9v that suggest by KP. Change-Id: Ib42092dc4cb106d8ec68d78701661b48cbf9568f Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1870569 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index 25ca2f371e53..ce46805a78b0 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -143,6 +143,10 @@ qcom,qg-iterm-ma = <500>; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <2900000>; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; From 13deefb83c67c099d39cd56a91eda1eaa3b0ac84 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 4 Feb 2021 15:16:18 +0800 Subject: [PATCH 0170/1247] denver/sensor: update sarsensor params 1.update params 2.holi-denver-common-overlay.dtsi Change-Id: I73b3d9b3c813e589e079ef4c00ecd8ff120239fc Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1870862 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 96 +++++++++++++++++----------- 1 file changed, 57 insertions(+), 39 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index ce46805a78b0..f4ab0478053c 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -293,18 +293,21 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <57>; + Semtech,reg-num = <75>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x74 /*irq mask*/ - 0x8028 0x78D /*AFE_PARAM_PH0*/ - 0x8034 0x78D /*AFE_PARAM_PH1*/ - 0x8040 0x78D /*AFE_PARAM_PH2*/ - 0x804C 0x78D /*AFE_PARAM_PH3*/ - 0x8058 0x58D /*AFE_PARAM_PH4*/ - 0x8064 0x78D /*AFE_PARAM_PH5*/ - 0x8070 0x78D /*AFE_PARAM_PH6*/ - 0x807C 0x78D /*AFE_PARAM_PH7*/ + 0x8008 0x7F000081 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x58E /*AFE_PARAM_PH0*/ + 0x8034 0x78E /*AFE_PARAM_PH1*/ + 0x8040 0x58E /*AFE_PARAM_PH2*/ + 0x804C 0x566 /*AFE_PARAM_PH3*/ + 0x8058 0x566 /*AFE_PARAM_PH4*/ + 0x8064 0x57E /*AFE_PARAM_PH5*/ + 0x8070 0x566 /*AFE_PARAM_PH6*/ + 0x807C 0x58D /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ @@ -314,43 +317,58 @@ 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8088 0x200000 - 0x80A8 0x200000 - 0x80C8 0x200000 - 0x80E8 0x200000 - 0x8108 0x200000 + 0x802C 0x0 + 0x8038 0xF3C3CF + 0x8044 0x940250 + 0x8050 0x9BC26F + 0x805C 0x990264 + 0x8068 0xD4C353 + 0x8074 0xB4C2D3 + 0x8080 0x0 + 0x8098 0x8633 + 0x80B8 0x7833 + 0x80D8 0x8774 + 0x80F8 0x785C + 0x8118 0x6540 + 0x8138 0xF4 + 0x8158 0xF4 + 0x8178 0x0 0x80A0 0x222200E1 0x80C0 0x0 0x80E0 0x1E1E00E1 0x8100 0x2B2B00E2 - 0x8120 0x090900E2 + 0x8120 0xE2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 0x8190 0x0 - 0x8098 0x00008637 - 0x80B8 0x0000783C - 0x80D8 0x0000A580 - 0x80F8 0x00008050 - 0x8118 0x00006540 - 0x8138 0x00000000 - 0x8158 0x00000000 - 0x808C 0x20600019 - 0x80AC 0x20600019 - 0x80CC 0x20600019 - 0x80EC 0x20600019 - 0x810C 0x20600019 - 0x812C 0x20600019 - 0x814C 0x20600019 - 0x816C 0x20600019 - 0x8090 0x16097000 - 0x80B0 0x40277000 - 0x80D0 0x32097000 - 0x80F0 0x40287000 - 0x8110 0x40287000 - 0x8130 0x40287000 - 0x8150 0x40287000 - 0x8170 0x28A87000 - 0x8074 0x8 + 0x8194 0x0 + 0x8090 0x46E87000 + 0x80B0 0x34F27000 + 0x80D0 0x50E87000 + 0x80F0 0x24E67000 + 0x8110 0x32E27000 + 0x8130 0x7000 + 0x8150 0x7000 + 0x8170 0x0 + 0x8088 0x200000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x200000 + 0x8108 0x200000 + 0x8128 0x6500000 + 0x8148 0x6500000 + 0x8168 0x0 + 0x808C 0x60600019 + 0x80AC 0x60600019 + 0x80CC 0x60600019 + 0x80EC 0x60600019 + 0x810C 0x60600019 + 0x812C 0x60600019 + 0x814C 0x60600019 + 0x816C 0x0 0x8024 0x7F7F 0x4280 0xe >; From 74a71c108b7b35c7bb83afa9ddf35a8906db79d5 Mon Sep 17 00:00:00 2001 From: chenkp1 Date: Wed, 3 Feb 2021 14:51:42 +0800 Subject: [PATCH 0171/1247] arm/dt: Create channel ID for Optus Australia Creating a new channel ID (ro.carrier) for Optus Australia. New channel id name is 'optus' and is been applied to all QC active Kernels. This change is to apply to 4.19 Change-Id: Iec7a453c5d5da01763402af6e88696cf6989ee81 Reviewed-on: https://gerrit.mot.com/1869568 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 81bf43b23026..fe143abbf16a 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -227,7 +227,7 @@ "retsea", /* 210 */ "retjp", /* 211 */ "softbank", /* 212 */ - "undefined", /* 213 */ + "optus", /* 213 */ "undefined", /* 214 */ "undefined", /* 215 */ "undefined", /* 216 */ From a0e5dfb547692228f2644d3a30fb01496d739161 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 5 Feb 2021 17:44:40 +0800 Subject: [PATCH 0172/1247] denver/sensor: update sarsensor params 1.update params 2.holi-denver-common-overlay.dtsi Change-Id: Icd599722e7be3affc52c1f11a342b468c6ec4800 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1872434 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index f4ab0478053c..cb99a3431341 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -348,8 +348,8 @@ 0x8090 0x46E87000 0x80B0 0x34F27000 0x80D0 0x50E87000 - 0x80F0 0x24E67000 - 0x8110 0x32E27000 + 0x80F0 0x24E87000 + 0x8110 0x32E47000 0x8130 0x7000 0x8150 0x7000 0x8170 0x0 From 8963ebc11519f0cc72779583f714ab4fe0bb990e Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 8 Feb 2021 10:45:40 +0800 Subject: [PATCH 0173/1247] arm/dt: disable cabc only when adjust brightness arm/dt: Disable cabc only when adjust to low brightnss. Don't disable cabc when screen off/on, this causes big voltage issue on pm6150l/7150l. Change-Id: I44d3d9c08401d451d0180c451eaa0bbb74480f33 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1873481 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 4e24757ba26a..e8341628905d 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -28,10 +28,9 @@ qcom,ovp = <29500>; qcom,boost-current-limit = <875>; - mmi,low-bl-force-cabc-disable; + mmi,only-low-bl-force-cabc-disable; mmi,low-bl-threshold = <200>; mmi,low-bl-remap-percent = <80>; - mmi,low-bl-delay-ms = <50>; }; &sde_dsi { From b2b82874315b88983bd11a50cfacab494fa7cde3 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 8 Feb 2021 10:37:18 +0800 Subject: [PATCH 0174/1247] arm/dt: increase the delay time to avoid wled ovp arm/dt: Current configs cause wled ovp when screen on. Increase the delay time can avoid this after testing. Change-Id: I2904dd3697791e7624a7b8816078561a69470c5f Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1873686 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 2 +- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 20c1f1be36cf..130ca032f719 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -73,7 +73,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 + 05 01 00 00 46 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi index e89bb8cb3855..cdffd07b6966 100644 --- a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -81,7 +81,7 @@ 39 01 00 00 00 00 03 F0 A5 A6 05 01 00 00 5A 00 01 11 05 01 00 00 32 00 01 29 - 15 01 00 00 00 00 02 26 02 + 15 01 00 00 96 00 02 26 02 ]; qcom,mdss-dsi-off-command = [ 15 01 00 00 00 00 02 26 08 From 0778625873d0c97aea3db695faf3cf4ad9f12251 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 25 Feb 2021 15:58:47 +0800 Subject: [PATCH 0175/1247] arm/dt: decrease the delay time at panel ic power on/init arm/dt: Decrease the delay time at panel ic power on and init stage. Test: Panel timing has been verified by Vendor. Wled ovp has been verified by hardware engineer. Change-Id: I74258dbe94865869f510ca7787bb5ce96162e309 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1886655 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi | 4 ++-- qcom/ibiza-display.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi index cdffd07b6966..95238d54894f 100644 --- a/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-tm-icnl9911c-hd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-reset-sequence = <1 2>, <0 2>, <1 11>; qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; @@ -79,7 +79,7 @@ 39 01 00 00 00 00 18 E1 EF FE FE FE FE EE F0 20 33 FF 00 00 6A 90 C0 0D 6A F0 3E FF 00 07 D0 39 01 00 00 00 00 03 F1 5A 59 39 01 00 00 00 00 03 F0 A5 A6 - 05 01 00 00 5A 00 01 11 + 05 01 00 00 46 00 01 11 05 01 00 00 32 00 01 29 15 01 00 00 96 00 02 26 02 ]; diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index e8341628905d..cd6b773df4ab 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -111,7 +111,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <7>; }; }; }; From d20886f342426f93419e85ef0e93abbeb127e78f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 1 Mar 2021 10:35:56 +0800 Subject: [PATCH 0176/1247] Denver dts/panel: disable CABC when low bl to avoid bl flicker Cause of pm6150/pm7150 hardware BUG, we must disable CABC when bl low. Change-Id: I0d005cb617f3c8a7efb67ce35110c6be4f477535 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1889073 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index a9907115302e..3fe1bffae962 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -27,6 +27,10 @@ qcom,ovp = <23500>; qcom,boost-current-limit = <1050>; + + mmi,low-bl-force-cabc-disable; + mmi,low-bl-threshold = <200>; + mmi,low-bl-remap-percent = <80>; }; &sde_dsi { From 42694ae5bd3f77dd976aeb6084f22178ea7748c8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 2 Mar 2021 14:41:28 +0800 Subject: [PATCH 0177/1247] denver: dts/panel: change the min bl to 32 From pm6150L's spec ,the min current of bl is 0.1mA/string. And the max power save ratio is 25%. So min bl = 0.1mA/(17.3mA * 75%) *4095 Change-Id: Ic6c0e964ea7110835cf01ee968a250247e550132 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1890152 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 3fe1bffae962..be907b4a9178 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -133,7 +133,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <47>; + qcom,mdss-dsi-bl-min-level = <32>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-default-level = <2047>; qcom,mdss-brightness-max-level = <4095>; @@ -174,7 +174,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <47>; + qcom,mdss-dsi-bl-min-level = <32>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-default-level = <2047>; qcom,mdss-brightness-max-level = <4095>; From f33812f56931a5f3d9717fed9526c9e39893f6f6 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 2 Mar 2021 14:59:17 +0800 Subject: [PATCH 0178/1247] arm/dt: improve the timing of djn panel for ibiza KPI arm/dt: Improve the timing of djn panel for ibiza KPI. Panel timing and wled ovp has been verified by hardware. Change-Id: I2c2bac5883a867d2a86d5602a298e62ac9187db6 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1890277 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi | 4 ++-- qcom/ibiza-display.dtsi | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi index 130ca032f719..4e9e5f8d5aba 100644 --- a/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36525c-hd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 11>, <0 4>, <1 11>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; @@ -72,7 +72,7 @@ 15 00 00 00 00 00 02 35 00 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 - 05 01 00 00 78 00 01 11 + 05 01 00 00 68 00 01 11 05 01 00 00 46 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index cd6b773df4ab..64baeece5021 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -75,7 +75,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <5>; }; }; From f62bef42bfff097f9de0b34954f24b41aaf536c0 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 2 Mar 2021 16:46:41 +0800 Subject: [PATCH 0179/1247] arm/dt: set min level bl same as framework config.xml arm/dt: Set min level brightness same as framework config.xml. minlevel= (minlevel-config.xml / 255 ) * maxlevel-panel djn: 27 = 2/255 * 3382 tm: 32 = 2/255 * 4095 Change-Id: I8de6dbde4bcff5c486e07c4e293569f6bbef4b8b Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1890278 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/ibiza-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/ibiza-display.dtsi b/qcom/ibiza-display.dtsi index 64baeece5021..8318eab26bd4 100644 --- a/qcom/ibiza-display.dtsi +++ b/qcom/ibiza-display.dtsi @@ -126,7 +126,7 @@ qcom,mdss-dsi-panel-supplier = "djn"; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-min-level = <27>; qcom,mdss-dsi-bl-max-level = <3382>; qcom,mdss-dsi-bl-default-level = <1691>; qcom,mdss-brightness-max-level = <3382>; @@ -170,7 +170,7 @@ qcom,mdss-dsi-panel-supplier = "tianma"; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-min-level = <32>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-default-level = <2047>; qcom,mdss-brightness-max-level = <4095>; From ad4b70c5ecf277bdd38241a52bdbbe698b93859f Mon Sep 17 00:00:00 2001 From: Binsheng Que Date: Wed, 3 Mar 2021 05:01:01 -0600 Subject: [PATCH 0180/1247] Revert "ARM: dts: msm: Add bus scaling support" This reverts commit 3df8a7acf0ea934485f9162c2d58e26878707b2e. The previous change will cause the TZ to be awake all the time. Syncing with Qualcomm in SR 05102653, in 20mA case, ce1_clk is not disabled which is related to the crypto engine. : *** TZ *** 4 status: SPM_AWAKE num_active_cores: 0 pending_bringups: 0x00000000 Master Stats: ERROR ee.stats is null CHANGER: ERROR READING [ee].changer HANDLER: SMDL info: NONE Mot-CRs-fixed: (CR) Change-Id: I37cc4a6d467273705fe96d14ac735cd0d4c583d3 Reviewed-on: https://gerrit.mot.com/1891694 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 303a4b795fa0..4e041d8fc4b8 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -3030,7 +3030,6 @@ qcom,fde-key-size; qcom,appsbl-qseecom-support; qcom,commonlib64-loaded-by-uefi; - qcom,support-bus-scaling; interconnect-names = "data_path"; interconnects = <&system_noc MASTER_CRYPTO_CORE0 &bimc SLAVE_EBI>; clock-names = From a974ea909f600847202c729d4d398f93c5d3b346 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Sun, 28 Feb 2021 18:59:48 +0800 Subject: [PATCH 0181/1247] arm/dt: set backlight type to wled for dummy panel arm/dt: Set backlight type to wled for dummy panel, instead of dummy backlight type, to enable wled module. Use this change to fix current of board is too high when power off. Change-Id: I1912b9cd8bb6f68cad8cb56b99e7295a0d851068 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1888893 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Dezhen Hou Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-dummy-qhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi index 463e11e11972..358dc12ce524 100644 --- a/qcom/dsi-panel-mot-dummy-qhd-video.dtsi +++ b/qcom/dsi-panel-mot-dummy-qhd-video.dtsi @@ -44,7 +44,7 @@ qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; qcom,mdss-dsi-display-timings { timing@0{ From eaacb20e5c8bfbea1d4fd74cd7de742ebb10ef25 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 4 Mar 2021 17:24:01 +0800 Subject: [PATCH 0182/1247] denver dts/panel: reduce the delay of display on 1. remove the delay time after vsn on 2. reduce the delay time of reset 3. remove the delay time of 29 command. the above changes are confirm by FAE and hardware team Change-Id: I9803a2f4f323f04480229cd403f1171fa30e0e14 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1892841 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index be907b4a9178..fc03c874520a 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -83,7 +83,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <0>; }; }; @@ -120,7 +120,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <0>; }; }; }; diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index c86832d8772c..7601328c4ac3 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 56d6ec50455c..7451a80ca4f0 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; @@ -63,7 +63,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 28 00 01 29 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From e557740d099ee04fe45bf9cddb640bbae2133de0 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 8 Mar 2021 11:30:06 +0800 Subject: [PATCH 0183/1247] Revert "(CR) denver dts/panel: reduce the delay of display on" This reverts commit fb9883fb5e600d08e93b1c3070e2462c8117cac9. Change-Id: Ia6e7e35138e021c452badb9b7d45591f18bb05f9 Reviewed-on: https://gerrit.mot.com/1894993 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index fc03c874520a..be907b4a9178 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -83,7 +83,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <0>; + qcom,supply-post-on-sleep = <10>; }; }; @@ -120,7 +120,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <0>; + qcom,supply-post-on-sleep = <10>; }; }; }; diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 7601328c4ac3..c86832d8772c 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 7451a80ca4f0..56d6ec50455c 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; @@ -63,7 +63,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 00 00 01 29 + 05 01 00 00 28 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 55bee7610340361f36e4265cdaa36f67ad055f70 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 4 Mar 2021 17:24:01 +0800 Subject: [PATCH 0184/1247] denver dts/panel: reduce the delay of display on 1. remove the delay time after vsn on 2. reduce the delay time of reset 3. remove the delay time of 29 command. the above changes are confirm by FAE and hardware team Change-Id: Ibba8ed45247ec8ac2d0020c21d17d0865131d87f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1894995 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index be907b4a9178..fc03c874520a 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -83,7 +83,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <0>; }; }; @@ -120,7 +120,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <10>; + qcom,supply-post-on-sleep = <0>; }; }; }; diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index c86832d8772c..7601328c4ac3 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 56d6ec50455c..7451a80ca4f0 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -27,7 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-reset-sequence = <0 6>, <1 6>, <0 6>, <1 6>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; qcom,mdss-pan-physical-width-dimension = <71>; qcom,mdss-pan-physical-height-dimension = <158>; @@ -63,7 +63,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 28 00 01 29 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 9e1f169c58a6aa43764e041b172a2d6ff6e6175d Mon Sep 17 00:00:00 2001 From: linyx10 Date: Sun, 17 Jan 2021 22:01:33 +0800 Subject: [PATCH 0185/1247] holi.dtsi: Tbase MobiCore Driver(mcd) configuration. - Follow sm4250, set the IRQ for mcd with ID 248 to request interrupt. - Use RPM_SMD_CE1_CLK as system clock. Change-Id: I577f91aaab2510bd98b5db6dbba340d5680fe8cf Signed-off-by: linyx10 Reviewed-on: https://gerrit.mot.com/1853305 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Binsheng Que Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 4e041d8fc4b8..58cb194da4a7 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -3158,6 +3158,21 @@ compatible = "qcom,smcinvoke"; }; + mcd { + compatible = "qcom,mcd"; + qcom,ce-hw-instance = <0>; + qcom,ce-device = <0>; + interrupts = <0 248 0>; + interrupt-names = "mcd_irq"; + clock-names = "core_clk_src", "core_clk", "iface_clk", "bus_clk"; + clocks = + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>; + qcom,ce-opp-freq = <192000000>; + }; + eud: qcom,msm-eud@1628000 { compatible = "qcom,msm-eud"; interrupt-names = "eud_irq"; From d46fdb56ecb48b8fb93c8a9d887b608da410cab5 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 15 Mar 2021 16:49:26 +0800 Subject: [PATCH 0186/1247] denver/sensor: update sarsensor params 1.update params 2.holi-denver-common-overlay.dtsi Change-Id: Idc7fada55933ee683df3f1086aac1dfdd8a6a188 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1900715 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index cb99a3431341..d621b8e86d44 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -325,11 +325,11 @@ 0x8068 0xD4C353 0x8074 0xB4C2D3 0x8080 0x0 - 0x8098 0x8633 - 0x80B8 0x7833 + 0x8098 0x862D + 0x80B8 0x782D 0x80D8 0x8774 0x80F8 0x785C - 0x8118 0x6540 + 0x8118 0x5740 0x8138 0xF4 0x8158 0xF4 0x8178 0x0 From 4398a48021870f5910701864f9b03cbdbceb6664 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 15 Mar 2021 17:11:10 +0800 Subject: [PATCH 0187/1247] denver/panel: increate the delay time after power up AVEE With "https://gerrit.mot.com/#/c/1894995/" ,we reduce the delay time of display on. From waveform FAE ask us to increase the delay time after power on AVEE. Change-Id: Ia7873a92fbad30856430633b9ea85292d08cac6a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1900743 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi | 2 +- qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index fc03c874520a..f94285399977 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -83,7 +83,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <0>; + qcom,supply-post-on-sleep = <3>; }; }; @@ -120,7 +120,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <0>; + qcom,supply-post-on-sleep = <3>; }; }; }; diff --git a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi index 7601328c4ac3..80ce362a0c28 100644 --- a/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-auo-nt36675-fhd-video.dtsi @@ -65,7 +65,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 28 00 01 29 + 05 01 00 00 01 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 diff --git a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi index 7451a80ca4f0..47a414b8d2c1 100644 --- a/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-boe-nt36675-fhd-video.dtsi @@ -63,7 +63,7 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 - 05 01 00 00 00 00 01 29 + 05 01 00 00 01 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 00 00 01 28 From 6ef7a1c4513a432a1f8b76dd0f33e4a753b8bced Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 15 Mar 2021 16:57:48 +0800 Subject: [PATCH 0188/1247] denver/backlight: set low-bl-remap-percent to 69% under the normal mode,The current output from the PMIC not multiplied by the duty cycle of PWM from panel. For denver the the duty cycle of PWM is 69%. so the max backlight is 25mA*69%. But When enable "low-bl-disable-cabc" function, we will disable CABC under when under the low bl. The current output from the PMIC is not multiplied by the duty cycle of PWM from panel. So we must set the brightness to brightness*69%. Change-Id: Ib5325e32cc9220a89d95641ce5946fe5885fe5d0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1900727 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index f94285399977..e7f7d0bf5332 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -30,7 +30,7 @@ mmi,low-bl-force-cabc-disable; mmi,low-bl-threshold = <200>; - mmi,low-bl-remap-percent = <80>; + mmi,low-bl-remap-percent = <69>; }; &sde_dsi { From 5a10058a89e7c108442f4b345b586fbf54cf8e80 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 15 Mar 2021 18:11:21 +0800 Subject: [PATCH 0189/1247] denver/dts: disable cabc only when adjust brightness Disable cabc only when adjust to low brightnss. Don't disable cabc when screen off/on. From suspend to resume, cabc enable and dimming for PWM from panel will cause backlight flicker. Change-Id: I7f7ff27688fd26018f458d18708b8b20f351a4e7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1900849 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index e7f7d0bf5332..9cfeb1d542a2 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -28,7 +28,7 @@ qcom,ovp = <23500>; qcom,boost-current-limit = <1050>; - mmi,low-bl-force-cabc-disable; + mmi,only-low-bl-force-cabc-disable; mmi,low-bl-threshold = <200>; mmi,low-bl-remap-percent = <69>; }; From 0e27141d8049329fdfe6cd12daa6d6f7a1e198ee Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 16 Mar 2021 10:10:33 +0800 Subject: [PATCH 0190/1247] denver/panel: dts: add support for the third panel the third panel is similar with the second panel. panel vendor and panel IC are the same. Only CG is different. So copy code from the second panel. Change-Id: Idd9c5e85dce37c2a5f567dc4477100d975c03305 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1902232 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 42 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index 9cfeb1d542a2..c2e3dcd593ca 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -2,6 +2,7 @@ #include "dsi-panel-mot-auo-nt36675-fhd-video.dtsi" #include "dsi-panel-mot-boe-nt36675-fhd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-bod-nt36675-fhd-video.dtsi" @@ -207,6 +208,47 @@ }; }; +&dsi_nt36675_bod_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_denver_boe>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + + qcom,mdss-dsi-bl-min-level = <32>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0B 13]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x3B>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 09 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; From f4053ea3d4384f445d2a142996ea534dc83ce73e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 16 Mar 2021 10:10:52 +0800 Subject: [PATCH 0191/1247] denver/panel: dts: add the third panel file the third panel is similar with the second panel. panel vendor and panel IC are the same. Only CG is different. So copy code from the second panel. Change-Id: I4868d080ecd7722f5179e6e51e48f66cc83f68e0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1902233 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-bod-nt36675-fhd-video.dtsi | 80 +++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 qcom/dsi-panel-mot-bod-nt36675-fhd-video.dtsi diff --git a/qcom/dsi-panel-mot-bod-nt36675-fhd-video.dtsi b/qcom/dsi-panel-mot-bod-nt36675-fhd-video.dtsi new file mode 100644 index 000000000000..5ce4859e4fba --- /dev/null +++ b/qcom/dsi-panel-mot-bod-nt36675-fhd-video.dtsi @@ -0,0 +1,80 @@ +&mdss_mdp { + dsi_nt36675_bod_video: qcom,mdss_dsi_nt36675_bod_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_bod_1080p_681"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-pan-physical-width-dimension = <71>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <80>; + qcom,mdss-dsi-h-back-porch = <80>; + qcom,mdss-dsi-h-pulse-width = <12>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <20>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 0B 13 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 64 00 01 11 + 05 01 00 00 01 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 00 00 01 28 + 05 01 00 00 44 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x35>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; From c1d5133f45265554574849b8060dc5f00af3968a Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 16 Mar 2021 16:10:18 +0800 Subject: [PATCH 0192/1247] Denver: Support the third panel-supplier for novatek - Support for the third supplier - boe djn(bod) for denver, and we have supported auo, boe, bod on denver. Change-Id: If3df86b79e0f5909d123b93f350fb578ac3d1962 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1902525 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-touchscreen.dtsi b/qcom/denver-touchscreen.dtsi index 04548ec7b6c9..0b60fdcd446c 100755 --- a/qcom/denver-touchscreen.dtsi +++ b/qcom/denver-touchscreen.dtsi @@ -84,8 +84,8 @@ novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; novatek,usb_charger; - novatek,panel-supplier = "auo","boe"; - panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video &mot_dummy_vid_qhd>; + novatek,panel-supplier = "auo","boe","bod"; + panel = <&dsi_nt36675_auo_video &dsi_nt36675_boe_video &dsi_nt36675_bod_video &mot_dummy_vid_qhd>; status = "ok"; }; From ff9f9790dfaf7cf4d5b764a845963fe5aaab4ba4 Mon Sep 17 00:00:00 2001 From: Yiwen Liu Date: Wed, 24 Mar 2021 14:51:25 +0800 Subject: [PATCH 0193/1247] arm64/dt: initial corfup dts files Corfup: SM4350, initial dts files cloned from Ibiza. Change-Id: I83c21bc94f1fa4e955f6171e470544908aabb918 Signed-off-by: Yiwen Liu Reviewed-on: https://gerrit.mot.com/1908458 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 7 + qcom/holi-corfup-common-overlay.dtsi | 426 +++++++++++++++++++++++++++ qcom/holi-corfup-evb-overlay.dts | 24 ++ qcom/holi-corfup-evt1-overlay.dts | 24 ++ 4 files changed, 481 insertions(+) create mode 100644 qcom/holi-corfup-common-overlay.dtsi create mode 100644 qcom/holi-corfup-evb-overlay.dts create mode 100644 qcom/holi-corfup-evt1-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index ac3ca89f6c45..233a86f2de0f 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -33,6 +33,13 @@ holi-ibiza-dvt1-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-dvt2-overlay.dtbo-base := holi-moto-base.dtb holi-ibiza-pvt-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_CORFUP_DTB) += \ + holi-corfup-evb-overlay.dtbo \ + holi-corfup-evt1-overlay.dtbo + +holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi new file mode 100644 index 000000000000..b62b744070cb --- /dev/null +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -0,0 +1,426 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "ibiza-display.dtsi" +#include "ibiza-touchscreen.dtsi" +#include "ibiza-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + + + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + + +&qupv3_se7_i2c { + status = "ok"; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-swd-5000mah.dtsi" + #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" + #include "qg-batterydata-jk50-atl-5000mah.dtsi" +}; + +&pm7250b_charger { + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,dcp-curr-max = <2000000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; diff --git a/qcom/holi-corfup-evb-overlay.dts b/qcom/holi-corfup-evb-overlay.dts new file mode 100644 index 000000000000..937bd794c28c --- /dev/null +++ b/qcom/holi-corfup-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfup-common-overlay.dtsi" + +/ { + model = "corfup"; + compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0xA100>; +}; + diff --git a/qcom/holi-corfup-evt1-overlay.dts b/qcom/holi-corfup-evt1-overlay.dts new file mode 100644 index 000000000000..48b379e418f3 --- /dev/null +++ b/qcom/holi-corfup-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfup-common-overlay.dtsi" + +/ { + model = "corfup"; + compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0xA200>; +}; + From ba89808e577179a0d5bd797a7fa1638b000da3be Mon Sep 17 00:00:00 2001 From: Yiwen Liu Date: Tue, 30 Mar 2021 15:03:26 +0800 Subject: [PATCH 0194/1247] arm64/dt: corfup: update board-id From latest hwid: https://gerrit.mot.com/#/c/1912529/ evb1: A100 -> 9100 evt1: A200 -> A100 Change-Id: Ib52718e0682f9a5cc10a532db3699af51f03c2fb Signed-off-by: Yiwen Liu Reviewed-on: https://gerrit.mot.com/1912665 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfup-evb-overlay.dts | 2 +- qcom/holi-corfup-evt1-overlay.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-corfup-evb-overlay.dts b/qcom/holi-corfup-evb-overlay.dts index 937bd794c28c..c39934960112 100644 --- a/qcom/holi-corfup-evb-overlay.dts +++ b/qcom/holi-corfup-evb-overlay.dts @@ -19,6 +19,6 @@ model = "corfup"; compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0xA100>; + qcom,board-id = <0x44 0x9100>; }; diff --git a/qcom/holi-corfup-evt1-overlay.dts b/qcom/holi-corfup-evt1-overlay.dts index 48b379e418f3..937bd794c28c 100644 --- a/qcom/holi-corfup-evt1-overlay.dts +++ b/qcom/holi-corfup-evt1-overlay.dts @@ -19,6 +19,6 @@ model = "corfup"; compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0xA200>; + qcom,board-id = <0x44 0xA100>; }; From 9431b417e6d1dcb50b2e5ffdc8cf9f8856b11c9d Mon Sep 17 00:00:00 2001 From: jixu Date: Thu, 1 Apr 2021 15:53:38 +0800 Subject: [PATCH 0195/1247] arm/dt: Add corfup camera and wl2866d dtsi Corfup Add corfup overlay dtsi Add wl2866d dtsi Change-Id: I45835b7c96ac04a083cb2b5ced8907fa07952393 Signed-off-by: jixu Reviewed-on: https://gerrit.mot.com/1914991 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Jian Zhang Reviewed-by: Darong Huang Reviewed-by: Zhuoran Xu Reviewed-by: Bolei Shang Reviewed-by: Zhichao Chen Reviewed-by: Long Cheng Reviewed-by: Zhilong Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 57 +++++++++++++++++++++++----- 1 file changed, 48 insertions(+), 9 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index b62b744070cb..e01efb22b15c 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -14,7 +14,7 @@ #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" #include "ibiza-fps-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-ibiza-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" @@ -165,7 +165,46 @@ &qupv3_se10_i2c { status = "ok"; - cam_pmic: wl2864c@29{ + cam_pmic2: wl2866d@28{ + compatible = "semi,wl2866d"; + reg = <0x28>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_pmic2_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic2_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; + + cam_pmic1: wl2864c@29{ compatible = "semi,wl2864c"; reg = <0x29>; @@ -178,43 +217,43 @@ vin2-supply = <&BOB>; regulators { - cam_ldo1: ldo1 { + cam_pmic1_ldo1_dvdd1: ldo1 { regulator-name = "ldo1"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_ldo2: ldo2 { + cam_pmic1_ldo2_dvdd2: ldo2 { regulator-name = "ldo2"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_ldo3: ldo3 { + cam_pmic1_ldo3_avdd1: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_ldo4: ldo4 { + cam_pmic1_ldo4_avdd2: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_ldo5: ldo5 { + cam_pmic1_ldo5_vddaf: ldo5 { regulator-name = "ldo5"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_ldo6: ldo6 { + cam_pmic1_ldo6_vddois: ldo6 { regulator-name = "ldo6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_ldo7: ldo7 { + cam_pmic1_ldo7_vddio: ldo7 { regulator-name = "ldo7"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; From c6e6e664a5e69366befcb154b04adf5dfe17c0ea Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 2 Apr 2021 17:38:23 +0800 Subject: [PATCH 0196/1247] usb-dts: update usb phy parameter usb host eye diagram test fail. update qusb_phy parameter bias_control_2 value from value 0x22 to 0x1c to increase the DC lever. usb eye diagram test can pass. Change-Id: Ibb3e8c971f80cbfcd6e99ab05190c55b7659b209 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/1916240 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-denver-common-overlay.dtsi | 44 ++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/qcom/holi-denver-common-overlay.dtsi b/qcom/holi-denver-common-overlay.dtsi index d621b8e86d44..9f0d7fa9ecc6 100644 --- a/qcom/holi-denver-common-overlay.dtsi +++ b/qcom/holi-denver-common-overlay.dtsi @@ -373,3 +373,47 @@ 0x4280 0xe >; }; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; From 1d88d5e119fc2bbc956e6ffed84812ce5e866c37 Mon Sep 17 00:00:00 2001 From: Raul Ramos Date: Mon, 29 Mar 2021 11:11:10 -0300 Subject: [PATCH 0197/1247] arm64/dt: Create channelid for Spectrum - New carrier Spectrum required channelid - ro.carrier for device customization. FEATURE-6009 - Create entry "spectrum" at position 154 (0x9A) Change-Id: I4b7a614a047075dfa81f61b0c04c381cc55b11ee Reviewed-on: https://gerrit.mot.com/1912137 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dimitri Correa De Alkmin E Silva Reviewed-by: Gabriel Siqueira Reviewed-by: Regina Mitsue Azuma Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Igor Kovalenko Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index fe143abbf16a..46f8926c5c53 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -168,7 +168,7 @@ "fi", /* 151 */ "vzwpre", /* 152 */ "boost", /* 153 */ - "undefined", /* 154 */ + "spectrum", /* 154 */ "undefined", /* 155 */ "undefined", /* 156 */ "undefined", /* 157 */ From 76602b55884bdf73f258cfb513b85bb004fd40ca Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 12 Apr 2021 18:55:43 +0800 Subject: [PATCH 0198/1247] arm/dts:add fps dts for corfup first supply:fpc1520 second supply:gf3988 fps dts for corfup Change-Id: Ieebbb99ae72f3f5a44b62c944139a7f1550fd10b Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1922069 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Weilong Wu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-fps-overlay.dtsi | 92 ++++++++++++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 2 +- 2 files changed, 93 insertions(+), 1 deletion(-) create mode 100644 qcom/corfup-fps-overlay.dtsi diff --git a/qcom/corfup-fps-overlay.dtsi b/qcom/corfup-fps-overlay.dtsi new file mode 100644 index 000000000000..48c5a2b5f077 --- /dev/null +++ b/qcom/corfup-fps-overlay.dtsi @@ -0,0 +1,92 @@ +&tlmm { + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&pm6350_l8 { + qcom,init-voltage = <3304000>; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-always-on; +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index e01efb22b15c..298296e91070 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -13,7 +13,7 @@ #include "holi-moto-common-overlay.dtsi" #include "ibiza-display.dtsi" #include "ibiza-touchscreen.dtsi" -#include "ibiza-fps-overlay.dtsi" +#include "corfup-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" From 858119ef706788428595b60328b4c11462ca0c17 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 13 Apr 2021 13:33:53 +0800 Subject: [PATCH 0199/1247] arm/dts: Config charge for corfuP product arm/dts Conifg charge for corfuP product Change-Id: I27b478555e672026cda47d2f0b8f6f1a4a3ba8fa Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1922575 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 32 ++++++++++++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 32 +--------------------------- 2 files changed, 33 insertions(+), 31 deletions(-) create mode 100644 qcom/corfup-charger.dtsi diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi new file mode 100644 index 000000000000..9843c4367c42 --- /dev/null +++ b/qcom/corfup-charger.dtsi @@ -0,0 +1,32 @@ + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-swd-5000mah.dtsi" + #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" + #include "qg-batterydata-jk50-atl-5000mah.dtsi" +}; + +&pm7250b_charger { + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4450000>; + qcom,dcp-curr-max = <2000000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000>; +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 2500 2500>, + <45 0 3000 3000>, + <60 4200 3000 0>; + qcom,iterm-ma = <243>; +}; + + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 298296e91070..7cc8f784f956 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -17,6 +17,7 @@ #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" +#include "corfup-charger.dtsi" &tlmm { google_key_default: google_key_default { @@ -283,37 +284,6 @@ }; }; -&mot_batterydata { - df-serialnum = "SB18C77591"; - qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-jk50-swd-5000mah.dtsi" - #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" - #include "qg-batterydata-jk50-atl-5000mah.dtsi" -}; - -&pm7250b_charger { - qcom,fcc-max-ua = <3000000>; - qcom,fv-max-uv = <4400000>; - qcom,dcp-curr-max = <2000000>; - qcom,thermal-mitigation = <3000000 2500000 - 2000000 1500000 - 1200000 900000 - 600000 300000>; -}; - -&pm7250b_mmi { - qcom,mmi-temp-zones = <0 4200 1000 0>, - <15 0 1000 1000>, - <45 0 3000 3000>, - <60 4200 2500 0>; - qcom,iterm-ma = <150>; -}; - - -&pm7250b_qg { - qcom,qg-iterm-ma = <500>; -}; - &thermal_zones { pa-therm0-usr { status = "disabled"; From 4a76c88a50e75464f4d12cbaba68fbe990ed4910 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 13 Apr 2021 16:50:05 +0800 Subject: [PATCH 0200/1247] arm/dts: bring up NTC for corfup product arm/dts/ntc bring up NTC for corfup product Change-Id: I7684a2879fbca80b0868c9853c672f014f28136b Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1922731 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 56 ++++++++++++++++++++++++++-- 1 file changed, 53 insertions(+), 3 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 7cc8f784f956..ec7f4925e377 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -284,6 +284,28 @@ }; }; +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -396,9 +418,9 @@ }; }; }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; wake-capable-sensor; @@ -410,6 +432,34 @@ }; }; }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; xo_therm { polling-delay-passive = <5000>; polling-delay = <20000>; From c87112f7f6e87d948ab6c95ea1e924f89f893b2c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 14 Apr 2021 12:50:11 +0800 Subject: [PATCH 0201/1247] arm/dt: panel: add visionox vtdr6110c configs arm/dt: Add visionox vtdr6110c configs. Change-Id: Id0e09388191713c86a5dbca0233db0b6d5582f28 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1923345 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...anel-mot-visionox-vtdr6110c-fhd-video.dtsi | 78 +++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi new file mode 100644 index 000000000000..78de218190b4 --- /dev/null +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -0,0 +1,78 @@ +&mdss_mdp { + dsi_vtdr6110c_visionox_video: qcom,mdss_dsi_vtdr6110c_visionox_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_visionox_1080p_647"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-pan-physical-width-dimension = <71>; + qcom,mdss-pan-physical-height-dimension = <158>; + + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <40>; + qcom,mdss-dsi-h-back-porch = <40>; + qcom,mdss-dsi-h-pulse-width = <2>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <14>; + qcom,mdss-dsi-v-front-porch = <16>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 01 00 00 00 00 02 35 00 + 15 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 03 51 07 FF + 15 01 00 00 00 00 02 6F 01 + 15 01 00 00 00 00 02 59 09 + 39 01 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 12 D0 84 15 50 14 14 00 29 2B 14 19 00 00 2B 14 19 00 00 + 39 01 00 00 00 00 03 F0 AA 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 01 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 44 00 01 28 + 05 01 00 00 00 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x35>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; From c3b321d6e30f66d9c87f6938a23970f8af562c7a Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 14 Apr 2021 12:53:16 +0800 Subject: [PATCH 0202/1247] arm/dt: corfup: add panel configs arm/dt: Add panel configs for corfup. Change-Id: Iee6b9b8e1d0df5c4dd1225c1f3fa328dba2016d1 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1923346 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 276 +++++++++++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 3 +- 2 files changed, 277 insertions(+), 2 deletions(-) create mode 100644 qcom/corfup-display.dtsi diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi new file mode 100644 index 000000000000..de1c8449b322 --- /dev/null +++ b/qcom/corfup-display.dtsi @@ -0,0 +1,276 @@ + +#include "dsi-panel-mot-djn-nt36525c-hd-video.dtsi" +#include "dsi-panel-mot-tm-icnl9911c-hd-video.dtsi" +#include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" + + + +&pm6150a_amoled { + status = "ok"; +}; + +&sde_dsi { + /delete-property/ qcom,dsi-default-panel; + qcom,dsi-default-panel = <&dsi_vtdr6110c_visionox_video>; + + vddio-supply = <&L1E>; + vddr-supply = <&L3E>; +}; + +&soc { + dsi_panel_pwr_supply_djn_panel: dsi_panel_pwr_supply_djn_panel{ + #address-cells = <1>; + #size-cells = <0>; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + qcom,supply-always-on; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5800000>; + qcom,supply-max-voltage = <5800000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <5>; + }; + }; + + dsi_panel_pwr_supply_tm_panel: dsi_panel_pwr_supply_tm_panel{ + #address-cells = <1>; + #size-cells = <0>; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep= <0>; + qcom,supply-post-off-sleep = <21>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <7>; + }; + }; + +dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <20>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "vddr"; + qcom,supply-min-voltage = <1200000>; + qcom,supply-max-voltage = <1200000>; + qcom,supply-enable-load = <21800>; + qcom,supply-disable-load = <4>; + qcom,supply-post-on-sleep = <20>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <4600000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <363000>; + qcom,supply-disable-load = <100>; + }; + + qcom,panel-supply-entry@3 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <4600000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <363000>; + qcom,supply-disable-load = <20>; + }; +}; +}; + +&dsi_vtdr6110c_visionox_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-en-gpio = <&tlmm 38 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,mdss-dsi-bl-min-level = <32>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x3B>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 09 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_nt36525c_djn_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; + + qcom,platform-reset-gpio-always-on; + qcom,mdss-dsi-panel-supplier = "djn"; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <3382>; + qcom,mdss-dsi-bl-default-level = <1691>; + qcom,mdss-brightness-max-level = <3382>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <90 60>; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x34>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 22 08 09 25 23 09 + 09 06 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_icnl9911c_tm_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_tm_panel>; + + qcom,mdss-dsi-panel-supplier = "tianma"; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-min-level = <32>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <90 60>; + qcom,mdss-dsi-pan-dpfs-send-command; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0D>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 07 06 22 21 07 + 07 07 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + + qcom,mdss-dsi-dfps-60-command = [15 01 00 00 00 00 02 26 01]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dfps-90-command = [15 01 00 00 00 00 02 26 02]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index ec7f4925e377..24d85e7580eb 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -11,8 +11,7 @@ */ #include "holi-moto-common-overlay.dtsi" -#include "ibiza-display.dtsi" -#include "ibiza-touchscreen.dtsi" +#include "corfup-display.dtsi" #include "corfup-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" From 74d9bf9041ed3b4426aba8b9d0cbbc5c564582f0 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 14 Apr 2021 12:54:59 +0800 Subject: [PATCH 0203/1247] arm/dt: corfup: add touchscreen configs arm/dt: Add touchscreen configs: goodix gt9885. Change-Id: I8d27fbbe5ceb996a4646f3b174589b00ebd7992a Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1923347 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 36 ++++++++++++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 1 + 2 files changed, 37 insertions(+) create mode 100755 qcom/corfup-touchscreen.dtsi diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi new file mode 100755 index 000000000000..7f5c0f57625a --- /dev/null +++ b/qcom/corfup-touchscreen.dtsi @@ -0,0 +1,36 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_spi { + status = "disabled"; +}; + +&qupv3_se0_i2c { + status = "ok"; + goodix-gtx8@5d { + compatible = "goodix,gt9886"; + + goodix,avdd-name = "avdd"; + avdd-supply = <&L9E>; + goodix,iovdd-name = "iovdd"; + iovdd-supply = <&L1E>; + + reg = <0x5d>; + goodix,reset-gpio = <&tlmm 21 0x00>; + goodix,irq-gpio = <&tlmm 22 0x2008>; + goodix,irq-flags = <2>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + }; +}; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 24d85e7580eb..a94b4fbd104a 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -12,6 +12,7 @@ #include "holi-moto-common-overlay.dtsi" #include "corfup-display.dtsi" +#include "corfup-touchscreen.dtsi" #include "corfup-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" From 56ee50c8a252d7bbb270a64b15a74be3fc21dd09 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 14 Apr 2021 14:30:12 +0800 Subject: [PATCH 0204/1247] arm/dts: add sc8549 config for corfuP product arm/dts Add sc8549 configure for corfuP product Change-Id: I114be9c734d566ce7fcdc3c20992688919190d53 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1923392 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 9843c4367c42..de8f99189db0 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -30,3 +30,48 @@ qcom,qg-iterm-ma = <500>; }; +&tlmm { + sc8549_int { + sc8549_int_default: sc8549_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + bias-pull-up; /* PULL UP */ + input-enable; + }; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sc8549-charger@6F{ + compatible = "sc,sc8549-standalone"; + reg = <0x6F>; + interrupt-parent = <&tlmm>; + interrupts = <84 0>; + pinctrl-names = "default"; + pinctrl-0 = <&sc8549_int_default>; + /*sc,sc8549,bat-ovp-disable; + sc,sc8549,bat-ocp-disable; + sc,sc8549,bus-ocp-disable; + sc,sc8549,bus-ovp-disable;*/ + sc,sc8549,bat-therm-disable; + sc,sc8549,bus-therm-disable; + + sc,sc8549,bat-ovp-threshold = <4575>; + sc,sc8549,bat-ocp-threshold = <7000>; + + sc,sc8549,bus-ovp-threshold = <11000>; + sc,sc8549,bus-ocp-threshold = <3500>; + + sc,sc8549,ac-ovp-threshold = <17>; + sc,sc8549,sense-resistor-mohm = <5>; + }; +}; + From 3f52d3e2c78a7f56e3b7e2f1d9337862369e7b1f Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Mon, 19 Apr 2021 10:38:33 +0800 Subject: [PATCH 0205/1247] arm64/dts: corfup: update wl2866d device node remove cs-gpios for wl2866d, wl2866d cs pin connect to GND which is low to make the ldo default on, so remove cs-gpios. also fix cs-gpios conflict with wl2864c issue. Change-Id: Ib34e6537117eab500c1ac0b768256bbf284148f4 Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1926730 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Darong Huang Reviewed-by: Zilong Zhang Reviewed-by: Zhuoran Xu Reviewed-by: Long Cheng Reviewed-by: Jian Zhang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index a94b4fbd104a..957f27aa0380 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -170,11 +170,6 @@ compatible = "semi,wl2866d"; reg = <0x28>; - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - vin1-supply = <&S8E>; vin2-supply = <&BOB>; From a5c403cc08e0d79bfa77fec04487d59d4be48088 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 20 Apr 2021 14:12:24 +0800 Subject: [PATCH 0206/1247] arm/dt: corfup: set dummy panel backlight to dummy arm/dt: Set dummy panel backlight to dummy, because corfup uses oled, don't have backlight device, set to wled will cause panic. Change-Id: I9a9f8ca93554477060c5943fa042b137b211018e Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1927869 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiwen Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi index de1c8449b322..65f3ba4f270f 100644 --- a/qcom/corfup-display.dtsi +++ b/qcom/corfup-display.dtsi @@ -265,6 +265,7 @@ dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 From ef6e739370c206b54bd2e4ce1a06e41b1195bb6a Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Thu, 22 Apr 2021 09:32:00 +0800 Subject: [PATCH 0207/1247] arm64/dts: corfup: add ldo init-value property wl2866d was used for camera and LCD, LCD need the ldo keeps on when driver probe, so add init-value property to define which ldo keeps enable when init. Register 0x0e: Bit[3:0] LDO4~LDO1 EN 0x5 means AVDD1 and DVDD1 ON, AVDD2 and DVDD2 OFF Change-Id: I48aaca7e48425d5b857d2be8f36a151b00a3d9ba Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1929490 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Zhilong Wang Reviewed-by: Long Cheng Reviewed-by: Shuo Wang Reviewed-by: Xu Ji Reviewed-by: Jian Zhang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 957f27aa0380..f4a1ff044009 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -172,6 +172,7 @@ vin1-supply = <&S8E>; vin2-supply = <&BOB>; + semi,init-value = <0x05>; regulators { cam_pmic2_ldo1_dvdd1: ldo1 { From e0425da5fc361d0eb359b5e93fb5ddb7d0a548d4 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Sun, 25 Apr 2021 12:16:51 +0800 Subject: [PATCH 0208/1247] arm/dt: corfup: delete gpio38 from panel dtsi arm/dt: Delete gpio 38 from panel dtsi, otherwise cause camera crash, because gpio 38 is used by camera on corfup. Change-Id: I5a30dcad18b89beb3d19023052bdfc2bfbc4db39 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1931865 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi index 65f3ba4f270f..9e6d5e953cf4 100644 --- a/qcom/corfup-display.dtsi +++ b/qcom/corfup-display.dtsi @@ -138,7 +138,6 @@ dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { &dsi_vtdr6110c_visionox_video { qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-en-gpio = <&tlmm 38 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; From 3b6cf2f01a74c6b3686ecdc4953c324599afcbab Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Sun, 25 Apr 2021 14:38:23 +0800 Subject: [PATCH 0209/1247] arm64/dts: corfup: remove cs-gpios for wl2864c HW design to change this PIN to GND default, so no need control cs pin for SW side. Change-Id: Iac1f74b624d733f36e94e38ff1d95fd087c6bcc4 Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1931934 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dawei Wang Reviewed-by: Xingyun Fu Reviewed-by: Darong Huang Reviewed-by: Xu Ji Reviewed-by: Zilong Zhang Reviewed-by: Jian Zhang Reviewed-by: Long Cheng Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index f4a1ff044009..040156d611d7 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -148,21 +148,6 @@ cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; -&tlmm { - cam_pmic_en_default: cam_pmic_en_default { - mux { - pins = "gpio38"; - function = "gpio"; - }; - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-down; - output-low; - }; - }; -}; - &qupv3_se10_i2c { status = "ok"; @@ -205,11 +190,6 @@ compatible = "semi,wl2864c"; reg = <0x29>; - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - vin1-supply = <&S8E>; vin2-supply = <&BOB>; From a8e1fb9afb06701cac752d04f369ec5935928d0e Mon Sep 17 00:00:00 2001 From: wangdw10 Date: Tue, 27 Apr 2021 10:41:29 +0800 Subject: [PATCH 0210/1247] arm64/dts: corfup: set always on for wl2866d ldo3 wl2866d ldo3 is used for LCD AVDD, set it always on to avoid LCD power off after boot. Change-Id: Icaff73785f316b477362a40e6b1cb7214f078040 Signed-off-by: wangdw10 Reviewed-on: https://gerrit.mot.com/1933323 Reviewed-by: Dawei Wang SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Bolei Shang Reviewed-by: Zhilong Wang Reviewed-by: Darong Huang Reviewed-by: Jian Zhang Reviewed-by: Zhuoran Xu Reviewed-by: Xingyun Fu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 040156d611d7..89774d51a11e 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -176,6 +176,7 @@ regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; + regulator-always-on; }; cam_pmic2_ldo4_avdd2: ldo4 { From 7f4f5957c68121b0c4e18d3b1aadda9be5563991 Mon Sep 17 00:00:00 2001 From: jixj Date: Tue, 27 Apr 2021 11:32:57 +0800 Subject: [PATCH 0211/1247] arm64/dt: initial cyprus dts files Cyprus 5G: SM4350, initial dts files cloned from corfup. Change-Id: Ia2ba5d9ed056c362c6ad1155ac10fd9119a67c09 Reviewed-on: https://gerrit.mot.com/1933362 Reviewed-by: Xiaojun Ji SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 5 + qcom/holi-cyprus-common-overlay.dtsi | 461 +++++++++++++++++++++++++++ qcom/holi-cyprus-evb-overlay.dts | 24 ++ 3 files changed, 490 insertions(+) create mode 100644 qcom/holi-cyprus-common-overlay.dtsi create mode 100644 qcom/holi-cyprus-evb-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 233a86f2de0f..43ffb33be431 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -40,6 +40,11 @@ dtbo-$(CONFIG_CORFUP_DTB) += \ holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_CYPRUS_DTB) += \ + holi-cyprus-evb-overlay.dtbo + +holi-cyprus-evb-overlay.dtbo-base := holi-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/holi-cyprus-common-overlay.dtsi b/qcom/holi-cyprus-common-overlay.dtsi new file mode 100644 index 000000000000..040156d611d7 --- /dev/null +++ b/qcom/holi-cyprus-common-overlay.dtsi @@ -0,0 +1,461 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "corfup-display.dtsi" +#include "corfup-touchscreen.dtsi" +#include "corfup-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "corfup-charger.dtsi" + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48", "gpio8"; + function = "gpio"; + }; + + config { + pins = "gpio48", "gpio8"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + + + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic2: wl2866d@28{ + compatible = "semi,wl2866d"; + reg = <0x28>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + semi,init-value = <0x05>; + + regulators { + cam_pmic2_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic2_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + + +&qupv3_se7_i2c { + status = "ok"; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; diff --git a/qcom/holi-cyprus-evb-overlay.dts b/qcom/holi-cyprus-evb-overlay.dts new file mode 100644 index 000000000000..a3cd8a98e738 --- /dev/null +++ b/qcom/holi-cyprus-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cyprus-common-overlay.dtsi" + +/ { + model = "cyprus"; + compatible = "qcom,holi-cyprus", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA100>; +}; + From d64935d271e697a80486ee371aa5f0d8028aad1e Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 6 May 2021 15:04:49 +0800 Subject: [PATCH 0212/1247] Change device name from cyprus to cypfg for Cyprus 5G device name "cyprus" was already used by ODM1 project. So need change device name from cyprus to cypfg for Cyprus 5G project. Change-Id: I7cf0748b2ecd8e03f519b672a2e1e11649800007 Reviewed-on: https://gerrit.mot.com/1940612 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 6 +++--- ...s-common-overlay.dtsi => holi-cypfg-common-overlay.dtsi} | 0 ...li-cyprus-evb-overlay.dts => holi-cypfg-evb-overlay.dts} | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename qcom/{holi-cyprus-common-overlay.dtsi => holi-cypfg-common-overlay.dtsi} (100%) rename qcom/{holi-cyprus-evb-overlay.dts => holi-cypfg-evb-overlay.dts} (83%) diff --git a/qcom/Makefile b/qcom/Makefile index 43ffb33be431..7894b76166b5 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -40,10 +40,10 @@ dtbo-$(CONFIG_CORFUP_DTB) += \ holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb -dtbo-$(CONFIG_CYPRUS_DTB) += \ - holi-cyprus-evb-overlay.dtbo +dtbo-$(CONFIG_CYPFG_DTB) += \ + holi-cypfg-evb-overlay.dtbo -holi-cyprus-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-cyprus-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi similarity index 100% rename from qcom/holi-cyprus-common-overlay.dtsi rename to qcom/holi-cypfg-common-overlay.dtsi diff --git a/qcom/holi-cyprus-evb-overlay.dts b/qcom/holi-cypfg-evb-overlay.dts similarity index 83% rename from qcom/holi-cyprus-evb-overlay.dts rename to qcom/holi-cypfg-evb-overlay.dts index a3cd8a98e738..2263dbe0eb08 100644 --- a/qcom/holi-cyprus-evb-overlay.dts +++ b/qcom/holi-cypfg-evb-overlay.dts @@ -13,11 +13,11 @@ /dts-v1/; /plugin/; -#include "holi-cyprus-common-overlay.dtsi" +#include "holi-cypfg-common-overlay.dtsi" / { - model = "cyprus"; - compatible = "qcom,holi-cyprus", "qcom,holi-moto", "qcom,holi"; + model = "cypfg"; + compatible = "qcom,holi-cypfg", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x47 0xA100>; }; From 99da91f6d39eb0f8f3d941d770a3fd11e339d688 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Sat, 8 May 2021 15:34:56 +0800 Subject: [PATCH 0213/1247] arm64/dt: change EVB configuraiton to EVB1 for cypfg According to the bootloader SME suggestion, we use 9100(EVB1) for EVB init configuration. Change-Id: I8e02faf8d71ef7a08a1b988ca9fbe2e81384fed4 Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1943242 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 ++-- ...holi-cypfg-evb-overlay.dts => holi-cypfg-evb1-overlay.dts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename qcom/{holi-cypfg-evb-overlay.dts => holi-cypfg-evb1-overlay.dts} (95%) diff --git a/qcom/Makefile b/qcom/Makefile index 7894b76166b5..38126790b533 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -41,9 +41,9 @@ holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ - holi-cypfg-evb-overlay.dtbo + holi-cypfg-evb1-overlay.dtbo -holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfg-evb1-overlay.dtbo-base := holi-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-cypfg-evb-overlay.dts b/qcom/holi-cypfg-evb1-overlay.dts similarity index 95% rename from qcom/holi-cypfg-evb-overlay.dts rename to qcom/holi-cypfg-evb1-overlay.dts index 2263dbe0eb08..e2a93e324133 100644 --- a/qcom/holi-cypfg-evb-overlay.dts +++ b/qcom/holi-cypfg-evb1-overlay.dts @@ -19,6 +19,6 @@ model = "cypfg"; compatible = "qcom,holi-cypfg", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xA100>; + qcom,board-id = <0x47 0x9100>; }; From c84237a03e972e536128f12d0a18130ca58f2545 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Mon, 10 May 2021 17:11:20 +0800 Subject: [PATCH 0214/1247] arm64/dt: revert the latest pattern Accoding to HPM requirement, we should revert the latest pattern and roll back to legacy pattern. This reverts commit 4040c33d07d764a046fb6d3bc95a7e86a7fd3678. Change-Id: I9974fa83d3ec1f330db42714e861ada3c49f1e00 Reviewed-on: https://gerrit.mot.com/1944107 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 ++-- ...holi-cypfg-evb1-overlay.dts => holi-cypfg-evb-overlay.dts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename qcom/{holi-cypfg-evb1-overlay.dts => holi-cypfg-evb-overlay.dts} (95%) diff --git a/qcom/Makefile b/qcom/Makefile index 38126790b533..7894b76166b5 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -41,9 +41,9 @@ holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ - holi-cypfg-evb1-overlay.dtbo + holi-cypfg-evb-overlay.dtbo -holi-cypfg-evb1-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-cypfg-evb1-overlay.dts b/qcom/holi-cypfg-evb-overlay.dts similarity index 95% rename from qcom/holi-cypfg-evb1-overlay.dts rename to qcom/holi-cypfg-evb-overlay.dts index e2a93e324133..2263dbe0eb08 100644 --- a/qcom/holi-cypfg-evb1-overlay.dts +++ b/qcom/holi-cypfg-evb-overlay.dts @@ -19,6 +19,6 @@ model = "cypfg"; compatible = "qcom,holi-cypfg", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0x9100>; + qcom,board-id = <0x47 0xA100>; }; From f99bcb3aedb1bbdf4084834c17728999177db044 Mon Sep 17 00:00:00 2001 From: jixj Date: Mon, 17 May 2021 10:54:24 +0800 Subject: [PATCH 0215/1247] arm64/dts: Update holi-cypfg-common-overlay.dtsi Based on holi-denver-common-overlay.dtsi Change-Id: Iad0dd7d830f1dc32388bc7b3c837a7abafde3638 Reviewed-on: https://gerrit.mot.com/1950114 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 470 +++++++++++++--------------- 1 file changed, 214 insertions(+), 256 deletions(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 040156d611d7..dd37144e7f9a 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -11,226 +11,115 @@ */ #include "holi-moto-common-overlay.dtsi" -#include "corfup-display.dtsi" -#include "corfup-touchscreen.dtsi" -#include "corfup-fps-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "denver-display.dtsi" +#include "denver-touchscreen.dtsi" +#include "denver-sensors.dtsi" +#include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "denver-fps-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" -#include "corfup-charger.dtsi" - -&tlmm { - google_key_default: google_key_default { - mux { - pins = "gpio11"; - function = "gpio"; - }; - - config { - pins = "gpio11"; - drive-strength = <2>; - bias-pull-up; - }; - }; - - nfc { - nfc_int_active: nfc_int_active { - /* active state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_int_suspend: nfc_int_suspend { - /* sleep state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_active: nfc_enable_active { - mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48", "gpio8"; - function = "gpio"; - }; - - config { - pins = "gpio48", "gpio8"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_suspend: nfc_enable_suspend { - mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48", "gpio8"; - function = "gpio"; - }; - - config { - pins = "gpio48", "gpio8"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - - nfc_clk_req_active: nfc_clk_req_active { - /* active state */ - mux { - /* GPIO 7: NFC CLK Req*/ - pins = "gpio7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - - nfc_clk_req_suspend: nfc_clk_req_suspend { - /* sleep state */ - mux { - /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - }; -}; - - - -&gpio_keys { - pinctrl-0 = <&key_vol_up_default &google_key_default>; - - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; -}; &sdhc_2 { status = "ok"; cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; -&qupv3_se10_i2c { - status = "ok"; - - cam_pmic2: wl2866d@28{ - compatible = "semi,wl2866d"; - reg = <0x28>; - - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; - semi,init-value = <0x05>; - - regulators { - cam_pmic2_ldo1_dvdd1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_pmic2_ldo2_dvdd2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_pmic2_ldo3_avdd1: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_pmic2_ldo4_avdd2: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; +&tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; }; }; - cam_pmic1: wl2864c@29{ + nfc_clk_active: nfc_clk_active { + /* active state */ + mux { + pins = "gpio7", "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio7", "gpio9"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + nfc_clk_suspend: nfc_clk_suspend { + /* sleep state */ + mux { + pins = "gpio7", "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio7", "gpio9"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ compatible = "semi,wl2864c"; reg = <0x29>; + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + vin1-supply = <&S8E>; vin2-supply = <&BOB>; regulators { - cam_pmic1_ldo1_dvdd1: ldo1 { + cam_ldo1: ldo1 { regulator-name = "ldo1"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_pmic1_ldo2_dvdd2: ldo2 { + cam_ldo2: ldo2 { regulator-name = "ldo2"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_pmic1_ldo3_avdd1: ldo3 { + cam_ldo3: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo4_avdd2: ldo4 { + cam_ldo4: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo5_vddaf: ldo5 { + cam_ldo5: ldo5 { regulator-name = "ldo5"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo6_vddois: ldo6 { + cam_ldo6: ldo6 { regulator-name = "ldo6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo7_vddio: ldo7 { + cam_ldo7: ldo7 { regulator-name = "ldo7"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; @@ -239,47 +128,23 @@ }; }; - -&qupv3_se7_i2c { - status = "ok"; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 48 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - interrupt-parent = <&tlmm>; - interrupts = <9 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>; - }; +&mot_batterydata { + df-serialnum = "SB18D00294"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-md50-amperex-5000mah.dtsi" + #include "qg-batterydata-md50-scud-5000mah.dtsi" }; -&pm7250b_vadc { - cp_therm { - reg = ; - label = "cp_therm"; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - qcom,pre-scaling = <1 1>; - }; +&pm7250b_charger { + qcom,dcp-curr-max = <2000000>; }; -&pm7250b_adc_tm { - io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, - <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, - <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; - cp_therm { - reg = ; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <2900000>; }; &thermal_zones { @@ -338,7 +203,7 @@ }; }; }; - pa_therm3 { + pa_therm1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -352,7 +217,7 @@ }; }; }; - pa_therm1 { + cam_flash_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -367,8 +232,8 @@ }; }; quiet_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; @@ -394,51 +259,9 @@ }; }; }; - conn_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - cp_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - cam_flash_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; xo_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; + polling-delay-passive = <0>; + polling-delay = <0>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -459,3 +282,138 @@ &pm8008_9 { status = "disabled"; }; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default &nfc_clk_active>; + pinctrl-1 = <&sar_int_sleep &nfc_clk_suspend>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8008 0x7F000081 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x58E /*AFE_PARAM_PH0*/ + 0x8034 0x78E /*AFE_PARAM_PH1*/ + 0x8040 0x58E /*AFE_PARAM_PH2*/ + 0x804C 0x566 /*AFE_PARAM_PH3*/ + 0x8058 0x566 /*AFE_PARAM_PH4*/ + 0x8064 0x57E /*AFE_PARAM_PH5*/ + 0x8070 0x566 /*AFE_PARAM_PH6*/ + 0x807C 0x58D /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ + 0x8048 0xBFF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ + 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ + 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ + 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0xF3C3CF + 0x8044 0x940250 + 0x8050 0x9BC26F + 0x805C 0x990264 + 0x8068 0xD4C353 + 0x8074 0xB4C2D3 + 0x8080 0x0 + 0x8098 0x862D + 0x80B8 0x782D + 0x80D8 0x8774 + 0x80F8 0x785C + 0x8118 0x5740 + 0x8138 0xF4 + 0x8158 0xF4 + 0x8178 0x0 + 0x80A0 0x222200E1 + 0x80C0 0x0 + 0x80E0 0x1E1E00E1 + 0x8100 0x2B2B00E2 + 0x8120 0xE2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x46E87000 + 0x80B0 0x34F27000 + 0x80D0 0x50E87000 + 0x80F0 0x24E87000 + 0x8110 0x32E47000 + 0x8130 0x7000 + 0x8150 0x7000 + 0x8170 0x0 + 0x8088 0x200000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x200000 + 0x8108 0x200000 + 0x8128 0x6500000 + 0x8148 0x6500000 + 0x8168 0x0 + 0x808C 0x60600019 + 0x80AC 0x60600019 + 0x80CC 0x60600019 + 0x80EC 0x60600019 + 0x810C 0x60600019 + 0x812C 0x60600019 + 0x814C 0x60600019 + 0x816C 0x0 + 0x8024 0x7F7F + 0x4280 0xe + >; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; From 4879ec27e6ff58f89e2f0ace9b92729a85f53b8c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 14 May 2021 17:27:59 +0800 Subject: [PATCH 0216/1247] dts/panel: add a new panel file for cypfg Tianma 6.78" 1080*2460 1080P Panel ILI7807S + video mode + DSC Change-Id: Icd8da703b9509b5fd5f5f2f9a4f26f2c2ae93301 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1951930 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Shanshan Dai Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...t-tianma-ili7807s-678-1080x2460-video.dtsi | 92 +++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi diff --git a/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..65ca2b999ea6 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi @@ -0,0 +1,92 @@ +&mdss_mdp { + dsi_tm_ili7807s_678_fhd_video: qcom,mdss_dsi_tm_ili7807s_678_fhd_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_ili7807s_fhd_678"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xfff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 12>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <24>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <12>; + qcom,mdss-dsi-v-front-porch = <2565>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 78 07 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 04 FF 78 07 06 + 15 01 00 00 00 00 02 3E E3 + 15 01 00 00 00 00 02 80 00 + 39 01 00 00 00 00 04 FF 78 07 08 + 39 01 00 00 00 00 03 FD 00 9F + 15 01 00 00 00 00 02 E1 D9 + 39 01 00 00 00 00 03 FD 00 00 + 39 01 00 00 00 00 04 FF 78 07 00 + 39 01 00 00 00 00 03 51 03 32 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + ]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 32 00 01 28 + 05 01 00 00 96 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <10>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + + }; +}; From dc4515abba3d23bccb8b9e7a1def62760698a66f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 18 May 2021 15:01:16 +0800 Subject: [PATCH 0217/1247] dts/panel: cypfg: add support for the first panel(tianma) Tianma 6.78" 1080*2460 1080P Panel ILI7807S + video mode + DSC Change-Id: I3d67b2b2701f5aacb87ec78a6330ef7452238a8c Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1951936 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/cypfg-display.dtsi | 136 ++++++++++++++++++++++++++++ qcom/holi-cypfg-common-overlay.dtsi | 2 +- 2 files changed, 137 insertions(+), 1 deletion(-) create mode 100644 qcom/cypfg-display.dtsi diff --git a/qcom/cypfg-display.dtsi b/qcom/cypfg-display.dtsi new file mode 100644 index 000000000000..e50ef0c2897f --- /dev/null +++ b/qcom/cypfg-display.dtsi @@ -0,0 +1,136 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" + + +&pm6150a_amoled { + status = "disabled"; +}; + +&pm6150l_lcdb { + status = "disabled"; +}; + +&pm6150l_wled { + status = "disabled"; +}; + +&sde_dsi { + lab-supply = <&lcdb_ldo_vreg>; + ibb-supply = <&lcdb_ncp_vreg>; + vddio-supply = <&L1E>; + + qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; +}; +&soc { + dsi_panel_pwr_supply_cypfg: dsi_panel_pwr_supply_cypfg{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + }; +}; + + +&dsi_tm_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + qcom,platform-reset-gpio-always-on; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 32]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index dd37144e7f9a..966ded0e2881 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "holi-moto-common-overlay.dtsi" -#include "denver-display.dtsi" +#include "cypfg-display.dtsi" #include "denver-touchscreen.dtsi" #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" From 5a3414ee77443ee8a2cea64349eac9f38399c801 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 18 May 2021 14:30:03 +0800 Subject: [PATCH 0218/1247] dts/panel: cypfg: power up panel with pm6150L For cypfg evt ,power up panel with pm6150L. But we will remove pm6150L at DVT. Change-Id: Ia2e9f0475bfbfa8b7b37b507383b909577a467d7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1951950 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Submit-Approved: Jira Key --- qcom/cypfg-display.dtsi | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/qcom/cypfg-display.dtsi b/qcom/cypfg-display.dtsi index e50ef0c2897f..1f87b23a8665 100644 --- a/qcom/cypfg-display.dtsi +++ b/qcom/cypfg-display.dtsi @@ -7,11 +7,22 @@ }; &pm6150l_lcdb { - status = "disabled"; + status = "ok"; }; &pm6150l_wled { - status = "disabled"; + status = "ok"; + + qcom,string-cfg= <7>; + qcom,leds-per-string = <7>; + qcom,fs-current-limit = <25000>; + qcom,en-cabc; + qcom,cabc-sel = <1>; + qcom,wled-bl-step-up; + qcom,wled-bl-step-sequence = <255 5>, <2048 6>; + + qcom,ovp = <26500>; + qcom,boost-current-limit = <1400>; }; &sde_dsi { From 40a6f7a5797b37f441e18b141d3aa4adb1ee4d3e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 18 May 2021 18:36:21 +0800 Subject: [PATCH 0219/1247] dts/panel: cypfg: remove denver-touchscreen.dtsi The panel of cypfg is different with denver. So we remove it to avoid the compile failed. Change-Id: I78165fece58403e81c5d46ef7e6852a003a94d53 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1952429 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Jun Weng Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 966ded0e2881..fb633fa5647d 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -12,7 +12,7 @@ #include "holi-moto-common-overlay.dtsi" #include "cypfg-display.dtsi" -#include "denver-touchscreen.dtsi" +//#include "denver-touchscreen.dtsi" #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" From caf13c9afa47a34e9cf27ac2094abb9ac45eaba9 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 18 May 2021 09:52:58 +0800 Subject: [PATCH 0220/1247] dts: add google key function at gpio11 For CPYFG's designation, google key is defined at gpio11. So we wil add it as gpio-key. Change-Id: I7b84423c6a4ab0b1611ad2e6adb2cbb2dd4d7007 Reviewed-on: https://gerrit.mot.com/1951662 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index fb633fa5647d..a747775eb250 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -25,6 +25,19 @@ }; &tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + cam_pmic_en_default: cam_pmic_en_default { mux { pins = "gpio38"; @@ -67,6 +80,20 @@ }; }; +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + &qupv3_se10_i2c { status = "ok"; From 81a80129c8cd5954b92b998aec927a29823d8dd9 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 17 May 2021 18:00:55 +0800 Subject: [PATCH 0221/1247] dts: Cyprus: touch: ili7807s bringup - Support ili7807s driver for cyprus. - Add the definition of reset/int pin. Change-Id: Ic7e88b884d68af922bb686025d80d4694dfd37f1 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1950648 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-touchscreen.dtsi | 105 ++++++++++++++++++++++++++++ qcom/holi-cypfg-common-overlay.dtsi | 2 +- 2 files changed, 106 insertions(+), 1 deletion(-) create mode 100755 qcom/cypfg-touchscreen.dtsi diff --git a/qcom/cypfg-touchscreen.dtsi b/qcom/cypfg-touchscreen.dtsi new file mode 100755 index 000000000000..011d364973d2 --- /dev/null +++ b/qcom/cypfg-touchscreen.dtsi @@ -0,0 +1,105 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi { + status = "ok"; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x0>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + panel = <&dsi_tm_ili7807s_678_fhd_video>; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2008>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&touch_int_suspend &touch_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + status = "ok"; + }; +}; diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index a747775eb250..6382352d4447 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -12,7 +12,7 @@ #include "holi-moto-common-overlay.dtsi" #include "cypfg-display.dtsi" -//#include "denver-touchscreen.dtsi" +#include "cypfg-touchscreen.dtsi" #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" From 7136a8033ab41c65f9d491869abd7b4ade4670a3 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 19 May 2021 10:07:50 +0800 Subject: [PATCH 0222/1247] arm64/dt: cypfg: add fps device node Cypfg will use ET528 and FPC1540 as Cypfg's fps sensor/ Add fps dts config for it. Change-Id: I50238eba6c5538c75560fbcf66ea875b9a35f67b Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1953101 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-fps-overlay.dtsi | 120 ++++++++++++++++++++++++++++ qcom/holi-cypfg-common-overlay.dtsi | 2 +- 2 files changed, 121 insertions(+), 1 deletion(-) create mode 100644 qcom/cypfg-fps-overlay.dtsi diff --git a/qcom/cypfg-fps-overlay.dtsi b/qcom/cypfg-fps-overlay.dtsi new file mode 100644 index 000000000000..62ecf09d78a7 --- /dev/null +++ b/qcom/cypfg-fps-overlay.dtsi @@ -0,0 +1,120 @@ +&tlmm { + ets_int_active: ets_int_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_int_suspend: ets_int_suspend { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&pm6350_l8 { + qcom,init-voltage = <3304000>; + regulator-min-microvolt = <3304000>; + regulator-max-microvolt = <3304000>; + regulator-always-on; +}; + +&soc { + et528: et528 { + compatible = "egistec,et516"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <93 0x0>; + egistec,gpio_irq = <&tlmm 93 0x2>; + egistec,gpio_rst = <&tlmm 95 0x2>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&ets_int_active>; + pinctrl-1 = <&ets_int_suspend>; + }; + + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 6382352d4447..817932804336 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -16,7 +16,7 @@ #include "denver-sensors.dtsi" #include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "denver-fps-overlay.dtsi" +#include "cypfg-fps-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" &sdhc_2 { From 64b47ff2b1961a1255dff1f25be3c15f1e45489b Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 19 May 2021 22:59:09 +0800 Subject: [PATCH 0223/1247] arm/dt: change init command for new formal visionox panel arm/dt: Change init command for new formal visionox panel. Change-Id: Ibda5de1fe6abfe95e9dcadc30ba29afb04e46b31 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1954444 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index 78de218190b4..eeb2f3d07aaf 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -56,9 +56,10 @@ 15 01 00 00 00 00 02 53 20 39 01 00 00 00 00 03 51 07 FF 15 01 00 00 00 00 02 6F 01 - 15 01 00 00 00 00 02 59 09 39 01 00 00 00 00 03 F0 AA 10 - 39 01 00 00 00 00 12 D0 84 15 50 14 14 00 29 2B 14 19 00 00 2B 14 19 00 00 + 39 01 00 00 00 00 03 EA 30 00 + 39 01 00 00 00 00 03 F0 AA 11 + 39 01 00 00 00 00 03 BB 10 21 39 01 00 00 00 00 03 F0 AA 00 05 01 00 00 78 00 01 11 05 01 00 00 01 00 01 29 From 84482103598515edcd8699b03f4ff33bae2adf2f Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 19 May 2021 23:08:05 +0800 Subject: [PATCH 0224/1247] arm/dt: corfup: add ft3519 touch configs arm/dt: Add ft3519 touch configs, remove goodix touch configs. Change-Id: I86ef2e83859e201d539e060c62548d61732d48b3 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1954445 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi index 7f5c0f57625a..79d299c5406f 100755 --- a/qcom/corfup-touchscreen.dtsi +++ b/qcom/corfup-touchscreen.dtsi @@ -17,20 +17,21 @@ &qupv3_se0_i2c { status = "ok"; - goodix-gtx8@5d { - compatible = "goodix,gt9886"; - goodix,avdd-name = "avdd"; - avdd-supply = <&L9E>; - goodix,iovdd-name = "iovdd"; - iovdd-supply = <&L1E>; - - reg = <0x5d>; - goodix,reset-gpio = <&tlmm 21 0x00>; - goodix,irq-gpio = <&tlmm 22 0x2008>; - goodix,irq-flags = <2>; /* 1:trigger rising, 2:trigger falling;*/ - goodix,panel-max-x = <1080>; - goodix,panel-max-y = <2400>; - goodix,panel-max-w = <255>; + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x38>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 1080 2400>; + vdd-supply = <&L9E>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; }; }; From 55c9d7dc0675029938ea0636277d4a09dd1e0854 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 20 May 2021 10:09:54 +0800 Subject: [PATCH 0225/1247] arm/dt: corfup: set L9E voltage level to 3V arm/dt: Set L9E voltage level to 3V to meet touch hardware spec. corfup does not support sd card, L9E is assigned to touch. But if remove sdhc2 dtsi, cause kernel panic. So change sdhc2 L9E settings. Change-Id: I1bd61a685aec2fd4b8c56d2b4dcfb9a9ad434b5a Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1954838 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xinmin Fu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 89774d51a11e..2b44f7c45793 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -460,3 +460,8 @@ &pm8008_9 { status = "disabled"; }; + +&sdhc_2 { + qcom,vdd-voltage-level = <3000000 3000000>; +}; + From 8ddeba9f4756a1c7061fea45c3bd0d16d2f831b4 Mon Sep 17 00:00:00 2001 From: Yiwen Liu Date: Mon, 31 May 2021 14:21:46 +0800 Subject: [PATCH 0226/1247] arm64/dt: corfup: add evt2 dts file Changes require new dts on EVT2: - sensors Change-Id: I1b1bdc53b0d927aadc8759f8e6067bb088482bc6 Signed-off-by: Yiwen Liu Reviewed-on: https://gerrit.mot.com/1965160 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lijun Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/holi-corfup-evt2-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-corfup-evt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 7894b76166b5..1370f03aa1f4 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -35,10 +35,12 @@ holi-ibiza-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUP_DTB) += \ holi-corfup-evb-overlay.dtbo \ - holi-corfup-evt1-overlay.dtbo + holi-corfup-evt1-overlay.dtbo \ + holi-corfup-evt2-overlay.dtbo holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo diff --git a/qcom/holi-corfup-evt2-overlay.dts b/qcom/holi-corfup-evt2-overlay.dts new file mode 100644 index 000000000000..00455b48d584 --- /dev/null +++ b/qcom/holi-corfup-evt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfup-common-overlay.dtsi" + +/ { + model = "corfup"; + compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xA200>; +}; + From bd2c6b0a6b98252a33f41c8f6941e05c31becc7f Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 10 May 2021 10:58:30 +0800 Subject: [PATCH 0227/1247] arm/dts: config corfup PD 30W charging config corfup PD 30W charging dtsi Change-Id: I945513d7d042e74b259306ae6d3c926dfb20ba4e Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1943769 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 70 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index de8f99189db0..f82a29c475fe 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -1,4 +1,7 @@ +#include + + &mot_batterydata { df-serialnum = "SB18C77591"; qcom,batt-id-range-pct = <15>; @@ -50,8 +53,9 @@ &qupv3_se8_i2c { status = "okay"; - sc8549-charger@6F{ + sc8549: sc8549-charger@6F{ compatible = "sc,sc8549-standalone"; + #io-channel-cells = <1>; reg = <0x6F>; interrupt-parent = <&tlmm>; interrupts = <84 0>; @@ -75,3 +79,67 @@ }; }; +&soc { + mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CHARGING_ENABLED>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&sc8549 PSY_IIO_CP_ENABLE>, + <&sc8549 PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&sc8549 PSY_IIO_CP_STATUS1>, + <&sc8549 PSY_IIO_MMI_CP_CLEAR_ERROR>; + + + io-channel-names = "usb_hw_current_max", + "charging_enabled", + "usb_typec_mode", + "usb_input_current_settled", + "usb_pd_active", + "sc8549_cp_enable", + "sc8549_input_current_now", + "sc8549_input_voltage_now", + "sc8549_cp_status1", + "sc8549_cp_clear_error"; + + qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <10000000>; + mmi,pd-curr-max = <3000000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4550000>; + mmi,pl-chrg-vbatt-min = <3600000>; + mmi,typec-middle-current = <1500000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 970 0 0>, + <10 4450 2425 0 0>, + <15 4450 4850 0 0>, + <45 4350 5800 4480 4000>, + <60 4200 4850 0 0>; + mmi,thermal-mitigation = + <5800000>, + <5000000>, + <4000000>, + <3000000>, + <2000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "battery"; + charging-curr-limited = <500000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "cp-standalone"; + charging-curr-min = <2000000>; + }; + }; +}; + From 270f18056388a23f81a3245970a85678227ad22c Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Tue, 1 Jun 2021 18:02:03 +0800 Subject: [PATCH 0228/1247] arm/dts:modify i2c bus of sar for corfu5G I2C bus of sar change from se8 to se10 on EVT2 board se8: disable sx937x se10: add sx937x Change-Id: I6358045519b083a8feededc66f672d150066bbd1 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1966399 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiwen Liu Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-evt2-overlay.dts | 112 ++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) diff --git a/qcom/holi-corfup-evt2-overlay.dts b/qcom/holi-corfup-evt2-overlay.dts index 00455b48d584..27eae9f7ebef 100644 --- a/qcom/holi-corfup-evt2-overlay.dts +++ b/qcom/holi-corfup-evt2-overlay.dts @@ -21,4 +21,116 @@ qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x45 0xA200>; }; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; From 4b4c8732a099e2496cd93f08effa9e8a38518b65 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 25 May 2021 17:24:22 +0800 Subject: [PATCH 0229/1247] arm64/dt: cypfg: update ets fps dts config Update the egis fps driver dts config to match the new egis driver. Change-Id: Ibce9b5e0e7ae83a2f8846ad8342289ed35c03694 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1959144 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-fps-overlay.dtsi | 46 ++++++++++++++++++++++++++----------- 1 file changed, 32 insertions(+), 14 deletions(-) diff --git a/qcom/cypfg-fps-overlay.dtsi b/qcom/cypfg-fps-overlay.dtsi index 62ecf09d78a7..907fb15b350d 100644 --- a/qcom/cypfg-fps-overlay.dtsi +++ b/qcom/cypfg-fps-overlay.dtsi @@ -1,5 +1,5 @@ &tlmm { - ets_int_active: ets_int_active { + ets_irq_active: egis_irq_active { /* INTERRUPT */ mux { pins = "gpio17"; @@ -13,17 +13,31 @@ }; }; - ets_int_suspend: ets_int_suspend { + ets_rst_high: ets_rst_high { /* INTERRUPT */ mux { - pins = "gpio17"; + pins = "gpio18"; function = "gpio"; }; config { - pins = "gpio17"; + pins = "gpio18"; drive-strength = <2>; /* 2 MA */ - input-enable; + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; }; }; @@ -86,24 +100,28 @@ }; &pm6350_l8 { - qcom,init-voltage = <3304000>; - regulator-min-microvolt = <3304000>; + qcom,init-voltage = <3008000>; + regulator-min-microvolt = <3008000>; regulator-max-microvolt = <3304000>; regulator-always-on; }; &soc { et528: et528 { - compatible = "egistec,et516"; + compatible = "fp-egistec"; status = "ok"; reg = <0>; interrupt-parent = <&tlmm>; - interrupts = <93 0x0>; - egistec,gpio_irq = <&tlmm 93 0x2>; - egistec,gpio_rst = <&tlmm 95 0x2>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&ets_int_active>; - pinctrl-1 = <&ets_int_suspend>; + interrupts = <17 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + vcc_fp-supply = <&pm6350_l8>; + egis-fp,vcc-voltage = <3008000 3008000>; + egis-fp,vcc-current = <100000>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; }; fpc: fpc_fpc1020 { From bd5bd04de3d97b804c3c79183f92cdfe481ab1c2 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 3 Jun 2021 11:18:01 +0800 Subject: [PATCH 0230/1247] arch/dts: update cyprus battery parameter update cyprus firstly and second supporter battery parameter Change-Id: I7c87984184478d787799544ecfb94abb4bac7e94 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/1968430 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 20 +- qcom/qg-batterydata-jk50-scud-5000mah.dtsi | 1018 ++++++++++++++++++++ 2 files changed, 1035 insertions(+), 3 deletions(-) create mode 100644 qcom/qg-batterydata-jk50-scud-5000mah.dtsi diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 817932804336..8e172ec518ee 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -156,14 +156,28 @@ }; &mot_batterydata { - df-serialnum = "SB18D00294"; + df-serialnum = "SB18C77591"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-md50-amperex-5000mah.dtsi" - #include "qg-batterydata-md50-scud-5000mah.dtsi" + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; }; &pm7250b_charger { qcom,dcp-curr-max = <2000000>; + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; }; &pm7250b_qg { diff --git a/qcom/qg-batterydata-jk50-scud-5000mah.dtsi b/qcom/qg-batterydata-jk50-scud-5000mah.dtsi new file mode 100644 index 000000000000..d60b780e832e --- /dev/null +++ b/qcom/qg-batterydata-jk50-scud-5000mah.dtsi @@ -0,0 +1,1018 @@ +qcom,jk50-scud-5000mah { + /* SCUD4487667_4850mAh_averaged_MasterSlave_Mar21th2020p */ + serialnum = "SB18C77226"; + qcom,sdam-magic-number = <0x18C77226>; + qcom,max-voltage-uv = <4400000>; + qcom,fg-cc-cv-threshold-uv = <4390000>; + qcom,fastchg-current-ma = <3000>; + qcom,batt-id-kohm = <100>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "JK50-SCUD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4789 4916 5019 5064 5079>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4995 5003 5021 5007 5023 5023>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43527 43720 43808 43837 43845>, + <43258 43471 43586 43614 43618>, + <43002 43216 43362 43390 43400>, + <42761 42969 43124 43158 43170>, + <42532 42728 42882 42923 42937>, + <42311 42495 42638 42687 42703>, + <42098 42267 42393 42451 42467>, + <41890 42046 42156 42216 42231>, + <41681 41831 41927 41986 42000>, + <41477 41616 41703 41759 41771>, + <41296 41407 41482 41532 41545>, + <41144 41224 41270 41309 41323>, + <40970 41074 41086 41094 41105>, + <40688 40898 40925 40893 40895>, + <40345 40606 40727 40693 40690>, + <40100 40268 40429 40483 40490>, + <39934 40057 40147 40274 40297>, + <39796 39919 39991 40092 40114>, + <39671 39796 39877 39933 39942>, + <39561 39678 39747 39775 39774>, + <39446 39558 39599 39616 39613>, + <39327 39402 39425 39445 39447>, + <39205 39202 39159 39222 39237>, + <39083 39004 38872 38955 38980>, + <38959 38805 38724 38778 38797>, + <38833 38632 38641 38676 38689>, + <38696 38534 38565 38588 38597>, + <38570 38469 38486 38491 38494>, + <38481 38415 38410 38397 38393>, + <38410 38366 38339 38313 38304>, + <38357 38324 38272 38239 38226>, + <38318 38284 38212 38171 38156>, + <38286 38247 38160 38113 38098>, + <38256 38213 38112 38059 38043>, + <38230 38184 38071 38007 37983>, + <38200 38153 38033 37957 37921>, + <38169 38119 37993 37907 37860>, + <38133 38081 37954 37859 37806>, + <38084 38029 37903 37802 37743>, + <38017 37944 37821 37719 37655>, + <37933 37839 37715 37613 37545>, + <37811 37721 37601 37499 37427>, + <37668 37584 37472 37368 37295>, + <37520 37421 37317 37215 37145>, + <37370 37273 37170 37074 37010>, + <37258 37172 37081 36991 36932>, + <37219 37156 37052 36962 36906>, + <37188 37131 37037 36945 36886>, + <37162 37107 37019 36927 36865>, + <37121 37068 36977 36873 36804>, + <36931 36868 36759 36630 36538>, + <36501 36442 36338 36197 36097>, + <35935 35872 35773 35623 35525>, + <35166 35095 35000 34839 34741>, + <33969 33890 33810 33627 33524>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <43885 43855 43825 43775 43750 43730>, + <43474 43486 43525 43486 43481 43466>, + <43101 43156 43244 43213 43220 43210>, + <42770 42871 42981 42957 42972 42964>, + <42473 42624 42736 42717 42733 42728>, + <42205 42382 42495 42481 42497 42493>, + <41960 42137 42255 42245 42261 42259>, + <41736 41892 42019 42013 42027 42026>, + <41509 41621 41791 41785 41798 41796>, + <41289 41340 41569 41562 41571 41568>, + <41193 41168 41355 41340 41347 41344>, + <41169 41084 41147 41118 41127 41125>, + <41140 40990 40949 40907 40912 40909>, + <40792 40780 40773 40726 40711 40701>, + <40103 40467 40599 40555 40515 40498>, + <39725 40162 40365 40343 40318 40304>, + <39532 39838 40047 40073 40119 40118>, + <39362 39565 39780 39851 39934 39939>, + <39182 39386 39612 39721 39773 39774>, + <39009 39231 39462 39606 39613 39608>, + <38840 39046 39273 39425 39417 39417>, + <38671 38841 39059 39173 39192 39202>, + <38532 38659 38872 38951 38984 38998>, + <38418 38495 38711 38767 38791 38799>, + <38324 38357 38569 38610 38624 38626>, + <38250 38254 38445 38486 38497 38496>, + <38189 38172 38335 38383 38391 38389>, + <38132 38109 38232 38287 38292 38289>, + <38080 38058 38136 38197 38202 38197>, + <38031 38015 38050 38114 38120 38113>, + <37982 37974 37975 38040 38048 38040>, + <37933 37936 37910 37971 37982 37972>, + <37884 37898 37865 37908 37918 37908>, + <37836 37861 37831 37850 37856 37848>, + <37785 37822 37798 37795 37789 37779>, + <37731 37781 37763 37741 37710 37689>, + <37672 37737 37726 37686 37627 37592>, + <37607 37684 37681 37625 37544 37495>, + <37536 37622 37628 37559 37459 37397>, + <37461 37550 37561 37486 37378 37310>, + <37383 37467 37469 37404 37302 37236>, + <37304 37367 37359 37308 37213 37148>, + <37224 37244 37232 37191 37101 37037>, + <37151 37109 37090 37057 36961 36895>, + <37068 36991 36961 36929 36848 36791>, + <36983 36913 36901 36883 36815 36760>, + <36938 36889 36875 36868 36803 36748>, + <36884 36860 36851 36854 36787 36735>, + <36807 36816 36811 36827 36763 36705>, + <36680 36728 36722 36764 36676 36605>, + <36437 36508 36478 36532 36379 36279>, + <36026 36071 36010 36064 35878 35774>, + <35432 35443 35368 35447 35228 35115>, + <34574 34550 34458 34598 34326 34193>, + <33175 33170 33140 33334 32948 32812>, + <28986 28473 27920 28444 28011 28001>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13091 12461 11985 11754 11665>, + <13127 12497 12025 11804 11712>, + <13151 12516 12024 11806 11719>, + <13165 12519 12036 11801 11720>, + <13170 12509 12044 11798 11719>, + <13163 12499 12040 11796 11717>, + <13148 12496 12032 11793 11717>, + <13138 12501 12026 11790 11716>, + <13144 12505 12021 11789 11717>, + <13150 12503 12018 11788 11719>, + <13150 12498 12020 11787 11721>, + <13157 12494 12023 11787 11722>, + <13162 12489 12022 11786 11722>, + <13130 12483 12017 11785 11721>, + <13073 12460 12011 11784 11720>, + <13056 12430 12001 11782 11720>, + <13055 12424 11993 11781 11720>, + <13055 12425 11996 11781 11720>, + <13059 12428 12004 11783 11722>, + <13066 12437 12010 11784 11722>, + <13067 12450 12014 11784 11722>, + <13058 12457 12017 11784 11722>, + <13048 12462 12020 11785 11722>, + <13046 12465 12023 11787 11723>, + <13046 12469 12025 11788 11725>, + <13049 12473 12028 11791 11726>, + <13060 12477 12030 11794 11727>, + <13070 12485 12031 11797 11730>, + <13072 12491 12032 11801 11733>, + <13071 12497 12036 11804 11736>, + <13073 12501 12042 11808 11738>, + <13086 12503 12047 11812 11741>, + <13101 12503 12053 11815 11744>, + <13106 12503 12057 11818 11747>, + <13110 12505 12058 11823 11751>, + <13117 12508 12059 11827 11755>, + <13133 12511 12062 11831 11758>, + <13148 12516 12070 11833 11760>, + <13158 12523 12077 11836 11763>, + <13178 12540 12078 11840 11766>, + <13191 12556 12079 11844 11769>, + <13201 12563 12081 11848 11772>, + <13207 12567 12087 11852 11776>, + <13211 12569 12093 11857 11778>, + <13202 12573 12104 11863 11780>, + <13197 12571 12106 11866 11783>, + <13165 12566 12106 11869 11783>, + <13192 12574 12106 11870 11784>, + <13186 12571 12103 11870 11787>, + <13194 12588 12114 11874 11792>, + <13185 12574 12115 11881 11798>, + <13221 12597 12127 11889 11805>, + <13214 12609 12142 11901 11818>, + <13253 12651 12178 11918 11834>, + <13253 12651 12178 11918 11834>, + <13253 12651 12178 11918 11834>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10327 11611 10655 10670 10610>, + <10389 10649 11137 10634 10502>, + <10422 10668 12508 10705 10487>, + <10425 10685 12606 10742 10605>, + <10424 10664 12430 10744 10603>, + <10427 10629 11777 10731 10598>, + <10432 10599 10968 10702 10605>, + <10434 10573 10755 10669 10605>, + <10430 10552 10717 10622 10575>, + <10422 10537 10707 10580 10528>, + <10417 10525 10899 10584 10507>, + <10415 10549 11126 10604 10505>, + <10412 10721 11181 10605 10500>, + <10372 10842 11344 10531 10466>, + <10307 10761 11389 10470 10422>, + <10290 10626 11088 10516 10390>, + <10296 10601 10788 10597 10362>, + <10307 10615 10748 10596 10359>, + <10327 10637 10733 10508 10380>, + <10358 10675 10736 10459 10407>, + <10381 10722 10786 10558 10441>, + <10397 10757 10829 10678 10475>, + <10411 10787 10840 10647 10480>, + <10425 10798 10842 10527 10477>, + <10440 10774 10827 10487 10478>, + <10457 10744 10782 10516 10499>, + <10479 10747 10760 10568 10537>, + <10502 10767 10793 10718 10641>, + <10521 10777 10838 10919 10792>, + <10537 10777 10857 10935 10804>, + <10552 10777 10869 10826 10671>, + <10562 10781 10876 10731 10530>, + <10573 10790 10883 10664 10404>, + <10588 10802 10889 10621 10312>, + <10610 10817 10895 10623 10318>, + <10636 10835 10905 10640 10367>, + <10673 10852 10918 10664 10420>, + <10707 10869 10938 10720 10479>, + <10645 10887 10964 10781 10537>, + <10407 10911 11015 10830 10583>, + <10300 10933 11065 10872 10622>, + <10337 10945 11067 10896 10645>, + <10379 10957 11058 10917 10663>, + <10127 10987 11064 10931 10704>, + <10154 11156 11103 10920 10727>, + <10555 11339 11168 10784 10601>, + <10427 11087 11164 10779 10604>, + <10647 16175 11150 10794 10608>, + <10616 12280 11151 10834 10665>, + <10602 11569 11225 10941 10777>, + <10594 11472 11279 10867 10597>, + <10227 11135 11216 10661 10387>, + <10074 11040 11194 10600 10302>, + <9765 10768 11064 10537 10252>, + <9765 10768 11064 10537 10252>, + <9765 10768 11064 10537 10252>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19490 19258 19335 19331 19329>, + <19618 19462 19372 19346 19337>, + <19688 19511 19386 19370 19345>, + <19707 19546 19413 19384 19371>, + <19718 19552 19430 19389 19378>, + <19717 19554 19434 19393 19384>, + <19703 19554 19436 19398 19391>, + <19686 19550 19436 19400 19394>, + <19675 19544 19436 19399 19394>, + <19663 19540 19435 19396 19393>, + <19648 19534 19439 19393 19391>, + <19624 19532 19441 19389 19386>, + <19609 19531 19441 19384 19381>, + <19639 19530 19439 19375 19375>, + <19696 19530 19436 19369 19371>, + <19709 19530 19433 19371 19368>, + <19674 19525 19428 19375 19365>, + <19634 19501 19417 19374 19362>, + <19608 19481 19400 19365 19358>, + <19586 19472 19394 19359 19355>, + <19580 19465 19393 19358 19352>, + <19581 19469 19392 19357 19349>, + <19583 19491 19397 19356 19344>, + <19588 19504 19406 19353 19337>, + <19600 19505 19405 19348 19332>, + <19611 19505 19393 19338 19329>, + <19624 19505 19387 19332 19327>, + <19633 19503 19387 19347 19347>, + <19633 19501 19388 19376 19389>, + <19627 19498 19393 19385 19397>, + <19620 19495 19403 19389 19393>, + <19610 19492 19408 19390 19387>, + <19598 19489 19410 19385 19377>, + <19586 19486 19411 19378 19366>, + <19573 19484 19409 19372 19359>, + <19561 19481 19405 19365 19353>, + <19551 19478 19401 19360 19348>, + <19539 19475 19396 19355 19344>, + <19506 19472 19393 19352 19341>, + <19436 19469 19391 19349 19339>, + <19400 19465 19389 19347 19338>, + <19398 19460 19386 19348 19340>, + <19395 19454 19382 19351 19346>, + <19303 19448 19380 19352 19349>, + <19262 19427 19376 19351 19349>, + <19260 19402 19361 19335 19335>, + <19261 19300 19360 19335 19329>, + <19260 19284 19347 19329 19323>, + <19260 19276 19342 19325 19317>, + <19260 19277 19336 19319 19312>, + <19260 19281 19344 19333 19339>, + <19261 19283 19342 19340 19350>, + <19262 19282 19328 19341 19347>, + <19265 19282 19325 19339 19345>, + <19265 19282 19325 19339 19345>, + <19265 19282 19325 19339 19345>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15931 15222 14952 14854 14827>, + <15881 15414 14945 14837 14806>, + <15798 15320 15012 14863 14809>, + <15655 15193 14945 14868 14841>, + <15478 15100 14870 14834 14818>, + <15353 15015 14840 14806 14795>, + <15259 14951 14820 14783 14775>, + <15185 14901 14798 14762 14756>, + <15130 14862 14775 14745 14739>, + <15085 14836 14751 14730 14724>, + <15044 14815 14727 14718 14713>, + <15006 14783 14703 14707 14706>, + <14970 14730 14682 14700 14700>, + <14932 14700 14654 14696 14695>, + <14897 14718 14644 14692 14692>, + <14876 14747 14680 14687 14688>, + <14864 14752 14716 14682 14684>, + <14853 14740 14706 14677 14679>, + <14839 14727 14681 14670 14674>, + <14823 14714 14673 14667 14672>, + <14807 14703 14674 14669 14674>, + <14789 14704 14677 14674 14679>, + <14773 14719 14733 14709 14708>, + <14759 14738 14820 14795 14790>, + <14748 14780 14833 14824 14823>, + <14744 14821 14823 14819 14816>, + <14752 14821 14811 14810 14802>, + <14761 14804 14795 14782 14765>, + <14763 14786 14776 14739 14709>, + <14764 14771 14757 14715 14689>, + <14763 14757 14736 14699 14683>, + <14758 14745 14721 14689 14679>, + <14752 14734 14708 14682 14675>, + <14749 14724 14700 14678 14672>, + <14746 14715 14696 14678 14672>, + <14743 14707 14693 14679 14673>, + <14741 14700 14691 14679 14674>, + <14740 14695 14689 14679 14674>, + <14760 14694 14689 14679 14674>, + <14827 14695 14693 14686 14682>, + <14859 14697 14698 14697 14695>, + <14856 14695 14696 14696 14696>, + <14851 14692 14689 14688 14688>, + <14932 14689 14687 14688 14689>, + <14923 14681 14679 14687 14688>, + <14878 14666 14657 14666 14665>, + <14874 14770 14650 14660 14663>, + <14869 14780 14651 14649 14653>, + <14864 14782 14646 14634 14635>, + <14859 14778 14648 14635 14632>, + <14860 14781 14657 14652 14646>, + <14879 14790 14669 14660 14654>, + <14889 14796 14688 14664 14661>, + <14903 14806 14697 14669 14665>, + <14903 14806 14697 14669 14665>, + <14903 14806 14697 14669 14665>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12524 11546 13833 15260 15394>, + <13799 14453 16200 16964 16699>, + <14681 15700 15700 18448 17559>, + <15223 16924 16546 19029 19341>, + <15609 17733 17543 19666 20255>, + <15829 18369 18660 20417 21258>, + <15965 18977 19948 21463 22671>, + <16084 19580 20930 22269 24080>, + <16240 20128 21780 22659 25257>, + <16379 20662 22770 23059 26241>, + <16364 21340 24791 23808 26892>, + <16142 22351 27299 24920 27595>, + <15993 24190 30073 25214 27930>, + <18258 26296 34719 24305 27890>, + <22488 29020 36682 23545 27963>, + <23442 31578 35248 25995 28668>, + <21305 31032 32943 30570 30000>, + <19261 26423 30266 31273 31350>, + <18767 23733 27318 30042 32902>, + <18496 24159 26998 29355 33810>, + <18508 25262 30449 30951 33893>, + <19595 30663 34482 32907 33633>, + <21488 47924 38322 31977 31714>, + <24104 56943 41764 28112 25756>, + <28277 54745 40175 24218 21110>, + <33648 50818 30592 19733 17926>, + <43024 47257 24627 17085 16167>, + <50585 43344 23316 18515 19521>, + <50792 40411 22663 21827 27007>, + <49025 38327 23450 24751 30609>, + <46657 36834 26349 27782 32555>, + <42588 36259 29586 30227 33272>, + <37839 36498 33612 32132 31773>, + <34211 37230 37229 33494 29898>, + <30986 38331 39755 34131 30329>, + <28602 39209 41699 34546 32060>, + <27086 39861 41859 34573 32597>, + <25728 40922 40763 33847 31830>, + <23459 41115 39666 32673 30700>, + <20113 40701 38467 30395 28449>, + <18619 39993 36801 27651 25629>, + <18834 37714 34474 26808 25441>, + <19064 34611 31665 26840 26800>, + <14011 33741 31342 27468 28023>, + <12141 31978 32061 27651 28322>, + <12271 29890 30794 23935 23905>, + <12252 14462 30675 24086 21186>, + <12229 13103 24723 23487 20712>, + <12226 12762 23699 25108 23171>, + <12241 12829 22199 22979 22331>, + <12329 13054 22718 22538 26099>, + <12222 12946 19929 20522 24429>, + <12097 12765 16474 19155 20367>, + <11962 12546 15615 17555 17690>, + <11962 12546 15615 17555 17690>, + <11962 12546 15615 17555 17690>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15983 15176 14813 14691 14659>, + <15969 15333 14827 14697 14663>, + <15937 15296 14862 14721 14669>, + <15860 15242 14842 14727 14693>, + <15748 15192 14819 14717 14689>, + <15662 15140 14805 14708 14685>, + <15593 15097 14792 14699 14680>, + <15534 15063 14779 14691 14674>, + <15488 15034 14766 14683 14668>, + <15449 15011 14755 14675 14661>, + <15409 14993 14746 14668 14655>, + <15366 14969 14738 14661 14649>, + <15333 14938 14727 14655 14643>, + <15317 14920 14712 14648 14638>, + <15307 14920 14706 14642 14634>, + <15290 14922 14716 14641 14630>, + <15259 14919 14725 14641 14627>, + <15228 14901 14717 14638 14623>, + <15205 14886 14698 14630 14618>, + <15186 14879 14692 14625 14615>, + <15177 14873 14693 14626 14615>, + <15172 14876 14694 14627 14616>, + <15169 14894 14722 14641 14625>, + <15170 14914 14765 14677 14657>, + <15175 14935 14770 14688 14669>, + <15181 14952 14761 14682 14664>, + <15194 14952 14753 14675 14658>, + <15206 14946 14746 14672 14655>, + <15207 14939 14741 14669 14653>, + <15207 14932 14737 14665 14650>, + <15206 14926 14734 14661 14646>, + <15201 14921 14731 14657 14641>, + <15194 14916 14729 14652 14634>, + <15189 14912 14726 14648 14627>, + <15184 14909 14724 14644 14624>, + <15181 14907 14722 14642 14622>, + <15178 14906 14720 14639 14619>, + <15176 14905 14718 14637 14616>, + <15174 14905 14717 14635 14615>, + <15173 14908 14719 14638 14617>, + <15174 14912 14722 14642 14622>, + <15179 14913 14721 14642 14624>, + <15183 14913 14718 14641 14625>, + <15180 14914 14719 14642 14627>, + <15166 14909 14717 14642 14627>, + <15154 14896 14703 14626 14610>, + <15150 14889 14700 14623 14606>, + <15151 14887 14694 14616 14598>, + <15148 14885 14689 14607 14588>, + <15154 14889 14690 14606 14585>, + <15161 14897 14701 14622 14606>, + <15178 14908 14709 14631 14618>, + <15194 14920 14715 14636 14623>, + <15222 14937 14724 14642 14627>, + <15222 14937 14724 14642 14627>, + <15222 14937 14724 14642 14627>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6398 6081 5748 5427 5319 5257>, + <6465 6050 5732 5436 5316 5256>, + <6513 6030 5720 5444 5313 5255>, + <6545 6018 5710 5450 5310 5254>, + <6561 6014 5705 5453 5307 5253>, + <6565 6013 5704 5454 5305 5252>, + <6544 6024 5709 5452 5303 5250>, + <6520 6035 5714 5449 5301 5249>, + <6522 6031 5712 5445 5300 5248>, + <6532 6018 5708 5441 5297 5248>, + <6539 6015 5704 5440 5296 5248>, + <6559 6028 5698 5440 5295 5246>, + <6576 6038 5694 5441 5294 5245>, + <6573 6034 5695 5439 5292 5244>, + <6567 6027 5698 5435 5290 5244>, + <6568 6028 5705 5435 5290 5243>, + <6581 6041 5720 5439 5291 5243>, + <6590 6052 5727 5442 5292 5243>, + <6568 6057 5721 5442 5290 5243>, + <6535 6062 5712 5443 5289 5243>, + <6531 6061 5714 5443 5289 5243>, + <6536 6059 5720 5446 5289 5243>, + <6543 6058 5722 5447 5290 5243>, + <6564 6054 5718 5448 5291 5244>, + <6584 6051 5713 5448 5293 5246>, + <6574 6055 5714 5448 5295 5247>, + <6546 6065 5717 5448 5296 5248>, + <6538 6069 5718 5448 5298 5250>, + <6554 6058 5713 5452 5301 5251>, + <6566 6048 5709 5455 5304 5253>, + <6554 6047 5716 5457 5306 5256>, + <6535 6045 5723 5458 5308 5258>, + <6529 6042 5723 5461 5311 5260>, + <6528 6038 5721 5467 5314 5262>, + <6526 6037 5720 5471 5317 5264>, + <6525 6038 5720 5471 5320 5265>, + <6526 6039 5722 5472 5323 5267>, + <6530 6042 5723 5474 5324 5269>, + <6538 6045 5725 5477 5324 5271>, + <6540 6045 5727 5481 5325 5273>, + <6540 6047 5726 5484 5328 5274>, + <6540 6052 5726 5484 5331 5276>, + <6562 6063 5733 5482 5333 5278>, + <6556 6061 5730 5488 5337 5282>, + <6555 6072 5736 5496 5343 5286>, + <6573 6062 5742 5498 5350 5290>, + <6578 6097 5750 5503 5348 5288>, + <6599 6089 5740 5511 5348 5287>, + <6628 6078 5742 5506 5347 5287>, + <6574 6094 5744 5499 5345 5287>, + <6589 6097 5760 5504 5347 5290>, + <6621 6118 5753 5515 5355 5295>, + <6602 6123 5767 5526 5365 5302>, + <6665 6127 5791 5534 5372 5312>, + <6665 6127 5791 5534 5372 5312>, + <6665 6127 5791 5534 5372 5312>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9664 9643 11009 11752 11307 11242>, + <9666 9643 11058 11692 11312 11204>, + <9668 9897 11089 11635 11294 11167>, + <9669 10183 11104 11582 11262 11132>, + <9671 10372 11108 11534 11226 11099>, + <9673 10426 11104 11491 11195 11068>, + <9674 10326 11081 11452 11149 11034>, + <9676 10215 11055 11419 11108 11009>, + <9675 10304 11045 11391 11097 11002>, + <9672 10561 11041 11367 11088 10999>, + <9671 10640 11024 11342 11080 10989>, + <9673 10559 10972 11312 11065 10946>, + <9673 10492 10935 11289 11053 10913>, + <9672 10561 11110 11278 11057 10917>, + <9670 10709 11409 11272 11071 10927>, + <9670 10750 11457 11294 11091 10946>, + <9670 10550 11419 11411 11144 10998>, + <9670 10423 11399 11530 11214 11059>, + <9670 10470 11433 11629 11366 11137>, + <9669 10507 11481 11701 11520 11226>, + <9669 10370 11500 11704 11552 11319>, + <9669 9926 11514 11687 11557 11415>, + <9669 9729 11529 11677 11542 11436>, + <9668 9711 11558 11674 11465 11332>, + <9668 9703 11591 11676 11404 11242>, + <9667 9703 11626 11693 11443 11262>, + <9667 9703 11662 11731 11527 11315>, + <9666 9702 11671 11769 11546 11346>, + <9666 9698 11655 11812 11538 11370>, + <9666 9692 11645 11850 11533 11398>, + <9665 9687 11665 11881 11573 11433>, + <9665 9682 11688 11905 11642 11479>, + <9665 9678 11677 11915 11690 11556>, + <9664 9675 11619 11913 11741 11674>, + <9664 9672 11564 11903 11754 11715>, + <9664 9670 11521 11869 11715 11641>, + <9663 9668 11474 11826 11674 11537>, + <9663 9667 11416 11797 11651 11451>, + <9663 9665 11348 11770 11616 11369>, + <9663 9664 11226 11741 11591 11359>, + <9663 9663 10782 11705 11564 11421>, + <9663 9662 10310 11672 11572 11433>, + <9662 9662 9804 11636 11608 11385>, + <9662 9661 9734 11551 11457 11309>, + <9662 9662 9717 11532 11478 11214>, + <9662 9661 9701 11460 11276 11056>, + <9662 9661 9695 11416 11288 11032>, + <9662 9660 9688 11397 11337 11086>, + <9661 9660 9683 11381 11387 11155>, + <9661 9660 9680 11385 11374 11087>, + <9661 9659 9677 11345 11297 10978>, + <9660 9659 9673 11253 11197 10919>, + <9660 9659 9668 11126 11083 10809>, + <9659 9658 9664 11023 10967 10659>, + <9659 9658 9664 11023 10967 10659>, + <9659 9658 9664 11023 10967 10659>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <14161 13482 13335 13286 13278 13277>, + <14085 13486 13337 13288 13279 13277>, + <14010 13489 13339 13289 13279 13278>, + <13940 13489 13341 13291 13281 13278>, + <13881 13487 13343 13292 13281 13279>, + <13837 13484 13345 13293 13282 13280>, + <13809 13476 13348 13293 13282 13280>, + <13782 13470 13349 13293 13282 13281>, + <13715 13471 13349 13294 13282 13281>, + <13611 13476 13349 13295 13283 13282>, + <13578 13473 13349 13295 13283 13282>, + <13582 13412 13355 13295 13284 13283>, + <13585 13360 13360 13295 13284 13283>, + <13582 13373 13353 13299 13287 13284>, + <13574 13401 13342 13306 13291 13284>, + <13562 13406 13339 13307 13292 13284>, + <13539 13394 13339 13301 13290 13287>, + <13525 13383 13338 13297 13290 13289>, + <13523 13379 13335 13298 13290 13290>, + <13522 13375 13331 13300 13291 13290>, + <13522 13369 13327 13299 13290 13289>, + <13521 13360 13322 13296 13287 13286>, + <13522 13351 13317 13293 13283 13282>, + <13527 13339 13314 13289 13281 13279>, + <13533 13328 13312 13285 13279 13277>, + <13543 13321 13310 13286 13278 13277>, + <13560 13316 13309 13287 13278 13277>, + <13578 13315 13308 13287 13278 13277>, + <13600 13322 13307 13287 13277 13276>, + <13624 13333 13305 13287 13276 13275>, + <13649 13348 13301 13286 13277 13275>, + <13675 13370 13296 13286 13277 13275>, + <13705 13393 13297 13287 13278 13276>, + <13739 13419 13301 13287 13279 13277>, + <13774 13448 13305 13287 13279 13277>, + <13810 13480 13308 13287 13279 13277>, + <13846 13517 13310 13286 13279 13277>, + <13880 13558 13313 13287 13278 13277>, + <13913 13604 13315 13287 13277 13276>, + <13944 13653 13317 13287 13278 13276>, + <13973 13704 13316 13287 13280 13279>, + <14001 13755 13319 13288 13281 13280>, + <14029 13804 13328 13289 13281 13280>, + <14057 13847 13332 13288 13278 13276>, + <14027 13833 13326 13285 13275 13275>, + <14105 13923 13349 13290 13281 13282>, + <14154 13971 13356 13292 13284 13285>, + <14197 14019 13372 13297 13288 13288>, + <14243 14068 13396 13301 13292 13289>, + <14297 14103 13416 13305 13291 13287>, + <14352 14139 13435 13302 13286 13284>, + <14422 14181 13466 13301 13285 13284>, + <14520 14269 13537 13307 13289 13286>, + <14675 14368 13635 13314 13297 13293>, + <14675 14368 13635 13314 13297 13293>, + <14675 14368 13635 13314 13297 13293>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16982 16824 16596 16497 16464 16461>, + <17028 16838 16614 16492 16461 16459>, + <17076 16855 16634 16489 16458 16458>, + <17118 16872 16653 16487 16457 16457>, + <17147 16887 16666 16486 16457 16457>, + <17156 16897 16670 16486 16457 16457>, + <17144 16913 16665 16487 16459 16457>, + <17131 16926 16661 16489 16461 16457>, + <17183 16909 16664 16492 16463 16458>, + <17354 16861 16673 16496 16466 16460>, + <17505 16870 16678 16501 16469 16462>, + <17647 17171 16680 16507 16473 16464>, + <17731 17425 16683 16514 16477 16468>, + <17494 17337 16756 16528 16481 16472>, + <17021 17132 16876 16547 16484 16477>, + <16893 16983 16873 16558 16490 16482>, + <16883 16855 16753 16565 16500 16485>, + <16873 16794 16685 16574 16512 16491>, + <16850 16791 16689 16607 16536 16509>, + <16819 16790 16695 16642 16557 16527>, + <16782 16775 16675 16630 16554 16527>, + <16735 16730 16617 16568 16536 16522>, + <16711 16688 16577 16520 16514 16514>, + <16704 16646 16554 16491 16481 16483>, + <16701 16617 16539 16474 16458 16458>, + <16700 16617 16531 16473 16458 16457>, + <16700 16620 16525 16472 16459 16456>, + <16700 16623 16517 16473 16461 16457>, + <16701 16627 16506 16476 16467 16464>, + <16703 16630 16500 16480 16476 16472>, + <16707 16630 16499 16485 16484 16480>, + <16714 16630 16500 16489 16493 16489>, + <16719 16632 16501 16491 16499 16498>, + <16723 16638 16503 16491 16504 16508>, + <16726 16646 16507 16491 16505 16511>, + <16729 16655 16516 16490 16495 16502>, + <16731 16663 16528 16486 16482 16488>, + <16731 16670 16539 16483 16473 16477>, + <16730 16676 16551 16479 16466 16467>, + <16729 16678 16562 16478 16466 16466>, + <16730 16677 16574 16480 16472 16474>, + <16732 16673 16586 16484 16474 16478>, + <16741 16659 16596 16487 16474 16479>, + <16746 16644 16595 16483 16458 16455>, + <16726 16624 16587 16470 16446 16441>, + <16740 16634 16594 16481 16461 16463>, + <16755 16642 16611 16495 16479 16488>, + <16777 16664 16629 16511 16505 16520>, + <16802 16691 16657 16539 16540 16553>, + <16818 16730 16693 16570 16549 16554>, + <16812 16739 16702 16549 16492 16484>, + <16801 16712 16682 16520 16472 16470>, + <16804 16709 16692 16533 16476 16471>, + <16846 16720 16722 16557 16488 16478>, + <16846 16720 16722 16557 16488 16478>, + <16846 16720 16722 16557 16488 16478>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13332 8712 17045 17640 18275 20910>, + <13098 10904 17418 18649 19427 20758>, + <13038 13272 17921 19249 20025 20655>, + <13111 15368 18430 19532 20206 20591>, + <13276 16818 18818 19591 20109 20561>, + <13500 17252 18962 19509 19850 20552>, + <13974 16835 18970 18934 18932 20456>, + <14389 16157 18920 18118 17863 20235>, + <13880 15355 18643 17526 17370 19641>, + <12405 14291 17971 16992 17040 18543>, + <12161 13858 17189 16416 16653 17839>, + <15529 13766 16047 15663 16109 17465>, + <18454 13951 15349 15207 15791 17093>, + <17998 17123 15467 15423 16206 16421>, + <16758 22628 15837 15831 16919 15722>, + <15690 23277 17071 15825 16829 15716>, + <14569 19697 20939 15298 15755 16257>, + <14008 17382 23117 14977 15169 16543>, + <14353 18240 23221 15765 15263 16212>, + <14850 19395 23247 17422 15495 15825>, + <14808 19055 23445 19871 16922 16832>, + <14342 17303 23841 23578 20406 19871>, + <13915 15955 23993 24920 21644 20978>, + <13318 15140 23634 22851 21421 20817>, + <12789 14449 23262 20667 21064 20635>, + <12743 13690 23332 21004 20533 20406>, + <12746 12840 23525 22256 19786 19966>, + <12755 12529 23608 22646 19032 19304>, + <12850 12459 23729 22344 17903 17534>, + <12946 12431 23709 22117 17277 16450>, + <12960 12580 21072 22457 17603 16515>, + <12972 12910 17597 23084 18302 16690>, + <13035 13166 17539 23677 19187 17193>, + <13287 13414 18924 24780 20461 18529>, + <13544 13649 19892 25368 21608 19875>, + <13724 13952 20375 24917 22804 21419>, + <13863 14263 20642 24174 23592 22441>, + <13878 14429 20579 23701 22815 21810>, + <13796 14539 20387 23322 20930 20409>, + <13677 14605 20067 22719 20559 20280>, + <13437 14648 17941 21410 21687 21626>, + <13166 14653 16422 20465 22128 22030>, + <12902 14548 14814 19996 22130 21894>, + <13044 14076 14116 19370 20502 21014>, + <13087 13785 13618 18661 17518 18634>, + <13430 13562 14184 18898 17802 17786>, + <13642 13892 13748 17846 17816 16961>, + <13748 13786 13811 18292 17548 16814>, + <13919 13851 14033 18410 17929 16408>, + <14336 14105 14310 18644 17181 15849>, + <14476 14352 14410 18327 17543 16705>, + <14104 14227 14247 18913 17848 16745>, + <14012 14074 14381 19182 18610 16574>, + <13945 14410 14657 20023 23587 21250>, + <13945 14410 14657 20023 23587 21250>, + <13945 14410 14657 20023 23587 21250>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6373 5660 5283 5076 5032 5024>, + <6326 5667 5287 5076 5031 5024>, + <6281 5670 5288 5075 5031 5024>, + <6238 5670 5288 5075 5032 5024>, + <6200 5668 5286 5074 5032 5024>, + <6166 5664 5284 5074 5032 5024>, + <6135 5654 5279 5074 5032 5025>, + <6109 5639 5274 5074 5033 5026>, + <6086 5621 5271 5075 5033 5026>, + <6066 5601 5268 5076 5035 5027>, + <6063 5598 5267 5077 5036 5028>, + <6102 5636 5267 5078 5037 5029>, + <6135 5668 5267 5080 5039 5030>, + <6068 5655 5280 5086 5041 5032>, + <5931 5622 5302 5096 5045 5033>, + <5885 5588 5299 5098 5048 5035>, + <5875 5544 5267 5098 5049 5038>, + <5867 5518 5247 5098 5052 5041>, + <5858 5515 5245 5106 5059 5047>, + <5849 5512 5243 5117 5066 5052>, + <5839 5503 5235 5114 5064 5051>, + <5828 5482 5214 5094 5056 5047>, + <5824 5467 5199 5078 5047 5041>, + <5828 5457 5190 5067 5035 5030>, + <5834 5451 5185 5060 5027 5021>, + <5843 5453 5184 5060 5027 5021>, + <5855 5460 5183 5061 5027 5021>, + <5870 5470 5182 5062 5028 5022>, + <5887 5484 5181 5064 5029 5023>, + <5906 5502 5181 5065 5032 5025>, + <5926 5523 5182 5067 5035 5027>, + <5948 5548 5183 5069 5038 5030>, + <5972 5575 5187 5071 5041 5033>, + <5999 5605 5196 5073 5043 5037>, + <6026 5636 5207 5074 5043 5038>, + <6054 5670 5218 5074 5041 5036>, + <6081 5707 5232 5074 5037 5032>, + <6107 5746 5247 5074 5035 5029>, + <6134 5787 5266 5074 5033 5026>, + <6159 5829 5284 5075 5033 5026>, + <6182 5871 5303 5078 5036 5030>, + <6204 5910 5323 5081 5038 5032>, + <6230 5946 5347 5085 5039 5032>, + <6254 5978 5366 5086 5032 5024>, + <6235 5964 5371 5082 5028 5020>, + <6299 6035 5415 5094 5038 5031>, + <6340 6076 5439 5100 5045 5041>, + <6385 6120 5472 5110 5055 5052>, + <6431 6165 5509 5122 5067 5063>, + <6478 6206 5543 5133 5069 5062>, + <6523 6241 5570 5125 5050 5039>, + <6580 6270 5601 5121 5045 5036>, + <6669 6342 5684 5137 5050 5039>, + <6824 6432 5786 5159 5061 5048>, + <6824 6432 5786 5159 5061 5048>, + <6824 6432 5786 5159 5061 5048>; + }; + +}; From f070135ed54bcb805b0881c534e6b6a83e8ab96d Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 3 Jun 2021 16:06:34 +0800 Subject: [PATCH 0231/1247] arm64/dt: cypfg: add nfc device node Cypfg use ST21J nfc controller. Add dts node to enable it. Change-Id: I31a17bb1e98b827735b8561d5748a6e2f00ed75d Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1968818 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 132 +++++++++++++++++++++++----- 1 file changed, 110 insertions(+), 22 deletions(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 8e172ec518ee..eaff94c8d276 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -51,31 +51,96 @@ }; }; - nfc_clk_active: nfc_clk_active { - /* active state */ - mux { - pins = "gpio7", "gpio9"; - function = "gpio"; + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; }; - config { - pins = "gpio7", "gpio9"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; - nfc_clk_suspend: nfc_clk_suspend { - /* sleep state */ - mux { - pins = "gpio7", "gpio9"; - function = "gpio"; + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; }; - config { - pins = "gpio7", "gpio9"; - drive-strength = <2>; /* 2 MA */ - output-low; + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; }; }; }; @@ -94,6 +159,29 @@ }; }; +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + &qupv3_se10_i2c { status = "ok"; @@ -326,8 +414,8 @@ &sx937x { pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default &nfc_clk_active>; - pinctrl-1 = <&sar_int_sleep &nfc_clk_suspend>; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; /*use PH4/5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; From f044b5afed32e71b4ae2f498b93851829d19c001 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 8 Jun 2021 11:35:26 +0800 Subject: [PATCH 0232/1247] arm/dt: corfup: set backlight type to dcs for vtdr6110c arm/dt: Set backlight type to dcs for vtdr6110c, because it's oled panel. Change-Id: Ib6aa5eb72f0d750300a3b2fddd68bbb7e1e57329 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1972894 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 10 ++++++---- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi index 9e6d5e953cf4..ce53878edd9b 100644 --- a/qcom/corfup-display.dtsi +++ b/qcom/corfup-display.dtsi @@ -142,10 +142,12 @@ dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; - qcom,mdss-dsi-bl-min-level = <32>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index eeb2f3d07aaf..25594d9ba453 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -54,7 +54,7 @@ [ 15 01 00 00 00 00 02 35 00 15 01 00 00 00 00 02 53 20 - 39 01 00 00 00 00 03 51 07 FF + 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 6F 01 39 01 00 00 00 00 03 F0 AA 10 39 01 00 00 00 00 03 EA 30 00 From 178f75b84487a1cdfcfa68c5d05c5e5143e9c3b1 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 8 Jun 2021 12:46:32 +0800 Subject: [PATCH 0233/1247] arm/dt: corfup: open esd check function for vtdr6110c arm/dt: Open esd check function for vtdr6110c. Delete other useless configs. Change-Id: I255d43b4a9e754edf28c4b0d86e1cc9624d67b7a Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1972939 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 213 +++++---------------------------------- 1 file changed, 25 insertions(+), 188 deletions(-) diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi index ce53878edd9b..2d8fb2dcaf51 100644 --- a/qcom/corfup-display.dtsi +++ b/qcom/corfup-display.dtsi @@ -1,6 +1,4 @@ -#include "dsi-panel-mot-djn-nt36525c-hd-video.dtsi" -#include "dsi-panel-mot-tm-icnl9911c-hd-video.dtsi" #include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -19,121 +17,48 @@ }; &soc { - dsi_panel_pwr_supply_djn_panel: dsi_panel_pwr_supply_djn_panel{ + dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { #address-cells = <1>; #size-cells = <0>; + qcom,panel-supply-entry@0 { reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; - qcom,supply-enable-load = <32000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep= <0>; - qcom,supply-post-off-sleep = <21>; - qcom,supply-always-on; + qcom,supply-post-on-sleep = <20>; }; qcom,panel-supply-entry@1 { reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-on-sleep = <3>; + qcom,supply-name = "vddr"; + qcom,supply-min-voltage = <1200000>; + qcom,supply-max-voltage = <1200000>; + qcom,supply-enable-load = <21800>; + qcom,supply-disable-load = <4>; + qcom,supply-post-on-sleep = <20>; }; qcom,panel-supply-entry@2 { reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5800000>; - qcom,supply-max-voltage = <5800000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <5>; - }; - }; - - dsi_panel_pwr_supply_tm_panel: dsi_panel_pwr_supply_tm_panel{ - #address-cells = <1>; - #size-cells = <0>; - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; - qcom,supply-enable-load = <32000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep= <0>; - qcom,supply-post-off-sleep = <21>; - }; - - qcom,panel-supply-entry@1 { - reg = <1>; qcom,supply-name = "lab"; - qcom,supply-min-voltage = <6000000>; + qcom,supply-min-voltage = <4600000>; qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; + qcom,supply-enable-load = <363000>; qcom,supply-disable-load = <100>; - qcom,supply-pre-on-sleep = <3>; }; - qcom,panel-supply-entry@2 { + qcom,panel-supply-entry@3 { reg = <2>; qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <6000000>; + qcom,supply-min-voltage = <4600000>; qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-on-sleep = <7>; + qcom,supply-enable-load = <363000>; + qcom,supply-disable-load = <20>; }; }; - -dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { - #address-cells = <1>; - #size-cells = <0>; - - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <62000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep = <20>; - }; - - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "vddr"; - qcom,supply-min-voltage = <1200000>; - qcom,supply-max-voltage = <1200000>; - qcom,supply-enable-load = <21800>; - qcom,supply-disable-load = <4>; - qcom,supply-post-on-sleep = <20>; - }; - - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <4600000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <363000>; - qcom,supply-disable-load = <100>; - }; - - qcom,panel-supply-entry@3 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <4600000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <363000>; - qcom,supply-disable-load = <20>; - }; -}; }; &dsi_vtdr6110c_visionox_video { @@ -149,6 +74,13 @@ dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; qcom,mdss-dsi-t-clk-pre = <0x3B>; @@ -162,106 +94,11 @@ dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { }; }; -&dsi_nt36525c_djn_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; - - qcom,platform-reset-gpio-always-on; - qcom,mdss-dsi-panel-supplier = "djn"; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <27>; - qcom,mdss-dsi-bl-max-level = <3382>; - qcom,mdss-dsi-bl-default-level = <1691>; - qcom,mdss-brightness-max-level = <3382>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <90 60>; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0E>; - qcom,mdss-dsi-t-clk-pre = <0x34>; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 22 08 09 25 23 09 - 09 06 02 04 00]; - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - -&dsi_icnl9911c_tm_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_tm_panel>; - - qcom,mdss-dsi-panel-supplier = "tianma"; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; - qcom,mdss-dsi-bl-min-level = <32>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <4095>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <90 60>; - qcom,mdss-dsi-pan-dpfs-send-command; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0D>; - qcom,mdss-dsi-t-clk-pre = <0x30>; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1B 07 06 22 21 07 - 07 07 02 04 00]; - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - - qcom,mdss-dsi-dfps-60-command = [15 01 00 00 00 00 02 26 01]; - qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-dfps-90-command = [15 01 00 00 00 00 02 26 02]; - qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; - }; - }; -}; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_djn_panel>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; From 6df3367b9a75ff2ce22c7b735759c862565d5094 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Sat, 5 Jun 2021 12:36:02 +0800 Subject: [PATCH 0234/1247] arm/dts: add qc3p configure arm/dts Add qc3p configure Change-Id: I6d0d687ff04c47eb6960a13dac69bd2f7fcac962 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1971081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 68 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index f82a29c475fe..f787b55fdeed 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -11,6 +11,57 @@ }; &pm7250b_charger { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, + <&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now", + "sc8549_input_voltage_now"; qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4450000>; qcom,dcp-curr-max = <2000000>; @@ -18,6 +69,8 @@ 2000000 1500000 1200000 900000 600000>; + mmi,qc3p-support; + }; &pm7250b_mmi { @@ -88,6 +141,11 @@ <&pm7250b_charger PSY_IIO_TYPEC_MODE>, <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + /*qc3p start*/ + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_MMI_QC3P_POWER>, + /*qc3p end*/ <&sc8549 PSY_IIO_CP_ENABLE>, <&sc8549 PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, <&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, @@ -100,6 +158,11 @@ "usb_typec_mode", "usb_input_current_settled", "usb_pd_active", + /*qc3p start*/ + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", + /*qc3p end*/ "sc8549_cp_enable", "sc8549_input_current_now", "sc8549_input_voltage_now", @@ -117,6 +180,11 @@ mmi,typec-middle-current = <1500000>; mmi,step-first-current-comp = <0>; mmi,dont-rerun-aicl; + /*qc3p start*/ + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + /*qc3p end*/ mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = <0 4200 970 0 0>, From eff7b93c15fb78fff0f22b3c4d302897c8124007 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 9 Jun 2021 13:29:52 +0800 Subject: [PATCH 0235/1247] cyprus/sensor: update sarsensor params 1.update params about sar sensor 2.holi-cypfg-common-overlay.dtsi Change-Id: I8847de947ee899088766ad4b50325e10da83f17a Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/1974297 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 120 ++++++++++++++-------------- 1 file changed, 60 insertions(+), 60 deletions(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index eaff94c8d276..37c3c2923ac6 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -425,79 +425,79 @@ Semtech,reg-num = <75>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8008 0x7F000081 + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 0x4280 0x0 0x8020 0x32 - 0x8028 0x58E /*AFE_PARAM_PH0*/ - 0x8034 0x78E /*AFE_PARAM_PH1*/ - 0x8040 0x58E /*AFE_PARAM_PH2*/ - 0x804C 0x566 /*AFE_PARAM_PH3*/ - 0x8058 0x566 /*AFE_PARAM_PH4*/ - 0x8064 0x57E /*AFE_PARAM_PH5*/ - 0x8070 0x566 /*AFE_PARAM_PH6*/ - 0x807C 0x58D /*AFE_PARAM_PH7*/ + 0x8028 0x25E /*AFE_PARAM_PH0*/ + 0x8034 0x25E /*AFE_PARAM_PH1*/ + 0x8040 0x25E /*AFE_PARAM_PH2*/ + 0x804C 0x25E /*AFE_PARAM_PH3*/ + 0x8058 0x25E /*AFE_PARAM_PH4*/ + 0x8064 0x25E /*AFE_PARAM_PH5*/ + 0x8070 0x25E /*AFE_PARAM_PH6*/ + 0x807C 0x25E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ - 0x8048 0xBFF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ - 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ - 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ - 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x802C 0x0 - 0x8038 0xF3C3CF - 0x8044 0x940250 - 0x8050 0x9BC26F - 0x805C 0x990264 - 0x8068 0xD4C353 - 0x8074 0xB4C2D3 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 0x8080 0x0 - 0x8098 0x862D - 0x80B8 0x782D - 0x80D8 0x8774 - 0x80F8 0x785C - 0x8118 0x5740 - 0x8138 0xF4 - 0x8158 0xF4 - 0x8178 0x0 - 0x80A0 0x222200E1 + 0x8098 0xC8644D2C + 0x80B8 0xC8644D2C + 0x80D8 0xC8644D2C + 0x80F8 0xC8644D2C + 0x8118 0xC8644D2C + 0x8138 0xC8644D2C + 0x8158 0xC8644D2C + 0x8178 0xC8644D2C + 0x80A0 0x0 0x80C0 0x0 - 0x80E0 0x1E1E00E1 - 0x8100 0x2B2B00E2 - 0x8120 0xE2 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 0x8140 0x0 0x8160 0x0 0x8180 0x0 - 0x8188 0x8000015 - 0x818C 0x8000016 + 0x8188 0x0 + 0x818C 0x0 0x8190 0x0 0x8194 0x0 - 0x8090 0x46E87000 - 0x80B0 0x34F27000 - 0x80D0 0x50E87000 - 0x80F0 0x24E87000 - 0x8110 0x32E47000 - 0x8130 0x7000 - 0x8150 0x7000 - 0x8170 0x0 - 0x8088 0x200000 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 - 0x80E8 0x200000 - 0x8108 0x200000 - 0x8128 0x6500000 - 0x8148 0x6500000 - 0x8168 0x0 - 0x808C 0x60600019 - 0x80AC 0x60600019 - 0x80CC 0x60600019 - 0x80EC 0x60600019 - 0x810C 0x60600019 - 0x812C 0x60600019 - 0x814C 0x60600019 - 0x816C 0x0 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F 0x4280 0xe >; From 9455b620dd45398e28e3c228d26f8ed76a89d9bd Mon Sep 17 00:00:00 2001 From: Tinno_Zhaozq Date: Tue, 8 Jun 2021 20:13:56 +0800 Subject: [PATCH 0236/1247] cypfg: add s5k3l6 camera driver modify dtsi for front camera. cypfg main dts has included it. Change-Id: Id7d1a21d4c7e897bc2c307cf0368a7f80f0febd6 Reviewed-on: https://gerrit.mot.com/1973645 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Liu Reviewed-by: Qiang Guo Reviewed-by: Shuo Wang Reviewed-by: Zhenxin Xi Reviewed-by: Long Cheng Reviewed-by: Jian Zhang Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index 37c3c2923ac6..b15ad387ba35 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -14,7 +14,7 @@ #include "cypfg-display.dtsi" #include "cypfg-touchscreen.dtsi" #include "denver-sensors.dtsi" -#include "camera/holi-camera-sensor-mot-denver-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-cypfg-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "cypfg-fps-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" From dbb4f85ea4dd67a0df63648a02ac7948846d126e Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 7 Jun 2021 17:28:17 +0800 Subject: [PATCH 0237/1247] dts: add evt dts configuration Adding EVT dts configuration for cyprus. The hwid definition is as following: https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Icda19e2d298e002c48fb28639bf6768eb8f628cf Reviewed-on: https://gerrit.mot.com/1971874 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/holi-cypfg-evt-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-cypfg-evt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 1370f03aa1f4..54a47a07ccc1 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -43,9 +43,11 @@ holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ - holi-cypfg-evb-overlay.dtbo + holi-cypfg-evb-overlay.dtbo \ + holi-cypfg-evt-overlay.dtbo holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfg-evt-overlay.dtbo-base := holi-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/holi-cypfg-evt-overlay.dts b/qcom/holi-cypfg-evt-overlay.dts new file mode 100644 index 000000000000..bc5a7201a9e5 --- /dev/null +++ b/qcom/holi-cypfg-evt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfg-common-overlay.dtsi" + +/ { + model = "cypfg"; + compatible = "qcom,holi-cypfg", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA200>, <0x48 0xA200>; +}; + From 90251facfcfe225e41fb61316478be65fd8dae77 Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Fri, 4 Jun 2021 13:48:38 +0800 Subject: [PATCH 0238/1247] Create new Channel ID/ro.carrier retkr for South Korea. Changes: channelID: 214 (decimal) ro.carrier: retkr Change-Id: Ie26e4cb004b41cff21a6ac31152a83e4c1271eb6 Signed-off-by: zhengyd2 Reviewed-on: https://gerrit.mot.com/1969909 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 46f8926c5c53..d31a642a84be 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -228,7 +228,7 @@ "retjp", /* 211 */ "softbank", /* 212 */ "optus", /* 213 */ - "undefined", /* 214 */ + "retkr", /* 214 */ "undefined", /* 215 */ "undefined", /* 216 */ "undefined", /* 217 */ From 26855d750a9c45cfb936153b49bdf4d71de273f0 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 8 Jun 2021 17:31:47 +0800 Subject: [PATCH 0239/1247] arm/dt: modify vtdr6110c panel physical size arm/dt: Modify vtdr6110c panel physical size info. Change-Id: Ia8d48d32beac17807e542bc5202913d0b7a6219a Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1973485 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index 25594d9ba453..852c18360d5f 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -29,8 +29,8 @@ qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; - qcom,mdss-pan-physical-width-dimension = <71>; - qcom,mdss-pan-physical-height-dimension = <158>; + qcom,mdss-pan-physical-width-dimension = <67>; + qcom,mdss-pan-physical-height-dimension = <149>; qcom,mdss-dsi-display-timings { From ddd62d1f0a70c396962c66c61eb94c6855473318 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 8 Jun 2021 17:34:34 +0800 Subject: [PATCH 0240/1247] arm/dt: corfup: enable ft35119 touchscreen mmi features - enable single tap - enable charger detection - add focal ic name for cqa test Change-Id: Idbdb8b05453c394c13006ecf68ac7299ca9703e8 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1973493 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Reviewed-by: litong Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi index 79d299c5406f..87c386752793 100755 --- a/qcom/corfup-touchscreen.dtsi +++ b/qcom/corfup-touchscreen.dtsi @@ -33,5 +33,10 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; + + /* touchscreen_mmi class entries*/ + mmi,enable-gestures; + mmi,usb-charger-detection; + mmi,class-entry-name = "ft3519"; }; }; From 1b208e24ab750d83a1299fc103e009a38b94932d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 10 Jun 2021 19:05:36 +0800 Subject: [PATCH 0241/1247] arm/dt: corfup: add panel entry for ft3519 touch arm/dt: Add panel entry for ft3519 touch, then panel driver can send notify to touch. Change-Id: Iab88eebb3ccefcee437b0ca52ef2f4dcebfb9b22 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1976490 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi index 87c386752793..4f165b7ba60f 100755 --- a/qcom/corfup-touchscreen.dtsi +++ b/qcom/corfup-touchscreen.dtsi @@ -33,6 +33,7 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; + panel = <&dsi_vtdr6110c_visionox_video>; /* touchscreen_mmi class entries*/ mmi,enable-gestures; From a09ce2fd654f971a003a684421c65699e209fbfc Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 10 Jun 2021 14:29:13 +0800 Subject: [PATCH 0242/1247] dts/panel: add a new panel file for cypfg's csot panel csot 6.78" 1080*2460 1080P Panel gc7372 + video mode + DSC Change-Id: I07ea86cb73474f109e3971c4f238036a5a24ef03 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1976011 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...l-mot-csot-gc7372-678-1080x2460-video.dtsi | 165 ++++++++++++++++++ 1 file changed, 165 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..850e6971d1b8 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -0,0 +1,165 @@ +&mdss_mdp { + dsi_csot_gc7372_678_fhd_video: qcom,mdss_dsi_csot_gc7372_678_fhd_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_csot_gc7372_fhd_678"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xfff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <18>; + qcom,mdss-dsi-v-front-porch = <2511>; + qcom,mdss-dsi-v-pulse-width = <1>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 55 AA 66 + 15 01 00 00 00 00 02 FF B3 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 D4 30 + 15 01 00 00 00 00 02 01 06 + 15 01 00 00 00 00 02 0B 06 + 15 01 00 00 00 00 02 1E 06 + 15 01 00 00 00 00 02 FF 20 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 2F 41 + 15 01 00 00 00 00 02 15 DD + 15 01 00 00 00 00 02 FF 28 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 02 04 + 15 01 00 00 00 00 02 04 3C + 15 01 00 00 00 00 02 05 20 + 15 01 00 00 00 00 02 06 0C + 15 01 00 00 00 00 02 07 18 + 15 01 00 00 00 00 02 08 00 + 15 01 00 00 00 00 02 0B 22 + 15 01 00 00 00 00 02 0C 1C + 15 01 00 00 00 00 02 0D 1C + 15 01 00 00 00 00 02 0E BB + 15 01 00 00 00 00 02 0F 06 + 15 01 00 00 00 00 02 10 20 + 15 01 00 00 00 00 02 11 00 + 15 01 00 00 00 00 02 12 0E + 15 01 00 00 00 00 02 13 1C + 15 01 00 00 00 00 02 14 2A + 15 01 00 00 00 00 02 15 38 + 15 01 00 00 00 00 02 16 46 + 15 01 00 00 00 00 02 17 54 + 15 01 00 00 00 00 02 18 62 + 15 01 00 00 00 00 02 19 69 + 15 01 00 00 00 00 02 1A 70 + 15 01 00 00 00 00 02 1B 77 + 15 01 00 00 00 00 02 1C 79 + 15 01 00 00 00 00 02 1D 7B + 15 01 00 00 00 00 02 1E 7D + 15 01 00 00 00 00 02 1F 7E + 15 01 00 00 00 00 02 2E 01 + 15 01 00 00 00 00 02 2F 00 + 15 01 00 00 00 00 02 30 11 + 15 01 00 00 00 00 02 31 33 + 15 01 00 00 00 00 02 32 33 + 15 01 00 00 00 00 02 33 33 + 15 01 00 00 00 00 02 34 55 + 15 01 00 00 00 00 02 35 75 + 15 01 00 00 00 00 02 36 44 + 15 01 00 00 00 00 02 37 65 + 15 01 00 00 00 00 02 38 77 + 15 01 00 00 00 00 02 39 87 + 15 01 00 00 00 00 02 3A A9 + 15 01 00 00 00 00 02 3B CB + 15 01 00 00 00 00 02 3D DD + 15 01 00 00 00 00 02 3E 0F + 15 01 00 00 00 00 02 3F 02 + 15 01 00 00 00 00 02 40 00 + 15 01 00 00 00 00 02 41 00 + 15 01 00 00 00 00 02 42 3E + 15 01 00 00 00 00 02 43 3C + 15 01 00 00 00 00 02 44 3A + 15 01 00 00 00 00 02 45 38 + 15 01 00 00 00 00 02 46 38 + 15 01 00 00 00 00 02 47 38 + 15 01 00 00 00 00 02 48 36 + 15 01 00 00 00 00 02 49 36 + 15 01 00 00 00 00 02 4A 34 + 15 01 00 00 00 00 02 4B 34 + 15 01 00 00 00 00 02 4C 34 + 15 01 00 00 00 00 02 4D 33 + 15 01 00 00 00 00 02 4E 11 + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 BF 81 + 39 01 00 00 00 00 11 C0 80 0A 00 F6 02 00 02 0E 00 ED 00 07 0A AB 0A 2C + 39 01 00 00 00 00 03 C1 10 F0 + 15 01 00 00 00 00 02 36 08 + 15 01 00 00 00 00 02 BA 03 + 15 01 00 00 00 00 02 69 00 + 15 01 00 00 00 00 02 35 00 + 15 01 00 00 00 00 02 53 28 + 39 01 00 00 00 00 03 51 03 32 + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 96 00 01 11 + 05 01 00 00 32 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 64 00 01 28 + 05 01 00 00 64 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-datatype = <0x3E>; + qcom,mdss-dsc-slice-height = <10>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + + }; +}; From bce5529bc0513186db52b814cfa2be195a975a0b Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 10 Jun 2021 14:18:49 +0800 Subject: [PATCH 0243/1247] dts/panel: cypfg: add support for the second panel(csot) csot 6.78" 1080*2460 1080P Panel GC7372 + video mode + DSC Change-Id: Ib63d06792bceb4548385d6bad078c37d0fac17c1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1975987 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/cypfg-display.dtsi | 55 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 54 insertions(+), 1 deletion(-) diff --git a/qcom/cypfg-display.dtsi b/qcom/cypfg-display.dtsi index 1f87b23a8665..efbfbaf6e440 100644 --- a/qcom/cypfg-display.dtsi +++ b/qcom/cypfg-display.dtsi @@ -1,6 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" - +#include "dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi" &pm6150a_amoled { status = "disabled"; @@ -125,7 +125,60 @@ }; }; +&dsi_csot_gc7372_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pm6150l_gpios 9 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "csot"; + //qcom,platform-reset-gpio-always-on; + + //qcom,tp_state_check_enable; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 32]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x2E>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 19 06 06 21 20 07 + 06 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; From 4d7f47ad6fb1d589d11330d9d25e61dd570af6da Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Thu, 10 Jun 2021 20:08:44 +0800 Subject: [PATCH 0244/1247] Cypfg: arm64/dt: Touch gc7372 bringup - Add support for 2nd source galaxy core gc7372. - Using dsi_csot_gc7372_678_fhd_video. Change-Id: I4961e5af211b95d2f04c1a4b06895ed0a110bc30 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1976524 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/cypfg-touchscreen.dtsi | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/qcom/cypfg-touchscreen.dtsi b/qcom/cypfg-touchscreen.dtsi index 011d364973d2..ad997b9def2f 100755 --- a/qcom/cypfg-touchscreen.dtsi +++ b/qcom/cypfg-touchscreen.dtsi @@ -87,7 +87,7 @@ &qupv3_se0_spi { status = "ok"; - ilitek@0 { + ilitek@0 { compatible = "tchip,ilitek"; reg = <0x0>; spi-max-frequency = <6000000>; @@ -101,5 +101,21 @@ pinctrl-1 = <&touch_int_suspend &touch_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; status = "ok"; - }; + }; + + gcore@1 { + compatible = "gcore,touchscreen"; + reg = <0x1>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + panel = <&dsi_csot_gc7372_678_fhd_video>; + gcore,rst-gpio = <&tlmm 21 0x00>; + gcore,irq-gpio = <&tlmm 22 0x2008>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + status = "ok"; + }; }; From 20695c5a7ddbd171490cb5f774ca8aa6f5c0fb8d Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 10 Jun 2021 21:15:39 +0800 Subject: [PATCH 0245/1247] arm/dts: Config corufp battery parameter 1. config battery zone 2. add a temporary battery profile Change-Id: Ie2395c101537ad90a7cabdf557d3be74b5a3a454 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1976581 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 23 +- qcom/qg-batterydata-ng50-atl-5000mah.dtsi | 1020 +++++++++++++++++++++ 2 files changed, 1031 insertions(+), 12 deletions(-) create mode 100644 qcom/qg-batterydata-ng50-atl-5000mah.dtsi diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index f787b55fdeed..375ad3149db8 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -3,11 +3,9 @@ &mot_batterydata { - df-serialnum = "SB18C77591"; + df-serialnum = "SB18D17151"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-jk50-swd-5000mah.dtsi" - #include "qg-batterydata-jk50-sunwoda-5000mah.dtsi" - #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-ng50-atl-5000mah.dtsi" }; &pm7250b_charger { @@ -75,9 +73,10 @@ &pm7250b_mmi { qcom,mmi-temp-zones = <0 4200 1000 0>, - <15 0 2500 2500>, - <45 0 3000 3000>, - <60 4200 3000 0>; + <10 4250 3000 1000>, + <15 0 3000 3000>, + <45 0 4000 4000>, + <60 4200 4000 0>; qcom,iterm-ma = <243>; }; @@ -187,11 +186,11 @@ /*qc3p end*/ mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = - <0 4200 970 0 0>, - <10 4450 2425 0 0>, - <15 4450 4850 0 0>, - <45 4350 5800 4480 4000>, - <60 4200 4850 0 0>; + <0 4200 1000 0 0>, + <10 4250 3000 4450 1000>, + <15 4450 3000 0 0>, + <45 4350 5800 4450 4000>, + <60 4200 4000 0 0>; mmi,thermal-mitigation = <5800000>, <5000000>, diff --git a/qcom/qg-batterydata-ng50-atl-5000mah.dtsi b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi new file mode 100644 index 000000000000..214b177c1bf1 --- /dev/null +++ b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,ng50-atl-5000mah { + /* 4984199_Lenovo_corfp_5000mAH_PM7250B_averaged_MasterSlave_Dec17th2020 */ + serialnum = "SB18D17151"; + qcom,sdam-magic-number = <0x18D17151>; + qcom,max-voltage-uv = <4450000>; + qcom,fg-cc-cv-threshold-uv = <4440000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "NG50-ATL-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4803 4942 5112 5157 5169>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <5083 5090 5118 5132 5106 5121>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <43640 43864 44154 44224 44236>, + <43359 43617 43874 43911 43909>, + <43118 43373 43622 43662 43662>, + <42886 43132 43397 43433 43432>, + <42648 42893 43162 43205 43203>, + <42411 42655 42918 42968 42971>, + <42181 42419 42675 42731 42737>, + <41959 42186 42435 42492 42501>, + <41742 41959 42197 42254 42265>, + <41532 41737 41963 42018 42029>, + <41329 41519 41732 41784 41796>, + <41130 41305 41506 41554 41565>, + <40936 41098 41287 41330 41339>, + <40742 40901 41073 41110 41115>, + <40529 40708 40863 40897 40900>, + <40281 40503 40657 40691 40694>, + <40052 40272 40455 40489 40495>, + <39883 40059 40250 40290 40302>, + <39743 39894 40057 40097 40114>, + <39611 39753 39892 39925 39938>, + <39481 39613 39742 39776 39780>, + <39358 39477 39577 39603 39603>, + <39237 39334 39392 39336 39350>, + <39120 39160 39194 39056 39082>, + <39007 38964 38961 38883 38907>, + <38896 38792 38723 38760 38784>, + <38790 38635 38590 38655 38676>, + <38691 38508 38516 38561 38575>, + <38598 38431 38454 38476 38484>, + <38512 38374 38389 38395 38396>, + <38438 38327 38328 38320 38315>, + <38371 38285 38273 38251 38241>, + <38315 38248 38223 38188 38172>, + <38269 38214 38175 38128 38106>, + <38228 38183 38129 38069 38040>, + <38189 38149 38085 38011 37974>, + <38153 38115 38039 37957 37911>, + <38112 38076 37994 37910 37854>, + <38058 38018 37934 37850 37785>, + <37991 37935 37848 37756 37687>, + <37906 37836 37743 37642 37571>, + <37783 37717 37630 37530 37456>, + <37643 37579 37500 37408 37333>, + <37483 37416 37341 37253 37180>, + <37336 37268 37191 37103 37036>, + <37255 37172 37089 37008 36945>, + <37222 37144 37062 36978 36914>, + <37192 37120 37043 36958 36896>, + <37166 37105 37023 36941 36876>, + <37112 37062 36982 36889 36813>, + <36906 36840 36763 36650 36550>, + <36454 36403 36336 36215 36108>, + <35874 35828 35761 35637 35529>, + <35087 35044 34973 34850 34734>, + <33840 33803 33746 33622 33492>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44170 44165 44110 44130 44005 44070>, + <43765 43796 43801 43822 43722 43767>, + <43400 43460 43513 43537 43454 43486>, + <43080 43166 43247 43277 43204 43230>, + <42796 42906 43003 43040 42971 42998>, + <42537 42653 42761 42805 42738 42767>, + <42310 42395 42514 42564 42500 42529>, + <42090 42144 42270 42324 42261 42290>, + <41826 41913 42032 42087 42026 42054>, + <41525 41697 41798 41852 41793 41819>, + <41297 41479 41569 41620 41563 41587>, + <41169 41245 41342 41388 41335 41359>, + <41045 41022 41124 41164 41112 41136>, + <40828 40848 40928 40955 40900 40918>, + <40504 40701 40744 40755 40696 40705>, + <40180 40494 40537 40546 40490 40499>, + <39836 40122 40297 40322 40278 40299>, + <39535 39757 40054 40110 40077 40108>, + <39347 39549 39821 39933 39905 39932>, + <39205 39392 39595 39765 39743 39761>, + <39047 39225 39385 39564 39559 39579>, + <38862 39043 39188 39326 39343 39382>, + <38687 38871 39008 39104 39131 39182>, + <38537 38720 38844 38913 38930 38967>, + <38402 38579 38694 38743 38743 38760>, + <38298 38435 38561 38605 38598 38610>, + <38217 38280 38439 38488 38481 38492>, + <38147 38158 38330 38382 38377 38386>, + <38082 38082 38232 38283 38280 38286>, + <38022 38023 38139 38192 38191 38194>, + <37964 37969 38050 38109 38111 38113>, + <37908 37920 37965 38034 38039 38038>, + <37852 37873 37897 37963 37969 37967>, + <37794 37827 37845 37897 37904 37902>, + <37736 37783 37801 37834 37837 37834>, + <37676 37737 37759 37772 37755 37741>, + <37613 37689 37719 37710 37663 37632>, + <37547 37635 37674 37642 37572 37528>, + <37475 37572 37620 37569 37483 37429>, + <37400 37499 37557 37491 37395 37335>, + <37328 37418 37475 37409 37312 37251>, + <37257 37323 37373 37316 37224 37164>, + <37182 37208 37244 37197 37105 37050>, + <37108 37081 37108 37064 36975 36918>, + <37035 36960 36959 36930 36857 36800>, + <36935 36860 36879 36878 36821 36764>, + <36883 36818 36850 36862 36807 36750>, + <36821 36779 36824 36843 36791 36737>, + <36745 36724 36781 36810 36760 36704>, + <36623 36634 36699 36721 36652 36588>, + <36390 36415 36472 36439 36293 36232>, + <35985 35976 35996 35931 35776 35710>, + <35372 35340 35336 35272 35089 35023>, + <34458 34431 34436 34348 34107 34043>, + <32987 32935 33138 33029 32671 32707>, + <28320 27840 27870 27984 28103 27815>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13435 12740 12162 11845 11730>, + <13474 12764 12162 11860 11756>, + <13445 12773 12156 11854 11754>, + <13418 12765 12154 11847 11752>, + <13418 12748 12150 11842 11751>, + <13427 12731 12136 11836 11749>, + <13431 12709 12121 11831 11748>, + <13434 12694 12108 11828 11748>, + <13434 12690 12095 11826 11749>, + <13418 12686 12086 11825 11751>, + <13377 12681 12078 11826 11755>, + <13347 12669 12075 11828 11761>, + <13337 12657 12076 11831 11765>, + <13330 12638 12077 11836 11768>, + <13316 12608 12076 11837 11769>, + <13278 12593 12073 11836 11769>, + <13245 12584 12072 11835 11770>, + <13235 12580 12071 11835 11771>, + <13226 12582 12071 11836 11772>, + <13224 12587 12073 11838 11774>, + <13229 12594 12079 11841 11775>, + <13235 12603 12083 11843 11777>, + <13227 12611 12086 11844 11777>, + <13195 12618 12089 11845 11778>, + <13173 12625 12092 11846 11779>, + <13175 12632 12096 11848 11781>, + <13183 12638 12099 11850 11784>, + <13192 12642 12103 11854 11786>, + <13204 12642 12107 11857 11789>, + <13214 12641 12112 11861 11792>, + <13220 12640 12117 11866 11795>, + <13229 12642 12124 11870 11799>, + <13237 12646 12131 11875 11803>, + <13241 12654 12140 11880 11807>, + <13242 12671 12148 11886 11812>, + <13243 12683 12156 11892 11817>, + <13245 12689 12164 11898 11822>, + <13247 12694 12170 11903 11825>, + <13251 12705 12178 11908 11829>, + <13261 12726 12189 11914 11832>, + <13274 12741 12199 11919 11836>, + <13297 12747 12205 11924 11840>, + <13326 12755 12210 11930 11844>, + <13362 12774 12225 11936 11848>, + <13381 12795 12239 11944 11852>, + <13355 12786 12250 11951 11856>, + <13331 12789 12246 11951 11856>, + <13311 12788 12245 11952 11858>, + <13321 12783 12251 11954 11861>, + <13369 12798 12256 11959 11864>, + <13378 12821 12262 11965 11869>, + <13406 12809 12280 11975 11876>, + <13378 12851 12295 11985 11887>, + <13451 12865 12319 12005 11904>, + <13451 12865 12319 12005 11904>, + <13451 12865 12319 12005 11904>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10176 10295 10466 10362 10301>, + <10378 10383 10798 10500 10304>, + <10380 10420 10592 10668 10626>, + <10378 10401 10568 10655 10663>, + <10367 10367 10539 10637 10674>, + <10346 10351 10505 10607 10655>, + <10337 10342 10473 10567 10610>, + <10343 10336 10445 10533 10568>, + <10351 10332 10420 10501 10522>, + <10355 10329 10396 10474 10489>, + <10357 10322 10371 10449 10470>, + <10355 10309 10361 10432 10457>, + <10345 10298 10362 10430 10461>, + <10325 10342 10366 10436 10479>, + <10304 10422 10376 10443 10481>, + <10276 10431 10403 10466 10386>, + <10256 10353 10446 10482 10295>, + <10254 10295 10697 10477 10305>, + <10254 10307 10942 10462 10340>, + <10254 10335 10852 10440 10369>, + <10254 10362 10592 10399 10388>, + <10254 10387 10522 10377 10420>, + <10251 10414 10594 10546 10600>, + <10243 10450 10651 10771 10838>, + <10238 10490 10641 10731 10809>, + <10240 10505 10617 10495 10538>, + <10244 10507 10602 10393 10404>, + <10250 10508 10588 10403 10423>, + <10259 10508 10580 10419 10454>, + <10270 10508 10596 10434 10481>, + <10280 10509 10624 10453 10509>, + <10291 10510 10637 10484 10514>, + <10302 10511 10644 10543 10486>, + <10312 10514 10649 10602 10458>, + <10322 10520 10657 10643 10461>, + <10332 10526 10665 10675 10476>, + <10341 10532 10668 10670 10476>, + <10352 10538 10672 10627 10462>, + <10368 10548 10677 10604 10460>, + <10388 10561 10698 10666 10510>, + <10409 10576 10720 10742 10572>, + <10431 10588 10728 10742 10585>, + <10467 10604 10732 10724 10582>, + <10540 10636 10740 10719 10575>, + <10927 10834 10788 10701 10573>, + <10827 10953 10874 10643 10585>, + <10714 10955 10855 10653 10594>, + <10710 10971 10840 10619 10570>, + <10612 11105 10843 10647 10587>, + <10565 11219 10879 10760 10685>, + <10513 11089 10912 10734 10594>, + <10504 11071 10878 10516 10330>, + <10298 10924 10757 10430 10257>, + <10059 10722 10666 10396 10206>, + <10059 10722 10666 10396 10206>, + <10059 10722 10666 10396 10206>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19704 19567 19392 19346 19329>, + <19759 19623 19468 19377 19356>, + <19701 19650 19488 19411 19385>, + <19648 19652 19490 19417 19397>, + <19638 19654 19492 19420 19403>, + <19634 19653 19494 19422 19406>, + <19633 19646 19495 19423 19408>, + <19636 19636 19492 19423 19409>, + <19640 19626 19485 19421 19408>, + <19643 19616 19480 19419 19408>, + <19646 19609 19475 19418 19406>, + <19649 19604 19469 19415 19403>, + <19650 19600 19464 19410 19400>, + <19651 19596 19458 19400 19394>, + <19655 19590 19449 19394 19388>, + <19671 19585 19439 19390 19379>, + <19685 19570 19434 19386 19370>, + <19680 19554 19440 19384 19366>, + <19667 19541 19446 19381 19363>, + <19658 19527 19438 19375 19359>, + <19653 19520 19421 19365 19352>, + <19650 19517 19415 19359 19348>, + <19652 19515 19423 19369 19354>, + <19664 19523 19429 19381 19361>, + <19674 19541 19429 19379 19359>, + <19682 19549 19428 19364 19342>, + <19689 19549 19426 19354 19331>, + <19691 19549 19420 19350 19327>, + <19689 19548 19416 19348 19326>, + <19687 19544 19415 19348 19327>, + <19683 19539 19415 19351 19330>, + <19678 19534 19415 19353 19334>, + <19671 19528 19416 19358 19341>, + <19663 19523 19417 19363 19348>, + <19653 19518 19419 19370 19354>, + <19642 19514 19421 19377 19359>, + <19631 19510 19421 19376 19359>, + <19621 19506 19419 19368 19352>, + <19611 19504 19417 19363 19347>, + <19602 19502 19415 19363 19345>, + <19595 19500 19413 19363 19344>, + <19591 19495 19409 19362 19344>, + <19584 19488 19405 19359 19347>, + <19568 19482 19401 19358 19348>, + <19503 19453 19392 19355 19347>, + <19369 19424 19379 19342 19334>, + <19330 19413 19374 19340 19332>, + <19324 19410 19370 19339 19325>, + <19309 19353 19370 19332 19321>, + <19306 19331 19352 19324 19317>, + <19310 19401 19354 19329 19334>, + <19329 19391 19351 19355 19356>, + <19336 19363 19351 19359 19355>, + <19342 19322 19350 19351 19351>, + <19342 19322 19350 19351 19351>, + <19342 19322 19350 19351 19351>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16078 15865 14999 14834 14833>, + <16773 15655 15199 14853 14812>, + <16522 15477 15191 14942 14872>, + <16217 15324 15060 14899 14849>, + <16011 15195 14973 14855 14820>, + <15829 15100 14917 14827 14800>, + <15678 15026 14873 14804 14781>, + <15552 14967 14838 14784 14765>, + <15445 14920 14809 14766 14750>, + <15360 14882 14786 14750 14736>, + <15291 14849 14765 14733 14722>, + <15228 14821 14747 14719 14709>, + <15164 14796 14730 14710 14700>, + <15105 14764 14716 14703 14693>, + <15061 14732 14709 14696 14689>, + <15028 14723 14706 14688 14687>, + <14999 14729 14700 14681 14686>, + <14971 14733 14679 14676 14682>, + <14944 14727 14659 14672 14675>, + <14919 14718 14657 14669 14671>, + <14896 14710 14662 14665 14667>, + <14874 14702 14669 14664 14665>, + <14849 14696 14676 14699 14696>, + <14820 14700 14688 14752 14749>, + <14794 14713 14728 14776 14775>, + <14773 14727 14787 14792 14792>, + <14755 14750 14800 14796 14797>, + <14746 14767 14790 14790 14792>, + <14742 14766 14777 14780 14782>, + <14739 14757 14766 14769 14772>, + <14737 14747 14753 14755 14757>, + <14736 14738 14740 14740 14741>, + <14735 14729 14727 14723 14721>, + <14732 14720 14715 14707 14702>, + <14729 14712 14702 14690 14685>, + <14727 14704 14690 14677 14672>, + <14725 14697 14683 14672 14669>, + <14723 14691 14678 14671 14668>, + <14720 14690 14676 14670 14668>, + <14717 14689 14682 14678 14678>, + <14715 14689 14688 14687 14691>, + <14713 14690 14687 14687 14690>, + <14710 14691 14686 14684 14682>, + <14702 14688 14685 14683 14682>, + <14692 14673 14677 14679 14678>, + <14803 14668 14658 14664 14662>, + <14844 14673 14654 14659 14659>, + <14847 14670 14648 14648 14652>, + <14858 14726 14637 14637 14634>, + <14852 14745 14650 14638 14630>, + <14846 14671 14667 14660 14646>, + <14847 14699 14684 14651 14644>, + <14858 14739 14690 14653 14649>, + <14870 14793 14696 14665 14658>, + <14870 14793 14696 14665 14658>, + <14870 14793 14696 14665 14658>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13965 14018 14708 14714 13874>, + <13646 14899 16525 17556 16946>, + <13758 15591 17147 18406 18349>, + <13933 16076 17498 19062 19760>, + <14180 16479 17982 19635 20965>, + <14542 16905 18692 20075 21571>, + <14869 17340 19325 20467 22024>, + <15158 17765 19790 20879 22559>, + <15410 18147 20228 21296 23152>, + <15590 18546 20621 21841 23842>, + <15734 19134 21231 22865 24749>, + <15839 20132 21929 23808 25769>, + <15894 21138 22987 24072 26838>, + <15940 23127 23946 24193 27981>, + <16100 25816 24050 24468 28307>, + <16736 26283 23945 25312 27155>, + <17256 25497 24227 26452 26035>, + <17213 24967 31015 28040 26735>, + <17054 24850 38195 29709 28556>, + <16995 24655 37014 29924 29628>, + <17208 24696 32389 29329 30074>, + <17630 26253 32949 29010 30757>, + <18358 29283 45186 39916 35874>, + <20045 40149 55207 54482 42763>, + <22268 60347 54498 51773 40945>, + <25604 65535 51766 35614 28789>, + <29844 65535 47811 26141 21313>, + <33454 63513 40372 23210 19427>, + <36965 59705 34528 21662 18465>, + <39497 53865 32081 21269 18364>, + <40530 49066 30555 21058 18358>, + <41212 45483 30389 21122 18493>, + <41350 42578 30613 22319 19811>, + <39740 40368 30999 24348 21987>, + <37257 38525 33398 29507 26441>, + <35146 37656 36902 35990 31960>, + <32574 37358 39259 36772 32989>, + <30651 37201 41389 35012 32705>, + <29600 37605 42132 34045 32265>, + <28873 39120 41386 34290 31436>, + <28896 39890 40045 34586 30180>, + <30293 37272 36996 32363 28281>, + <31856 34776 32519 26956 26046>, + <33377 34945 31446 26600 26436>, + <31464 35539 31361 26689 26668>, + <15864 30495 31786 24225 23147>, + <13240 25744 29517 23582 22029>, + <13028 25005 27866 24554 20780>, + <12594 15928 29916 24017 23361>, + <12573 14407 23543 22150 22767>, + <12817 24233 21320 19790 23926>, + <13203 19238 18059 22759 25956>, + <13000 15863 17006 21908 22723>, + <12785 13018 16149 18004 18844>, + <12785 13018 16149 18004 18844>, + <12785 13018 16149 18004 18844>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16148 15593 14877 14704 14677>, + <16444 15509 14997 14731 14685>, + <16268 15429 15000 14784 14724>, + <16060 15350 14940 14769 14720>, + <15933 15277 14900 14752 14713>, + <15827 15218 14874 14740 14707>, + <15741 15170 14852 14730 14700>, + <15670 15129 14831 14721 14693>, + <15612 15095 14814 14713 14687>, + <15565 15065 14799 14705 14681>, + <15528 15042 14786 14697 14676>, + <15491 15024 14774 14691 14670>, + <15445 15007 14764 14683 14664>, + <15400 14983 14754 14676 14658>, + <15371 14959 14746 14670 14653>, + <15354 14943 14739 14663 14647>, + <15338 14935 14732 14658 14642>, + <15318 14927 14727 14654 14637>, + <15297 14917 14722 14651 14633>, + <15279 14908 14716 14646 14628>, + <15264 14902 14710 14639 14623>, + <15251 14899 14709 14635 14620>, + <15241 14897 14715 14657 14638>, + <15232 14903 14726 14687 14666>, + <15225 14919 14745 14691 14670>, + <15219 14933 14769 14691 14669>, + <15214 14944 14774 14690 14668>, + <15211 14952 14768 14687 14665>, + <15209 14951 14762 14681 14660>, + <15207 14946 14757 14677 14656>, + <15206 14941 14752 14673 14652>, + <15205 14935 14748 14669 14649>, + <15203 14930 14744 14665 14644>, + <15200 14926 14740 14662 14640>, + <15195 14922 14738 14660 14638>, + <15191 14919 14735 14658 14635>, + <15187 14917 14733 14656 14633>, + <15185 14916 14732 14651 14629>, + <15186 14916 14731 14650 14628>, + <15189 14920 14734 14653 14631>, + <15193 14923 14738 14658 14636>, + <15200 14926 14738 14658 14636>, + <15203 14928 14737 14656 14635>, + <15205 14930 14737 14656 14636>, + <15180 14920 14733 14654 14634>, + <15168 14907 14721 14641 14621>, + <15165 14903 14717 14638 14619>, + <15163 14901 14712 14633 14612>, + <15161 14897 14708 14625 14603>, + <15163 14898 14706 14622 14599>, + <15171 14907 14716 14635 14615>, + <15189 14920 14726 14647 14629>, + <15209 14931 14733 14653 14634>, + <15237 14949 14742 14658 14639>, + <15237 14949 14742 14658 14639>, + <15237 14949 14742 14658 14639>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6665 6212 5880 5547 5357 5287>, + <6666 6210 5878 5541 5352 5284>, + <6667 6210 5875 5535 5347 5282>, + <6668 6210 5872 5530 5342 5279>, + <6669 6212 5869 5524 5338 5277>, + <6669 6214 5867 5519 5334 5275>, + <6672 6217 5866 5514 5331 5272>, + <6676 6221 5865 5510 5328 5271>, + <6676 6220 5861 5505 5325 5269>, + <6671 6218 5853 5502 5322 5268>, + <6670 6217 5849 5498 5319 5267>, + <6670 6217 5849 5495 5318 5266>, + <6671 6218 5849 5493 5316 5264>, + <6673 6220 5847 5490 5315 5263>, + <6675 6226 5844 5488 5314 5263>, + <6678 6231 5843 5488 5313 5262>, + <6685 6238 5847 5488 5313 5263>, + <6691 6242 5851 5488 5313 5263>, + <6688 6243 5853 5489 5313 5264>, + <6683 6243 5855 5490 5314 5264>, + <6681 6243 5855 5492 5315 5265>, + <6681 6243 5854 5492 5315 5266>, + <6680 6242 5854 5494 5316 5266>, + <6670 6241 5854 5496 5318 5267>, + <6648 6238 5853 5500 5319 5268>, + <6643 6238 5855 5503 5321 5270>, + <6656 6237 5860 5506 5324 5271>, + <6665 6237 5864 5510 5327 5273>, + <6657 6236 5867 5515 5330 5275>, + <6646 6235 5869 5519 5333 5278>, + <6646 6235 5871 5524 5336 5280>, + <6657 6237 5874 5529 5340 5283>, + <6662 6239 5875 5534 5343 5286>, + <6661 6233 5875 5539 5347 5288>, + <6659 6226 5876 5544 5350 5290>, + <6656 6225 5878 5548 5353 5292>, + <6653 6225 5881 5552 5355 5294>, + <6651 6225 5883 5554 5357 5295>, + <6649 6224 5887 5556 5358 5297>, + <6647 6222 5889 5558 5360 5299>, + <6642 6223 5889 5559 5362 5300>, + <6635 6225 5890 5561 5363 5301>, + <6633 6225 5899 5568 5366 5303>, + <6630 6226 5903 5578 5370 5305>, + <6635 6241 5910 5579 5374 5310>, + <6682 6248 5913 5589 5379 5313>, + <6682 6244 5914 5592 5380 5312>, + <6688 6258 5915 5595 5379 5313>, + <6690 6241 5916 5595 5379 5312>, + <6693 6238 5919 5595 5380 5313>, + <6708 6254 5928 5599 5384 5317>, + <6703 6268 5930 5613 5391 5323>, + <6708 6264 5946 5634 5403 5332>, + <6718 6292 5969 5656 5417 5343>, + <6718 6292 5969 5656 5417 5343>, + <6718 6292 5969 5656 5417 5343>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10087 10266 10852 11261 11188 11138>, + <10052 10287 10847 11249 11163 11143>, + <10042 10317 10841 11233 11125 11132>, + <10053 10350 10837 11212 11085 11111>, + <10077 10378 10832 11190 11052 11083>, + <10109 10396 10828 11165 11037 11054>, + <10152 10410 10823 11133 11034 11009>, + <10213 10421 10820 11104 11032 10966>, + <10327 10421 10823 11090 11016 10951>, + <10519 10421 10828 11080 10980 10946>, + <10598 10444 10832 11078 10959 10946>, + <10539 10596 10837 11093 10957 10956>, + <10473 10761 10845 11108 10964 10962>, + <10528 10792 10879 11106 10992 10950>, + <10701 10796 10957 11102 11047 10932>, + <10738 10796 11025 11110 11094 10936>, + <10220 10818 11097 11169 11133 11022>, + <9713 10852 11141 11242 11176 11116>, + <9684 10908 11142 11318 11245 11161>, + <9680 10995 11140 11385 11334 11200>, + <9677 11059 11146 11387 11390 11280>, + <9674 11114 11173 11342 11432 11448>, + <9672 11143 11203 11317 11452 11540>, + <9671 11123 11230 11336 11389 11391>, + <9670 11065 11260 11366 11285 11185>, + <9669 10962 11291 11388 11261 11165>, + <9668 10695 11323 11412 11276 11201>, + <9667 10488 11347 11437 11285 11239>, + <9666 10429 11365 11472 11313 11281>, + <9665 10388 11377 11504 11361 11325>, + <9664 10285 11376 11533 11406 11355>, + <9664 9941 11370 11567 11480 11379>, + <9663 9740 11361 11585 11523 11413>, + <9663 9711 11349 11594 11547 11492>, + <9662 9694 11332 11598 11564 11553>, + <9662 9687 11306 11593 11560 11520>, + <9661 9682 11270 11579 11541 11436>, + <9661 9678 11235 11561 11514 11396>, + <9661 9674 11203 11534 11461 11373>, + <9660 9671 11165 11513 11416 11350>, + <9660 9668 11116 11504 11412 11304>, + <9660 9666 11046 11490 11416 11265>, + <9659 9664 10578 11436 11390 11342>, + <9659 9662 10706 11422 11357 11296>, + <9659 9661 10625 11393 11319 11214>, + <9658 9660 10448 11304 11266 11043>, + <9658 9659 10347 11291 11220 11007>, + <9658 9658 10254 11296 11245 11058>, + <9658 9658 10200 11282 11271 11119>, + <9658 9657 10160 11282 11293 11095>, + <9657 9657 10141 11250 11192 10938>, + <9656 9656 9937 11147 11126 10882>, + <9656 9656 9686 11046 11041 10805>, + <9653 9655 9668 10946 10902 10690>, + <9653 9655 9668 10946 10902 10690>, + <9653 9655 9668 10946 10902 10690>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13882 13509 13347 13293 13281 13277>, + <13856 13511 13352 13294 13281 13278>, + <13827 13511 13356 13296 13282 13278>, + <13799 13512 13360 13298 13282 13279>, + <13778 13512 13363 13299 13282 13279>, + <13768 13511 13364 13300 13283 13280>, + <13770 13506 13363 13300 13283 13280>, + <13772 13500 13362 13300 13284 13281>, + <13751 13504 13361 13300 13284 13281>, + <13676 13522 13361 13301 13285 13282>, + <13617 13530 13361 13302 13285 13282>, + <13559 13493 13361 13301 13285 13283>, + <13512 13450 13361 13300 13286 13283>, + <13515 13443 13361 13302 13287 13284>, + <13531 13442 13361 13306 13291 13284>, + <13535 13441 13360 13307 13292 13284>, + <13496 13432 13357 13306 13292 13287>, + <13458 13422 13354 13305 13291 13289>, + <13461 13413 13350 13306 13292 13290>, + <13472 13402 13346 13308 13293 13290>, + <13475 13390 13341 13307 13293 13290>, + <13472 13376 13335 13303 13291 13289>, + <13468 13364 13331 13298 13288 13287>, + <13461 13360 13327 13295 13285 13283>, + <13452 13356 13324 13293 13282 13278>, + <13452 13351 13322 13292 13281 13278>, + <13464 13340 13320 13292 13280 13278>, + <13481 13331 13318 13292 13280 13278>, + <13502 13328 13317 13292 13279 13277>, + <13529 13327 13316 13292 13278 13276>, + <13554 13327 13315 13292 13279 13276>, + <13577 13332 13313 13292 13280 13277>, + <13601 13338 13313 13292 13281 13277>, + <13627 13347 13313 13292 13281 13278>, + <13655 13359 13314 13292 13282 13279>, + <13686 13369 13315 13292 13282 13279>, + <13720 13381 13318 13293 13281 13278>, + <13755 13395 13320 13293 13281 13278>, + <13790 13419 13322 13292 13280 13277>, + <13828 13449 13323 13291 13279 13277>, + <13870 13481 13324 13291 13280 13279>, + <13914 13519 13325 13291 13281 13280>, + <13954 13564 13320 13292 13281 13280>, + <13999 13621 13324 13293 13280 13279>, + <14018 13654 13319 13290 13277 13276>, + <14052 13726 13325 13294 13284 13283>, + <14101 13790 13331 13296 13287 13285>, + <14154 13861 13343 13301 13292 13290>, + <14219 13931 13356 13306 13295 13291>, + <14295 14011 13366 13309 13295 13289>, + <14384 14079 13388 13307 13289 13285>, + <14510 14172 13403 13307 13291 13286>, + <14708 14327 13453 13315 13296 13290>, + <15191 14518 13560 13326 13302 13297>, + <15191 14518 13560 13326 13302 13297>, + <15191 14518 13560 13326 13302 13297>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17045 16829 16628 16514 16466 16467>, + <17215 16854 16643 16505 16465 16464>, + <17321 16892 16653 16498 16464 16462>, + <17378 16932 16660 16494 16463 16461>, + <17401 16963 16663 16491 16463 16460>, + <17405 16975 16664 16491 16463 16459>, + <17356 16975 16659 16493 16464 16460>, + <17286 16973 16654 16496 16466 16461>, + <17268 16965 16654 16499 16469 16462>, + <17291 16939 16658 16504 16474 16465>, + <17336 16930 16663 16509 16478 16468>, + <17501 17011 16668 16519 16484 16471>, + <17663 17108 16676 16530 16490 16475>, + <17582 17151 16707 16539 16494 16480>, + <17303 17214 16766 16549 16499 16486>, + <17153 17217 16787 16563 16505 16491>, + <17107 17013 16786 16586 16514 16494>, + <17074 16824 16780 16609 16526 16499>, + <17043 16816 16744 16632 16547 16511>, + <17004 16818 16678 16651 16571 16527>, + <16955 16815 16634 16644 16574 16537>, + <16884 16790 16604 16589 16561 16543>, + <16823 16757 16582 16539 16541 16545>, + <16791 16723 16567 16505 16506 16514>, + <16767 16686 16557 16482 16470 16470>, + <16762 16656 16553 16480 16464 16464>, + <16761 16619 16550 16481 16465 16464>, + <16760 16599 16548 16482 16468 16464>, + <16758 16605 16546 16487 16474 16469>, + <16756 16618 16544 16493 16482 16477>, + <16756 16630 16536 16499 16491 16486>, + <16757 16647 16522 16507 16501 16495>, + <16759 16661 16517 16513 16509 16504>, + <16762 16671 16523 16518 16516 16514>, + <16765 16680 16532 16521 16520 16520>, + <16765 16692 16542 16518 16514 16512>, + <16762 16708 16555 16512 16495 16493>, + <16760 16718 16567 16506 16483 16480>, + <16761 16719 16580 16497 16475 16471>, + <16762 16717 16589 16493 16471 16467>, + <16766 16715 16591 16497 16475 16473>, + <16776 16712 16593 16501 16481 16480>, + <16798 16704 16608 16502 16479 16479>, + <16822 16692 16595 16498 16470 16468>, + <16814 16677 16566 16478 16456 16447>, + <16808 16683 16582 16492 16466 16460>, + <16823 16702 16601 16507 16482 16486>, + <16846 16731 16630 16527 16514 16524>, + <16873 16772 16669 16562 16554 16560>, + <16887 16823 16721 16585 16558 16556>, + <16879 16834 16726 16556 16484 16483>, + <16855 16809 16718 16536 16480 16475>, + <16854 16806 16755 16559 16489 16480>, + <16946 16831 16831 16612 16526 16507>, + <16946 16831 16831 16612 16526 16507>, + <16946 16831 16831 16612 16526 16507>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13537 13041 13942 16492 19962 19872>, + <12632 13403 14990 17715 19718 20076>, + <12277 13824 16013 18441 19392 20087>, + <12343 14235 16884 18795 19003 19973>, + <12702 14567 17476 18902 18569 19799>, + <13235 14751 17661 18872 18107 19626>, + <14566 14795 17462 18092 17567 19192>, + <15935 14834 17134 17035 17015 18592>, + <15684 15418 16828 16581 16557 18040>, + <14180 17131 16452 16290 16138 17339>, + <13386 17843 16221 15893 15717 16774>, + <13727 15905 16094 15089 15189 16379>, + <14531 13767 15962 14493 14826 16014>, + <16734 14721 15720 14528 15002 15543>, + <21108 17983 15399 14652 15490 15062>, + <22432 19601 15544 14691 15606 14987>, + <17644 19327 17832 14598 15089 15408>, + <13002 18814 20082 14542 14648 15740>, + <13366 18705 20924 15719 14756 15690>, + <14738 18583 21486 18084 15134 15595>, + <15204 18575 21521 19969 16087 15998>, + <15046 18631 21171 21777 19359 18352>, + <14747 18760 20805 22533 21537 19818>, + <13968 19942 20485 21616 21291 19789>, + <12797 21973 20230 20405 20744 19719>, + <12408 21831 20143 20165 20127 19570>, + <12313 17705 19904 20237 19134 19173>, + <12286 14535 19871 20225 18219 18622>, + <12407 14056 20750 20078 17377 17444>, + <12636 13768 21727 19994 16740 16394>, + <12818 13487 21583 20156 16826 16339>, + <12981 13176 20824 20548 17455 16434>, + <13090 13103 20476 21024 18194 16635>, + <13155 13277 20126 21695 19082 17553>, + <13203 13456 19829 22392 20001 18667>, + <13257 13514 19924 23097 20788 19501>, + <13402 13617 20117 23721 21496 20211>, + <13469 13696 20167 23626 21593 20320>, + <13322 13881 20120 22371 20352 19957>, + <13101 14091 20037 21056 19168 19621>, + <12979 14161 19777 19920 19080 19814>, + <12886 14196 19233 19235 19200 20301>, + <12645 14030 16891 19098 18966 20705>, + <12508 13695 17455 19234 19257 20673>, + <12984 13445 16131 19033 16627 17695>, + <13068 13342 15585 18194 17500 18457>, + <13292 13341 15134 17620 17914 17313>, + <13374 13596 15203 17573 18295 17328>, + <13599 13679 15120 17779 17991 16698>, + <13923 14028 15394 17994 17720 16415>, + <13876 13969 16187 18886 18479 17007>, + <13468 13564 15220 19380 19969 17670>, + <13058 13446 13811 19982 21375 18479>, + <12417 13265 13683 21736 24001 22751>, + <12417 13265 13683 21736 24001 22751>, + <12417 13265 13683 21736 24001 22751>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6344 5658 5292 5087 5039 5028>, + <6330 5661 5294 5086 5038 5028>, + <6316 5662 5294 5085 5038 5028>, + <6301 5663 5292 5084 5037 5028>, + <6285 5663 5289 5083 5037 5028>, + <6268 5663 5285 5083 5037 5028>, + <6252 5655 5278 5082 5038 5028>, + <6234 5644 5271 5082 5038 5029>, + <6205 5641 5267 5082 5039 5030>, + <6160 5640 5264 5084 5041 5031>, + <6142 5639 5262 5085 5042 5032>, + <6151 5633 5260 5087 5044 5033>, + <6162 5628 5260 5089 5046 5035>, + <6149 5634 5266 5092 5048 5036>, + <6099 5652 5279 5097 5052 5038>, + <6050 5655 5283 5102 5055 5040>, + <5991 5599 5281 5108 5057 5042>, + <5950 5542 5277 5113 5060 5045>, + <5948 5535 5264 5120 5066 5050>, + <5948 5532 5242 5127 5073 5055>, + <5946 5527 5226 5124 5074 5057>, + <5931 5515 5213 5106 5068 5057>, + <5918 5504 5204 5088 5060 5056>, + <5915 5500 5198 5077 5048 5045>, + <5913 5497 5195 5069 5036 5029>, + <5914 5492 5194 5068 5034 5026>, + <5931 5483 5194 5069 5034 5026>, + <5951 5479 5194 5070 5034 5027>, + <5971 5489 5196 5072 5036 5028>, + <5992 5510 5198 5074 5038 5030>, + <6013 5529 5198 5077 5041 5032>, + <6035 5551 5198 5080 5045 5035>, + <6057 5573 5198 5083 5048 5039>, + <6080 5597 5204 5086 5051 5042>, + <6103 5623 5214 5087 5053 5045>, + <6128 5650 5224 5087 5051 5043>, + <6154 5680 5236 5087 5046 5037>, + <6181 5712 5248 5086 5042 5033>, + <6210 5746 5262 5084 5040 5031>, + <6239 5782 5276 5083 5038 5030>, + <6272 5821 5290 5084 5040 5032>, + <6307 5863 5305 5087 5043 5035>, + <6347 5908 5320 5089 5043 5035>, + <6392 5961 5341 5090 5040 5031>, + <6412 5993 5333 5084 5034 5024>, + <6445 6057 5372 5093 5043 5034>, + <6490 6113 5398 5100 5050 5042>, + <6539 6180 5435 5110 5062 5057>, + <6598 6249 5475 5125 5076 5068>, + <6663 6326 5522 5134 5077 5066>, + <6734 6389 5559 5126 5052 5043>, + <6837 6463 5596 5123 5053 5042>, + <7006 6589 5691 5142 5061 5047>, + <7456 6757 5844 5173 5079 5063>, + <7456 6757 5844 5173 5079 5063>, + <7456 6757 5844 5173 5079 5063>; + }; + +}; From df30a148009ee02472b658ee1f3a6046cffd4660 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Mon, 14 Jun 2021 10:58:54 +0800 Subject: [PATCH 0246/1247] arm/dts: config cp-use-internal-qg Corfup use internal qg with CP, so config mmi,cp-use-internal-qg Porting from (CR) Change-Id: I30367d878b98e1082b889b601286405b350fa0e7 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/1978509 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 375ad3149db8..10cbf0108d63 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -82,6 +82,22 @@ &pm7250b_qg { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>, + <&mmi_chrg PSY_IIO_CP_ENABLE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done", + "cp_charging_enabled"; + mmi,cp-use-internal-qg; qcom,qg-iterm-ma = <500>; }; @@ -132,7 +148,7 @@ }; &soc { - mmi_chrg_manager { + mmi_chrg: mmi_chrg_manager { compatible = "mmi,chrg-manager"; #io-channel-cells = <1>; io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, From fa03bf1032d56600c0d3c2190b54831a513e7657 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 15 Jun 2021 15:21:12 +0800 Subject: [PATCH 0247/1247] corfu5g: modify macro AVDD and wide macro flash 1.modify macro camera AVDD for DVT1 2.add wide and macro camera flash Change-Id: I8dbc7ca3f1e0cb500bd1bc89e57bbd9be2d31bfb Signed-off-by: Xiaofeng Wang Reviewed-on: https://gerrit.mot.com/1979843 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiwen Liu Reviewed-by: Qiang Guo Reviewed-by: Wang Liu Reviewed-by: Shuo Wang Reviewed-by: Xingyun Fu Reviewed-by: Zhuoran Xu Reviewed-by: Zhichao Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 5 +- qcom/holi-corfup-dvt1-overlay.dts | 137 ++++++++++++++++++++++++++++++ 2 files changed, 141 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-corfup-dvt1-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 54a47a07ccc1..daf1ff59bf5f 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -36,11 +36,14 @@ holi-ibiza-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUP_DTB) += \ holi-corfup-evb-overlay.dtbo \ holi-corfup-evt1-overlay.dtbo \ - holi-corfup-evt2-overlay.dtbo + holi-corfup-evt2-overlay.dtbo \ + holi-corfup-dvt1-overlay.dtbo + holi-corfup-evb-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-corfup-dvt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo \ diff --git a/qcom/holi-corfup-dvt1-overlay.dts b/qcom/holi-corfup-dvt1-overlay.dts new file mode 100644 index 000000000000..01f2f233922a --- /dev/null +++ b/qcom/holi-corfup-dvt1-overlay.dts @@ -0,0 +1,137 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfup-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" + +/ { + model = "corfup"; + compatible = "qcom,holi-corfup", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xB100>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + From 62b2247c6a4d4d1e892baae30a159e65fb4c65ad Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 18 Jun 2021 17:02:48 +0800 Subject: [PATCH 0248/1247] arm/dts:modify sar mapping for kyoto modify sar mapping accorting to HW /REG_AFEPH_PH0, CS4, ANT1, Bottom/ /REG_AFEPH_PH1, CS7, ANT2, Top Right/ /REG_AFEPH_PH2, CS0, ANT3, Top Left/ /REG_AFEPH_PH3, CS5, ANT4, Top Right side/ /REG_AFEPH_PH4, CS6, ANT1_REF, Bottom/ /REG_AFEPH_PH5, CS2, ANT2_REF, Top Right/ /REG_AFEPH_PH6, CS1, ANT3_REF, Top Left/ Change-Id: Ife8d01d5a12da53baa97584b5b27ae228c42a7bc Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1983933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 102 +++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 2b44f7c45793..10b43d38a5dd 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -240,6 +240,108 @@ }; }; +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; +}; &qupv3_se7_i2c { status = "ok"; From 80c3e492288d6b913d8dcfd293b865f5e46297b1 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 21 Jun 2021 00:25:11 +0800 Subject: [PATCH 0249/1247] arm/dt: corfup: pull qupv3_se10 i2c pins up when i2c free arm/dt: Pull qupv3_se10 i2c pins up when i2c free, slove sar access fail issue. If uefi calls i2c_open, this i2c pins will pull down when free, so pull pins up force when free. Change-Id: I7a8313e02b4df7600b56e4cb3d264df701d260e7 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1985267 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 10b43d38a5dd..9ef51b9e6ee2 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -567,3 +567,10 @@ qcom,vdd-voltage-level = <3000000 3000000>; }; +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From 331133c0aee3343a1a72e8656e32ac7c30407aab Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 17 Jun 2021 16:30:03 +0800 Subject: [PATCH 0250/1247] dts: cypfg/csot_panel: update the panel config Get the new panel config from vendor. 1.update the init code 2.update the dsc config 3.update the porch setting Change-Id: I29e5843c40b30486790fa6d8bb781ad2255c6af2 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1982440 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- ...l-mot-csot-gc7372-678-1080x2460-video.dtsi | 88 ++----------------- 1 file changed, 7 insertions(+), 81 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi index 850e6971d1b8..352d25671036 100644 --- a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -40,14 +40,14 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2460>; - qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-front-porch = <14>; qcom,mdss-dsi-h-back-porch = <16>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <18>; - qcom,mdss-dsi-v-front-porch = <2511>; - qcom,mdss-dsi-v-pulse-width = <1>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <2594>; + qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; @@ -56,88 +56,14 @@ qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 04 FF 55 AA 66 - 15 01 00 00 00 00 02 FF B3 - 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 D4 30 - 15 01 00 00 00 00 02 01 06 - 15 01 00 00 00 00 02 0B 06 - 15 01 00 00 00 00 02 1E 06 - 15 01 00 00 00 00 02 FF 20 - 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 2F 41 - 15 01 00 00 00 00 02 15 DD - 15 01 00 00 00 00 02 FF 28 - 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 02 04 - 15 01 00 00 00 00 02 04 3C - 15 01 00 00 00 00 02 05 20 - 15 01 00 00 00 00 02 06 0C - 15 01 00 00 00 00 02 07 18 - 15 01 00 00 00 00 02 08 00 - 15 01 00 00 00 00 02 0B 22 - 15 01 00 00 00 00 02 0C 1C - 15 01 00 00 00 00 02 0D 1C - 15 01 00 00 00 00 02 0E BB - 15 01 00 00 00 00 02 0F 06 - 15 01 00 00 00 00 02 10 20 - 15 01 00 00 00 00 02 11 00 - 15 01 00 00 00 00 02 12 0E - 15 01 00 00 00 00 02 13 1C - 15 01 00 00 00 00 02 14 2A - 15 01 00 00 00 00 02 15 38 - 15 01 00 00 00 00 02 16 46 - 15 01 00 00 00 00 02 17 54 - 15 01 00 00 00 00 02 18 62 - 15 01 00 00 00 00 02 19 69 - 15 01 00 00 00 00 02 1A 70 - 15 01 00 00 00 00 02 1B 77 - 15 01 00 00 00 00 02 1C 79 - 15 01 00 00 00 00 02 1D 7B - 15 01 00 00 00 00 02 1E 7D - 15 01 00 00 00 00 02 1F 7E - 15 01 00 00 00 00 02 2E 01 - 15 01 00 00 00 00 02 2F 00 - 15 01 00 00 00 00 02 30 11 - 15 01 00 00 00 00 02 31 33 - 15 01 00 00 00 00 02 32 33 - 15 01 00 00 00 00 02 33 33 - 15 01 00 00 00 00 02 34 55 - 15 01 00 00 00 00 02 35 75 - 15 01 00 00 00 00 02 36 44 - 15 01 00 00 00 00 02 37 65 - 15 01 00 00 00 00 02 38 77 - 15 01 00 00 00 00 02 39 87 - 15 01 00 00 00 00 02 3A A9 - 15 01 00 00 00 00 02 3B CB - 15 01 00 00 00 00 02 3D DD - 15 01 00 00 00 00 02 3E 0F - 15 01 00 00 00 00 02 3F 02 - 15 01 00 00 00 00 02 40 00 - 15 01 00 00 00 00 02 41 00 - 15 01 00 00 00 00 02 42 3E - 15 01 00 00 00 00 02 43 3C - 15 01 00 00 00 00 02 44 3A - 15 01 00 00 00 00 02 45 38 - 15 01 00 00 00 00 02 46 38 - 15 01 00 00 00 00 02 47 38 - 15 01 00 00 00 00 02 48 36 - 15 01 00 00 00 00 02 49 36 - 15 01 00 00 00 00 02 4A 34 - 15 01 00 00 00 00 02 4B 34 - 15 01 00 00 00 00 02 4C 34 - 15 01 00 00 00 00 02 4D 33 - 15 01 00 00 00 00 02 4E 11 15 01 00 00 00 00 02 FF 10 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 BF 81 - 39 01 00 00 00 00 11 C0 80 0A 00 F6 02 00 02 0E 00 ED 00 07 0A AB 0A 2C - 39 01 00 00 00 00 03 C1 10 F0 15 01 00 00 00 00 02 36 08 15 01 00 00 00 00 02 BA 03 15 01 00 00 00 00 02 69 00 15 01 00 00 00 00 02 35 00 - 15 01 00 00 00 00 02 53 28 - 39 01 00 00 00 00 03 51 03 32 + 15 01 00 00 00 00 02 53 2C + 39 01 00 00 00 00 03 51 06 66 15 01 00 00 00 00 02 55 01 05 01 00 00 96 00 01 11 05 01 00 00 32 00 01 29 @@ -151,7 +77,7 @@ qcom,compression-mode = "dsc"; qcom,mdss-dsc-datatype = <0x3E>; - qcom,mdss-dsc-slice-height = <10>; + qcom,mdss-dsc-slice-height = <20>; qcom,mdss-dsc-slice-width = <540>; qcom,mdss-dsc-slice-per-pkt = <2>; qcom,mdss-dsc-bit-per-component = <8>; From ca701135726e03a894b955be40298ff8015d3f0c Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 21 Jun 2021 10:48:09 +0800 Subject: [PATCH 0251/1247] arm/dts:modify sar mapping for EVT2 of corfu modify sar mapping accorting to EVT2 HW /REG_AFEPH_PH0, CS4, ANT1, Bottom/ /REG_AFEPH_PH1, CS7, ANT2, Top Right/ /REG_AFEPH_PH2, CS0, ANT3, Top Left/ /REG_AFEPH_PH3, CS5, ANT4, Top Right side/ /REG_AFEPH_PH4, CS6, ANT1_REF, Bottom/ /REG_AFEPH_PH5, CS2, ANT2_REF, Top Right/ /REG_AFEPH_PH6, CS1, ANT3_REF, Top Left/ Change-Id: I36cbff297f620c2dd90cf5cd82a74e3698960b99 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/1985678 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfup-evt2-overlay.dts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/holi-corfup-evt2-overlay.dts b/qcom/holi-corfup-evt2-overlay.dts index 27eae9f7ebef..c291fa04795c 100644 --- a/qcom/holi-corfup-evt2-overlay.dts +++ b/qcom/holi-corfup-evt2-overlay.dts @@ -62,14 +62,14 @@ /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ 0x8098 0x00009240 /*prox threshold ph0*/ From 8d186332a544b012fc6335e0633ef005269a8f7c Mon Sep 17 00:00:00 2001 From: duqiu2 Date: Mon, 21 Jun 2021 19:21:16 +0800 Subject: [PATCH 0252/1247] nfc: config: initial the config file for Corfup Corfup use ST21J nfc controller. Enable the driver and nfc config for it. Change-Id: I8a0cfba5a8509d86a4952c1c36ba338a2aecd0b4 Signed-off-by: duqiu2 Reviewed-on: https://gerrit.mot.com/1986447 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xu Du Reviewed-by: Weilong Wu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfup-common-overlay.dtsi | 31 +++++++++++++++------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 9ef51b9e6ee2..120072dad2ed 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -66,13 +66,13 @@ nfc_enable_active: nfc_enable_active { mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48", "gpio8"; + /* 6: Enable */ + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio48", "gpio8"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -80,13 +80,13 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48", "gpio8"; + /* 6: Enable */ + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio48", "gpio8"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -113,7 +113,7 @@ /* sleep state */ mux { /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; + pins = "gpio7"; function = "gpio"; }; @@ -345,13 +345,16 @@ &qupv3_se7_i2c { status = "ok"; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 48 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; From fc97c6d2e5b857d3a471da5385cbb4eb998ea101 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Mon, 21 Jun 2021 11:15:23 +0800 Subject: [PATCH 0253/1247] arm64/dt: config i2c_7 gpio function as qup11_f1 I2c_7 bus keep hung since Qcom's rebase change gpio 27/28 as qup11_f1 but do not change it on dts node at the same time. change the i2c_7 pin function configuration to fixed it. Change-Id: I10c85f6ccb44ac997751cc47b2d7f58a7800cd39 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/1985493 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-pinctrl.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pinctrl.dtsi b/qcom/holi-pinctrl.dtsi index cd794ed7e1ec..495691a559f4 100644 --- a/qcom/holi-pinctrl.dtsi +++ b/qcom/holi-pinctrl.dtsi @@ -337,7 +337,7 @@ qupv3_se7_i2c_active: qupv3_se7_i2c_active { mux { pins = "gpio27", "gpio28"; - function = "qup11"; + function = "qup11_f1"; }; config { From 7777d8bf3e82bde6cdd059a50e39c40af01bd5b9 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Thu, 24 Jun 2021 18:53:10 +0800 Subject: [PATCH 0254/1247] cypfg: arm64/dts: Change gc7372 irq configuration - Change irq trigger type to rising. - Removed unused touch configuration. Change-Id: I1379d6b75a88f639ddc12ecd45ab7c78d0cabe42 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/1990945 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-touchscreen.dtsi | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/qcom/cypfg-touchscreen.dtsi b/qcom/cypfg-touchscreen.dtsi index ad997b9def2f..96a06ad3c86b 100755 --- a/qcom/cypfg-touchscreen.dtsi +++ b/qcom/cypfg-touchscreen.dtsi @@ -85,6 +85,12 @@ status = "disabled"; }; +&qupv3_se8_i2c { + synaptics_tcm@20 { + status = "disabled"; + }; +}; + &qupv3_se0_spi { status = "ok"; ilitek@0 { @@ -107,11 +113,9 @@ compatible = "gcore,touchscreen"; reg = <0x1>; spi-max-frequency = <8000000>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; panel = <&dsi_csot_gc7372_678_fhd_video>; gcore,rst-gpio = <&tlmm 21 0x00>; - gcore,irq-gpio = <&tlmm 22 0x2008>; + gcore,irq-gpio = <&tlmm 22 0x2001>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; From 86329c1e9e9dbd98c0cc03c470d22ee86aed8f8b Mon Sep 17 00:00:00 2001 From: yangqh5 Date: Tue, 22 Jun 2021 13:53:35 +0800 Subject: [PATCH 0255/1247] arm64/dt: initial cypfq and cypfr dts files cyprus 5g have below two chip: cypfq: 4350-pro(mannar-pro) cypfr: 6375(strait) initial dts files cloned from cypfg. Change-Id: Ibe8896bf660e60ea831c49c7cb9e4b8da043ef6b Reviewed-on: https://gerrit.mot.com/1987823 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Liyun Zhang --- qcom/Makefile | 14 + qcom/holi-cypfq-common-overlay.dtsi | 548 ++++++++++++++++++++++++++++ qcom/holi-cypfq-evb-overlay.dts | 24 ++ qcom/holi-cypfq-evt-overlay.dts | 24 ++ qcom/holi-cypfr-common-overlay.dtsi | 548 ++++++++++++++++++++++++++++ qcom/holi-cypfr-evb-overlay.dts | 24 ++ qcom/holi-cypfr-evt-overlay.dts | 24 ++ 7 files changed, 1206 insertions(+) create mode 100644 qcom/holi-cypfq-common-overlay.dtsi create mode 100644 qcom/holi-cypfq-evb-overlay.dts create mode 100644 qcom/holi-cypfq-evt-overlay.dts create mode 100644 qcom/holi-cypfr-common-overlay.dtsi create mode 100644 qcom/holi-cypfr-evb-overlay.dts create mode 100644 qcom/holi-cypfr-evt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index daf1ff59bf5f..a2a94675af76 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -52,6 +52,20 @@ dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb holi-cypfg-evt-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_CYPFQ_DTB) += \ + holi-cypfq-evb-overlay.dtbo \ + holi-cypfq-evt-overlay.dtbo + +holi-cypfq-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfq-evt-overlay.dtbo-base := holi-moto-base.dtb + +dtbo-$(CONFIG_CYPFR_DTB) += \ + holi-cypfr-evb-overlay.dtbo \ + holi-cypfr-evt-overlay.dtbo + +holi-cypfr-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfr-evt-overlay.dtbo-base := holi-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi new file mode 100644 index 000000000000..b15ad387ba35 --- /dev/null +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -0,0 +1,548 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "cypfg-display.dtsi" +#include "cypfg-touchscreen.dtsi" +#include "denver-sensors.dtsi" +#include "camera/holi-camera-sensor-mot-cypfg-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "cypfg-fps-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + +&pm7250b_charger { + qcom,dcp-curr-max = <2000000>; + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <2900000>; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x25E /*AFE_PARAM_PH0*/ + 0x8034 0x25E /*AFE_PARAM_PH1*/ + 0x8040 0x25E /*AFE_PARAM_PH2*/ + 0x804C 0x25E /*AFE_PARAM_PH3*/ + 0x8058 0x25E /*AFE_PARAM_PH4*/ + 0x8064 0x25E /*AFE_PARAM_PH5*/ + 0x8070 0x25E /*AFE_PARAM_PH6*/ + 0x807C 0x25E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0xC8644D2C + 0x80B8 0xC8644D2C + 0x80D8 0xC8644D2C + 0x80F8 0xC8644D2C + 0x8118 0xC8644D2C + 0x8138 0xC8644D2C + 0x8158 0xC8644D2C + 0x8178 0xC8644D2C + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x0 + 0x818C 0x0 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xe + >; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-cypfq-evb-overlay.dts b/qcom/holi-cypfq-evb-overlay.dts new file mode 100644 index 000000000000..1dbc8fd9e0e8 --- /dev/null +++ b/qcom/holi-cypfq-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfq-common-overlay.dtsi" + +/ { + model = "cypfq"; + compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA100>; +}; + diff --git a/qcom/holi-cypfq-evt-overlay.dts b/qcom/holi-cypfq-evt-overlay.dts new file mode 100644 index 000000000000..ed3720e36810 --- /dev/null +++ b/qcom/holi-cypfq-evt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfq-common-overlay.dtsi" + +/ { + model = "cypfq"; + compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA200>, <0x48 0xA200>; +}; + diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi new file mode 100644 index 000000000000..b15ad387ba35 --- /dev/null +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -0,0 +1,548 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "cypfg-display.dtsi" +#include "cypfg-touchscreen.dtsi" +#include "denver-sensors.dtsi" +#include "camera/holi-camera-sensor-mot-cypfg-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "cypfg-fps-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + +&pm7250b_charger { + qcom,dcp-curr-max = <2000000>; + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <2900000>; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x25E /*AFE_PARAM_PH0*/ + 0x8034 0x25E /*AFE_PARAM_PH1*/ + 0x8040 0x25E /*AFE_PARAM_PH2*/ + 0x804C 0x25E /*AFE_PARAM_PH3*/ + 0x8058 0x25E /*AFE_PARAM_PH4*/ + 0x8064 0x25E /*AFE_PARAM_PH5*/ + 0x8070 0x25E /*AFE_PARAM_PH6*/ + 0x807C 0x25E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0xC8644D2C + 0x80B8 0xC8644D2C + 0x80D8 0xC8644D2C + 0x80F8 0xC8644D2C + 0x8118 0xC8644D2C + 0x8138 0xC8644D2C + 0x8158 0xC8644D2C + 0x8178 0xC8644D2C + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x0 + 0x818C 0x0 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xe + >; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-cypfr-evb-overlay.dts b/qcom/holi-cypfr-evb-overlay.dts new file mode 100644 index 000000000000..56378e80d554 --- /dev/null +++ b/qcom/holi-cypfr-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfr-common-overlay.dtsi" + +/ { + model = "cypfr"; + compatible = "qcom,holi-cypfr", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA100>; +}; + diff --git a/qcom/holi-cypfr-evt-overlay.dts b/qcom/holi-cypfr-evt-overlay.dts new file mode 100644 index 000000000000..50b4d4326b10 --- /dev/null +++ b/qcom/holi-cypfr-evt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfr-common-overlay.dtsi" + +/ { + model = "cypfr"; + compatible = "qcom,holi-cypfr", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA200>, <0x48 0xA200>; +}; + From f6f61f4f6e11c0c58d70395ec4bfcf2ad06f217a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 24 Jun 2021 11:04:53 +0800 Subject: [PATCH 0256/1247] cypfg: dts/csot_panel: change the mipi clock to 752M The first panel(tianma), the mipi clock is 754M. And the max frequency of mipi clock is 752 Change-Id: I4ccfc08927ea9b66d8eb8b543c175cadfb4479a3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1990275 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi index 352d25671036..be194e347903 100644 --- a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -40,8 +40,8 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2460>; - qcom,mdss-dsi-h-front-porch = <14>; - qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <20>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; From 88aa67abcce8d1e34d9585fba92da60393cda770 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 24 Jun 2021 11:11:15 +0800 Subject: [PATCH 0257/1247] cypfg: dts/csot_panel: change MIPI timing the mipi clock is changed to 752M. The time of ui is also changed. So we must change MIPI timing Change-Id: Ia262d8e479be35180a5c0c90653ab9f54ef5bf8e Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1990280 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Shanshan Dai Submit-Approved: Jira Key --- qcom/cypfg-display.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/cypfg-display.dtsi b/qcom/cypfg-display.dtsi index efbfbaf6e440..70ee58139dcf 100644 --- a/qcom/cypfg-display.dtsi +++ b/qcom/cypfg-display.dtsi @@ -169,11 +169,11 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; - qcom,mdss-dsi-t-clk-pre = <0x2E>; + qcom,mdss-dsi-t-clk-pre = <0x30>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 19 06 06 21 20 07 - 06 07 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; From f9faa83ce18af153523d920ac2e365cc82b01a53 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Thu, 24 Jun 2021 20:09:32 +0800 Subject: [PATCH 0258/1247] arm64/dt: initial corfuq and corfur dts files corfup 5g have below two chip: corfuq: 4350-pro(mannar-pro) corfur: 6375(strait) initial dts files cloned from corfup. Change-Id: I2425f5e19bcacd64b5e16d65091763dc332924bb Reviewed-on: https://gerrit.mot.com/1991016 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: gaoyx9 Submit-Approved: gaoyx9 Tested-by: gaoyx9 Reviewed-by: Guobin Zhang --- qcom/Makefile | 24 ++ qcom/holi-corfuq-common-overlay.dtsi | 579 +++++++++++++++++++++++++++ qcom/holi-corfuq-dvt1-overlay.dts | 137 +++++++ qcom/holi-corfuq-evb-overlay.dts | 24 ++ qcom/holi-corfuq-evt1-overlay.dts | 24 ++ qcom/holi-corfuq-evt2-overlay.dts | 136 +++++++ qcom/holi-corfur-common-overlay.dtsi | 579 +++++++++++++++++++++++++++ qcom/holi-corfur-dvt1-overlay.dts | 137 +++++++ qcom/holi-corfur-evb-overlay.dts | 24 ++ qcom/holi-corfur-evt1-overlay.dts | 24 ++ qcom/holi-corfur-evt2-overlay.dts | 136 +++++++ 11 files changed, 1824 insertions(+) create mode 100644 qcom/holi-corfuq-common-overlay.dtsi create mode 100644 qcom/holi-corfuq-dvt1-overlay.dts create mode 100644 qcom/holi-corfuq-evb-overlay.dts create mode 100644 qcom/holi-corfuq-evt1-overlay.dts create mode 100644 qcom/holi-corfuq-evt2-overlay.dts create mode 100644 qcom/holi-corfur-common-overlay.dtsi create mode 100644 qcom/holi-corfur-dvt1-overlay.dts create mode 100644 qcom/holi-corfur-evb-overlay.dts create mode 100644 qcom/holi-corfur-evt1-overlay.dts create mode 100644 qcom/holi-corfur-evt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index a2a94675af76..446e2f4a3698 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -45,6 +45,30 @@ holi-corfup-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-dvt1-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_CORFUQ_DTB) += \ + holi-corfuq-evb-overlay.dtbo \ + holi-corfuq-evt1-overlay.dtbo \ + holi-corfuq-evt2-overlay.dtbo \ + holi-corfuq-dvt1-overlay.dtbo + + +holi-corfuq-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-corfuq-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-corfuq-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-corfuq-dvt1-overlay.dtbo-base := holi-moto-base.dtb + +dtbo-$(CONFIG_CORFUR_DTB) += \ + holi-corfur-evb-overlay.dtbo \ + holi-corfur-evt1-overlay.dtbo \ + holi-corfur-evt2-overlay.dtbo \ + holi-corfur-dvt1-overlay.dtbo + + +holi-corfur-evb-overlay.dtbo-base := holi-moto-base.dtb +holi-corfur-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-corfur-evt2-overlay.dtbo-base := holi-moto-base.dtb +holi-corfur-dvt1-overlay.dtbo-base := holi-moto-base.dtb + dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo \ holi-cypfg-evt-overlay.dtbo diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi new file mode 100644 index 000000000000..1a4149eb155b --- /dev/null +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -0,0 +1,579 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "corfuq-display.dtsi" +#include "corfuq-touchscreen.dtsi" +#include "corfuq-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfuq-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "corfuq-charger.dtsi" + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + + + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic2: wl2866d@28{ + compatible = "semi,wl2866d"; + reg = <0x28>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + semi,init-value = <0x05>; + + regulators { + cam_pmic2_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + regulator-always-on; + }; + + cam_pmic2_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&sdhc_2 { + qcom,vdd-voltage-level = <3000000 3000000>; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/holi-corfuq-dvt1-overlay.dts b/qcom/holi-corfuq-dvt1-overlay.dts new file mode 100644 index 000000000000..b51e13cef6cb --- /dev/null +++ b/qcom/holi-corfuq-dvt1-overlay.dts @@ -0,0 +1,137 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfuq-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfuq-dvt1-overlay.dtsi" + +/ { + model = "corfuq"; + compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xB100>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + diff --git a/qcom/holi-corfuq-evb-overlay.dts b/qcom/holi-corfuq-evb-overlay.dts new file mode 100644 index 000000000000..831930f8d6f6 --- /dev/null +++ b/qcom/holi-corfuq-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfuq-common-overlay.dtsi" + +/ { + model = "corfuq"; + compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0x9100>; +}; + diff --git a/qcom/holi-corfuq-evt1-overlay.dts b/qcom/holi-corfuq-evt1-overlay.dts new file mode 100644 index 000000000000..181366c4dbf2 --- /dev/null +++ b/qcom/holi-corfuq-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfuq-common-overlay.dtsi" + +/ { + model = "corfuq"; + compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0xA100>; +}; + diff --git a/qcom/holi-corfuq-evt2-overlay.dts b/qcom/holi-corfuq-evt2-overlay.dts new file mode 100644 index 000000000000..4f119fcf00a0 --- /dev/null +++ b/qcom/holi-corfuq-evt2-overlay.dts @@ -0,0 +1,136 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfuq-common-overlay.dtsi" + +/ { + model = "corfuq"; + compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xA200>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi new file mode 100644 index 000000000000..6ec31d8dcb58 --- /dev/null +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -0,0 +1,579 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "holi-moto-common-overlay.dtsi" +#include "corfur-display.dtsi" +#include "corfur-touchscreen.dtsi" +#include "corfur-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfur-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "corfur-charger.dtsi" + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + + + +&gpio_keys { + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; +}; + +&sdhc_2 { + status = "ok"; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic2: wl2866d@28{ + compatible = "semi,wl2866d"; + reg = <0x28>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + semi,init-value = <0x05>; + + regulators { + cam_pmic2_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + regulator-always-on; + }; + + cam_pmic2_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + vin1-supply = <&S8E>; + vin2-supply = <&BOB>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&sdhc_2 { + qcom,vdd-voltage-level = <3000000 3000000>; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/holi-corfur-dvt1-overlay.dts b/qcom/holi-corfur-dvt1-overlay.dts new file mode 100644 index 000000000000..d1f691ada618 --- /dev/null +++ b/qcom/holi-corfur-dvt1-overlay.dts @@ -0,0 +1,137 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfur-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfur-dvt1-overlay.dtsi" + +/ { + model = "corfur"; + compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xB100>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + diff --git a/qcom/holi-corfur-evb-overlay.dts b/qcom/holi-corfur-evb-overlay.dts new file mode 100644 index 000000000000..2d5d33647307 --- /dev/null +++ b/qcom/holi-corfur-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfur-common-overlay.dtsi" + +/ { + model = "corfur"; + compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0x9100>; +}; + diff --git a/qcom/holi-corfur-evt1-overlay.dts b/qcom/holi-corfur-evt1-overlay.dts new file mode 100644 index 000000000000..1675abdfbd45 --- /dev/null +++ b/qcom/holi-corfur-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfur-common-overlay.dtsi" + +/ { + model = "corfur"; + compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x44 0xA100>; +}; + diff --git a/qcom/holi-corfur-evt2-overlay.dts b/qcom/holi-corfur-evt2-overlay.dts new file mode 100644 index 000000000000..7549187d4219 --- /dev/null +++ b/qcom/holi-corfur-evt2-overlay.dts @@ -0,0 +1,136 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfur-common-overlay.dtsi" + +/ { + model = "corfur"; + compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xA200>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + From 9c55dbe18d5115f40ce66c96687a295ac60e0938 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 29 Jun 2021 16:01:17 +0800 Subject: [PATCH 0259/1247] arm/dt: corfup: disable gesture mode temporarily arm/dt: Disable gesture mode temporarily, because touch can't work when resume sometimes. Change-Id: I0f5a902af9caae5ceb9bbde8e19c7489d1f9a336 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1995497 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi index 4f165b7ba60f..4d163fee3284 100755 --- a/qcom/corfup-touchscreen.dtsi +++ b/qcom/corfup-touchscreen.dtsi @@ -36,7 +36,6 @@ panel = <&dsi_vtdr6110c_visionox_video>; /* touchscreen_mmi class entries*/ - mmi,enable-gestures; mmi,usb-charger-detection; mmi,class-entry-name = "ft3519"; }; From bad38d655a1d1692495132d3c9e1dc152217f28a Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Tue, 29 Jun 2021 19:42:02 +0800 Subject: [PATCH 0260/1247] devicetree/qcom: add dvt1 dts configuration for cyprus 5G From DVT1, cyprus 5G project name is changed to cypfq. remove the invalid configuration and update the hwid configuration. The hwid definition is as following: https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Ibcdfb528811fc9393a5d1c06d706313ee12d46a3 Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/1995909 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 6 ++--- ...verlay.dts => holi-cypfq-dvt1-overlay.dts} | 2 +- qcom/holi-cypfq-evt-overlay.dts | 24 ------------------- 3 files changed, 3 insertions(+), 29 deletions(-) rename qcom/{holi-cypfq-evb-overlay.dts => holi-cypfq-dvt1-overlay.dts} (95%) delete mode 100644 qcom/holi-cypfq-evt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 446e2f4a3698..a7c612a1097e 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -77,11 +77,9 @@ holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb holi-cypfg-evt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFQ_DTB) += \ - holi-cypfq-evb-overlay.dtbo \ - holi-cypfq-evt-overlay.dtbo + holi-cypfq-dvt1-overlay.dtbo -holi-cypfq-evb-overlay.dtbo-base := holi-moto-base.dtb -holi-cypfq-evt-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfq-dvt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ holi-cypfr-evb-overlay.dtbo \ diff --git a/qcom/holi-cypfq-evb-overlay.dts b/qcom/holi-cypfq-dvt1-overlay.dts similarity index 95% rename from qcom/holi-cypfq-evb-overlay.dts rename to qcom/holi-cypfq-dvt1-overlay.dts index 1dbc8fd9e0e8..a3a04f189bf0 100644 --- a/qcom/holi-cypfq-evb-overlay.dts +++ b/qcom/holi-cypfq-dvt1-overlay.dts @@ -19,6 +19,6 @@ model = "cypfq"; compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xA100>; + qcom,board-id = <0x47 0xB100>; }; diff --git a/qcom/holi-cypfq-evt-overlay.dts b/qcom/holi-cypfq-evt-overlay.dts deleted file mode 100644 index ed3720e36810..000000000000 --- a/qcom/holi-cypfq-evt-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-cypfq-common-overlay.dtsi" - -/ { - model = "cypfq"; - compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xA200>, <0x48 0xA200>; -}; - From d01c782920803c3f9c27028156f3e7b468c5df15 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Tue, 29 Jun 2021 15:35:34 +0800 Subject: [PATCH 0261/1247] arm64/dt: init the dts of corfuq/corfur init the dts of corfuq/corfur corfuq use 4350pro corfur use 6375 Change-Id: I79b1420c166d7b4aa06bf85b949e2c9daa48b31e Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/1995459 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 22 +-- qcom/holi-corfuq-common-overlay.dtsi | 10 +- ...rlay.dts => holi-corfuq-dvt1a-overlay.dts} | 4 +- qcom/holi-corfuq-evb-overlay.dts | 24 ---- qcom/holi-corfuq-evt1-overlay.dts | 24 ---- qcom/holi-corfuq-evt2-overlay.dts | 136 ------------------ qcom/holi-corfur-common-overlay.dtsi | 10 +- ...rlay.dts => holi-corfur-dvt1b-overlay.dts} | 6 +- qcom/holi-corfur-evb-overlay.dts | 24 ---- qcom/holi-corfur-evt1-overlay.dts | 24 ---- qcom/holi-corfur-evt2-overlay.dts | 136 ------------------ 11 files changed, 19 insertions(+), 401 deletions(-) rename qcom/{holi-corfuq-dvt1-overlay.dts => holi-corfuq-dvt1a-overlay.dts} (97%) delete mode 100644 qcom/holi-corfuq-evb-overlay.dts delete mode 100644 qcom/holi-corfuq-evt1-overlay.dts delete mode 100644 qcom/holi-corfuq-evt2-overlay.dts rename qcom/{holi-corfur-dvt1-overlay.dts => holi-corfur-dvt1b-overlay.dts} (97%) delete mode 100644 qcom/holi-corfur-evb-overlay.dts delete mode 100644 qcom/holi-corfur-evt1-overlay.dts delete mode 100644 qcom/holi-corfur-evt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index a7c612a1097e..52243e928785 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -46,28 +46,14 @@ holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-dvt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUQ_DTB) += \ - holi-corfuq-evb-overlay.dtbo \ - holi-corfuq-evt1-overlay.dtbo \ - holi-corfuq-evt2-overlay.dtbo \ - holi-corfuq-dvt1-overlay.dtbo + holi-corfuq-dvt1a-overlay.dtbo - -holi-corfuq-evb-overlay.dtbo-base := holi-moto-base.dtb -holi-corfuq-evt1-overlay.dtbo-base := holi-moto-base.dtb -holi-corfuq-evt2-overlay.dtbo-base := holi-moto-base.dtb -holi-corfuq-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-corfuq-dvt1a-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUR_DTB) += \ - holi-corfur-evb-overlay.dtbo \ - holi-corfur-evt1-overlay.dtbo \ - holi-corfur-evt2-overlay.dtbo \ - holi-corfur-dvt1-overlay.dtbo + holi-corfur-dvt1b-overlay.dtbo - -holi-corfur-evb-overlay.dtbo-base := holi-moto-base.dtb -holi-corfur-evt1-overlay.dtbo-base := holi-moto-base.dtb -holi-corfur-evt2-overlay.dtbo-base := holi-moto-base.dtb -holi-corfur-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-corfur-dvt1b-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo \ diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 1a4149eb155b..120072dad2ed 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -11,13 +11,13 @@ */ #include "holi-moto-common-overlay.dtsi" -#include "corfuq-display.dtsi" -#include "corfuq-touchscreen.dtsi" -#include "corfuq-fps-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfuq-overlay.dtsi" +#include "corfup-display.dtsi" +#include "corfup-touchscreen.dtsi" +#include "corfup-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" -#include "corfuq-charger.dtsi" +#include "corfup-charger.dtsi" &tlmm { google_key_default: google_key_default { diff --git a/qcom/holi-corfuq-dvt1-overlay.dts b/qcom/holi-corfuq-dvt1a-overlay.dts similarity index 97% rename from qcom/holi-corfuq-dvt1-overlay.dts rename to qcom/holi-corfuq-dvt1a-overlay.dts index b51e13cef6cb..466c03550d25 100644 --- a/qcom/holi-corfuq-dvt1-overlay.dts +++ b/qcom/holi-corfuq-dvt1a-overlay.dts @@ -14,13 +14,13 @@ /plugin/; #include "holi-corfuq-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfuq-dvt1-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" / { model = "corfuq"; compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x45 0xB100>; + qcom,board-id = <0x45 0xB1A0>; }; &qupv3_se8_i2c { sx937x@2c { diff --git a/qcom/holi-corfuq-evb-overlay.dts b/qcom/holi-corfuq-evb-overlay.dts deleted file mode 100644 index 831930f8d6f6..000000000000 --- a/qcom/holi-corfuq-evb-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfuq-common-overlay.dtsi" - -/ { - model = "corfuq"; - compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0x9100>; -}; - diff --git a/qcom/holi-corfuq-evt1-overlay.dts b/qcom/holi-corfuq-evt1-overlay.dts deleted file mode 100644 index 181366c4dbf2..000000000000 --- a/qcom/holi-corfuq-evt1-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfuq-common-overlay.dtsi" - -/ { - model = "corfuq"; - compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0xA100>; -}; - diff --git a/qcom/holi-corfuq-evt2-overlay.dts b/qcom/holi-corfuq-evt2-overlay.dts deleted file mode 100644 index 4f119fcf00a0..000000000000 --- a/qcom/holi-corfuq-evt2-overlay.dts +++ /dev/null @@ -1,136 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfuq-common-overlay.dtsi" - -/ { - model = "corfuq"; - compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x45 0xA200>; -}; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; - diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 6ec31d8dcb58..120072dad2ed 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -11,13 +11,13 @@ */ #include "holi-moto-common-overlay.dtsi" -#include "corfur-display.dtsi" -#include "corfur-touchscreen.dtsi" -#include "corfur-fps-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfur-overlay.dtsi" +#include "corfup-display.dtsi" +#include "corfup-touchscreen.dtsi" +#include "corfup-fps-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" -#include "corfur-charger.dtsi" +#include "corfup-charger.dtsi" &tlmm { google_key_default: google_key_default { diff --git a/qcom/holi-corfur-dvt1-overlay.dts b/qcom/holi-corfur-dvt1b-overlay.dts similarity index 97% rename from qcom/holi-corfur-dvt1-overlay.dts rename to qcom/holi-corfur-dvt1b-overlay.dts index d1f691ada618..f7a6e6dd27d1 100644 --- a/qcom/holi-corfur-dvt1-overlay.dts +++ b/qcom/holi-corfur-dvt1b-overlay.dts @@ -13,14 +13,14 @@ /dts-v1/; /plugin/; -#include "holi-corfur-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfur-dvt1-overlay.dtsi" +#include "holi-corfup-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" / { model = "corfur"; compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x45 0xB100>; + qcom,board-id = <0x45 0xB1B0>; }; &qupv3_se8_i2c { sx937x@2c { diff --git a/qcom/holi-corfur-evb-overlay.dts b/qcom/holi-corfur-evb-overlay.dts deleted file mode 100644 index 2d5d33647307..000000000000 --- a/qcom/holi-corfur-evb-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfur-common-overlay.dtsi" - -/ { - model = "corfur"; - compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0x9100>; -}; - diff --git a/qcom/holi-corfur-evt1-overlay.dts b/qcom/holi-corfur-evt1-overlay.dts deleted file mode 100644 index 1675abdfbd45..000000000000 --- a/qcom/holi-corfur-evt1-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfur-common-overlay.dtsi" - -/ { - model = "corfur"; - compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x44 0xA100>; -}; - diff --git a/qcom/holi-corfur-evt2-overlay.dts b/qcom/holi-corfur-evt2-overlay.dts deleted file mode 100644 index 7549187d4219..000000000000 --- a/qcom/holi-corfur-evt2-overlay.dts +++ /dev/null @@ -1,136 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-corfur-common-overlay.dtsi" - -/ { - model = "corfur"; - compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x45 0xA200>; -}; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; - From ebb0bbbecae5921e42d6fea9090d532065f75f12 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Wed, 30 Jun 2021 17:15:50 +0800 Subject: [PATCH 0262/1247] arm64/dt add corfuq/corfur dvt1c/dvt1d dts for the 2nd suppiers, we add new hwid, please refer to: https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 so add new dts for corfuq and cordur Change-Id: Ic9f6c40e1f43b67928ff446086bbff08d884ceba Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/1997711 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 8 +- qcom/holi-corfuq-dvt1c-overlay.dts | 137 +++++++++++++++++++++++++++++ qcom/holi-corfur-dvt1d-overlay.dts | 137 +++++++++++++++++++++++++++++ 3 files changed, 280 insertions(+), 2 deletions(-) create mode 100644 qcom/holi-corfuq-dvt1c-overlay.dts create mode 100644 qcom/holi-corfur-dvt1d-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 52243e928785..b5b1326c97c9 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -46,14 +46,18 @@ holi-corfup-evt2-overlay.dtbo-base := holi-moto-base.dtb holi-corfup-dvt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUQ_DTB) += \ - holi-corfuq-dvt1a-overlay.dtbo + holi-corfuq-dvt1a-overlay.dtbo \ + holi-corfuq-dvt1c-overlay.dtbo holi-corfuq-dvt1a-overlay.dtbo-base := holi-moto-base.dtb +holi-corfuq-dvt1c-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUR_DTB) += \ - holi-corfur-dvt1b-overlay.dtbo + holi-corfur-dvt1b-overlay.dtbo \ + holi-corfur-dvt1d-overlay.dtbo holi-corfur-dvt1b-overlay.dtbo-base := holi-moto-base.dtb +holi-corfur-dvt1d-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo \ diff --git a/qcom/holi-corfuq-dvt1c-overlay.dts b/qcom/holi-corfuq-dvt1c-overlay.dts new file mode 100644 index 000000000000..64b80f491bec --- /dev/null +++ b/qcom/holi-corfuq-dvt1c-overlay.dts @@ -0,0 +1,137 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfuq-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" + +/ { + model = "corfuq"; + compatible = "qcom,holi-corfuq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x45 0xB1C0>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + diff --git a/qcom/holi-corfur-dvt1d-overlay.dts b/qcom/holi-corfur-dvt1d-overlay.dts new file mode 100644 index 000000000000..d92fc5ba7a04 --- /dev/null +++ b/qcom/holi-corfur-dvt1d-overlay.dts @@ -0,0 +1,137 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-corfup-common-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" + +/ { + model = "corfur"; + compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x46 0xB1D0>; +}; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + From 0a78893bf69f2e3dacfab8e7d39c3881a7d7c282 Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 1 Jul 2021 11:24:49 +0800 Subject: [PATCH 0263/1247] qcom: Add pm6125 dtsi for cypfq and cypfr 4350 Pro entry of dts is holi-mtp-pm6125-overlay.dts, holi-cypfr-common-overlay.dtsi and holi-cypfq-common-overlay.dtsi are copied from holi-mtp-pm6125.dtsi of date 2021-05-27 22:23:17 Change-Id: I42679b8ff84bb5ddb51e11dd6127dabdfcb15d92 Reviewed-on: https://gerrit.mot.com/1998764 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 885 ++++++++++------------ qcom/holi-cypfr-common-overlay.dtsi | 885 ++++++++++------------ qcom/holi-pm6125-moto-common-overlay.dtsi | 58 ++ 3 files changed, 836 insertions(+), 992 deletions(-) create mode 100644 qcom/holi-pm6125-moto-common-overlay.dtsi diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index b15ad387ba35..09d5168a0dfb 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -9,540 +9,433 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-moto-common-overlay.dtsi" -#include "cypfg-display.dtsi" -#include "cypfg-touchscreen.dtsi" -#include "denver-sensors.dtsi" -#include "camera/holi-camera-sensor-mot-cypfg-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "cypfg-fps-overlay.dtsi" -#include "moto_therm_sys_temp.dtsi" +#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include +#include "camera/holi-camera-pm6125-overlay.dtsi" + +&wcd938x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddio"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wsa881x_i2c_e { + cdc-vdd-1p8-supply = <&L9A>; +}; + +&wsa881x_i2c_f { + cdc-vdd-1p8-supply = <&L9A>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; &sdhc_2 { status = "ok"; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; }; -&tlmm { - google_key_default: google_key_default { - mux { - pins = "gpio11"; - function = "gpio"; - }; +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; - config { - pins = "gpio11"; - drive-strength = <2>; - bias-pull-up; - }; - }; + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; - cam_pmic_en_default: cam_pmic_en_default { - mux { - pins = "gpio38"; - function = "gpio"; - }; - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-down; - output-low; - }; - }; - - nfc { - nfc_int_active: nfc_int_active { - /* active state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_int_suspend: nfc_int_suspend { - /* sleep state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_active: nfc_enable_active { - mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_suspend: nfc_enable_suspend { - mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - - nfc_clk_req_active: nfc_clk_req_active { - /* active state */ - mux { - /* GPIO 7: NFC CLK Req*/ - pins = "gpio7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - - nfc_clk_req_suspend: nfc_clk_req_suspend { - /* sleep state */ - mux { - /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - }; + status = "ok"; }; -&gpio_keys { - pinctrl-0 = <&key_vol_up_default &google_key_default>; +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; }; -&qupv3_se7_i2c { +&qupv3_se0_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 48 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; interrupt-parent = <&tlmm>; interrupts = <9 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>; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + mtp_batterydata: qcom,battery-data { + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-alium-3600mah.dtsi" + #include "qg-batterydata-atl466271_3300mAh.dtsi" + #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + }; +}; + +&soc { + touch_avdd: touch_avdd_stub { + /* + * Touch eLDO controlled by gpio#53 is always ON. + * Using dummy regulator. + */ + compatible = "qcom,stub-regulator"; + regulator-name = "touch_avdd_stub"; + qcom,hpm-min-load = <10000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L9A>; + avdd-supply = <&touch_avdd>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + +&pm7250b_charger { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, + <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_MODE>, + <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_OUTPUT_MODE>, + <&smb1394_div2_cp_primary PSY_IIO_MIN_ICL>, + <&smb1394_div2_cp_primary PSY_IIO_CP_SWITCHER_EN>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ILIM>, + <&smb1394_div2_cp_primary PSY_IIO_CP_DIE_TEMP>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now", + "cp_parallel_mode", + "cp_parallel_output_mode", + "cp_min_icl", + "cp_switcher_en", + "cp_enable", + "cp_ilim", + "cp_die_temp"; + qcom,battery-data = <&mtp_batterydata>; + qcom,sec-charger-config = <1>; + qcom,auto-recharge-soc = <98>; + qcom,step-charging-enable; + qcom,sw-jeita-enable; + qcom,charger-temp-max = <800>; + qcom,smb-temp-max = <800>; + qcom,suspend-input-on-debug-batt; + qcom,fcc-stepping-enable; + qcom,fcc-step-delay-ms = <100>; + qcom,fcc-step-size-ua = <100000>; + qcom,smb-internal-pull-kohm = <0>; + qcom,en-skin-therm-mitigation; + qcom,hvdcp3-standalone-config; +}; + +&pm7250b_qg { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done", + "cp_charging_enabled"; + qcom,battery-data = <&mtp_batterydata>; + qcom,qg-iterm-ma = <150>; + qcom,hold-soc-while-full; + qcom,linearize-soc; + qcom,cl-feedback-on; + qcom,tcss-enable; + qcom,fvss-enable; + qcom,fvss-vbatt-mv = <3300>; + qcom,bass-enable; + qcom,use-cp-iin-sns; +}; + +&pm7250b_vadc { + smb1390_therm@e { + qcom,scale-fn-type = ; + }; +}; + +&pm7250b_gpios { + smb_stat { + smb_stat_default: smb_stat_default { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + qcom,pull-up-strength = ; + power-source = <0>; + }; }; }; &qupv3_se10_i2c { status = "ok"; - - cam_pmic: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; - - regulators { - cam_ldo1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo3: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo4: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo5: ldo5 { - regulator-name = "ldo5"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo6: ldo6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo7: ldo7 { - regulator-name = "ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - }; - }; + #include "smb1394.dtsi" }; -&mot_batterydata { - df-serialnum = "SB18C77591"; - qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-jk50-atl-5000mah.dtsi" - #include "qg-batterydata-jk50-scud-5000mah.dtsi" +&smb1394 { + interrupts = <0x2 0xc5 0x0 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&spmi_bus>; + interrupt-names = "smb1394"; + pinctrl-names = "default"; + qcom,enable-toggle-stat; + pinctrl-0 = <&smb_stat_default>; + status = "ok"; }; -&pm7250b_mmi { - qcom,mmi-temp-zones = <0 4200 1000 0>, - <15 0 1000 1000>, - <45 0 3000 3000>, - <60 4200 2500 0>; - qcom,iterm-ma = <150>; +&smb1394_div2_cp_primary { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM2>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_ADAPTER_CC_MODE>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_SMB_EN_MODE>, + <&pm7250b_charger PSY_IIO_SMB_EN_REASON>; + io-channel-names = "die_temp", + "real_type", + "adapter_cc_mode", + "pd_current_max", + "input_current_settled", + "smb_en_mode", + "smb_en_reason"; + qcom,parallel-input-mode = <1>; /* USBIN */ + qcom,parallel-output-mode = <2>; /* VBAT */ + status = "ok"; }; +#include "camera/holi-camera-sensor-pm6125-mtp.dtsi" + &pm7250b_charger { - qcom,dcp-curr-max = <2000000>; - qcom,fcc-max-ua = <3000000>; - qcom,fv-max-uv = <4400000>; - qcom,thermal-mitigation = <3000000 2500000 - 2000000 1500000 - 1200000 900000 - 600000 300000>; -}; + dpdm-supply = <&qusb_phy0>; -&pm7250b_qg { - qcom,qg-iterm-ma = <500>; -}; + smb5_vbus: qcom,smb5-vbus { + regulator-name = "smb5-vbus"; + }; -&pm7250b_vib { - qcom,vib-ldo-volt-uv = <2900000>; -}; - -&thermal_zones { - pa-therm0-usr { - status = "disabled"; - }; - sdm-skin-therm-usr { - status = "disabled"; - }; - pa-therm1-usr { - status = "disabled"; - }; - quiet-therm-usr { - status = "disabled"; - }; - rfc-cam-pa3-usr { - status = "disabled"; - }; - camera-therm-usr { - status = "disabled"; - }; - chg-skin-therm-usr { - status = "disabled"; - }; - conn-therm-usr { - status = "disabled"; - }; - xo-therm-usr { - status = "disabled"; - }; - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - msm_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - chg_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; + smb5_vconn: qcom,smb5-vconn { + regulator-name = "smb5-vconn"; }; }; -&pm8008_8 { - status = "disabled"; +&pm7250b_pdphy { + vdd-pdphy-supply = <&L3A>; + vbus-supply = <&smb5_vbus>; + vconn-supply = <&smb5_vconn>; + + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_TYPEC_CC_ORIENTATION>, + <&pm7250b_charger PSY_IIO_CONNECTOR_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_POWER_ROLE>, + <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, + <&pm7250b_charger PSY_IIO_TYPEC_SRC_RP>, + <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_PR_SWAP>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_PE_START>; + io-channel-names = "pd_active", + "typec_cc_orientation", + "connector_type", + "typec_power_role", + "pd_usb_suspend_supported", + "typec_src_rp", + "pd_in_hard_reset", + "pr_current_max", + "pr_swap", + "pd_voltage_min", + "pd_voltage_max", + "real_type", + "typec_mode", + "pe_start"; }; -&pm8008_9 { - status = "disabled"; -}; +&usb0 { + extcon = <&pm7250b_pdphy>, <&pm7250b_charger>, <&eud>; -&sx937x { - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <5>; - Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <0xff>; - Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x70 /*irq mask*/ - 0x8008 0x0 - 0x4280 0x0 - 0x8020 0x32 - 0x8028 0x25E /*AFE_PARAM_PH0*/ - 0x8034 0x25E /*AFE_PARAM_PH1*/ - 0x8040 0x25E /*AFE_PARAM_PH2*/ - 0x804C 0x25E /*AFE_PARAM_PH3*/ - 0x8058 0x25E /*AFE_PARAM_PH4*/ - 0x8064 0x25E /*AFE_PARAM_PH5*/ - 0x8070 0x25E /*AFE_PARAM_PH6*/ - 0x807C 0x25E /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ - 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ - 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 - 0x8098 0xC8644D2C - 0x80B8 0xC8644D2C - 0x80D8 0xC8644D2C - 0x80F8 0xC8644D2C - 0x8118 0xC8644D2C - 0x8138 0xC8644D2C - 0x8158 0xC8644D2C - 0x8178 0xC8644D2C - 0x80A0 0x0 - 0x80C0 0x0 - 0x80E0 0x0 - 0x8100 0x0 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 - 0x8188 0x0 - 0x818C 0x0 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x2AD67000 - 0x80B0 0x2AD67000 - 0x80D0 0x2AD67000 - 0x80F0 0x2AD67000 - 0x8110 0x2AD67000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 - 0x80CC 0x60200018 - 0x80EC 0x60200018 - 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - 0x8024 0x7F7F - 0x4280 0xe - >; -}; - -&qusb_phy0 { - qcom,qusb-phy-init-seq = - /* */ - <0x23 0x210 /* PWR_CTRL1 */ - 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ - 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ - 0x80 0x2c /* PLL_CMODE */ - 0x0a 0x184 /* PLL_LOCK_DELAY */ - 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ - 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ - 0x21 0x214 /* PWR_CTRL2 */ - 0x08 0x220 /* IMP_CTRL1 */ - 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ - 0xca 0x248 /* TUNE3 */ - 0x04 0x24c /* TUNE4 */ - 0x03 0x250 /* TUNE5 */ - 0x30 0x23c /* CHG_CTRL2 */ - 0x22 0x210>; /* PWR_CTRL1 */ - - qcom,qusb-phy-host-init-seq = - /* */ - <0x23 0x210 /* PWR_CTRL1 */ - 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ - 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ - 0x80 0x2c /* PLL_CMODE */ - 0x0a 0x184 /* PLL_LOCK_DELAY */ - 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ - 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ - 0x21 0x214 /* PWR_CTRL2 */ - 0x08 0x220 /* IMP_CTRL1 */ - 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ - 0xca 0x248 /* TUNE3 */ - 0x04 0x24c /* TUNE4 */ - 0x03 0x250 /* TUNE5 */ - 0x30 0x23c /* CHG_CTRL2 */ - 0x22 0x210>; /* PWR_CTRL1 */ + #io-channel-cells = <1>; + io-channels= <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; + io-channel-names = "chg_type"; }; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index b15ad387ba35..09d5168a0dfb 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -9,540 +9,433 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-moto-common-overlay.dtsi" -#include "cypfg-display.dtsi" -#include "cypfg-touchscreen.dtsi" -#include "denver-sensors.dtsi" -#include "camera/holi-camera-sensor-mot-cypfg-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "cypfg-fps-overlay.dtsi" -#include "moto_therm_sys_temp.dtsi" +#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include +#include "camera/holi-camera-pm6125-overlay.dtsi" + +&wcd938x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddio"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wsa881x_i2c_e { + cdc-vdd-1p8-supply = <&L9A>; +}; + +&wsa881x_i2c_f { + cdc-vdd-1p8-supply = <&L9A>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; &sdhc_2 { status = "ok"; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; }; -&tlmm { - google_key_default: google_key_default { - mux { - pins = "gpio11"; - function = "gpio"; - }; +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; - config { - pins = "gpio11"; - drive-strength = <2>; - bias-pull-up; - }; - }; + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; - cam_pmic_en_default: cam_pmic_en_default { - mux { - pins = "gpio38"; - function = "gpio"; - }; - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-down; - output-low; - }; - }; - - nfc { - nfc_int_active: nfc_int_active { - /* active state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_int_suspend: nfc_int_suspend { - /* sleep state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_active: nfc_enable_active { - mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_suspend: nfc_enable_suspend { - mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - - nfc_clk_req_active: nfc_clk_req_active { - /* active state */ - mux { - /* GPIO 7: NFC CLK Req*/ - pins = "gpio7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - - nfc_clk_req_suspend: nfc_clk_req_suspend { - /* sleep state */ - mux { - /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - }; + status = "ok"; }; -&gpio_keys { - pinctrl-0 = <&key_vol_up_default &google_key_default>; +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; }; -&qupv3_se7_i2c { +&qupv3_se0_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 48 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; interrupt-parent = <&tlmm>; interrupts = <9 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>; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + mtp_batterydata: qcom,battery-data { + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-alium-3600mah.dtsi" + #include "qg-batterydata-atl466271_3300mAh.dtsi" + #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + }; +}; + +&soc { + touch_avdd: touch_avdd_stub { + /* + * Touch eLDO controlled by gpio#53 is always ON. + * Using dummy regulator. + */ + compatible = "qcom,stub-regulator"; + regulator-name = "touch_avdd_stub"; + qcom,hpm-min-load = <10000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L9A>; + avdd-supply = <&touch_avdd>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + +&pm7250b_charger { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, + <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_MODE>, + <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_OUTPUT_MODE>, + <&smb1394_div2_cp_primary PSY_IIO_MIN_ICL>, + <&smb1394_div2_cp_primary PSY_IIO_CP_SWITCHER_EN>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ILIM>, + <&smb1394_div2_cp_primary PSY_IIO_CP_DIE_TEMP>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now", + "cp_parallel_mode", + "cp_parallel_output_mode", + "cp_min_icl", + "cp_switcher_en", + "cp_enable", + "cp_ilim", + "cp_die_temp"; + qcom,battery-data = <&mtp_batterydata>; + qcom,sec-charger-config = <1>; + qcom,auto-recharge-soc = <98>; + qcom,step-charging-enable; + qcom,sw-jeita-enable; + qcom,charger-temp-max = <800>; + qcom,smb-temp-max = <800>; + qcom,suspend-input-on-debug-batt; + qcom,fcc-stepping-enable; + qcom,fcc-step-delay-ms = <100>; + qcom,fcc-step-size-ua = <100000>; + qcom,smb-internal-pull-kohm = <0>; + qcom,en-skin-therm-mitigation; + qcom,hvdcp3-standalone-config; +}; + +&pm7250b_qg { + status = "ok"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>, + <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done", + "cp_charging_enabled"; + qcom,battery-data = <&mtp_batterydata>; + qcom,qg-iterm-ma = <150>; + qcom,hold-soc-while-full; + qcom,linearize-soc; + qcom,cl-feedback-on; + qcom,tcss-enable; + qcom,fvss-enable; + qcom,fvss-vbatt-mv = <3300>; + qcom,bass-enable; + qcom,use-cp-iin-sns; +}; + +&pm7250b_vadc { + smb1390_therm@e { + qcom,scale-fn-type = ; + }; +}; + +&pm7250b_gpios { + smb_stat { + smb_stat_default: smb_stat_default { + pins = "gpio6"; + function = "normal"; + input-enable; + bias-pull-up; + qcom,pull-up-strength = ; + power-source = <0>; + }; }; }; &qupv3_se10_i2c { status = "ok"; - - cam_pmic: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; - - regulators { - cam_ldo1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo3: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo4: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo5: ldo5 { - regulator-name = "ldo5"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo6: ldo6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo7: ldo7 { - regulator-name = "ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - }; - }; + #include "smb1394.dtsi" }; -&mot_batterydata { - df-serialnum = "SB18C77591"; - qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-jk50-atl-5000mah.dtsi" - #include "qg-batterydata-jk50-scud-5000mah.dtsi" +&smb1394 { + interrupts = <0x2 0xc5 0x0 IRQ_TYPE_LEVEL_LOW>; + interrupt-parent = <&spmi_bus>; + interrupt-names = "smb1394"; + pinctrl-names = "default"; + qcom,enable-toggle-stat; + pinctrl-0 = <&smb_stat_default>; + status = "ok"; }; -&pm7250b_mmi { - qcom,mmi-temp-zones = <0 4200 1000 0>, - <15 0 1000 1000>, - <45 0 3000 3000>, - <60 4200 2500 0>; - qcom,iterm-ma = <150>; +&smb1394_div2_cp_primary { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM2>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_ADAPTER_CC_MODE>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_SMB_EN_MODE>, + <&pm7250b_charger PSY_IIO_SMB_EN_REASON>; + io-channel-names = "die_temp", + "real_type", + "adapter_cc_mode", + "pd_current_max", + "input_current_settled", + "smb_en_mode", + "smb_en_reason"; + qcom,parallel-input-mode = <1>; /* USBIN */ + qcom,parallel-output-mode = <2>; /* VBAT */ + status = "ok"; }; +#include "camera/holi-camera-sensor-pm6125-mtp.dtsi" + &pm7250b_charger { - qcom,dcp-curr-max = <2000000>; - qcom,fcc-max-ua = <3000000>; - qcom,fv-max-uv = <4400000>; - qcom,thermal-mitigation = <3000000 2500000 - 2000000 1500000 - 1200000 900000 - 600000 300000>; -}; + dpdm-supply = <&qusb_phy0>; -&pm7250b_qg { - qcom,qg-iterm-ma = <500>; -}; + smb5_vbus: qcom,smb5-vbus { + regulator-name = "smb5-vbus"; + }; -&pm7250b_vib { - qcom,vib-ldo-volt-uv = <2900000>; -}; - -&thermal_zones { - pa-therm0-usr { - status = "disabled"; - }; - sdm-skin-therm-usr { - status = "disabled"; - }; - pa-therm1-usr { - status = "disabled"; - }; - quiet-therm-usr { - status = "disabled"; - }; - rfc-cam-pa3-usr { - status = "disabled"; - }; - camera-therm-usr { - status = "disabled"; - }; - chg-skin-therm-usr { - status = "disabled"; - }; - conn-therm-usr { - status = "disabled"; - }; - xo-therm-usr { - status = "disabled"; - }; - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - msm_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - chg_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; + smb5_vconn: qcom,smb5-vconn { + regulator-name = "smb5-vconn"; }; }; -&pm8008_8 { - status = "disabled"; +&pm7250b_pdphy { + vdd-pdphy-supply = <&L3A>; + vbus-supply = <&smb5_vbus>; + vconn-supply = <&smb5_vconn>; + + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_TYPEC_CC_ORIENTATION>, + <&pm7250b_charger PSY_IIO_CONNECTOR_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_POWER_ROLE>, + <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, + <&pm7250b_charger PSY_IIO_TYPEC_SRC_RP>, + <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_PR_SWAP>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_PE_START>; + io-channel-names = "pd_active", + "typec_cc_orientation", + "connector_type", + "typec_power_role", + "pd_usb_suspend_supported", + "typec_src_rp", + "pd_in_hard_reset", + "pr_current_max", + "pr_swap", + "pd_voltage_min", + "pd_voltage_max", + "real_type", + "typec_mode", + "pe_start"; }; -&pm8008_9 { - status = "disabled"; -}; +&usb0 { + extcon = <&pm7250b_pdphy>, <&pm7250b_charger>, <&eud>; -&sx937x { - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <5>; - Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <0xff>; - Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x70 /*irq mask*/ - 0x8008 0x0 - 0x4280 0x0 - 0x8020 0x32 - 0x8028 0x25E /*AFE_PARAM_PH0*/ - 0x8034 0x25E /*AFE_PARAM_PH1*/ - 0x8040 0x25E /*AFE_PARAM_PH2*/ - 0x804C 0x25E /*AFE_PARAM_PH3*/ - 0x8058 0x25E /*AFE_PARAM_PH4*/ - 0x8064 0x25E /*AFE_PARAM_PH5*/ - 0x8070 0x25E /*AFE_PARAM_PH6*/ - 0x807C 0x25E /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ - 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ - 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 - 0x8098 0xC8644D2C - 0x80B8 0xC8644D2C - 0x80D8 0xC8644D2C - 0x80F8 0xC8644D2C - 0x8118 0xC8644D2C - 0x8138 0xC8644D2C - 0x8158 0xC8644D2C - 0x8178 0xC8644D2C - 0x80A0 0x0 - 0x80C0 0x0 - 0x80E0 0x0 - 0x8100 0x0 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 - 0x8188 0x0 - 0x818C 0x0 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x2AD67000 - 0x80B0 0x2AD67000 - 0x80D0 0x2AD67000 - 0x80F0 0x2AD67000 - 0x8110 0x2AD67000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 - 0x80CC 0x60200018 - 0x80EC 0x60200018 - 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - 0x8024 0x7F7F - 0x4280 0xe - >; -}; - -&qusb_phy0 { - qcom,qusb-phy-init-seq = - /* */ - <0x23 0x210 /* PWR_CTRL1 */ - 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ - 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ - 0x80 0x2c /* PLL_CMODE */ - 0x0a 0x184 /* PLL_LOCK_DELAY */ - 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ - 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ - 0x21 0x214 /* PWR_CTRL2 */ - 0x08 0x220 /* IMP_CTRL1 */ - 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ - 0xca 0x248 /* TUNE3 */ - 0x04 0x24c /* TUNE4 */ - 0x03 0x250 /* TUNE5 */ - 0x30 0x23c /* CHG_CTRL2 */ - 0x22 0x210>; /* PWR_CTRL1 */ - - qcom,qusb-phy-host-init-seq = - /* */ - <0x23 0x210 /* PWR_CTRL1 */ - 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ - 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ - 0x80 0x2c /* PLL_CMODE */ - 0x0a 0x184 /* PLL_LOCK_DELAY */ - 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ - 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1c 0x198 /* PLL_BIAS_CONTROL_2 */ - 0x21 0x214 /* PWR_CTRL2 */ - 0x08 0x220 /* IMP_CTRL1 */ - 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ - 0xca 0x248 /* TUNE3 */ - 0x04 0x24c /* TUNE4 */ - 0x03 0x250 /* TUNE5 */ - 0x30 0x23c /* CHG_CTRL2 */ - 0x22 0x210>; /* PWR_CTRL1 */ + #io-channel-cells = <1>; + io-channels= <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; + io-channel-names = "chg_type"; }; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi new file mode 100644 index 000000000000..50fe8f11883f --- /dev/null +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -0,0 +1,58 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-pm6125-overlay.dtsi" +#include "holi-regulators-pm6125.dtsi" + +#include "carrier-channel-ids.dtsi" +#include + +&utags { + compatible = "mmi,utags"; + mmi,main-utags = "/dev/block/bootdevice/by-name/utags"; + mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup"; +}; + +&hw { + compatible = "mmi,utags"; + mmi,dir-name = "hw"; + mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; +}; + +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + no-dump-oops; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; From e7b1cfbce870fd90e1f59f9360da95656c48d6a1 Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 1 Jul 2021 11:30:47 +0800 Subject: [PATCH 0264/1247] qcom: Remove pm8008_active https://gerrit.mot.com/#/c/1771685/ has removed pm8008_active definition, As per liaohj suggestion, also remove it on holi-pmic-overlay-pm6125.dtsi. Change-Id: I57062cc90c2fe2537b23a22ceab58d2ef8cd234d Reviewed-on: https://gerrit.mot.com/1998765 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-pmic-overlay-pm6125.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/qcom/holi-pmic-overlay-pm6125.dtsi b/qcom/holi-pmic-overlay-pm6125.dtsi index 1e7a198c34a1..b4e6769ace5b 100644 --- a/qcom/holi-pmic-overlay-pm6125.dtsi +++ b/qcom/holi-pmic-overlay-pm6125.dtsi @@ -395,8 +395,6 @@ reg = <0x8>; #address-cells = <1>; #size-cells = <0>; - pinctrl-names = "default"; - pinctrl-0 = <&pm8008_active>; pm8008_chip: qcom,pm8008-chip@900 { compatible = "qcom,pm8008-chip"; From ac8de3319852bc53d88e2996d984c52163aeb8ad Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 1 Jul 2021 12:56:52 +0800 Subject: [PATCH 0265/1247] qcom: Add NFC initialized config https://gerrit.mot.com/#/c/1778357/ has removed nfc from base dts, so add NFC config in holi-cypfq-common-overlay.dtsi just l(CR) holi-denver-common-overlay.dtsi to avoid build error. Change-Id: If13b65b76d8edd563a3fd908f1ffb52ee9df8920 Reviewed-on: https://gerrit.mot.com/1998766 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 95 +++++++++++++++++++++++++++++ qcom/holi-cypfr-common-overlay.dtsi | 95 +++++++++++++++++++++++++++++ 2 files changed, 190 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 09d5168a0dfb..fc173bfb01f8 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -120,6 +120,101 @@ status = "ok"; }; +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + &qupv3_se0_i2c { status = "ok"; #address-cells = <1>; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 09d5168a0dfb..fc173bfb01f8 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -120,6 +120,101 @@ status = "ok"; }; +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + &qupv3_se0_i2c { status = "ok"; #address-cells = <1>; From b1a17829642a8883776c4995eb4c41bed37151c3 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 1 Jul 2021 17:38:34 +0800 Subject: [PATCH 0266/1247] arm/dt: add platform-strength-ctrl for dsi arm/dt: Add platform-strength-ctrl for dsi, fix error: incorrect phy qcom,platform-strength-ctrl settings, exp=20, act=10 Change-Id: I1f283a453e80410716cd648ceb8997326a619e34 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/1999291 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 50fe8f11883f..87e662d72c4c 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -56,3 +56,11 @@ 0x0 MMI_ANNOTATE_SIZE>; }; }; + +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 00 00 + 55 03 00 00 + 55 03 00 00 + 55 03 00 00 + 55 00 00 00]; +}; From 1ae18583ca1fb6cbc905ce7a36a92745533a7d2d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 1 Jul 2021 18:18:39 +0800 Subject: [PATCH 0267/1247] arm64/dts: cypfq: add the panel dtsi file copy this file from cypfg. 1.change the reset pin to pmr6375 gpio2 2.disable pm6150l and enable tps65132 Change-Id: Id81771b2b91374a6b8504967ab593d8838329d50 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/1997768 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 194 ++++++++++++++++++++++++++++ qcom/holi-cypfq-common-overlay.dtsi | 1 + 2 files changed, 195 insertions(+) create mode 100644 qcom/cypfq-display.dtsi diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi new file mode 100644 index 000000000000..bd2f3cf9066e --- /dev/null +++ b/qcom/cypfq-display.dtsi @@ -0,0 +1,194 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi" + +&qupv3_se10_i2c { + status = "ok"; + + tps65132@3e { + compatible = "ti,tps65132"; + reg = <0x3e>; + + tps65132_outp:outp { + regulator-name = "outp"; + regulator-boot-on; + regulator-always-on; + enable-gpios = <&tlmm 84 0>; + }; + + tps65132_outn:outn { + regulator-name = "outn"; + regulator-boot-on; + regulator-always-on; + regulator-active-discharge = <0>; + enable-gpios = <&tlmm 85 0>; + }; + }; + +}; + +&sde_dsi { + lab-supply = <&tps65132_outp>; + ibb-supply = <&tps65132_outn>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; +}; +&soc { + dsi_panel_pwr_supply_cypfg: dsi_panel_pwr_supply_cypfg{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + }; +}; + + +&dsi_tm_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + qcom,platform-reset-gpio-always-on; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-type = "HBM_TYPE_LCD_DCS_GPIO"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_csot_gc7372_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + + qcom,mdss-dsi-bl-min-level = <27>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <4095>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "csot"; + //qcom,platform-reset-gpio-always-on; + + //qcom,tp_state_check_enable; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-type = "HBM_TYPE_LCD_DCS_GPIO"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index fc173bfb01f8..58e29e352d6c 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -19,6 +19,7 @@ #include "display/holi-sde-display-mtp-pm6125.dtsi" #include #include "camera/holi-camera-pm6125-overlay.dtsi" +#include "cypfq-display.dtsi" &wcd938x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 43425e5de582f8018786fa7b9ff9074e5be581a8 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Thu, 1 Jul 2021 21:27:01 +0800 Subject: [PATCH 0268/1247] arm64/dt: corfuq: add pm6125 dtsi to corfuq pm6125 is compatibel with pm6375, so add pm6125 dtsi to corfuq project Change-Id: I74762a67f70625a6d47ba01bf0b494773af3dce1 Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/1999566 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 296 +++++++++++++++++---------- 1 file changed, 189 insertions(+), 107 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 120072dad2ed..ed6ff3df1193 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -10,14 +10,26 @@ * GNU General Public License for more details. */ -#include "holi-moto-common-overlay.dtsi" -#include "corfup-display.dtsi" -#include "corfup-touchscreen.dtsi" -#include "corfup-fps-overlay.dtsi" +//#include "holi-moto-common-overlay.dtsi" +//#include "corfup-display.dtsi" +//#include "corfup-touchscreen.dtsi" +//#include "corfup-fps-overlay.dtsi" +//#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +//#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +//#include "moto_therm_sys_temp.dtsi" +//#include "corfup-charger.dtsi" + +#include "holi-pm6125-moto-common-overlay.dtsi" + +#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "moto_therm_sys_temp.dtsi" -#include "corfup-charger.dtsi" +#include "corfup-fps-overlay.dtsi" &tlmm { google_key_default: google_key_default { @@ -129,18 +141,21 @@ -&gpio_keys { - pinctrl-0 = <&key_vol_up_default &google_key_default>; +&soc { + gpio_keys { - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; }; &sdhc_2 { @@ -240,107 +255,172 @@ }; }; -&sx937x { - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L11A>; + avdd-supply = <&L6A>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 + sx937x:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + //cap_vdd-supply = <&pm6150a_l8>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; - status = "ok"; + status = "ok"; + }; }; &qupv3_se7_i2c { @@ -388,6 +468,7 @@ }; }; +/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -557,6 +638,7 @@ }; }; }; +*/ &pm8008_8 { status = "disabled"; From efbf358d75ba9c51333ceaafe652b571e2e7eb7c Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 2 Jul 2021 11:35:36 +0800 Subject: [PATCH 0269/1247] cypfq: arm64/dts: Add touch devicetree - Add touch device tree for cypfq since now we have common overlay for cypfq. Change-Id: I36ebe4756f9fda370ef28364eac412f158f242f8 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2000230 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 58e29e352d6c..11b87fa309f7 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -20,6 +20,7 @@ #include #include "camera/holi-camera-pm6125-overlay.dtsi" #include "cypfq-display.dtsi" +#include "cypfg-touchscreen.dtsi" &wcd938x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 9b566e18b1851609348e291c571c0db629d24fcf Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 2 Jul 2021 14:18:43 +0800 Subject: [PATCH 0270/1247] arm64/dts:Cypfq/Cypfr:audio:config snd card Cypfq for new 4350 pro chipset. Cypfr for new 6375 chipset. config snd card base the new dtsi. Change-Id: Icf81eec3231c4079978587cdc8629e34b31e200c Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2000376 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 36 +---------------------------- qcom/holi-cypfr-common-overlay.dtsi | 36 +---------------------------- 2 files changed, 2 insertions(+), 70 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 11b87fa309f7..ede9027a0b9a 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-audio-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -22,40 +22,6 @@ #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" -&wcd938x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddio"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wsa881x_i2c_e { - cdc-vdd-1p8-supply = <&L9A>; -}; - -&wsa881x_i2c_f { - cdc-vdd-1p8-supply = <&L9A>; -}; - /* Dummy LDO reference */ &sdhc_1 { status = "ok"; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index fc173bfb01f8..d792a84c2c76 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-audio-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -20,40 +20,6 @@ #include #include "camera/holi-camera-pm6125-overlay.dtsi" -&wcd938x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddio"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wsa881x_i2c_e { - cdc-vdd-1p8-supply = <&L9A>; -}; - -&wsa881x_i2c_f { - cdc-vdd-1p8-supply = <&L9A>; -}; - /* Dummy LDO reference */ &sdhc_1 { status = "ok"; From cb0a98fbf0cc329c3c48030663d2fba233858e14 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 2 Jul 2021 16:52:26 +0800 Subject: [PATCH 0271/1247] arm64/dts:cofig power supply for sar in corfuq&r cofig power supply for sar on 4350 pro & 6375. according to HW : PMIC on 4350 pro & 6375 is PM6375 Change-Id: Ie6aa855ce37446782ac18aadcb065bffce2954d0 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2000668 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Yeqing Wang Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index ed6ff3df1193..da2efe4de1cf 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -283,6 +283,11 @@ }; }; +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + &qupv3_se8_i2c { status = "okay"; qcom,i2c-touch-active="synaptics,tcm-i2c"; @@ -327,7 +332,7 @@ interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 24 0x02>; //please fix me - //cap_vdd-supply = <&pm6150a_l8>; + cap_vdd-supply = <&pm6125_l12>; /*use PH4/5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <4>; From 2c312069ebf5f857a179af6117894c363fd1bcd4 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 2 Jul 2021 20:42:54 +0800 Subject: [PATCH 0272/1247] arm64/dts: cypfq: update the config for panel 1.change the backlight type 2.change the pwr_supply name. Change-Id: Ic075ae3cf304fbc03171c9cb993881073d6c1415 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2000972 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index bd2f3cf9066e..ff7271b23d77 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -28,6 +28,11 @@ }; &sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + lab-supply = <&tps65132_outp>; ibb-supply = <&tps65132_outn>; vddio-supply = <&L13A>; @@ -35,7 +40,7 @@ qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; }; &soc { - dsi_panel_pwr_supply_cypfg: dsi_panel_pwr_supply_cypfg{ + dsi_panel_pwr_supply_cypfq: dsi_panel_pwr_supply_cypfq{ #address-cells = <1>; #size-cells = <0>; @@ -68,6 +73,7 @@ qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; }; + }; }; @@ -76,9 +82,9 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <27>; qcom,mdss-dsi-bl-max-level = <4095>; @@ -127,9 +133,9 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_wled"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <27>; qcom,mdss-dsi-bl-max-level = <4095>; @@ -178,7 +184,9 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfg>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x09>; From 34a15fad0cf4eda9eba3ca636696aeea41d830a7 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 2 Jul 2021 20:45:40 +0800 Subject: [PATCH 0273/1247] arm64/dts: cypfq: remove lab and ibb supply Now, the tps65132 is not ready. So we remove them. Change-Id: If0b197f6a61fef43babe4913e964fe8662296c49 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2000973 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 48 +++++++++++++++++++++++++++++++++++++---- 1 file changed, 44 insertions(+), 4 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index ff7271b23d77..749ed523f7db 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -27,17 +27,51 @@ }; +&tlmm { + sde_avdd_avee_enable_active { + sde_avdd_avee_enable_active: sde_avdd_avee_enable_active { + mux { + pins = "gpio84", "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio84", "gpio85"; + drive-strength = <8>; + bias-pull-up; + }; + }; + }; + + sde_avdd_avee_enable_suspend { + sde_avdd_avee_enable_suspend: sde_avdd_avee_enable_suspend { + mux { + pins = "gpio84", "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio84", "gpio85"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; +}; + &sde_dsi { /delete-property/ lab-supply; /delete-property/ ibb-supply; /delete-property/ vddio-supply; /delete-property/ qcom,dsi-default-panel; - lab-supply = <&tps65132_outp>; - ibb-supply = <&tps65132_outn>; + //lab-supply = <&tps65132_outp>; + //ibb-supply = <&tps65132_outn>; vddio-supply = <&L13A>; qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; + + pinctrl-1 = <&sde_avdd_avee_enable_active &sde_avdd_avee_enable_suspend>; }; &soc { dsi_panel_pwr_supply_cypfq: dsi_panel_pwr_supply_cypfq{ @@ -52,7 +86,7 @@ qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; }; - +/* qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "lab"; @@ -72,7 +106,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; - }; + };*/ }; }; @@ -82,6 +116,9 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,avdd-enable-gpio = <&tlmm 84 0>; + qcom,avee-enable-gpio = <&tlmm 85 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; @@ -133,6 +170,9 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,avdd-enable-gpio = <&tlmm 84 0>; + qcom,avee-enable-gpio = <&tlmm 85 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; From 41a2c8aae989a82fba25b229b071d6e95e13a1fe Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 2 Jul 2021 22:27:44 +0800 Subject: [PATCH 0274/1247] arm/dt: corfuq: add display panel configs arm/dt: Add display panel configs, change some ldo names, delete 6150 ldo. Change-Id: Ida4259e31135a47e407ee67d37a66a4beeaffc42 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2001049 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/corfuq-display.dtsi | 81 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 81 insertions(+) create mode 100644 qcom/corfuq-display.dtsi diff --git a/qcom/corfuq-display.dtsi b/qcom/corfuq-display.dtsi new file mode 100644 index 000000000000..3afdb668e8e0 --- /dev/null +++ b/qcom/corfuq-display.dtsi @@ -0,0 +1,81 @@ + +#include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" + + +&sde_dsi { + /delete-property/ qcom,dsi-default-panel; + qcom,dsi-default-panel = <&dsi_vtdr6110c_visionox_video>; + + vddio-supply = <&L13A>; +}; + +&soc { + dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <20>; + }; + }; +}; + +&dsi_vtdr6110c_visionox_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x3B>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + 0A 09 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; From 5f6d81fd66ceab0bf5a42586eded52bc7b690343 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 2 Jul 2021 22:31:03 +0800 Subject: [PATCH 0275/1247] arm/dt: corfuq: add touch focaltech configs arm/dt: Add touch panel focaltech configs, rename ldo from pm6150 to pm6375. Change-Id: I42fa125f41e76d86d9443659dbab03582524d61f Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2001051 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/corfuq-touchscreen.dtsi | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100755 qcom/corfuq-touchscreen.dtsi diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi new file mode 100755 index 000000000000..7cd21a412eb7 --- /dev/null +++ b/qcom/corfuq-touchscreen.dtsi @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_spi { + status = "disabled"; +}; + +&qupv3_se0_i2c { + status = "ok"; + + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x38>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 1080 2400>; + vdd-supply = <&L22A>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + panel = <&dsi_vtdr6110c_visionox_video>; + + /* touchscreen_mmi class entries*/ + mmi,usb-charger-detection; + mmi,class-entry-name = "ft3519"; + }; +}; From dafd3009ebaee5e83c69527a22ee075913a1c62c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 2 Jul 2021 22:34:38 +0800 Subject: [PATCH 0276/1247] arm/dt: corfuq: add display and touch configs to product arm/dt: Add display and touch configs to product dtsi. Change-Id: I5f3a952d0976428952f690d7ec91a5affdbfeb82 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2001053 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index da2efe4de1cf..ebf47fb1dcb6 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -30,6 +30,8 @@ #include #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "corfup-fps-overlay.dtsi" +#include "corfuq-display.dtsi" +#include "corfuq-touchscreen.dtsi" &tlmm { google_key_default: google_key_default { From 6c59f7cb374981f2b7df45c7d1bf8d81c176790f Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Sat, 3 Jul 2021 17:36:39 +0800 Subject: [PATCH 0277/1247] arm/dt: change corfuq configs, boot to idle - add sdhc to fix panic - add ufs for fs mount - remove camera to fix panic - remove audio for boot Change-Id: Ia579e4cb8d00458e789e50b3f282d16d277f0abb Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2001448 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 67 ++++++++++++++++++++++++++-- qcom/holi-corfuq-dvt1a-overlay.dts | 1 - qcom/holi-corfuq-dvt1c-overlay.dts | 1 - 3 files changed, 64 insertions(+), 5 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index ebf47fb1dcb6..3937e16e8686 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -21,14 +21,14 @@ #include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-audio-overlay.dtsi" +//#include "holi-audio-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include -#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "camera/holi-camera-pm6125-overlay.dtsi" #include "corfup-fps-overlay.dtsi" #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" @@ -160,9 +160,70 @@ }; }; +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + &sdhc_2 { status = "ok"; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; }; &qupv3_se10_i2c { diff --git a/qcom/holi-corfuq-dvt1a-overlay.dts b/qcom/holi-corfuq-dvt1a-overlay.dts index 466c03550d25..541cfa8c85a2 100644 --- a/qcom/holi-corfuq-dvt1a-overlay.dts +++ b/qcom/holi-corfuq-dvt1a-overlay.dts @@ -14,7 +14,6 @@ /plugin/; #include "holi-corfuq-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" / { model = "corfuq"; diff --git a/qcom/holi-corfuq-dvt1c-overlay.dts b/qcom/holi-corfuq-dvt1c-overlay.dts index 64b80f491bec..7d4e21e13528 100644 --- a/qcom/holi-corfuq-dvt1c-overlay.dts +++ b/qcom/holi-corfuq-dvt1c-overlay.dts @@ -14,7 +14,6 @@ /plugin/; #include "holi-corfuq-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" / { model = "corfuq"; From 5e8a6124283a635fc0a0821151fb535b0a10bb16 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Sat, 3 Jul 2021 14:08:36 +0800 Subject: [PATCH 0278/1247] arm/dts: Config FCC for corfu 5G product arm/dts Config FCC for courf 5G product Change-Id: I8d007d62b2acfb060d6ccb7aa3908beced6c0766 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2001402 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 14 ++++++++++++-- qcom/holi-moto-common-overlay.dtsi | 2 ++ qcom/qg-batterydata-ng50-atl-5000mah.dtsi | 4 ++-- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 10cbf0108d63..1a49e12ff136 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -61,7 +61,7 @@ "time_to_full_now", "sc8549_input_voltage_now"; qcom,fcc-max-ua = <3000000>; - qcom,fv-max-uv = <4450000>; + qcom,fv-max-uv = <4480000>; qcom,dcp-curr-max = <2000000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 @@ -75,8 +75,18 @@ qcom,mmi-temp-zones = <0 4200 1000 0>, <10 4250 3000 1000>, <15 0 3000 3000>, + <25 0 4000 4000>, + <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; + qcom,mmi-ffc-zones = <4450 243 789>, + <4450 243 789>, + <4450 243 789>, + <4480 575 1186>, + <4480 635 1295>, + <4480 661 1356>, + <4450 243 789>; + qcom,iterm-ma = <243>; }; @@ -205,7 +215,7 @@ <0 4200 1000 0 0>, <10 4250 3000 4450 1000>, <15 4450 3000 0 0>, - <45 4350 5800 4450 4000>, + <45 4350 5800 4480 4000>, <60 4200 4000 0 0>; mmi,thermal-mitigation = <5800000>, diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index d1135ec30edd..cb6a9cbcdce3 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -430,6 +430,7 @@ <&pm7250b_qg PSY_IIO_TEMP>, <&pm7250b_qg PSY_IIO_CAPACITY>, <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_BATT_FULL_CURRENT>, <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>; io-channel-names = "usb_ctm_current_max", "main_current_max", @@ -446,6 +447,7 @@ "temp", "capacity", "charge_full", + "batt_full_current", "charge_full_design"; qcom,enable-charging-limit; qcom,upper-limit-capacity = <65>; diff --git a/qcom/qg-batterydata-ng50-atl-5000mah.dtsi b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi index 214b177c1bf1..7352d0913e0b 100644 --- a/qcom/qg-batterydata-ng50-atl-5000mah.dtsi +++ b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi @@ -4,8 +4,8 @@ qcom,ng50-atl-5000mah { /* 4984199_Lenovo_corfp_5000mAH_PM7250B_averaged_MasterSlave_Dec17th2020 */ serialnum = "SB18D17151"; qcom,sdam-magic-number = <0x18D17151>; - qcom,max-voltage-uv = <4450000>; - qcom,fg-cc-cv-threshold-uv = <4440000>; + qcom,max-voltage-uv = <4480000>; + qcom,fg-cc-cv-threshold-uv = <4470000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <3440>; From f25e87bc6e927a4717ecee75d3e00fef6298c0a9 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 2 Jul 2021 10:18:24 +0800 Subject: [PATCH 0279/1247] arm64/dt: config nfc dts node for cypfq and cypfr Cyprus 5G 4350 pro and 6375 use i2c 7 bus for nfc Nfc controller is st21nfcj Change-Id: I28b814f7e8b1ab3047c16a5c253aaf7f3d995733 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2000093 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 26 +++++++++++++------------- qcom/holi-cypfr-common-overlay.dtsi | 26 +++++++++++++------------- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index ede9027a0b9a..cc0b4fc6ed83 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -183,26 +183,26 @@ }; }; -&qupv3_se0_i2c { +&qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_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>; }; }; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index d792a84c2c76..633307766f2a 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -181,26 +181,26 @@ }; }; -&qupv3_se0_i2c { +&qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_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>; }; }; From 08c122f86e24e24399bd81b0143079d3b6d8eaf2 Mon Sep 17 00:00:00 2001 From: liaohj Date: Mon, 5 Jul 2021 10:53:03 +0800 Subject: [PATCH 0280/1247] arm64/dts:Cypfq/Cpyfr: config wcd9370 vdd 4350pro & 6375 use pm6125 . change wcd 9370 power supply. Change-Id: Ied7f6c3e773499cfe169876ac6a7fcc122583b7b Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2001731 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 13 +++++++++++++ qcom/holi-cypfr-common-overlay.dtsi | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index cc0b4fc6ed83..68b42f96a459 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -22,6 +22,19 @@ #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + /* Dummy LDO reference */ &sdhc_1 { status = "ok"; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 633307766f2a..79498baaea89 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -20,6 +20,19 @@ #include #include "camera/holi-camera-pm6125-overlay.dtsi" +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + /* Dummy LDO reference */ &sdhc_1 { status = "ok"; From 127244ebc795b21d92033643923c5aed2f725318 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 5 Jul 2021 14:16:14 +0800 Subject: [PATCH 0281/1247] cypfq: arm64/dts: Removed unused touch dts configuration - Since we don't have any projects will use synaptics touch screen on qcom 4350, so remove synaptics dts configuration from moto common overlay. Change-Id: Ie4387c4dda86c70bf46e3c078bd09e00f5b32bbb Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2001910 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 34 ----------------------------- 1 file changed, 34 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 68b42f96a459..5cc2af3f2f10 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -260,40 +260,6 @@ }; }; -&qupv3_se8_i2c { - status = "okay"; - qcom,i2c-touch-active="synaptics,tcm-i2c"; - - synaptics_tcm@20 { - compatible = "synaptics,tcm-i2c"; - reg = <0x20>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - vdd-supply = <&L9A>; - avdd-supply = <&touch_avdd>; - synaptics,pwr-reg-name = "avdd"; - synaptics,bus-reg-name = "vdd"; - synaptics,irq-gpio = <&tlmm 22 0x2008>; - synaptics,irq-on-state = <0>; - synaptics,reset-gpio = <&tlmm 21 0x00>; - synaptics,reset-on-state = <0>; - synaptics,reset-active-ms = <20>; - synaptics,reset-delay-ms = <200>; - synaptics,power-delay-ms = <200>; - synaptics,ubl-i2c-addr = <0x20>; - synaptics,extend_report; - synaptics,firmware-name = "synaptics_firmware.img"; - - panel = <&dsi_rm69299_visionox_amoled_video - &dsi_rm69299_visionox_amoled_cmd>; - }; -}; - &pm7250b_charger { status = "ok"; #io-channel-cells = <1>; From 8a807dee290e39ab7d5aa69502b445a404de533e Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Mon, 5 Jul 2021 16:04:18 +0800 Subject: [PATCH 0282/1247] arm64/dts: bringup sd card. sd card interrupt level is low as default, need set HIGH as design on Cypfq. Change-Id: Id08e8d89716ec873c5ad14c3455eda95f784eed4 Reviewed-on: https://gerrit.mot.com/2002101 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 5cc2af3f2f10..fcccfb2d910d 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -69,7 +69,7 @@ qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; &ufsphy_mem { From a025ac59cc110a4033dd70b0ad89b99b3cf8f70d Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 2 Jul 2021 10:29:31 +0800 Subject: [PATCH 0283/1247] arm64/dt: cyprus 5G: config vibrator voltage as 3v Config Cyprus 5G's vibrator voltage as 3v. It use PM7250 to driver it. Change-Id: Ic275ec562b4d2cda2ed215ba3a021d7b982cc7bf Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2000117 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 2 +- qcom/holi-cypfq-common-overlay.dtsi | 4 ++++ qcom/holi-cypfr-common-overlay.dtsi | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index b15ad387ba35..a359f130dd20 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -273,7 +273,7 @@ }; &pm7250b_vib { - qcom,vib-ldo-volt-uv = <2900000>; + qcom,vib-ldo-volt-uv = <3000000>; }; &thermal_zones { diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index fcccfb2d910d..55a21d1e8b9f 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -370,6 +370,10 @@ qcom,use-cp-iin-sns; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; +}; + &pm7250b_vadc { smb1390_therm@e { qcom,scale-fn-type = ; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 79498baaea89..0f802aeb6d6b 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -402,6 +402,10 @@ qcom,use-cp-iin-sns; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; +}; + &pm7250b_vadc { smb1390_therm@e { qcom,scale-fn-type = ; From 0bab20121880447f1ac6f620e4d4addb581b458a Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 2 Jul 2021 15:15:46 +0800 Subject: [PATCH 0284/1247] arm64/dt: cyprus 5G: bring up fps on 4350pro 4350 pro change the HW design, we need to use new fps device node to make fps sensor work. Change-Id: I6e4e15c7a9147f472bdac0f48a6ed3da61f6b83e Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2000479 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-fps-overlay.dtsi | 163 ++++++++++++++++++++++++++++ qcom/holi-cypfq-common-overlay.dtsi | 1 + qcom/holi-cypfr-common-overlay.dtsi | 1 + 3 files changed, 165 insertions(+) create mode 100644 qcom/cypfq-fps-overlay.dtsi diff --git a/qcom/cypfq-fps-overlay.dtsi b/qcom/cypfq-fps-overlay.dtsi new file mode 100644 index 000000000000..40fa18745865 --- /dev/null +++ b/qcom/cypfq-fps-overlay.dtsi @@ -0,0 +1,163 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + egistec,gpio_vcc_en = <&tlmm 87 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 55a21d1e8b9f..48fcfd8c6f89 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include #include +#include "cypfq-fps-overlay.dtsi" #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 0f802aeb6d6b..8fb1ce2bae19 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "holi-audio-wcd9370-aw882xx-overlay.dtsi" #include #include +#include "cypfq-fps-overlay.dtsi" #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" From 071eb4c9651e769a301051275d41d93373ef6acc Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 5 Jul 2021 18:36:07 +0800 Subject: [PATCH 0285/1247] cypfq/sensor: sar sensor bring up 1.add sx937x dts for cypfq 2.holi-pm6125-moto-common-overlay.dtsi for common Change-Id: I0801ec52655104a7e1758dea60f267ec8e942ab5 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2002273 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 216 ++++++++++------------ qcom/holi-pm6125-moto-common-overlay.dtsi | 132 +++++++++++++ 2 files changed, 226 insertions(+), 122 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 3937e16e8686..b80544b60502 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -318,34 +318,6 @@ }; }; -&tlmm { - sar_int_default: sar_int_default { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; - - sar_int_sleep: sar_int_sleep { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; -}; - &pm6125_l12 { regulator-always-on; qcom,init-voltage = <1800000>; @@ -383,112 +355,112 @@ panel = <&dsi_rm69299_visionox_amoled_video &dsi_rm69299_visionox_amoled_cmd>; }; +}; - sx937x:sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - //please fix me - cap_vdd-supply = <&pm6125_l12>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ +&sx937x { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l12>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; - status = "ok"; - }; + status = "ok"; }; &qupv3_se7_i2c { diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 87e662d72c4c..3e775c832972 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -64,3 +64,135 @@ 55 03 00 00 55 00 00 00]; }; + +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sx937x:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6150a_l8>; + /*use PH5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x25E /*AFE_PARAM_PH0*/ + 0x8034 0x25E /*AFE_PARAM_PH1*/ + 0x8040 0x25E /*AFE_PARAM_PH2*/ + 0x804C 0x25E /*AFE_PARAM_PH3*/ + 0x8058 0x25E /*AFE_PARAM_PH4*/ + 0x8064 0x25E /*AFE_PARAM_PH5*/ + 0x8070 0x25E /*AFE_PARAM_PH6*/ + 0x807C 0x25E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0xC8644D2C + 0x80B8 0xC8644D2C + 0x80D8 0xC8644D2C + 0x80F8 0xC8644D2C + 0x8118 0xC8644D2C + 0x8138 0xC8644D2C + 0x8158 0xC8644D2C + 0x8178 0xC8644D2C + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x0 + 0x818C 0x0 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xe + >; + + status = "ok"; + }; +}; From 61f9373b38642d448122f27c454f1629a4c28978 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Mon, 5 Jul 2021 10:43:15 +0800 Subject: [PATCH 0286/1247] arm/dts: Add atl batt profile for corfu 5g arm/dts Add atl batt profile for corfu 5g product Change-Id: I2b5dfc4a1d50f384b1a6f339c00933d8f901341a Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2001813 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/qg-batterydata-ng50-atl-5000mah.dtsi | 1572 ++++++++++----------- 1 file changed, 786 insertions(+), 786 deletions(-) diff --git a/qcom/qg-batterydata-ng50-atl-5000mah.dtsi b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi index 7352d0913e0b..2df6bd9c52a9 100644 --- a/qcom/qg-batterydata-ng50-atl-5000mah.dtsi +++ b/qcom/qg-batterydata-ng50-atl-5000mah.dtsi @@ -1,7 +1,7 @@ qcom,ng50-atl-5000mah { - /* 4984199_Lenovo_corfp_5000mAH_PM7250B_averaged_MasterSlave_Dec17th2020 */ + /* 5263304_Lenovo_Guogu_ATL_5000mAH_PM7250B_averaged_MasterSlave_Jun22th2021 */ serialnum = "SB18D17151"; qcom,sdam-magic-number = <0x18D17151>; qcom,max-voltage-uv = <4480000>; @@ -15,12 +15,12 @@ qcom,ng50-atl-5000mah { qcom,fcc1-temp-lut { qcom,lut-col-legend = <0 10 25 40 50>; - qcom,lut-data = <4803 4942 5112 5157 5169>; + qcom,lut-data = <4871 4966 5046 5067 5074>; }; qcom,fcc2-temp-lut { qcom,lut-col-legend = <(-10) 0 10 25 40 50>; - qcom,lut-data = <5083 5090 5118 5132 5106 5121>; + qcom,lut-data = <4993 5028 5037 5040 5040 5033>; }; qcom,pc-temp-v1-lut { @@ -37,61 +37,61 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <43640 43864 44154 44224 44236>, - <43359 43617 43874 43911 43909>, - <43118 43373 43622 43662 43662>, - <42886 43132 43397 43433 43432>, - <42648 42893 43162 43205 43203>, - <42411 42655 42918 42968 42971>, - <42181 42419 42675 42731 42737>, - <41959 42186 42435 42492 42501>, - <41742 41959 42197 42254 42265>, - <41532 41737 41963 42018 42029>, - <41329 41519 41732 41784 41796>, - <41130 41305 41506 41554 41565>, - <40936 41098 41287 41330 41339>, - <40742 40901 41073 41110 41115>, - <40529 40708 40863 40897 40900>, - <40281 40503 40657 40691 40694>, - <40052 40272 40455 40489 40495>, - <39883 40059 40250 40290 40302>, - <39743 39894 40057 40097 40114>, - <39611 39753 39892 39925 39938>, - <39481 39613 39742 39776 39780>, - <39358 39477 39577 39603 39603>, - <39237 39334 39392 39336 39350>, - <39120 39160 39194 39056 39082>, - <39007 38964 38961 38883 38907>, - <38896 38792 38723 38760 38784>, - <38790 38635 38590 38655 38676>, - <38691 38508 38516 38561 38575>, - <38598 38431 38454 38476 38484>, - <38512 38374 38389 38395 38396>, - <38438 38327 38328 38320 38315>, - <38371 38285 38273 38251 38241>, - <38315 38248 38223 38188 38172>, - <38269 38214 38175 38128 38106>, - <38228 38183 38129 38069 38040>, - <38189 38149 38085 38011 37974>, - <38153 38115 38039 37957 37911>, - <38112 38076 37994 37910 37854>, - <38058 38018 37934 37850 37785>, - <37991 37935 37848 37756 37687>, - <37906 37836 37743 37642 37571>, - <37783 37717 37630 37530 37456>, - <37643 37579 37500 37408 37333>, - <37483 37416 37341 37253 37180>, - <37336 37268 37191 37103 37036>, - <37255 37172 37089 37008 36945>, - <37222 37144 37062 36978 36914>, - <37192 37120 37043 36958 36896>, - <37166 37105 37023 36941 36876>, - <37112 37062 36982 36889 36813>, - <36906 36840 36763 36650 36550>, - <36454 36403 36336 36215 36108>, - <35874 35828 35761 35637 35529>, - <35087 35044 34973 34850 34734>, - <33840 33803 33746 33622 33492>, + qcom,lut-data = <44125 44242 44329 44350 44356>, + <43904 44018 44070 44077 44080>, + <43680 43794 43852 43854 43854>, + <43454 43573 43639 43642 43642>, + <43224 43354 43415 43423 43422>, + <42985 43125 43189 43202 43202>, + <42743 42886 42955 42973 42975>, + <42504 42643 42714 42734 42741>, + <42265 42402 42473 42492 42504>, + <42031 42161 42233 42251 42265>, + <41803 41926 41994 42012 42024>, + <41581 41694 41759 41777 41787>, + <41365 41468 41526 41546 41554>, + <41157 41249 41299 41319 41326>, + <40952 41036 41079 41097 41105>, + <40751 40830 40867 40881 40891>, + <40554 40627 40664 40675 40683>, + <40368 40434 40469 40475 40481>, + <40190 40259 40283 40286 40289>, + <40018 40097 40113 40117 40118>, + <39855 39918 39940 39949 39950>, + <39696 39700 39726 39736 39738>, + <39509 39474 39479 39471 39471>, + <39233 39260 39263 39246 39245>, + <38979 39051 39078 39083 39092>, + <38862 38900 38923 38947 38964>, + <38795 38807 38810 38831 38837>, + <38734 38731 38719 38732 38714>, + <38671 38650 38630 38634 38607>, + <38610 38571 38540 38531 38513>, + <38550 38495 38457 38435 38430>, + <38490 38422 38380 38354 38351>, + <38433 38354 38309 38284 38278>, + <38379 38295 38246 38217 38208>, + <38329 38244 38193 38157 38140>, + <38284 38197 38142 38098 38074>, + <38246 38156 38092 38037 38006>, + <38203 38113 38043 37975 37935>, + <38137 38051 37977 37898 37849>, + <38047 37962 37886 37793 37735>, + <37943 37859 37782 37676 37611>, + <37819 37738 37670 37566 37495>, + <37674 37598 37541 37446 37370>, + <37496 37425 37374 37285 37199>, + <37333 37259 37220 37146 37064>, + <37211 37147 37109 37050 36988>, + <37176 37110 37073 37019 36961>, + <37161 37088 37052 36992 36937>, + <37127 37061 37029 36973 36913>, + <37083 37024 36993 36924 36855>, + <36940 36861 36801 36699 36606>, + <36521 36434 36375 36268 36177>, + <35947 35860 35804 35698 35606>, + <35158 35064 35025 34922 34829>, + <33838 33765 33823 33728 33632>, <30000 30000 30000 30000 30000>; }; @@ -107,62 +107,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <44170 44165 44110 44130 44005 44070>, - <43765 43796 43801 43822 43722 43767>, - <43400 43460 43513 43537 43454 43486>, - <43080 43166 43247 43277 43204 43230>, - <42796 42906 43003 43040 42971 42998>, - <42537 42653 42761 42805 42738 42767>, - <42310 42395 42514 42564 42500 42529>, - <42090 42144 42270 42324 42261 42290>, - <41826 41913 42032 42087 42026 42054>, - <41525 41697 41798 41852 41793 41819>, - <41297 41479 41569 41620 41563 41587>, - <41169 41245 41342 41388 41335 41359>, - <41045 41022 41124 41164 41112 41136>, - <40828 40848 40928 40955 40900 40918>, - <40504 40701 40744 40755 40696 40705>, - <40180 40494 40537 40546 40490 40499>, - <39836 40122 40297 40322 40278 40299>, - <39535 39757 40054 40110 40077 40108>, - <39347 39549 39821 39933 39905 39932>, - <39205 39392 39595 39765 39743 39761>, - <39047 39225 39385 39564 39559 39579>, - <38862 39043 39188 39326 39343 39382>, - <38687 38871 39008 39104 39131 39182>, - <38537 38720 38844 38913 38930 38967>, - <38402 38579 38694 38743 38743 38760>, - <38298 38435 38561 38605 38598 38610>, - <38217 38280 38439 38488 38481 38492>, - <38147 38158 38330 38382 38377 38386>, - <38082 38082 38232 38283 38280 38286>, - <38022 38023 38139 38192 38191 38194>, - <37964 37969 38050 38109 38111 38113>, - <37908 37920 37965 38034 38039 38038>, - <37852 37873 37897 37963 37969 37967>, - <37794 37827 37845 37897 37904 37902>, - <37736 37783 37801 37834 37837 37834>, - <37676 37737 37759 37772 37755 37741>, - <37613 37689 37719 37710 37663 37632>, - <37547 37635 37674 37642 37572 37528>, - <37475 37572 37620 37569 37483 37429>, - <37400 37499 37557 37491 37395 37335>, - <37328 37418 37475 37409 37312 37251>, - <37257 37323 37373 37316 37224 37164>, - <37182 37208 37244 37197 37105 37050>, - <37108 37081 37108 37064 36975 36918>, - <37035 36960 36959 36930 36857 36800>, - <36935 36860 36879 36878 36821 36764>, - <36883 36818 36850 36862 36807 36750>, - <36821 36779 36824 36843 36791 36737>, - <36745 36724 36781 36810 36760 36704>, - <36623 36634 36699 36721 36652 36588>, - <36390 36415 36472 36439 36293 36232>, - <35985 35976 35996 35931 35776 35710>, - <35372 35340 35336 35272 35089 35023>, - <34458 34431 34436 34348 34107 34043>, - <32987 32935 33138 33029 32671 32707>, - <28320 27840 27870 27984 28103 27815>; + qcom,lut-data = <44350 44340 44330 44295 44285 44275>, + <43990 44024 44036 44006 43990 43981>, + <43666 43736 43767 43738 43718 43711>, + <43387 43482 43524 43493 43471 43466>, + <43147 43261 43309 43272 43251 43248>, + <42912 43037 43089 43049 43029 43029>, + <42664 42797 42851 42811 42794 42796>, + <42417 42551 42607 42570 42555 42557>, + <42175 42307 42364 42328 42315 42318>, + <41940 42064 42120 42085 42074 42075>, + <41704 41825 41881 41846 41836 41836>, + <41453 41588 41645 41611 41602 41600>, + <41207 41359 41414 41380 41373 41369>, + <41014 41142 41187 41153 41149 41145>, + <40872 40935 40966 40931 40929 40927>, + <40699 40733 40752 40717 40716 40715>, + <40386 40542 40544 40510 40510 40508>, + <40005 40345 40342 40311 40311 40309>, + <39737 40111 40153 40126 40125 40124>, + <39543 39836 39975 39951 39950 39950>, + <39359 39577 39772 39759 39764 39766>, + <39159 39346 39508 39527 39554 39559>, + <38961 39134 39240 39290 39336 39345>, + <38769 38945 39032 39080 39123 39135>, + <38577 38773 38856 38884 38911 38925>, + <38418 38620 38702 38723 38739 38752>, + <38304 38486 38568 38594 38610 38620>, + <38211 38364 38449 38483 38501 38507>, + <38137 38243 38340 38382 38399 38402>, + <38075 38127 38240 38289 38306 38305>, + <38020 38036 38149 38203 38222 38217>, + <37965 37969 38064 38120 38147 38141>, + <37913 37916 37987 38043 38075 38067>, + <37857 37872 37919 37974 38002 37992>, + <37800 37838 37857 37912 37927 37915>, + <37741 37802 37802 37843 37845 37828>, + <37683 37764 37756 37766 37753 37719>, + <37622 37722 37710 37684 37657 37606>, + <37553 37668 37648 37601 37563 37511>, + <37475 37602 37573 37515 37467 37422>, + <37385 37512 37484 37424 37374 37332>, + <37275 37366 37370 37330 37284 37241>, + <37153 37204 37239 37216 37171 37126>, + <37028 37043 37090 37071 37017 36965>, + <36908 36882 36943 36955 36916 36865>, + <36805 36780 36844 36887 36855 36805>, + <36757 36745 36822 36870 36845 36792>, + <36714 36711 36799 36859 36831 36777>, + <36673 36666 36758 36832 36806 36752>, + <36621 36587 36685 36767 36744 36678>, + <36524 36399 36474 36519 36490 36410>, + <36260 35988 35996 36044 36027 35935>, + <35749 35357 35339 35409 35406 35309>, + <35004 34477 34464 34542 34552 34447>, + <33902 33111 33145 33244 33317 33248>, + <31942 29637 29195 29227 29401 29421>; }; qcom,pc-temp-z1-lut { @@ -179,62 +179,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <13435 12740 12162 11845 11730>, - <13474 12764 12162 11860 11756>, - <13445 12773 12156 11854 11754>, - <13418 12765 12154 11847 11752>, - <13418 12748 12150 11842 11751>, - <13427 12731 12136 11836 11749>, - <13431 12709 12121 11831 11748>, - <13434 12694 12108 11828 11748>, - <13434 12690 12095 11826 11749>, - <13418 12686 12086 11825 11751>, - <13377 12681 12078 11826 11755>, - <13347 12669 12075 11828 11761>, - <13337 12657 12076 11831 11765>, - <13330 12638 12077 11836 11768>, - <13316 12608 12076 11837 11769>, - <13278 12593 12073 11836 11769>, - <13245 12584 12072 11835 11770>, - <13235 12580 12071 11835 11771>, - <13226 12582 12071 11836 11772>, - <13224 12587 12073 11838 11774>, - <13229 12594 12079 11841 11775>, - <13235 12603 12083 11843 11777>, - <13227 12611 12086 11844 11777>, - <13195 12618 12089 11845 11778>, - <13173 12625 12092 11846 11779>, - <13175 12632 12096 11848 11781>, - <13183 12638 12099 11850 11784>, - <13192 12642 12103 11854 11786>, - <13204 12642 12107 11857 11789>, - <13214 12641 12112 11861 11792>, - <13220 12640 12117 11866 11795>, - <13229 12642 12124 11870 11799>, - <13237 12646 12131 11875 11803>, - <13241 12654 12140 11880 11807>, - <13242 12671 12148 11886 11812>, - <13243 12683 12156 11892 11817>, - <13245 12689 12164 11898 11822>, - <13247 12694 12170 11903 11825>, - <13251 12705 12178 11908 11829>, - <13261 12726 12189 11914 11832>, - <13274 12741 12199 11919 11836>, - <13297 12747 12205 11924 11840>, - <13326 12755 12210 11930 11844>, - <13362 12774 12225 11936 11848>, - <13381 12795 12239 11944 11852>, - <13355 12786 12250 11951 11856>, - <13331 12789 12246 11951 11856>, - <13311 12788 12245 11952 11858>, - <13321 12783 12251 11954 11861>, - <13369 12798 12256 11959 11864>, - <13378 12821 12262 11965 11869>, - <13406 12809 12280 11975 11876>, - <13378 12851 12295 11985 11887>, - <13451 12865 12319 12005 11904>, - <13451 12865 12319 12005 11904>, - <13451 12865 12319 12005 11904>; + qcom,lut-data = <12384 11858 11338 11030 10911>, + <12410 11876 11341 11032 10925>, + <12414 11885 11338 11035 10933>, + <12416 11882 11334 11036 10939>, + <12412 11874 11325 11033 10937>, + <12392 11864 11314 11027 10933>, + <12367 11837 11304 11022 10930>, + <12355 11810 11294 11017 10929>, + <12345 11798 11286 11014 10928>, + <12334 11791 11279 11012 10927>, + <12309 11784 11273 11011 10926>, + <12280 11774 11269 11010 10925>, + <12270 11767 11266 11009 10924>, + <12269 11765 11264 11008 10924>, + <12266 11765 11263 11007 10924>, + <12249 11764 11262 11006 10925>, + <12221 11753 11262 11006 10926>, + <12208 11742 11265 11008 10928>, + <12208 11743 11268 11011 10930>, + <12210 11749 11269 11012 10933>, + <12213 11752 11271 11014 10935>, + <12222 11754 11274 11015 10937>, + <12226 11754 11277 11016 10938>, + <12228 11754 11280 11017 10939>, + <12229 11754 11282 11020 10941>, + <12226 11754 11286 11024 10944>, + <12217 11758 11291 11027 10947>, + <12214 11763 11298 11031 10950>, + <12223 11766 11304 11035 10953>, + <12236 11770 11307 11039 10957>, + <12243 11773 11311 11042 10961>, + <12250 11778 11316 11047 10965>, + <12254 11781 11322 11051 10969>, + <12251 11781 11328 11056 10973>, + <12247 11779 11334 11061 10978>, + <12247 11778 11340 11065 10982>, + <12255 11784 11346 11070 10986>, + <12263 11795 11352 11075 10990>, + <12275 11807 11360 11080 10994>, + <12297 11823 11368 11086 10999>, + <12312 11835 11377 11091 11004>, + <12319 11841 11387 11096 11007>, + <12332 11844 11398 11101 11010>, + <12379 11849 11406 11104 11012>, + <12378 11859 11416 11110 11017>, + <12362 11864 11428 11114 11019>, + <12350 11867 11430 11115 11019>, + <12378 11871 11424 11115 11020>, + <12363 11888 11426 11118 11020>, + <12360 11889 11435 11122 11025>, + <12379 11890 11449 11131 11019>, + <12377 11894 11461 11135 11037>, + <12434 11931 11479 11151 11046>, + <12429 11959 11510 11170 11065>, + <12429 11959 11510 11170 11065>, + <12429 11959 11510 11170 11065>; }; qcom,pc-temp-z2-lut { @@ -251,62 +251,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <10176 10295 10466 10362 10301>, - <10378 10383 10798 10500 10304>, - <10380 10420 10592 10668 10626>, - <10378 10401 10568 10655 10663>, - <10367 10367 10539 10637 10674>, - <10346 10351 10505 10607 10655>, - <10337 10342 10473 10567 10610>, - <10343 10336 10445 10533 10568>, - <10351 10332 10420 10501 10522>, - <10355 10329 10396 10474 10489>, - <10357 10322 10371 10449 10470>, - <10355 10309 10361 10432 10457>, - <10345 10298 10362 10430 10461>, - <10325 10342 10366 10436 10479>, - <10304 10422 10376 10443 10481>, - <10276 10431 10403 10466 10386>, - <10256 10353 10446 10482 10295>, - <10254 10295 10697 10477 10305>, - <10254 10307 10942 10462 10340>, - <10254 10335 10852 10440 10369>, - <10254 10362 10592 10399 10388>, - <10254 10387 10522 10377 10420>, - <10251 10414 10594 10546 10600>, - <10243 10450 10651 10771 10838>, - <10238 10490 10641 10731 10809>, - <10240 10505 10617 10495 10538>, - <10244 10507 10602 10393 10404>, - <10250 10508 10588 10403 10423>, - <10259 10508 10580 10419 10454>, - <10270 10508 10596 10434 10481>, - <10280 10509 10624 10453 10509>, - <10291 10510 10637 10484 10514>, - <10302 10511 10644 10543 10486>, - <10312 10514 10649 10602 10458>, - <10322 10520 10657 10643 10461>, - <10332 10526 10665 10675 10476>, - <10341 10532 10668 10670 10476>, - <10352 10538 10672 10627 10462>, - <10368 10548 10677 10604 10460>, - <10388 10561 10698 10666 10510>, - <10409 10576 10720 10742 10572>, - <10431 10588 10728 10742 10585>, - <10467 10604 10732 10724 10582>, - <10540 10636 10740 10719 10575>, - <10927 10834 10788 10701 10573>, - <10827 10953 10874 10643 10585>, - <10714 10955 10855 10653 10594>, - <10710 10971 10840 10619 10570>, - <10612 11105 10843 10647 10587>, - <10565 11219 10879 10760 10685>, - <10513 11089 10912 10734 10594>, - <10504 11071 10878 10516 10330>, - <10298 10924 10757 10430 10257>, - <10059 10722 10666 10396 10206>, - <10059 10722 10666 10396 10206>, - <10059 10722 10666 10396 10206>; + qcom,lut-data = <10587 10666 10454 10222 10043>, + <10399 10629 10459 10182 10161>, + <10399 10597 10474 10279 10264>, + <10426 10572 10485 10352 10321>, + <10435 10550 10479 10343 10327>, + <10404 10524 10462 10311 10318>, + <10360 10483 10433 10282 10299>, + <10340 10445 10371 10251 10239>, + <10326 10424 10332 10231 10190>, + <10321 10408 10323 10235 10192>, + <10320 10403 10319 10246 10202>, + <10320 10408 10321 10246 10206>, + <10322 10417 10332 10231 10214>, + <10336 10430 10346 10221 10221>, + <10357 10456 10361 10239 10215>, + <10386 10478 10377 10268 10206>, + <10423 10494 10385 10275 10206>, + <10451 10508 10390 10274 10212>, + <10473 10519 10397 10273 10209>, + <10489 10528 10409 10255 10190>, + <10499 10539 10428 10234 10170>, + <10506 10558 10476 10306 10230>, + <10512 10574 10566 10567 10528>, + <10519 10570 10597 10700 10697>, + <10523 10550 10507 10508 10517>, + <10522 10540 10414 10266 10278>, + <10517 10553 10422 10249 10364>, + <10514 10572 10465 10296 10798>, + <10521 10581 10497 10353 11005>, + <10533 10588 10523 10483 10798>, + <10542 10593 10538 10602 10510>, + <10553 10596 10536 10566 10365>, + <10563 10599 10527 10425 10264>, + <10574 10603 10517 10317 10196>, + <10584 10606 10500 10241 10143>, + <10593 10611 10488 10196 10112>, + <10600 10622 10499 10208 10130>, + <10608 10637 10529 10253 10189>, + <10618 10650 10567 10308 10245>, + <10629 10664 10628 10430 10298>, + <10634 10672 10666 10535 10343>, + <10636 10671 10658 10548 10378>, + <10640 10671 10645 10534 10411>, + <10677 10688 10639 10544 10499>, + <10941 10817 10664 10502 10482>, + <11011 10897 10691 10361 10313>, + <10975 10886 10659 10408 10277>, + <10792 10911 10648 10376 10313>, + <10571 10920 10642 10393 10310>, + <10443 10959 10623 10498 10401>, + <10333 11037 10695 10396 10316>, + <10294 11028 10622 10209 10111>, + <10055 11056 10544 10149 10041>, + <9916 10926 10487 10093 9990>, + <9916 10926 10487 10093 9990>, + <9916 10926 10487 10093 9990>; }; qcom,pc-temp-z3-lut { @@ -323,62 +323,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <19704 19567 19392 19346 19329>, - <19759 19623 19468 19377 19356>, - <19701 19650 19488 19411 19385>, - <19648 19652 19490 19417 19397>, - <19638 19654 19492 19420 19403>, - <19634 19653 19494 19422 19406>, - <19633 19646 19495 19423 19408>, - <19636 19636 19492 19423 19409>, - <19640 19626 19485 19421 19408>, - <19643 19616 19480 19419 19408>, - <19646 19609 19475 19418 19406>, - <19649 19604 19469 19415 19403>, - <19650 19600 19464 19410 19400>, - <19651 19596 19458 19400 19394>, - <19655 19590 19449 19394 19388>, - <19671 19585 19439 19390 19379>, - <19685 19570 19434 19386 19370>, - <19680 19554 19440 19384 19366>, - <19667 19541 19446 19381 19363>, - <19658 19527 19438 19375 19359>, - <19653 19520 19421 19365 19352>, - <19650 19517 19415 19359 19348>, - <19652 19515 19423 19369 19354>, - <19664 19523 19429 19381 19361>, - <19674 19541 19429 19379 19359>, - <19682 19549 19428 19364 19342>, - <19689 19549 19426 19354 19331>, - <19691 19549 19420 19350 19327>, - <19689 19548 19416 19348 19326>, - <19687 19544 19415 19348 19327>, - <19683 19539 19415 19351 19330>, - <19678 19534 19415 19353 19334>, - <19671 19528 19416 19358 19341>, - <19663 19523 19417 19363 19348>, - <19653 19518 19419 19370 19354>, - <19642 19514 19421 19377 19359>, - <19631 19510 19421 19376 19359>, - <19621 19506 19419 19368 19352>, - <19611 19504 19417 19363 19347>, - <19602 19502 19415 19363 19345>, - <19595 19500 19413 19363 19344>, - <19591 19495 19409 19362 19344>, - <19584 19488 19405 19359 19347>, - <19568 19482 19401 19358 19348>, - <19503 19453 19392 19355 19347>, - <19369 19424 19379 19342 19334>, - <19330 19413 19374 19340 19332>, - <19324 19410 19370 19339 19325>, - <19309 19353 19370 19332 19321>, - <19306 19331 19352 19324 19317>, - <19310 19401 19354 19329 19334>, - <19329 19391 19351 19355 19356>, - <19336 19363 19351 19359 19355>, - <19342 19322 19350 19351 19351>, - <19342 19322 19350 19351 19351>, - <19342 19322 19350 19351 19351>; + qcom,lut-data = <19486 19394 19347 19358 19353>, + <19567 19469 19416 19389 19381>, + <19615 19519 19433 19403 19395>, + <19650 19536 19445 19412 19403>, + <19672 19547 19459 19420 19413>, + <19687 19551 19470 19427 19421>, + <19696 19553 19472 19432 19424>, + <19697 19553 19472 19437 19424>, + <19697 19553 19471 19439 19423>, + <19697 19551 19465 19436 19421>, + <19693 19548 19455 19430 19416>, + <19685 19542 19449 19424 19413>, + <19676 19535 19445 19419 19410>, + <19664 19528 19441 19415 19407>, + <19655 19522 19438 19411 19403>, + <19649 19516 19434 19407 19398>, + <19645 19513 19429 19403 19393>, + <19638 19510 19423 19400 19389>, + <19623 19504 19418 19395 19385>, + <19611 19496 19414 19387 19378>, + <19613 19494 19412 19378 19371>, + <19620 19505 19416 19380 19371>, + <19627 19519 19430 19391 19378>, + <19636 19518 19435 19396 19381>, + <19642 19509 19421 19380 19367>, + <19640 19502 19405 19359 19349>, + <19629 19496 19400 19358 19361>, + <19620 19492 19396 19361 19414>, + <19615 19494 19396 19367 19440>, + <19612 19502 19408 19395 19434>, + <19611 19507 19422 19424 19424>, + <19611 19510 19430 19424 19415>, + <19611 19512 19436 19415 19406>, + <19610 19511 19437 19405 19396>, + <19607 19506 19432 19394 19384>, + <19605 19501 19424 19384 19372>, + <19602 19497 19417 19374 19364>, + <19598 19493 19411 19366 19357>, + <19593 19489 19408 19364 19355>, + <19587 19484 19407 19368 19355>, + <19580 19479 19406 19371 19355>, + <19572 19474 19401 19371 19359>, + <19562 19468 19395 19370 19366>, + <19550 19462 19394 19373 19373>, + <19489 19441 19386 19369 19371>, + <19467 19420 19375 19361 19361>, + <19443 19419 19375 19352 19351>, + <19308 19407 19369 19348 19338>, + <19289 19405 19367 19335 19330>, + <19281 19398 19351 19333 19328>, + <19263 19387 19367 19346 19340>, + <19263 19389 19381 19371 19359>, + <19265 19338 19385 19371 19361>, + <19271 19338 19387 19372 19361>, + <19271 19338 19387 19372 19361>, + <19271 19338 19387 19372 19361>; }; qcom,pc-temp-z4-lut { @@ -395,62 +395,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <16078 15865 14999 14834 14833>, - <16773 15655 15199 14853 14812>, - <16522 15477 15191 14942 14872>, - <16217 15324 15060 14899 14849>, - <16011 15195 14973 14855 14820>, - <15829 15100 14917 14827 14800>, - <15678 15026 14873 14804 14781>, - <15552 14967 14838 14784 14765>, - <15445 14920 14809 14766 14750>, - <15360 14882 14786 14750 14736>, - <15291 14849 14765 14733 14722>, - <15228 14821 14747 14719 14709>, - <15164 14796 14730 14710 14700>, - <15105 14764 14716 14703 14693>, - <15061 14732 14709 14696 14689>, - <15028 14723 14706 14688 14687>, - <14999 14729 14700 14681 14686>, - <14971 14733 14679 14676 14682>, - <14944 14727 14659 14672 14675>, - <14919 14718 14657 14669 14671>, - <14896 14710 14662 14665 14667>, - <14874 14702 14669 14664 14665>, - <14849 14696 14676 14699 14696>, - <14820 14700 14688 14752 14749>, - <14794 14713 14728 14776 14775>, - <14773 14727 14787 14792 14792>, - <14755 14750 14800 14796 14797>, - <14746 14767 14790 14790 14792>, - <14742 14766 14777 14780 14782>, - <14739 14757 14766 14769 14772>, - <14737 14747 14753 14755 14757>, - <14736 14738 14740 14740 14741>, - <14735 14729 14727 14723 14721>, - <14732 14720 14715 14707 14702>, - <14729 14712 14702 14690 14685>, - <14727 14704 14690 14677 14672>, - <14725 14697 14683 14672 14669>, - <14723 14691 14678 14671 14668>, - <14720 14690 14676 14670 14668>, - <14717 14689 14682 14678 14678>, - <14715 14689 14688 14687 14691>, - <14713 14690 14687 14687 14690>, - <14710 14691 14686 14684 14682>, - <14702 14688 14685 14683 14682>, - <14692 14673 14677 14679 14678>, - <14803 14668 14658 14664 14662>, - <14844 14673 14654 14659 14659>, - <14847 14670 14648 14648 14652>, - <14858 14726 14637 14637 14634>, - <14852 14745 14650 14638 14630>, - <14846 14671 14667 14660 14646>, - <14847 14699 14684 14651 14644>, - <14858 14739 14690 14653 14649>, - <14870 14793 14696 14665 14658>, - <14870 14793 14696 14665 14658>, - <14870 14793 14696 14665 14658>; + qcom,lut-data = <15609 15301 14958 14883 14873>, + <15654 15275 15068 14930 14899>, + <15609 15233 15016 14905 14880>, + <15451 15167 14959 14870 14852>, + <15310 15072 14911 14843 14829>, + <15207 14997 14867 14816 14806>, + <15119 14943 14834 14792 14785>, + <15050 14899 14808 14770 14766>, + <14993 14863 14785 14752 14751>, + <14947 14832 14765 14739 14741>, + <14909 14807 14748 14728 14734>, + <14877 14782 14738 14722 14728>, + <14852 14764 14731 14717 14724>, + <14831 14755 14725 14713 14721>, + <14814 14749 14718 14708 14717>, + <14796 14747 14713 14703 14713>, + <14782 14746 14709 14699 14710>, + <14779 14745 14707 14695 14708>, + <14788 14742 14704 14692 14705>, + <14796 14734 14699 14686 14697>, + <14790 14732 14695 14682 14689>, + <14773 14744 14705 14691 14698>, + <14770 14767 14741 14739 14749>, + <14834 14800 14778 14782 14792>, + <14906 14851 14821 14814 14815>, + <14911 14873 14850 14836 14829>, + <14897 14862 14848 14834 14812>, + <14882 14844 14835 14815 14741>, + <14868 14826 14818 14790 14703>, + <14853 14804 14793 14746 14699>, + <14840 14788 14768 14708 14696>, + <14826 14776 14750 14699 14692>, + <14816 14767 14734 14696 14688>, + <14810 14763 14726 14693 14684>, + <14805 14761 14721 14692 14681>, + <14800 14759 14719 14691 14679>, + <14794 14755 14718 14690 14678>, + <14789 14752 14718 14690 14677>, + <14782 14749 14718 14691 14678>, + <14776 14746 14722 14702 14695>, + <14767 14743 14726 14711 14710>, + <14753 14731 14721 14707 14703>, + <14737 14716 14712 14700 14692>, + <14719 14703 14707 14699 14695>, + <14696 14678 14688 14688 14687>, + <14688 14666 14671 14671 14664>, + <14709 14662 14666 14671 14664>, + <14850 14661 14657 14663 14661>, + <14865 14652 14642 14652 14647>, + <14867 14653 14647 14635 14629>, + <14883 14671 14646 14657 14665>, + <14895 14678 14655 14663 14677>, + <14895 14739 14653 14670 14684>, + <14896 14744 14655 14674 14690>, + <14896 14744 14655 14674 14690>, + <14896 14744 14655 14674 14690>; }; qcom,pc-temp-z5-lut { @@ -467,62 +467,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <13965 14018 14708 14714 13874>, - <13646 14899 16525 17556 16946>, - <13758 15591 17147 18406 18349>, - <13933 16076 17498 19062 19760>, - <14180 16479 17982 19635 20965>, - <14542 16905 18692 20075 21571>, - <14869 17340 19325 20467 22024>, - <15158 17765 19790 20879 22559>, - <15410 18147 20228 21296 23152>, - <15590 18546 20621 21841 23842>, - <15734 19134 21231 22865 24749>, - <15839 20132 21929 23808 25769>, - <15894 21138 22987 24072 26838>, - <15940 23127 23946 24193 27981>, - <16100 25816 24050 24468 28307>, - <16736 26283 23945 25312 27155>, - <17256 25497 24227 26452 26035>, - <17213 24967 31015 28040 26735>, - <17054 24850 38195 29709 28556>, - <16995 24655 37014 29924 29628>, - <17208 24696 32389 29329 30074>, - <17630 26253 32949 29010 30757>, - <18358 29283 45186 39916 35874>, - <20045 40149 55207 54482 42763>, - <22268 60347 54498 51773 40945>, - <25604 65535 51766 35614 28789>, - <29844 65535 47811 26141 21313>, - <33454 63513 40372 23210 19427>, - <36965 59705 34528 21662 18465>, - <39497 53865 32081 21269 18364>, - <40530 49066 30555 21058 18358>, - <41212 45483 30389 21122 18493>, - <41350 42578 30613 22319 19811>, - <39740 40368 30999 24348 21987>, - <37257 38525 33398 29507 26441>, - <35146 37656 36902 35990 31960>, - <32574 37358 39259 36772 32989>, - <30651 37201 41389 35012 32705>, - <29600 37605 42132 34045 32265>, - <28873 39120 41386 34290 31436>, - <28896 39890 40045 34586 30180>, - <30293 37272 36996 32363 28281>, - <31856 34776 32519 26956 26046>, - <33377 34945 31446 26600 26436>, - <31464 35539 31361 26689 26668>, - <15864 30495 31786 24225 23147>, - <13240 25744 29517 23582 22029>, - <13028 25005 27866 24554 20780>, - <12594 15928 29916 24017 23361>, - <12573 14407 23543 22150 22767>, - <12817 24233 21320 19790 23926>, - <13203 19238 18059 22759 25956>, - <13000 15863 17006 21908 22723>, - <12785 13018 16149 18004 18844>, - <12785 13018 16149 18004 18844>, - <12785 13018 16149 18004 18844>; + qcom,lut-data = <12892 13076 13308 14288 14251>, + <14126 15161 15957 16578 16843>, + <15053 16676 16835 17969 18649>, + <15811 17471 17596 18969 20003>, + <16592 17998 18648 19975 21607>, + <17429 18585 19644 20889 23192>, + <18308 19267 20338 21973 24300>, + <19280 20016 20893 23471 25033>, + <20355 20866 21362 24767 25736>, + <21437 21826 21725 25644 26628>, + <22505 22889 22069 26390 27609>, + <23555 24278 22542 26747 28557>, + <24497 25534 23158 26957 29545>, + <25256 26214 23841 27262 30283>, + <26266 26779 24782 28148 30753>, + <29135 27306 25573 29551 31248>, + <33153 28356 25689 30889 31927>, + <34006 29289 25631 32423 33552>, + <31178 29038 25678 33159 34724>, + <28620 28039 26451 32398 34981>, + <29979 27849 27878 31312 35178>, + <34481 35582 31590 32613 36065>, + <39191 44412 39258 38682 38688>, + <44993 43344 41879 41779 40033>, + <49536 36354 33480 32494 31264>, + <48131 30958 23893 20444 19607>, + <41091 27840 21158 18083 21191>, + <36282 25854 19635 17371 32671>, + <34895 26066 19359 17396 38270>, + <34077 27881 20819 23680 37366>, + <34253 30149 23168 30855 36217>, + <35933 33498 26288 31900 35701>, + <37814 36947 30279 31826 34956>, + <39313 38718 32635 31308 34002>, + <40694 39947 34011 29920 31986>, + <41453 40395 34803 28636 30208>, + <41943 40225 34748 28269 29843>, + <42220 39856 34227 28091 29660>, + <42143 39273 34045 28421 29654>, + <41756 38147 33966 31303 30108>, + <41182 36910 33716 33752 30578>, + <38966 35379 31052 31265 30387>, + <37820 34500 27877 27471 30288>, + <38884 34855 28787 29636 35963>, + <35517 37142 29293 29775 38253>, + <30986 33331 28471 26676 31261>, + <27100 32216 28485 22053 23498>, + <12739 26532 26965 21947 19528>, + <12337 27607 29759 21121 20722>, + <12150 26148 23182 24821 26867>, + <11863 21110 28345 26779 27328>, + <11792 20176 25296 24983 22196>, + <11745 14384 25363 21625 19345>, + <12368 14333 23809 19134 16879>, + <12368 14333 23809 19134 16879>, + <12368 14333 23809 19134 16879>; }; qcom,pc-temp-z6-lut { @@ -539,62 +539,62 @@ qcom,ng50-atl-5000mah { <1000 900 800 700 600>, <500 400 300 200 100>, <0>; - qcom,lut-data = <16148 15593 14877 14704 14677>, - <16444 15509 14997 14731 14685>, - <16268 15429 15000 14784 14724>, - <16060 15350 14940 14769 14720>, - <15933 15277 14900 14752 14713>, - <15827 15218 14874 14740 14707>, - <15741 15170 14852 14730 14700>, - <15670 15129 14831 14721 14693>, - <15612 15095 14814 14713 14687>, - <15565 15065 14799 14705 14681>, - <15528 15042 14786 14697 14676>, - <15491 15024 14774 14691 14670>, - <15445 15007 14764 14683 14664>, - <15400 14983 14754 14676 14658>, - <15371 14959 14746 14670 14653>, - <15354 14943 14739 14663 14647>, - <15338 14935 14732 14658 14642>, - <15318 14927 14727 14654 14637>, - <15297 14917 14722 14651 14633>, - <15279 14908 14716 14646 14628>, - <15264 14902 14710 14639 14623>, - <15251 14899 14709 14635 14620>, - <15241 14897 14715 14657 14638>, - <15232 14903 14726 14687 14666>, - <15225 14919 14745 14691 14670>, - <15219 14933 14769 14691 14669>, - <15214 14944 14774 14690 14668>, - <15211 14952 14768 14687 14665>, - <15209 14951 14762 14681 14660>, - <15207 14946 14757 14677 14656>, - <15206 14941 14752 14673 14652>, - <15205 14935 14748 14669 14649>, - <15203 14930 14744 14665 14644>, - <15200 14926 14740 14662 14640>, - <15195 14922 14738 14660 14638>, - <15191 14919 14735 14658 14635>, - <15187 14917 14733 14656 14633>, - <15185 14916 14732 14651 14629>, - <15186 14916 14731 14650 14628>, - <15189 14920 14734 14653 14631>, - <15193 14923 14738 14658 14636>, - <15200 14926 14738 14658 14636>, - <15203 14928 14737 14656 14635>, - <15205 14930 14737 14656 14636>, - <15180 14920 14733 14654 14634>, - <15168 14907 14721 14641 14621>, - <15165 14903 14717 14638 14619>, - <15163 14901 14712 14633 14612>, - <15161 14897 14708 14625 14603>, - <15163 14898 14706 14622 14599>, - <15171 14907 14716 14635 14615>, - <15189 14920 14726 14647 14629>, - <15209 14931 14733 14653 14634>, - <15237 14949 14742 14658 14639>, - <15237 14949 14742 14658 14639>, - <15237 14949 14742 14658 14639>; + qcom,lut-data = <15493 15026 14676 14591 14565>, + <15529 15037 14751 14630 14594>, + <15509 15040 14739 14624 14592>, + <15435 15022 14724 14617 14589>, + <15365 14973 14710 14610 14585>, + <15309 14931 14694 14602 14579>, + <15258 14901 14680 14594 14573>, + <15214 14874 14667 14586 14565>, + <15176 14851 14654 14579 14558>, + <15142 14831 14640 14571 14552>, + <15112 14812 14627 14563 14546>, + <15085 14795 14619 14557 14541>, + <15061 14781 14613 14552 14538>, + <15039 14772 14608 14547 14534>, + <15019 14766 14603 14542 14530>, + <15003 14761 14598 14538 14525>, + <14990 14758 14594 14534 14522>, + <14981 14755 14589 14530 14518>, + <14976 14750 14585 14526 14515>, + <14972 14742 14582 14519 14507>, + <14971 14739 14579 14513 14500>, + <14970 14750 14586 14519 14505>, + <14971 14768 14610 14548 14533>, + <15004 14784 14627 14565 14550>, + <15041 14802 14638 14569 14550>, + <15042 14809 14644 14570 14549>, + <15033 14803 14642 14569 14549>, + <15023 14793 14635 14562 14548>, + <15016 14788 14630 14558 14546>, + <15009 14785 14627 14556 14542>, + <15004 14782 14624 14554 14536>, + <14999 14779 14621 14551 14530>, + <14996 14777 14619 14545 14525>, + <14995 14775 14616 14540 14518>, + <14994 14773 14612 14534 14511>, + <14994 14771 14608 14529 14505>, + <14993 14770 14605 14524 14500>, + <14993 14769 14603 14520 14496>, + <14994 14769 14602 14519 14495>, + <14995 14769 14606 14526 14502>, + <14995 14769 14608 14532 14509>, + <14992 14766 14605 14530 14509>, + <14990 14761 14600 14528 14508>, + <14990 14759 14599 14529 14513>, + <14966 14746 14590 14523 14510>, + <14958 14734 14579 14512 14495>, + <14956 14732 14577 14508 14489>, + <14947 14726 14570 14502 14482>, + <14946 14723 14564 14491 14471>, + <14949 14724 14559 14483 14462>, + <14954 14732 14570 14500 14484>, + <14971 14743 14584 14519 14504>, + <14982 14752 14589 14525 14511>, + <15004 14765 14597 14532 14518>, + <15004 14765 14597 14532 14518>, + <15004 14765 14597 14532 14518>; }; qcom,pc-temp-y1-lut { @@ -609,62 +609,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <6665 6212 5880 5547 5357 5287>, - <6666 6210 5878 5541 5352 5284>, - <6667 6210 5875 5535 5347 5282>, - <6668 6210 5872 5530 5342 5279>, - <6669 6212 5869 5524 5338 5277>, - <6669 6214 5867 5519 5334 5275>, - <6672 6217 5866 5514 5331 5272>, - <6676 6221 5865 5510 5328 5271>, - <6676 6220 5861 5505 5325 5269>, - <6671 6218 5853 5502 5322 5268>, - <6670 6217 5849 5498 5319 5267>, - <6670 6217 5849 5495 5318 5266>, - <6671 6218 5849 5493 5316 5264>, - <6673 6220 5847 5490 5315 5263>, - <6675 6226 5844 5488 5314 5263>, - <6678 6231 5843 5488 5313 5262>, - <6685 6238 5847 5488 5313 5263>, - <6691 6242 5851 5488 5313 5263>, - <6688 6243 5853 5489 5313 5264>, - <6683 6243 5855 5490 5314 5264>, - <6681 6243 5855 5492 5315 5265>, - <6681 6243 5854 5492 5315 5266>, - <6680 6242 5854 5494 5316 5266>, - <6670 6241 5854 5496 5318 5267>, - <6648 6238 5853 5500 5319 5268>, - <6643 6238 5855 5503 5321 5270>, - <6656 6237 5860 5506 5324 5271>, - <6665 6237 5864 5510 5327 5273>, - <6657 6236 5867 5515 5330 5275>, - <6646 6235 5869 5519 5333 5278>, - <6646 6235 5871 5524 5336 5280>, - <6657 6237 5874 5529 5340 5283>, - <6662 6239 5875 5534 5343 5286>, - <6661 6233 5875 5539 5347 5288>, - <6659 6226 5876 5544 5350 5290>, - <6656 6225 5878 5548 5353 5292>, - <6653 6225 5881 5552 5355 5294>, - <6651 6225 5883 5554 5357 5295>, - <6649 6224 5887 5556 5358 5297>, - <6647 6222 5889 5558 5360 5299>, - <6642 6223 5889 5559 5362 5300>, - <6635 6225 5890 5561 5363 5301>, - <6633 6225 5899 5568 5366 5303>, - <6630 6226 5903 5578 5370 5305>, - <6635 6241 5910 5579 5374 5310>, - <6682 6248 5913 5589 5379 5313>, - <6682 6244 5914 5592 5380 5312>, - <6688 6258 5915 5595 5379 5313>, - <6690 6241 5916 5595 5379 5312>, - <6693 6238 5919 5595 5380 5313>, - <6708 6254 5928 5599 5384 5317>, - <6703 6268 5930 5613 5391 5323>, - <6708 6264 5946 5634 5403 5332>, - <6718 6292 5969 5656 5417 5343>, - <6718 6292 5969 5656 5417 5343>, - <6718 6292 5969 5656 5417 5343>; + qcom,lut-data = <6095 5688 5369 5046 4884 4815>, + <6087 5659 5365 5048 4882 4817>, + <6078 5637 5360 5048 4879 4819>, + <6069 5621 5354 5047 4877 4820>, + <6062 5612 5349 5044 4875 4820>, + <6059 5610 5346 5041 4873 4820>, + <6060 5617 5343 5036 4871 4818>, + <6062 5628 5341 5031 4870 4816>, + <6069 5628 5335 5028 4869 4816>, + <6094 5617 5325 5027 4869 4816>, + <6109 5609 5320 5027 4868 4817>, + <6104 5605 5322 5025 4868 4817>, + <6094 5603 5325 5024 4867 4817>, + <6092 5605 5324 5023 4867 4817>, + <6090 5616 5321 5023 4868 4817>, + <6089 5626 5319 5022 4868 4817>, + <6093 5636 5317 5023 4868 4818>, + <6095 5645 5316 5024 4868 4820>, + <6097 5646 5315 5025 4868 4821>, + <6096 5647 5315 5026 4869 4822>, + <6092 5647 5314 5028 4870 4823>, + <6085 5640 5318 5030 4872 4825>, + <6079 5633 5323 5032 4876 4827>, + <6079 5634 5329 5035 4878 4829>, + <6086 5640 5334 5038 4881 4831>, + <6092 5644 5336 5042 4883 4832>, + <6085 5643 5335 5047 4885 4834>, + <6073 5640 5333 5052 4887 4835>, + <6073 5641 5336 5056 4890 4838>, + <6089 5645 5344 5060 4893 4841>, + <6101 5650 5349 5064 4896 4844>, + <6091 5654 5349 5069 4898 4847>, + <6074 5656 5349 5075 4901 4849>, + <6071 5655 5351 5081 4906 4851>, + <6076 5650 5354 5089 4913 4852>, + <6080 5648 5356 5093 4917 4854>, + <6078 5652 5358 5095 4918 4856>, + <6076 5658 5359 5095 4919 4858>, + <6077 5657 5365 5097 4919 4861>, + <6080 5654 5374 5100 4918 4863>, + <6082 5652 5382 5102 4918 4865>, + <6093 5653 5393 5106 4921 4866>, + <6103 5655 5397 5109 4924 4867>, + <6107 5672 5392 5112 4925 4867>, + <6099 5665 5417 5117 4928 4871>, + <6133 5687 5404 5123 4931 4872>, + <6152 5671 5409 5130 4932 4875>, + <6153 5672 5404 5127 4931 4872>, + <6134 5692 5415 5129 4931 4874>, + <6157 5691 5410 5130 4932 4876>, + <6193 5694 5424 5126 4933 4874>, + <6223 5735 5423 5137 4937 4878>, + <6317 5787 5446 5151 4944 4887>, + <6405 5876 5475 5165 4954 4897>, + <6405 5876 5475 5165 4954 4897>, + <6405 5876 5475 5165 4954 4897>; }; qcom,pc-temp-y2-lut { @@ -679,62 +679,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <10087 10266 10852 11261 11188 11138>, - <10052 10287 10847 11249 11163 11143>, - <10042 10317 10841 11233 11125 11132>, - <10053 10350 10837 11212 11085 11111>, - <10077 10378 10832 11190 11052 11083>, - <10109 10396 10828 11165 11037 11054>, - <10152 10410 10823 11133 11034 11009>, - <10213 10421 10820 11104 11032 10966>, - <10327 10421 10823 11090 11016 10951>, - <10519 10421 10828 11080 10980 10946>, - <10598 10444 10832 11078 10959 10946>, - <10539 10596 10837 11093 10957 10956>, - <10473 10761 10845 11108 10964 10962>, - <10528 10792 10879 11106 10992 10950>, - <10701 10796 10957 11102 11047 10932>, - <10738 10796 11025 11110 11094 10936>, - <10220 10818 11097 11169 11133 11022>, - <9713 10852 11141 11242 11176 11116>, - <9684 10908 11142 11318 11245 11161>, - <9680 10995 11140 11385 11334 11200>, - <9677 11059 11146 11387 11390 11280>, - <9674 11114 11173 11342 11432 11448>, - <9672 11143 11203 11317 11452 11540>, - <9671 11123 11230 11336 11389 11391>, - <9670 11065 11260 11366 11285 11185>, - <9669 10962 11291 11388 11261 11165>, - <9668 10695 11323 11412 11276 11201>, - <9667 10488 11347 11437 11285 11239>, - <9666 10429 11365 11472 11313 11281>, - <9665 10388 11377 11504 11361 11325>, - <9664 10285 11376 11533 11406 11355>, - <9664 9941 11370 11567 11480 11379>, - <9663 9740 11361 11585 11523 11413>, - <9663 9711 11349 11594 11547 11492>, - <9662 9694 11332 11598 11564 11553>, - <9662 9687 11306 11593 11560 11520>, - <9661 9682 11270 11579 11541 11436>, - <9661 9678 11235 11561 11514 11396>, - <9661 9674 11203 11534 11461 11373>, - <9660 9671 11165 11513 11416 11350>, - <9660 9668 11116 11504 11412 11304>, - <9660 9666 11046 11490 11416 11265>, - <9659 9664 10578 11436 11390 11342>, - <9659 9662 10706 11422 11357 11296>, - <9659 9661 10625 11393 11319 11214>, - <9658 9660 10448 11304 11266 11043>, - <9658 9659 10347 11291 11220 11007>, - <9658 9658 10254 11296 11245 11058>, - <9658 9658 10200 11282 11271 11119>, - <9658 9657 10160 11282 11293 11095>, - <9657 9657 10141 11250 11192 10938>, - <9656 9656 9937 11147 11126 10882>, - <9656 9656 9686 11046 11041 10805>, - <9653 9655 9668 10946 10902 10690>, - <9653 9655 9668 10946 10902 10690>, - <9653 9655 9668 10946 10902 10690>; + qcom,lut-data = <10700 11094 11304 11286 11013 11108>, + <10714 11099 11293 11235 10970 11047>, + <10740 11097 11275 11184 10926 10977>, + <10769 11087 11251 11136 10885 10908>, + <10793 11072 11222 11092 10849 10848>, + <10804 11054 11189 11053 10819 10807>, + <10805 11025 11146 11016 10794 10780>, + <10805 10995 11102 10985 10773 10758>, + <10803 10980 11074 10971 10761 10735>, + <10793 10971 11052 10963 10750 10702>, + <10787 10967 11043 10960 10745 10682>, + <10848 10975 11045 10965 10762 10684>, + <10945 10995 11050 10974 10785 10691>, + <10966 11029 11062 10983 10785 10695>, + <10958 11096 11089 10993 10764 10698>, + <10953 11138 11124 11008 10754 10699>, + <10981 11147 11176 11038 10761 10690>, + <11028 11154 11240 11081 10774 10682>, + <11052 11173 11304 11146 10806 10700>, + <11068 11210 11377 11242 10885 10764>, + <11076 11234 11404 11282 10981 10849>, + <11072 11236 11367 11270 11133 11001>, + <11063 11238 11324 11255 11258 11137>, + <11049 11258 11333 11248 11231 11128>, + <11018 11303 11378 11233 11114 11047>, + <10961 11329 11408 11232 11060 11001>, + <10546 11334 11418 11265 11067 10993>, + <9924 11336 11428 11308 11084 10995>, + <9759 11342 11454 11337 11105 11033>, + <9733 11363 11499 11364 11138 11130>, + <9718 11372 11518 11397 11178 11183>, + <9707 11369 11519 11454 11254 11183>, + <9699 11360 11518 11500 11318 11174>, + <9692 11335 11514 11509 11313 11194>, + <9687 11275 11504 11510 11278 11258>, + <9682 11218 11490 11500 11265 11278>, + <9678 11174 11461 11456 11275 11224>, + <9675 11125 11426 11416 11281 11153>, + <9673 11066 11393 11411 11252 11105>, + <9671 10988 11358 11412 11198 11062>, + <9670 10821 11315 11407 11174 11054>, + <9668 10136 11255 11378 11187 11126>, + <9667 9760 11178 11355 11187 11151>, + <9666 9713 11075 11344 11150 11035>, + <9664 9694 10958 11255 11009 10867>, + <9662 9684 10668 11149 10921 10773>, + <9662 9678 10709 11152 10891 10757>, + <9660 9673 10753 11193 10933 10742>, + <9659 9669 10694 11189 10961 10801>, + <9657 9666 10615 11244 10957 10787>, + <9653 9662 10500 11187 10867 10755>, + <9651 9657 9920 11108 10801 10690>, + <9650 9652 9701 11002 10724 10603>, + <9649 9652 9664 10902 10610 10484>, + <9649 9652 9664 10902 10610 10484>, + <9649 9652 9664 10902 10610 10484>; }; qcom,pc-temp-y3-lut { @@ -749,62 +749,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <13882 13509 13347 13293 13281 13277>, - <13856 13511 13352 13294 13281 13278>, - <13827 13511 13356 13296 13282 13278>, - <13799 13512 13360 13298 13282 13279>, - <13778 13512 13363 13299 13282 13279>, - <13768 13511 13364 13300 13283 13280>, - <13770 13506 13363 13300 13283 13280>, - <13772 13500 13362 13300 13284 13281>, - <13751 13504 13361 13300 13284 13281>, - <13676 13522 13361 13301 13285 13282>, - <13617 13530 13361 13302 13285 13282>, - <13559 13493 13361 13301 13285 13283>, - <13512 13450 13361 13300 13286 13283>, - <13515 13443 13361 13302 13287 13284>, - <13531 13442 13361 13306 13291 13284>, - <13535 13441 13360 13307 13292 13284>, - <13496 13432 13357 13306 13292 13287>, - <13458 13422 13354 13305 13291 13289>, - <13461 13413 13350 13306 13292 13290>, - <13472 13402 13346 13308 13293 13290>, - <13475 13390 13341 13307 13293 13290>, - <13472 13376 13335 13303 13291 13289>, - <13468 13364 13331 13298 13288 13287>, - <13461 13360 13327 13295 13285 13283>, - <13452 13356 13324 13293 13282 13278>, - <13452 13351 13322 13292 13281 13278>, - <13464 13340 13320 13292 13280 13278>, - <13481 13331 13318 13292 13280 13278>, - <13502 13328 13317 13292 13279 13277>, - <13529 13327 13316 13292 13278 13276>, - <13554 13327 13315 13292 13279 13276>, - <13577 13332 13313 13292 13280 13277>, - <13601 13338 13313 13292 13281 13277>, - <13627 13347 13313 13292 13281 13278>, - <13655 13359 13314 13292 13282 13279>, - <13686 13369 13315 13292 13282 13279>, - <13720 13381 13318 13293 13281 13278>, - <13755 13395 13320 13293 13281 13278>, - <13790 13419 13322 13292 13280 13277>, - <13828 13449 13323 13291 13279 13277>, - <13870 13481 13324 13291 13280 13279>, - <13914 13519 13325 13291 13281 13280>, - <13954 13564 13320 13292 13281 13280>, - <13999 13621 13324 13293 13280 13279>, - <14018 13654 13319 13290 13277 13276>, - <14052 13726 13325 13294 13284 13283>, - <14101 13790 13331 13296 13287 13285>, - <14154 13861 13343 13301 13292 13290>, - <14219 13931 13356 13306 13295 13291>, - <14295 14011 13366 13309 13295 13289>, - <14384 14079 13388 13307 13289 13285>, - <14510 14172 13403 13307 13291 13286>, - <14708 14327 13453 13315 13296 13290>, - <15191 14518 13560 13326 13302 13297>, - <15191 14518 13560 13326 13302 13297>, - <15191 14518 13560 13326 13302 13297>; + qcom,lut-data = <13429 13346 13312 13290 13279 13280>, + <13434 13350 13314 13291 13280 13281>, + <13439 13356 13317 13292 13282 13282>, + <13444 13360 13320 13293 13283 13283>, + <13448 13364 13323 13294 13284 13284>, + <13451 13367 13325 13295 13285 13285>, + <13453 13369 13325 13296 13286 13285>, + <13455 13370 13325 13296 13286 13286>, + <13455 13372 13326 13297 13287 13287>, + <13452 13374 13327 13298 13288 13287>, + <13449 13376 13328 13298 13289 13287>, + <13442 13374 13329 13300 13290 13287>, + <13433 13372 13330 13301 13291 13288>, + <13427 13369 13330 13301 13292 13289>, + <13423 13367 13330 13300 13293 13291>, + <13419 13364 13329 13300 13294 13292>, + <13413 13363 13326 13301 13295 13292>, + <13407 13361 13323 13301 13295 13292>, + <13402 13358 13323 13301 13296 13293>, + <13399 13354 13326 13301 13297 13296>, + <13394 13349 13327 13300 13298 13297>, + <13389 13345 13322 13299 13295 13294>, + <13383 13342 13316 13297 13292 13290>, + <13375 13338 13313 13295 13288 13286>, + <13363 13335 13311 13292 13284 13283>, + <13354 13332 13309 13290 13282 13281>, + <13350 13330 13307 13289 13281 13281>, + <13348 13328 13306 13289 13281 13281>, + <13352 13324 13305 13289 13281 13281>, + <13361 13319 13304 13290 13281 13280>, + <13372 13316 13304 13290 13281 13279>, + <13384 13315 13304 13290 13281 13279>, + <13397 13314 13304 13289 13282 13279>, + <13412 13316 13304 13289 13282 13280>, + <13430 13322 13304 13289 13281 13281>, + <13452 13328 13304 13289 13282 13282>, + <13481 13331 13305 13289 13282 13281>, + <13517 13335 13305 13288 13282 13280>, + <13556 13338 13306 13288 13283 13281>, + <13600 13342 13308 13288 13283 13282>, + <13648 13347 13308 13288 13284 13284>, + <13701 13353 13309 13289 13285 13284>, + <13763 13363 13311 13289 13285 13284>, + <13837 13384 13314 13288 13281 13281>, + <13932 13414 13317 13290 13283 13283>, + <14030 13437 13313 13291 13288 13286>, + <14111 13476 13319 13295 13291 13289>, + <14227 13530 13327 13301 13294 13290>, + <14382 13598 13333 13303 13294 13292>, + <14687 13703 13345 13305 13294 13291>, + <15443 13879 13355 13301 13290 13288>, + <17109 14280 13374 13301 13290 13290>, + <21457 15694 13450 13306 13293 13293>, + <34974 20643 13756 13315 13302 13302>, + <34974 20643 13756 13315 13302 13302>, + <34974 20643 13756 13315 13302 13302>; }; qcom,pc-temp-y4-lut { @@ -819,62 +819,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <17045 16829 16628 16514 16466 16467>, - <17215 16854 16643 16505 16465 16464>, - <17321 16892 16653 16498 16464 16462>, - <17378 16932 16660 16494 16463 16461>, - <17401 16963 16663 16491 16463 16460>, - <17405 16975 16664 16491 16463 16459>, - <17356 16975 16659 16493 16464 16460>, - <17286 16973 16654 16496 16466 16461>, - <17268 16965 16654 16499 16469 16462>, - <17291 16939 16658 16504 16474 16465>, - <17336 16930 16663 16509 16478 16468>, - <17501 17011 16668 16519 16484 16471>, - <17663 17108 16676 16530 16490 16475>, - <17582 17151 16707 16539 16494 16480>, - <17303 17214 16766 16549 16499 16486>, - <17153 17217 16787 16563 16505 16491>, - <17107 17013 16786 16586 16514 16494>, - <17074 16824 16780 16609 16526 16499>, - <17043 16816 16744 16632 16547 16511>, - <17004 16818 16678 16651 16571 16527>, - <16955 16815 16634 16644 16574 16537>, - <16884 16790 16604 16589 16561 16543>, - <16823 16757 16582 16539 16541 16545>, - <16791 16723 16567 16505 16506 16514>, - <16767 16686 16557 16482 16470 16470>, - <16762 16656 16553 16480 16464 16464>, - <16761 16619 16550 16481 16465 16464>, - <16760 16599 16548 16482 16468 16464>, - <16758 16605 16546 16487 16474 16469>, - <16756 16618 16544 16493 16482 16477>, - <16756 16630 16536 16499 16491 16486>, - <16757 16647 16522 16507 16501 16495>, - <16759 16661 16517 16513 16509 16504>, - <16762 16671 16523 16518 16516 16514>, - <16765 16680 16532 16521 16520 16520>, - <16765 16692 16542 16518 16514 16512>, - <16762 16708 16555 16512 16495 16493>, - <16760 16718 16567 16506 16483 16480>, - <16761 16719 16580 16497 16475 16471>, - <16762 16717 16589 16493 16471 16467>, - <16766 16715 16591 16497 16475 16473>, - <16776 16712 16593 16501 16481 16480>, - <16798 16704 16608 16502 16479 16479>, - <16822 16692 16595 16498 16470 16468>, - <16814 16677 16566 16478 16456 16447>, - <16808 16683 16582 16492 16466 16460>, - <16823 16702 16601 16507 16482 16486>, - <16846 16731 16630 16527 16514 16524>, - <16873 16772 16669 16562 16554 16560>, - <16887 16823 16721 16585 16558 16556>, - <16879 16834 16726 16556 16484 16483>, - <16855 16809 16718 16536 16480 16475>, - <16854 16806 16755 16559 16489 16480>, - <16946 16831 16831 16612 16526 16507>, - <16946 16831 16831 16612 16526 16507>, - <16946 16831 16831 16612 16526 16507>; + qcom,lut-data = <16707 16595 16532 16482 16469 16467>, + <16736 16618 16545 16482 16470 16471>, + <16790 16650 16557 16482 16470 16474>, + <16852 16683 16567 16483 16470 16477>, + <16903 16709 16574 16484 16470 16478>, + <16927 16718 16576 16484 16470 16479>, + <16929 16715 16573 16485 16470 16478>, + <16931 16710 16569 16485 16470 16477>, + <16935 16707 16568 16486 16470 16476>, + <16949 16705 16568 16489 16471 16475>, + <16965 16704 16568 16492 16473 16475>, + <16978 16712 16572 16495 16474 16475>, + <16994 16730 16578 16500 16477 16477>, + <17028 16755 16587 16506 16480 16478>, + <17108 16796 16602 16516 16483 16480>, + <17156 16831 16622 16527 16488 16483>, + <17048 16858 16657 16538 16494 16486>, + <16866 16876 16693 16552 16501 16492>, + <16810 16860 16707 16575 16514 16499>, + <16798 16782 16715 16609 16534 16510>, + <16785 16712 16716 16622 16542 16519>, + <16752 16670 16660 16597 16541 16526>, + <16708 16636 16584 16557 16541 16531>, + <16668 16609 16549 16524 16527 16521>, + <16624 16587 16525 16489 16486 16486>, + <16602 16571 16515 16478 16468 16469>, + <16619 16560 16510 16478 16469 16467>, + <16648 16551 16508 16480 16471 16466>, + <16659 16537 16508 16484 16474 16468>, + <16664 16520 16509 16490 16482 16474>, + <16669 16514 16509 16497 16490 16482>, + <16674 16518 16508 16502 16501 16493>, + <16679 16526 16507 16508 16510 16503>, + <16686 16534 16505 16514 16514 16510>, + <16697 16546 16503 16521 16517 16515>, + <16706 16560 16503 16522 16517 16516>, + <16713 16580 16513 16511 16508 16503>, + <16718 16601 16525 16498 16497 16490>, + <16722 16619 16532 16491 16491 16491>, + <16727 16636 16538 16485 16487 16496>, + <16730 16641 16543 16485 16488 16503>, + <16722 16639 16548 16493 16498 16515>, + <16708 16637 16553 16494 16497 16514>, + <16694 16631 16558 16482 16464 16468>, + <16692 16619 16554 16476 16453 16453>, + <16685 16614 16550 16479 16466 16479>, + <16692 16624 16559 16492 16498 16518>, + <16708 16638 16572 16520 16536 16560>, + <16727 16663 16599 16555 16575 16598>, + <16774 16700 16641 16588 16595 16604>, + <16946 16726 16658 16536 16522 16531>, + <17283 16760 16664 16509 16487 16491>, + <18462 17194 16706 16522 16487 16489>, + <26525 21694 16813 16556 16489 16489>, + <26525 21694 16813 16556 16489 16489>, + <26525 21694 16813 16556 16489 16489>; }; qcom,pc-temp-y5-lut { @@ -889,62 +889,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <13537 13041 13942 16492 19962 19872>, - <12632 13403 14990 17715 19718 20076>, - <12277 13824 16013 18441 19392 20087>, - <12343 14235 16884 18795 19003 19973>, - <12702 14567 17476 18902 18569 19799>, - <13235 14751 17661 18872 18107 19626>, - <14566 14795 17462 18092 17567 19192>, - <15935 14834 17134 17035 17015 18592>, - <15684 15418 16828 16581 16557 18040>, - <14180 17131 16452 16290 16138 17339>, - <13386 17843 16221 15893 15717 16774>, - <13727 15905 16094 15089 15189 16379>, - <14531 13767 15962 14493 14826 16014>, - <16734 14721 15720 14528 15002 15543>, - <21108 17983 15399 14652 15490 15062>, - <22432 19601 15544 14691 15606 14987>, - <17644 19327 17832 14598 15089 15408>, - <13002 18814 20082 14542 14648 15740>, - <13366 18705 20924 15719 14756 15690>, - <14738 18583 21486 18084 15134 15595>, - <15204 18575 21521 19969 16087 15998>, - <15046 18631 21171 21777 19359 18352>, - <14747 18760 20805 22533 21537 19818>, - <13968 19942 20485 21616 21291 19789>, - <12797 21973 20230 20405 20744 19719>, - <12408 21831 20143 20165 20127 19570>, - <12313 17705 19904 20237 19134 19173>, - <12286 14535 19871 20225 18219 18622>, - <12407 14056 20750 20078 17377 17444>, - <12636 13768 21727 19994 16740 16394>, - <12818 13487 21583 20156 16826 16339>, - <12981 13176 20824 20548 17455 16434>, - <13090 13103 20476 21024 18194 16635>, - <13155 13277 20126 21695 19082 17553>, - <13203 13456 19829 22392 20001 18667>, - <13257 13514 19924 23097 20788 19501>, - <13402 13617 20117 23721 21496 20211>, - <13469 13696 20167 23626 21593 20320>, - <13322 13881 20120 22371 20352 19957>, - <13101 14091 20037 21056 19168 19621>, - <12979 14161 19777 19920 19080 19814>, - <12886 14196 19233 19235 19200 20301>, - <12645 14030 16891 19098 18966 20705>, - <12508 13695 17455 19234 19257 20673>, - <12984 13445 16131 19033 16627 17695>, - <13068 13342 15585 18194 17500 18457>, - <13292 13341 15134 17620 17914 17313>, - <13374 13596 15203 17573 18295 17328>, - <13599 13679 15120 17779 17991 16698>, - <13923 14028 15394 17994 17720 16415>, - <13876 13969 16187 18886 18479 17007>, - <13468 13564 15220 19380 19969 17670>, - <13058 13446 13811 19982 21375 18479>, - <12417 13265 13683 21736 24001 22751>, - <12417 13265 13683 21736 24001 22751>, - <12417 13265 13683 21736 24001 22751>; + qcom,lut-data = <17096 17659 17202 20621 18289 21630>, + <17497 18387 18655 20252 18435 21627>, + <17997 19030 19533 19812 18504 21623>, + <18505 19544 19980 19342 18519 21617>, + <18932 19882 20143 18884 18501 21613>, + <19188 20000 20163 18478 18472 21612>, + <19321 19878 19749 18103 18358 21636>, + <19406 19637 19010 17719 18145 21641>, + <19362 19415 18478 17307 17857 21374>, + <19092 19175 18042 16834 17404 20357>, + <18738 18850 17645 16463 17109 19408>, + <17873 18232 17286 16258 17193 18681>, + <16782 17490 16922 16067 17382 18080>, + <17080 16948 16428 15646 17355 17934>, + <19897 16467 15767 14889 17116 18096>, + <21784 16298 15458 14429 16790 18091>, + <21429 18419 15490 14262 16225 17405>, + <20841 21349 15623 14163 15640 16608>, + <20929 22120 16791 14246 15377 16425>, + <22188 22381 20434 14696 15203 16373>, + <23188 22633 22614 15489 15220 16418>, + <23419 23183 23185 18774 17643 17933>, + <23557 23700 23513 22102 20395 19928>, + <23205 23698 23646 22326 20472 20658>, + <20715 23484 23674 22046 19845 21109>, + <18676 23383 23568 21652 19182 21228>, + <16439 23541 22976 20773 18454 20387>, + <13420 23722 22365 20007 17744 19053>, + <12896 23024 22284 20194 17195 17813>, + <13033 20460 22394 20878 16717 16491>, + <13209 18575 22631 21137 16580 15872>, + <13444 17465 23473 20911 16737 15701>, + <13689 16754 24308 20696 17005 15693>, + <13769 17209 24427 20954 17384 16418>, + <13791 18820 24241 21747 18026 18285>, + <13825 19939 23895 22487 18896 19383>, + <14112 20567 23102 23328 20633 19732>, + <14584 21096 22171 23895 21963 20069>, + <14755 21568 21426 23376 21951 20893>, + <14792 22051 20726 22044 21812 22158>, + <14764 21968 20131 21248 21804 22626>, + <14480 18060 19289 20785 22073 22553>, + <14057 15501 18920 20361 22033 22521>, + <13783 14996 19182 19686 21230 22701>, + <13340 14701 19512 20210 21096 22135>, + <13217 14187 17764 18955 19215 17780>, + <13101 14199 18198 18629 18160 15992>, + <13059 14394 18557 19588 16999 14977>, + <13258 14289 17779 18769 16061 14818>, + <13271 14159 17886 18630 15747 14434>, + <12336 14444 18035 18980 15976 15081>, + <10949 14198 15643 20213 17139 16296>, + <9758 11775 14550 20630 17011 15821>, + <9057 9474 13926 22347 19847 19073>, + <9057 9474 13926 22347 19847 19073>, + <9057 9474 13926 22347 19847 19073>; }; qcom,pc-temp-y6-lut { @@ -959,62 +959,62 @@ qcom,ng50-atl-5000mah { <1600 1400 1200 1000 900 800>, <700 600 500 400 300 200>, <100 0>; - qcom,lut-data = <6344 5658 5292 5087 5039 5028>, - <6330 5661 5294 5086 5038 5028>, - <6316 5662 5294 5085 5038 5028>, - <6301 5663 5292 5084 5037 5028>, - <6285 5663 5289 5083 5037 5028>, - <6268 5663 5285 5083 5037 5028>, - <6252 5655 5278 5082 5038 5028>, - <6234 5644 5271 5082 5038 5029>, - <6205 5641 5267 5082 5039 5030>, - <6160 5640 5264 5084 5041 5031>, - <6142 5639 5262 5085 5042 5032>, - <6151 5633 5260 5087 5044 5033>, - <6162 5628 5260 5089 5046 5035>, - <6149 5634 5266 5092 5048 5036>, - <6099 5652 5279 5097 5052 5038>, - <6050 5655 5283 5102 5055 5040>, - <5991 5599 5281 5108 5057 5042>, - <5950 5542 5277 5113 5060 5045>, - <5948 5535 5264 5120 5066 5050>, - <5948 5532 5242 5127 5073 5055>, - <5946 5527 5226 5124 5074 5057>, - <5931 5515 5213 5106 5068 5057>, - <5918 5504 5204 5088 5060 5056>, - <5915 5500 5198 5077 5048 5045>, - <5913 5497 5195 5069 5036 5029>, - <5914 5492 5194 5068 5034 5026>, - <5931 5483 5194 5069 5034 5026>, - <5951 5479 5194 5070 5034 5027>, - <5971 5489 5196 5072 5036 5028>, - <5992 5510 5198 5074 5038 5030>, - <6013 5529 5198 5077 5041 5032>, - <6035 5551 5198 5080 5045 5035>, - <6057 5573 5198 5083 5048 5039>, - <6080 5597 5204 5086 5051 5042>, - <6103 5623 5214 5087 5053 5045>, - <6128 5650 5224 5087 5051 5043>, - <6154 5680 5236 5087 5046 5037>, - <6181 5712 5248 5086 5042 5033>, - <6210 5746 5262 5084 5040 5031>, - <6239 5782 5276 5083 5038 5030>, - <6272 5821 5290 5084 5040 5032>, - <6307 5863 5305 5087 5043 5035>, - <6347 5908 5320 5089 5043 5035>, - <6392 5961 5341 5090 5040 5031>, - <6412 5993 5333 5084 5034 5024>, - <6445 6057 5372 5093 5043 5034>, - <6490 6113 5398 5100 5050 5042>, - <6539 6180 5435 5110 5062 5057>, - <6598 6249 5475 5125 5076 5068>, - <6663 6326 5522 5134 5077 5066>, - <6734 6389 5559 5126 5052 5043>, - <6837 6463 5596 5123 5053 5042>, - <7006 6589 5691 5142 5061 5047>, - <7456 6757 5844 5173 5079 5063>, - <7456 6757 5844 5173 5079 5063>, - <7456 6757 5844 5173 5079 5063>; + qcom,lut-data = <5575 5254 5109 5020 4989 4983>, + <5582 5265 5117 5020 4990 4985>, + <5590 5274 5122 5021 4991 4986>, + <5596 5280 5125 5021 4992 4988>, + <5601 5284 5126 5022 4993 4989>, + <5602 5285 5126 5022 4993 4990>, + <5601 5283 5124 5022 4994 4991>, + <5599 5279 5120 5023 4994 4991>, + <5597 5276 5119 5023 4995 4991>, + <5595 5273 5117 5024 4996 4991>, + <5593 5272 5117 5025 4997 4991>, + <5591 5273 5118 5027 4998 4992>, + <5589 5274 5119 5029 5000 4992>, + <5592 5276 5121 5031 5001 4994>, + <5614 5285 5124 5033 5003 4995>, + <5628 5293 5128 5036 5005 4997>, + <5597 5299 5135 5039 5007 4998>, + <5546 5305 5143 5044 5009 5000>, + <5531 5299 5148 5050 5014 5003>, + <5528 5274 5152 5059 5020 5008>, + <5525 5252 5153 5063 5023 5011>, + <5517 5238 5133 5055 5021 5010>, + <5506 5227 5107 5042 5018 5009>, + <5497 5219 5096 5031 5010 5004>, + <5487 5214 5088 5020 4996 4991>, + <5482 5210 5085 5016 4990 4985>, + <5486 5209 5084 5016 4990 4985>, + <5496 5208 5083 5017 4990 4985>, + <5509 5207 5084 5018 4992 4985>, + <5529 5204 5085 5021 4994 4987>, + <5551 5203 5087 5024 4997 4988>, + <5572 5208 5088 5026 5000 4991>, + <5595 5217 5089 5028 5003 4994>, + <5621 5228 5090 5030 5005 4997>, + <5651 5244 5091 5033 5006 5000>, + <5684 5263 5094 5033 5007 5001>, + <5719 5283 5099 5030 5004 4997>, + <5757 5306 5106 5027 5002 4993>, + <5797 5331 5112 5026 5001 4993>, + <5840 5359 5118 5025 5000 4996>, + <5886 5384 5126 5025 5000 4999>, + <5932 5403 5134 5029 5004 5003>, + <5984 5428 5145 5030 5004 5003>, + <6049 5465 5160 5026 4992 4987>, + <6134 5513 5174 5027 4991 4986>, + <6227 5557 5174 5030 4999 4996>, + <6300 5607 5194 5037 5011 5009>, + <6408 5667 5217 5050 5024 5022>, + <6555 5747 5246 5061 5035 5035>, + <6840 5860 5289 5072 5042 5036>, + <7537 6029 5332 5054 5017 5012>, + <8953 6403 5387 5048 5008 5004>, + <12507 7686 5522 5058 5011 5006>, + <24051 12622 5887 5078 5019 5014>, + <24051 12622 5887 5078 5019 5014>, + <24051 12622 5887 5078 5019 5014>; }; }; From b73054f482ce122ed71af2c845d0deeafb60c4fa Mon Sep 17 00:00:00 2001 From: jixj Date: Tue, 6 Jul 2021 14:28:12 +0800 Subject: [PATCH 0287/1247] arm/dts: Sync with ES upgrade Sync with holi-mtp-pm6125.dtsi of date 2021-06-02 17:56:14 and holi-mtp-pm6125-overlay.dts of 2021-06-02 17:56:14 Change-Id: I65574174594b6ea19417ae2de02142c826a9d69c Reviewed-on: https://gerrit.mot.com/2003252 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 231 +------------------ qcom/holi-cypfr-common-overlay.dtsi | 265 +--------------------- qcom/holi-pm6125-moto-common-overlay.dtsi | 1 + 3 files changed, 13 insertions(+), 484 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 48fcfd8c6f89..5b28c56c0170 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -18,14 +18,13 @@ #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include #include "camera/holi-camera-pm6125-overlay.dtsi" #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; qcom,cdc-static-supplies = "cdc-vdd-rxtx", "cdc-vddpx"; /* @@ -239,11 +238,11 @@ }; }; - mtp_batterydata: qcom,battery-data { - qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-alium-3600mah.dtsi" - #include "qg-batterydata-atl466271_3300mAh.dtsi" - #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + cx_ipeak_lm: cx_ipeak@3ed000 { + #size-cells = <1>; + compatible = "qcom,cx-ipeak-v2"; + reg = <0x3ed000 0xe010>; + status = "ok"; }; }; @@ -261,228 +260,10 @@ }; }; -&pm7250b_charger { - status = "ok"; - #io-channel-cells = <1>; - io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, - <&pm7250b_vadc ADC5_USB_IN_I>, - <&pm7250b_vadc ADC5_CHG_TEMP>, - <&pm7250b_vadc ADC5_DIE_TEMP>, - <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, - <&pm7250b_vadc ADC5_SBUx>, - <&pm7250b_vadc ADC5_VPH_PWR>, - <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, - <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, - <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, - <&pm7250b_qg PSY_IIO_TEMP>, - <&pm7250b_qg PSY_IIO_CAPACITY>, - <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, - <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, - <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, - <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, - <&pm7250b_qg PSY_IIO_CC_SOC>, - <&pm7250b_qg PSY_IIO_CURRENT_NOW>, - <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, - <&pm7250b_qg PSY_IIO_CHARGE_FULL>, - <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, - <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, - <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, - <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, - <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_MODE>, - <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_OUTPUT_MODE>, - <&smb1394_div2_cp_primary PSY_IIO_MIN_ICL>, - <&smb1394_div2_cp_primary PSY_IIO_CP_SWITCHER_EN>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ILIM>, - <&smb1394_div2_cp_primary PSY_IIO_CP_DIE_TEMP>; - io-channel-names = "usb_in_voltage", - "usb_in_current", - "chg_temp", - "die_temp", - "conn_temp", - "sbux_res", - "vph_voltage", - "skin_temp", - "resistance_id", - "voltage_now", - "temp", - "capacity", - "voltage_ocv", - "voltage_avg", - "debug_battery", - "real_capacity", - "cc_soc", - "current_now", - "voltage_max", - "charge_full", - "charge_counter", - "cycle_count", - "charge_full_design", - "time_to_full_now", - "cp_parallel_mode", - "cp_parallel_output_mode", - "cp_min_icl", - "cp_switcher_en", - "cp_enable", - "cp_ilim", - "cp_die_temp"; - qcom,battery-data = <&mtp_batterydata>; - qcom,sec-charger-config = <1>; - qcom,auto-recharge-soc = <98>; - qcom,step-charging-enable; - qcom,sw-jeita-enable; - qcom,charger-temp-max = <800>; - qcom,smb-temp-max = <800>; - qcom,suspend-input-on-debug-batt; - qcom,fcc-stepping-enable; - qcom,fcc-step-delay-ms = <100>; - qcom,fcc-step-size-ua = <100000>; - qcom,smb-internal-pull-kohm = <0>; - qcom,en-skin-therm-mitigation; - qcom,hvdcp3-standalone-config; -}; - -&pm7250b_qg { - status = "ok"; - #io-channel-cells = <1>; - io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, - <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, - <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, - <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, - <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, - <&pm7250b_charger PSY_IIO_CHARGE_DONE>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>; - io-channel-names = "batt-therm", - "batt-id", - "input_current_limited", - "recharge_soc", - "force_recharge", - "charge_done", - "cp_charging_enabled"; - qcom,battery-data = <&mtp_batterydata>; - qcom,qg-iterm-ma = <150>; - qcom,hold-soc-while-full; - qcom,linearize-soc; - qcom,cl-feedback-on; - qcom,tcss-enable; - qcom,fvss-enable; - qcom,fvss-vbatt-mv = <3300>; - qcom,bass-enable; - qcom,use-cp-iin-sns; -}; - &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; }; -&pm7250b_vadc { - smb1390_therm@e { - qcom,scale-fn-type = ; - }; -}; -&pm7250b_gpios { - smb_stat { - smb_stat_default: smb_stat_default { - pins = "gpio6"; - function = "normal"; - input-enable; - bias-pull-up; - qcom,pull-up-strength = ; - power-source = <0>; - }; - }; -}; - -&qupv3_se10_i2c { - status = "ok"; - #include "smb1394.dtsi" -}; - -&smb1394 { - interrupts = <0x2 0xc5 0x0 IRQ_TYPE_LEVEL_LOW>; - interrupt-parent = <&spmi_bus>; - interrupt-names = "smb1394"; - pinctrl-names = "default"; - qcom,enable-toggle-stat; - pinctrl-0 = <&smb_stat_default>; - status = "ok"; -}; - -&smb1394_div2_cp_primary { - io-channels = <&pm7250b_vadc ADC5_AMUX_THM2>, - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, - <&pm7250b_charger PSY_IIO_ADAPTER_CC_MODE>, - <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, - <&pm7250b_charger PSY_IIO_SMB_EN_MODE>, - <&pm7250b_charger PSY_IIO_SMB_EN_REASON>; - io-channel-names = "die_temp", - "real_type", - "adapter_cc_mode", - "pd_current_max", - "input_current_settled", - "smb_en_mode", - "smb_en_reason"; - qcom,parallel-input-mode = <1>; /* USBIN */ - qcom,parallel-output-mode = <2>; /* VBAT */ - status = "ok"; -}; #include "camera/holi-camera-sensor-pm6125-mtp.dtsi" - -&pm7250b_charger { - dpdm-supply = <&qusb_phy0>; - - smb5_vbus: qcom,smb5-vbus { - regulator-name = "smb5-vbus"; - }; - - smb5_vconn: qcom,smb5-vconn { - regulator-name = "smb5-vconn"; - }; -}; - -&pm7250b_pdphy { - vdd-pdphy-supply = <&L3A>; - vbus-supply = <&smb5_vbus>; - vconn-supply = <&smb5_vconn>; - - #io-channel-cells = <1>; - io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, - <&pm7250b_charger PSY_IIO_TYPEC_CC_ORIENTATION>, - <&pm7250b_charger PSY_IIO_CONNECTOR_TYPE>, - <&pm7250b_charger PSY_IIO_TYPEC_POWER_ROLE>, - <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, - <&pm7250b_charger PSY_IIO_TYPEC_SRC_RP>, - <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, - <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_PR_SWAP>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, - <&pm7250b_charger PSY_IIO_TYPEC_MODE>, - <&pm7250b_charger PSY_IIO_PE_START>; - io-channel-names = "pd_active", - "typec_cc_orientation", - "connector_type", - "typec_power_role", - "pd_usb_suspend_supported", - "typec_src_rp", - "pd_in_hard_reset", - "pr_current_max", - "pr_swap", - "pd_voltage_min", - "pd_voltage_max", - "real_type", - "typec_mode", - "pe_start"; -}; - -&usb0 { - extcon = <&pm7250b_pdphy>, <&pm7250b_charger>, <&eud>; - - #io-channel-cells = <1>; - io-channels= <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; - io-channel-names = "chg_type"; -}; diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 8fb1ce2bae19..a3e8dcd50530 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -18,12 +18,11 @@ #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include #include "camera/holi-camera-pm6125-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; qcom,cdc-static-supplies = "cdc-vdd-rxtx", "cdc-vddpx"; /* @@ -237,11 +236,11 @@ }; }; - mtp_batterydata: qcom,battery-data { - qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-alium-3600mah.dtsi" - #include "qg-batterydata-atl466271_3300mAh.dtsi" - #include "qg-batterydata-atl436186020H_3780mAh.dtsi" + cx_ipeak_lm: cx_ipeak@3ed000 { + #size-cells = <1>; + compatible = "qcom,cx-ipeak-v2"; + reg = <0x3ed000 0xe010>; + status = "ok"; }; }; @@ -259,262 +258,10 @@ }; }; -&qupv3_se8_i2c { - status = "okay"; - qcom,i2c-touch-active="synaptics,tcm-i2c"; - - synaptics_tcm@20 { - compatible = "synaptics,tcm-i2c"; - reg = <0x20>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - vdd-supply = <&L9A>; - avdd-supply = <&touch_avdd>; - synaptics,pwr-reg-name = "avdd"; - synaptics,bus-reg-name = "vdd"; - synaptics,irq-gpio = <&tlmm 22 0x2008>; - synaptics,irq-on-state = <0>; - synaptics,reset-gpio = <&tlmm 21 0x00>; - synaptics,reset-on-state = <0>; - synaptics,reset-active-ms = <20>; - synaptics,reset-delay-ms = <200>; - synaptics,power-delay-ms = <200>; - synaptics,ubl-i2c-addr = <0x20>; - synaptics,extend_report; - synaptics,firmware-name = "synaptics_firmware.img"; - - panel = <&dsi_rm69299_visionox_amoled_video - &dsi_rm69299_visionox_amoled_cmd>; - }; -}; - -&pm7250b_charger { - status = "ok"; - #io-channel-cells = <1>; - io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, - <&pm7250b_vadc ADC5_USB_IN_I>, - <&pm7250b_vadc ADC5_CHG_TEMP>, - <&pm7250b_vadc ADC5_DIE_TEMP>, - <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, - <&pm7250b_vadc ADC5_SBUx>, - <&pm7250b_vadc ADC5_VPH_PWR>, - <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, - <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, - <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, - <&pm7250b_qg PSY_IIO_TEMP>, - <&pm7250b_qg PSY_IIO_CAPACITY>, - <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, - <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, - <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, - <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, - <&pm7250b_qg PSY_IIO_CC_SOC>, - <&pm7250b_qg PSY_IIO_CURRENT_NOW>, - <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, - <&pm7250b_qg PSY_IIO_CHARGE_FULL>, - <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, - <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, - <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, - <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, - <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_MODE>, - <&smb1394_div2_cp_primary PSY_IIO_PARALLEL_OUTPUT_MODE>, - <&smb1394_div2_cp_primary PSY_IIO_MIN_ICL>, - <&smb1394_div2_cp_primary PSY_IIO_CP_SWITCHER_EN>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ILIM>, - <&smb1394_div2_cp_primary PSY_IIO_CP_DIE_TEMP>; - io-channel-names = "usb_in_voltage", - "usb_in_current", - "chg_temp", - "die_temp", - "conn_temp", - "sbux_res", - "vph_voltage", - "skin_temp", - "resistance_id", - "voltage_now", - "temp", - "capacity", - "voltage_ocv", - "voltage_avg", - "debug_battery", - "real_capacity", - "cc_soc", - "current_now", - "voltage_max", - "charge_full", - "charge_counter", - "cycle_count", - "charge_full_design", - "time_to_full_now", - "cp_parallel_mode", - "cp_parallel_output_mode", - "cp_min_icl", - "cp_switcher_en", - "cp_enable", - "cp_ilim", - "cp_die_temp"; - qcom,battery-data = <&mtp_batterydata>; - qcom,sec-charger-config = <1>; - qcom,auto-recharge-soc = <98>; - qcom,step-charging-enable; - qcom,sw-jeita-enable; - qcom,charger-temp-max = <800>; - qcom,smb-temp-max = <800>; - qcom,suspend-input-on-debug-batt; - qcom,fcc-stepping-enable; - qcom,fcc-step-delay-ms = <100>; - qcom,fcc-step-size-ua = <100000>; - qcom,smb-internal-pull-kohm = <0>; - qcom,en-skin-therm-mitigation; - qcom,hvdcp3-standalone-config; -}; - -&pm7250b_qg { - status = "ok"; - #io-channel-cells = <1>; - io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, - <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, - <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, - <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, - <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, - <&pm7250b_charger PSY_IIO_CHARGE_DONE>, - <&smb1394_div2_cp_primary PSY_IIO_CP_ENABLE>; - io-channel-names = "batt-therm", - "batt-id", - "input_current_limited", - "recharge_soc", - "force_recharge", - "charge_done", - "cp_charging_enabled"; - qcom,battery-data = <&mtp_batterydata>; - qcom,qg-iterm-ma = <150>; - qcom,hold-soc-while-full; - qcom,linearize-soc; - qcom,cl-feedback-on; - qcom,tcss-enable; - qcom,fvss-enable; - qcom,fvss-vbatt-mv = <3300>; - qcom,bass-enable; - qcom,use-cp-iin-sns; -}; - &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; }; -&pm7250b_vadc { - smb1390_therm@e { - qcom,scale-fn-type = ; - }; -}; -&pm7250b_gpios { - smb_stat { - smb_stat_default: smb_stat_default { - pins = "gpio6"; - function = "normal"; - input-enable; - bias-pull-up; - qcom,pull-up-strength = ; - power-source = <0>; - }; - }; -}; - -&qupv3_se10_i2c { - status = "ok"; - #include "smb1394.dtsi" -}; - -&smb1394 { - interrupts = <0x2 0xc5 0x0 IRQ_TYPE_LEVEL_LOW>; - interrupt-parent = <&spmi_bus>; - interrupt-names = "smb1394"; - pinctrl-names = "default"; - qcom,enable-toggle-stat; - pinctrl-0 = <&smb_stat_default>; - status = "ok"; -}; - -&smb1394_div2_cp_primary { - io-channels = <&pm7250b_vadc ADC5_AMUX_THM2>, - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, - <&pm7250b_charger PSY_IIO_ADAPTER_CC_MODE>, - <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, - <&pm7250b_charger PSY_IIO_SMB_EN_MODE>, - <&pm7250b_charger PSY_IIO_SMB_EN_REASON>; - io-channel-names = "die_temp", - "real_type", - "adapter_cc_mode", - "pd_current_max", - "input_current_settled", - "smb_en_mode", - "smb_en_reason"; - qcom,parallel-input-mode = <1>; /* USBIN */ - qcom,parallel-output-mode = <2>; /* VBAT */ - status = "ok"; -}; #include "camera/holi-camera-sensor-pm6125-mtp.dtsi" - -&pm7250b_charger { - dpdm-supply = <&qusb_phy0>; - - smb5_vbus: qcom,smb5-vbus { - regulator-name = "smb5-vbus"; - }; - - smb5_vconn: qcom,smb5-vconn { - regulator-name = "smb5-vconn"; - }; -}; - -&pm7250b_pdphy { - vdd-pdphy-supply = <&L3A>; - vbus-supply = <&smb5_vbus>; - vconn-supply = <&smb5_vconn>; - - #io-channel-cells = <1>; - io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, - <&pm7250b_charger PSY_IIO_TYPEC_CC_ORIENTATION>, - <&pm7250b_charger PSY_IIO_CONNECTOR_TYPE>, - <&pm7250b_charger PSY_IIO_TYPEC_POWER_ROLE>, - <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, - <&pm7250b_charger PSY_IIO_TYPEC_SRC_RP>, - <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, - <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_PR_SWAP>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, - <&pm7250b_charger PSY_IIO_TYPEC_MODE>, - <&pm7250b_charger PSY_IIO_PE_START>; - io-channel-names = "pd_active", - "typec_cc_orientation", - "connector_type", - "typec_power_role", - "pd_usb_suspend_supported", - "typec_src_rp", - "pd_in_hard_reset", - "pr_current_max", - "pr_swap", - "pd_voltage_min", - "pd_voltage_max", - "real_type", - "typec_mode", - "pe_start"; -}; - -&usb0 { - extcon = <&pm7250b_pdphy>, <&pm7250b_charger>, <&eud>; - - #io-channel-cells = <1>; - io-channels= <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; - io-channel-names = "chg_type"; -}; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 3e775c832972..03db6c1e3734 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -11,6 +11,7 @@ */ #include "holi-pm6125-overlay.dtsi" #include "holi-regulators-pm6125.dtsi" +#include "holi-mtp-pm7250b.dtsi" #include "carrier-channel-ids.dtsi" #include From a9b53806c4d33cc0891224f5cc6922d3914e25df Mon Sep 17 00:00:00 2001 From: louhs1 Date: Mon, 5 Jul 2021 17:34:07 +0800 Subject: [PATCH 0288/1247] arm64/dt: corfuq: bringup volumeup and google key for corfuq: add volume up key and google key Change-Id: I85de6412540ba68711a4567ff530d32dac7b8b23 Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2002220 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index b80544b60502..19b950f4b8d5 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -144,10 +144,23 @@ &soc { - gpio_keys { + gpio_keys: gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + pinctrl-names = "default"; pinctrl-0 = <&key_vol_up_default &google_key_default>; + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + google_key { label = "google_key"; gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; From 6e4b57e87415025dc3e84ad2c3e7775318c5d59f Mon Sep 17 00:00:00 2001 From: louhs1 Date: Mon, 5 Jul 2021 17:50:29 +0800 Subject: [PATCH 0289/1247] arm64/dt: corfur: sync dts from corfuq corfur: sync the dts from corfuq Change-Id: I46d8f8c2f612761c34820a45d3c696b78a45da3f Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2002238 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfur-common-overlay.dtsi | 379 +++++++++++++++++++-------- qcom/holi-corfur-dvt1b-overlay.dts | 3 +- qcom/holi-corfur-dvt1d-overlay.dts | 3 +- 3 files changed, 273 insertions(+), 112 deletions(-) diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 120072dad2ed..ce75d6b9467c 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -10,14 +10,28 @@ * GNU General Public License for more details. */ -#include "holi-moto-common-overlay.dtsi" -#include "corfup-display.dtsi" -#include "corfup-touchscreen.dtsi" +//#include "holi-moto-common-overlay.dtsi" +//#include "corfup-display.dtsi" +//#include "corfup-touchscreen.dtsi" +//#include "corfup-fps-overlay.dtsi" +//#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +//#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +//#include "moto_therm_sys_temp.dtsi" +//#include "corfup-charger.dtsi" + +#include "holi-pm6125-moto-common-overlay.dtsi" + +//#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include +#include "camera/holi-camera-pm6125-overlay.dtsi" #include "corfup-fps-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" -#include "moto_therm_sys_temp.dtsi" -#include "corfup-charger.dtsi" +#include "corfuq-display.dtsi" +#include "corfuq-touchscreen.dtsi" &tlmm { google_key_default: google_key_default { @@ -129,23 +143,100 @@ -&gpio_keys { - pinctrl-0 = <&key_vol_up_default &google_key_default>; +&soc { + gpio_keys: gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; }; &sdhc_2 { status = "ok"; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; }; &qupv3_se10_i2c { @@ -240,107 +331,177 @@ }; }; -&sx937x { - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L11A>; + avdd-supply = <&L6A>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 + sx937x:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l12>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; - status = "ok"; + status = "ok"; + }; }; &qupv3_se7_i2c { @@ -388,6 +549,7 @@ }; }; +/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -557,6 +719,7 @@ }; }; }; +*/ &pm8008_8 { status = "disabled"; diff --git a/qcom/holi-corfur-dvt1b-overlay.dts b/qcom/holi-corfur-dvt1b-overlay.dts index f7a6e6dd27d1..bb68eadadbdb 100644 --- a/qcom/holi-corfur-dvt1b-overlay.dts +++ b/qcom/holi-corfur-dvt1b-overlay.dts @@ -13,8 +13,7 @@ /dts-v1/; /plugin/; -#include "holi-corfup-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" +#include "holi-corfuq-common-overlay.dtsi" / { model = "corfur"; diff --git a/qcom/holi-corfur-dvt1d-overlay.dts b/qcom/holi-corfur-dvt1d-overlay.dts index d92fc5ba7a04..84b9c07b2522 100644 --- a/qcom/holi-corfur-dvt1d-overlay.dts +++ b/qcom/holi-corfur-dvt1d-overlay.dts @@ -13,8 +13,7 @@ /dts-v1/; /plugin/; -#include "holi-corfup-common-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" +#include "holi-corfuq-common-overlay.dtsi" / { model = "corfur"; From f9ead445db8346c1474031e36a3d3199ba42856d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 6 Jul 2021 12:08:48 +0800 Subject: [PATCH 0290/1247] arm/dt: corfu: enable single tap function - enable single tap function - add power off suspend flag for touchscreen mmi, so power on and off touch ic when resume and suspend Change-Id: I3b59a36fe1b9505c0e093a607ed3b347e59054ef Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2003120 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: litong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-touchscreen.dtsi | 2 ++ qcom/corfuq-touchscreen.dtsi | 2 ++ 2 files changed, 4 insertions(+) diff --git a/qcom/corfup-touchscreen.dtsi b/qcom/corfup-touchscreen.dtsi index 4d163fee3284..9b2ef39b42d4 100755 --- a/qcom/corfup-touchscreen.dtsi +++ b/qcom/corfup-touchscreen.dtsi @@ -36,7 +36,9 @@ panel = <&dsi_vtdr6110c_visionox_video>; /* touchscreen_mmi class entries*/ + mmi,enable-gestures; mmi,usb-charger-detection; mmi,class-entry-name = "ft3519"; + mmi,power-off-suspend; }; }; diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi index 7cd21a412eb7..6693364e0540 100755 --- a/qcom/corfuq-touchscreen.dtsi +++ b/qcom/corfuq-touchscreen.dtsi @@ -36,7 +36,9 @@ panel = <&dsi_vtdr6110c_visionox_video>; /* touchscreen_mmi class entries*/ + mmi,enable-gestures; mmi,usb-charger-detection; mmi,class-entry-name = "ft3519"; + mmi,power-off-suspend; }; }; From 01662a97d002c46d636da5b4bd2e7eba9062d1c8 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 6 Jul 2021 12:10:53 +0800 Subject: [PATCH 0291/1247] arm/dt: panel: add demura code for vtdr6110c ic arm/dt: Add demura code for vtdr6110c ic, according to vendor. Change-Id: Ie9709f91f2c221067a40f7a0f75c67f87c976b48 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2003121 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index 852c18360d5f..1a86a2003ddc 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -56,6 +56,7 @@ 15 01 00 00 00 00 02 53 20 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 6F 01 + 15 01 00 00 00 00 02 59 09 39 01 00 00 00 00 03 F0 AA 10 39 01 00 00 00 00 03 EA 30 00 39 01 00 00 00 00 03 F0 AA 11 From 6e61a540b4a21816dac5b0310545e65664579677 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Tue, 6 Jul 2021 16:02:30 +0800 Subject: [PATCH 0292/1247] corfu5G: arm64/dts: audio bringup corfu5G has 3 audio hardware configs: corfup = sm4350 + aw88258 corfuq = sm4350pro + aw88258 corfur = sm6375 + aw88261 Change-Id: Ic3585b0537274ab11647a9d86f23fb1a8de943be Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2002451 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...oli-audio-wcd9370-aw882xx-acf-overlay.dtsi | 392 ++++++++++++++++++ qcom/holi-corfup-common-overlay.dtsi | 2 +- qcom/holi-corfuq-common-overlay.dtsi | 16 +- qcom/holi-corfur-common-overlay.dtsi | 15 +- 4 files changed, 421 insertions(+), 4 deletions(-) create mode 100644 qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi diff --git a/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi new file mode 100644 index 000000000000..59fcf37301a8 --- /dev/null +++ b/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi @@ -0,0 +1,392 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_reset_default: aw882xx_reset_default { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + output-high; + }; + }; + + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s1 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <2>; +}; + +&dai_mi2s2 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s3 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xx_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>, <&aw882xx_reset_default>; + reset-gpio = <&tlmm 58 0>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 120072dad2ed..fe633b0e25f8 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -15,7 +15,7 @@ #include "corfup-touchscreen.dtsi" #include "corfup-fps-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 19b950f4b8d5..8c3cce773401 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -15,13 +15,11 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" //#include "moto_therm_sys_temp.dtsi" //#include "corfup-charger.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" -//#include "holi-audio-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -32,6 +30,20 @@ #include "corfup-fps-overlay.dtsi" #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; &tlmm { google_key_default: google_key_default { diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index ce75d6b9467c..9aabf1c6f530 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -15,7 +15,6 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" //#include "moto_therm_sys_temp.dtsi" //#include "corfup-charger.dtsi" @@ -32,6 +31,20 @@ #include "corfup-fps-overlay.dtsi" #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; &tlmm { google_key_default: google_key_default { From fa71500720c7121aeeb6f0fc00193f35ca60f4bf Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 6 Jul 2021 16:44:39 +0800 Subject: [PATCH 0293/1247] arm64/dts: config charging default dts parameter config charging default dts parameter for sm4350 pro platform Change-Id: Ice9946d68e70b1aad9d8f943bc0b15ec89fb24aa Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2003372 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 114 ++++++++++++++++++++++ 1 file changed, 114 insertions(+) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 03db6c1e3734..888e9247fc50 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -197,3 +197,117 @@ status = "ok"; }; }; + +&soc { + mot_batterydata: qcom,battery-data { + df-serialnum = "SB18D00294"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-md50-amperex-5000mah.dtsi" + }; +}; + +&pm7250b_charger { + status = "ok"; + qcom,battery-data = <&mot_batterydata>; + qcom,sec-charger-config = <0>; + qcom,auto-recharge-soc = <98>; + qcom,charger-temp-max = <800>; + qcom,smb-temp-max = <800>; + qcom,suspend-input-on-debug-batt; + qcom,hvdcp3-standalone-config; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4450000>; + qcom,usb-icl-ua = <3000000>; + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + qcom,pd-voltage-max-uv = <9000000>; + qcom,usbpd-phandle = <&pm7250b_pdphy>; +}; + +&spmi_bus { + qcom,pm7250b@2 { + pm7250b_mmi: qcom,qpnp-smb5-mmi { + status = "ok"; + compatible = "qcom,mmi-pm7250b-smb5"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_CTM_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_RERUN_AICL>, + <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_BATT_FULL_CURRENT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>; + io-channel-names = "usb_ctm_current_max", + "main_current_max", + "usb_typec_mode", + "battery_dp_dm", + "usb_pd_active", + "usb_real_type", + "usb_hw_current_max", + "usb_input_current_settled", + "battery_rerun_aicl", + "battery_sw_jeita_enabled", + "voltage_now", + "current_now", + "temp", + "capacity", + "charge_full", + "batt_full_current", + "charge_full_design"; + qcom,enable-charging-limit; + qcom,upper-limit-capacity = <65>; + qcom,lower-limit-capacity = <60>; + qcom,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 2500 0>; + qcom,iterm-ma = <242>; + qcom,vfloat-comp-uv = <20000>; + qcom,force-hvdcp-5v; + }; + }; +}; + +&pm7250b_qg { + status = "ok"; + qcom,battery-data = <&mot_batterydata>; + qcom,qg-iterm-ma = <150>; + qcom,hold-soc-while-full; + qcom,linearize-soc; + qcom,cl-feedback-on; + qcom,cl-min-start-soc = <0>; + qcom,cl-max-start-soc = <5>; + qcom,cl-min-temp = <150>; + qcom,cl-max-temp = <450>; + qcom,cl-max-increment = <5>; + qcom,cl-max-decrement = <10>; + qcom,cl-min-limit = <200>; + qcom,cl-max-limit = <30>; + qcom,s3-entry-ibat-ua = <35000>; + qcom,s3-exit-ibat-ua = <50000>; +}; + +&pm7250b_pdphy { + qcom,default-sink-caps = <5000 3000>, /*5V @ 3A*/ + <9000 2000>; /*9V @ 2A*/ +}; + +&bcl_soc { + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>; + io-channel-names = "usb_hw_current_max"; + qcom,bcl-not-mitigate-icl = <2500>; +}; From 5dc1c5907349f10da5c6bb63863a21cb4c102082 Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Tue, 6 Jul 2021 13:22:41 +0800 Subject: [PATCH 0294/1247] corfuq/r:proximity leda power change corf5G: dvt1 4350pro leda power change Change-Id: Iba7cf91145378445c48ca558f06c03d7543e7d98 Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2003178 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lijun Chen Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 1 + qcom/holi-corfur-common-overlay.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 8c3cce773401..62aaee232176 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -286,6 +286,7 @@ regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; + regulator-always-on; }; }; }; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 9aabf1c6f530..6e128f13c564 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -287,6 +287,7 @@ regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; + regulator-always-on; }; }; }; From 14feeab3fe5f6cbd6e52baf31e6d5c6e1e8e9791 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 6 Jul 2021 17:56:57 +0800 Subject: [PATCH 0295/1247] arm/dts: config charge for courfuq and corfur product arm/dts config charge info for courfuq and corfur product Change-Id: I42bb78be7d00a4794e3380b31983b517e72e8008 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2003329 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Haijian Ma Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 2 +- qcom/holi-corfur-common-overlay.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 62aaee232176..144616cb7a49 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -16,7 +16,6 @@ //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" //#include "moto_therm_sys_temp.dtsi" -//#include "corfup-charger.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -31,6 +30,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "corfup-charger.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 6e128f13c564..d6439e3a946d 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -16,7 +16,6 @@ //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" //#include "moto_therm_sys_temp.dtsi" -//#include "corfup-charger.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -32,6 +31,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "corfup-charger.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 39403834e4f2a08627d374eb975fc1ac73faf3c5 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 6 Jul 2021 17:50:21 +0800 Subject: [PATCH 0296/1247] arch/dts: config charging parameter for cypfq config charging parameter for cypfq Change-Id: I2db89aba7a10c0d16ba4d7210fb2662983fc92a3 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2003498 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 5b28c56c0170..fcd5b319b626 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -264,6 +264,33 @@ qcom,vib-ldo-volt-uv = <3000000>; }; +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + +&pm7250b_charger { + qcom,dcp-curr-max = <2000000>; + qcom,fcc-max-ua = <3000000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; #include "camera/holi-camera-sensor-pm6125-mtp.dtsi" From 4014de2882b93c72f731febde346c25de30fb567 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 6 Jul 2021 18:27:10 +0800 Subject: [PATCH 0297/1247] cypfq/sensor: sar sensor bring up 1.change vdd from l8 to l12 2.holi-pm6125-moto-common-overlay.dtsi for common Change-Id: Id7c2d956581baba96ca70aceead744780db7903d Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2003560 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 888e9247fc50..364bfc71c0d0 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -94,6 +94,11 @@ }; }; +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + &qupv3_se8_i2c { status = "okay"; @@ -107,7 +112,7 @@ interrupts = <24 0x02>; interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; + cap_vdd-supply = <&pm6125_l12>; /*use PH5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; From aa4acb2f4dc7efda76c53fcc694506397dd1bc6d Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Tue, 6 Jul 2021 17:01:17 +0800 Subject: [PATCH 0298/1247] arm64/dts:sar sensor bringup for corfu-5G sar sensor bringup work on 4350 pro&6375 pm6150a_l8 --->pm6125_l12 qupv3_se8---->qupv3_se10 remove gpio24 used in LCD Change-Id: I884bb15fc6c33ad3970fc7174de46b9669516bce Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2003483 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/corfuq-display.dtsi | 6 + qcom/holi-corfuq-common-overlay.dtsi | 226 ++++++++++++++------------- qcom/holi-corfuq-dvt1a-overlay.dts | 112 ------------- qcom/holi-corfuq-dvt1c-overlay.dts | 112 ------------- qcom/holi-corfur-common-overlay.dtsi | 144 +++++++++-------- qcom/holi-corfur-dvt1b-overlay.dts | 113 -------------- qcom/holi-corfur-dvt1d-overlay.dts | 113 -------------- 7 files changed, 193 insertions(+), 633 deletions(-) diff --git a/qcom/corfuq-display.dtsi b/qcom/corfuq-display.dtsi index 3afdb668e8e0..2a0a7bc2c5da 100644 --- a/qcom/corfuq-display.dtsi +++ b/qcom/corfuq-display.dtsi @@ -7,6 +7,7 @@ /delete-property/ qcom,dsi-default-panel; qcom,dsi-default-panel = <&dsi_vtdr6110c_visionox_video>; + /delete-property/ avdd-supply; vddio-supply = <&L13A>; }; @@ -27,6 +28,11 @@ }; }; +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + &dsi_vtdr6110c_visionox_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 144616cb7a49..16fe2678eb8f 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -251,6 +251,18 @@ status = "ok"; }; + +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + &qupv3_se10_i2c { status = "ok"; @@ -342,11 +354,111 @@ }; }; }; -}; + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l12>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ -&pm6125_l12 { - regulator-always-on; - qcom,init-voltage = <1800000>; + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; }; &qupv3_se8_i2c { @@ -383,112 +495,6 @@ }; }; -&sx937x { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - //please fix me - cap_vdd-supply = <&pm6125_l12>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; -}; - &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; diff --git a/qcom/holi-corfuq-dvt1a-overlay.dts b/qcom/holi-corfuq-dvt1a-overlay.dts index 541cfa8c85a2..71edc17833a4 100644 --- a/qcom/holi-corfuq-dvt1a-overlay.dts +++ b/qcom/holi-corfuq-dvt1a-overlay.dts @@ -21,116 +21,4 @@ qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x45 0xB1A0>; }; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; diff --git a/qcom/holi-corfuq-dvt1c-overlay.dts b/qcom/holi-corfuq-dvt1c-overlay.dts index 7d4e21e13528..4d2d3f41a45d 100644 --- a/qcom/holi-corfuq-dvt1c-overlay.dts +++ b/qcom/holi-corfuq-dvt1c-overlay.dts @@ -21,116 +21,4 @@ qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x45 0xB1C0>; }; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index d6439e3a946d..4fd1370d90f1 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -251,6 +251,38 @@ status = "ok"; }; +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; &qupv3_se10_i2c { status = "ok"; @@ -343,74 +375,6 @@ }; }; }; -}; - -&tlmm { - sar_int_default: sar_int_default { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; - - sar_int_sleep: sar_int_sleep { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; -}; - -&pm6125_l12 { - regulator-always-on; - qcom,init-voltage = <1800000>; -}; - -&qupv3_se8_i2c { - status = "okay"; - qcom,i2c-touch-active="synaptics,tcm-i2c"; - - synaptics_tcm@20 { - compatible = "synaptics,tcm-i2c"; - reg = <0x20>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - vdd-supply = <&L11A>; - avdd-supply = <&L6A>; - synaptics,pwr-reg-name = "avdd"; - synaptics,bus-reg-name = "vdd"; - synaptics,irq-gpio = <&tlmm 22 0x2008>; - synaptics,irq-on-state = <0>; - synaptics,reset-gpio = <&tlmm 21 0x00>; - synaptics,reset-on-state = <0>; - synaptics,reset-active-ms = <20>; - synaptics,reset-delay-ms = <200>; - synaptics,power-delay-ms = <200>; - synaptics,ubl-i2c-addr = <0x20>; - synaptics,extend_report; - synaptics,firmware-name = "synaptics_firmware.img"; - - panel = <&dsi_rm69299_visionox_amoled_video - &dsi_rm69299_visionox_amoled_cmd>; - }; - sx937x:sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; @@ -446,14 +410,14 @@ /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ 0x8098 0x00009240 /*prox threshold ph0*/ @@ -518,6 +482,40 @@ }; }; +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L11A>; + avdd-supply = <&L6A>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; diff --git a/qcom/holi-corfur-dvt1b-overlay.dts b/qcom/holi-corfur-dvt1b-overlay.dts index bb68eadadbdb..7fd29e6ca3f0 100644 --- a/qcom/holi-corfur-dvt1b-overlay.dts +++ b/qcom/holi-corfur-dvt1b-overlay.dts @@ -21,116 +21,3 @@ qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x45 0xB1B0>; }; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; - diff --git a/qcom/holi-corfur-dvt1d-overlay.dts b/qcom/holi-corfur-dvt1d-overlay.dts index 84b9c07b2522..5198cd5a17a6 100644 --- a/qcom/holi-corfur-dvt1d-overlay.dts +++ b/qcom/holi-corfur-dvt1d-overlay.dts @@ -21,116 +21,3 @@ qcom,msm-id = <454 0x10000>, <472 0x10000>; qcom,board-id = <0x46 0xB1D0>; }; -&qupv3_se8_i2c { - sx937x@2c { - status = "disabled"; - }; -}; - -&qupv3_se10_i2c { - sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6150a_l8>; - /*use PH4/5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <4>; - Semtech,ref-phases-b = <5>; - Semtech,ref-phases-c = <6>; - Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; - Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ - - /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ - - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ - - /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ - - /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - - 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ - >; - - status = "ok"; - }; -}; - From ca90b9b635ea8e30440a3b94a3f8906c084b1666 Mon Sep 17 00:00:00 2001 From: liaohj Date: Tue, 6 Jul 2021 20:27:59 +0800 Subject: [PATCH 0299/1247] arm64/dts:Cypfq:disable smb1394 qcom new version rebase. qcom smb1394 use the same i2c & addr. it is not useful for cypfq.disable it. Change-Id: I48b4e3965fb2ffde98e976ad5d885e278343a454 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2003669 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Yuesheng Huang Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index fcd5b319b626..7211d887b5f4 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -22,6 +22,10 @@ #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" +&smb1394 { + status = "disabled"; +}; + &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; From efe49a4b3d8ea91fa4a5a03f8c9edfb59933df71 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Tue, 6 Jul 2021 20:47:43 +0800 Subject: [PATCH 0300/1247] arm64/dts: disable smb1394 in corfuq/corfur Qcom enables smb1394 in , i2c addr is 0x34, probe on qupv3_se10_i2c, it is same as aw882xx. Corfu doesn't use this smb1394, disable it. Change-Id: I944d6dcaa4a0793d7b2048b30c6ad90311d1ae79 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2003691 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 4 ++++ qcom/holi-corfur-common-overlay.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 16fe2678eb8f..bc30a91a08f0 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -32,6 +32,10 @@ #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "corfup-charger.dtsi" +&smb1394 { + status = "disabled"; +}; + &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 4fd1370d90f1..18fcbc0db0a0 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -33,6 +33,10 @@ #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "corfup-charger.dtsi" +&smb1394 { + status = "disabled"; +}; + &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; From 00b1183eaf9889a7ad673ec4f2ccebfd3760ed5b Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Wed, 7 Jul 2021 09:37:18 +0800 Subject: [PATCH 0301/1247] arm64/dts:sar sensor bringup for corfu-5G solve build error on corfur sar sensor bringup work on 6375 pm6150a_l8 --->pm6125_l12 qupv3_se8---->qupv3_se10 Change-Id: I8c0f8abfa90d20137f56e1fbe18267a38422c7cf Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2004143 Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Submit-Approved: Liyun Zhang Tested-by: Liyun Zhang Tested-by: Jira Key --- qcom/holi-corfur-common-overlay.dtsi | 34 ++++++---------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 18fcbc0db0a0..08723770fba7 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -255,39 +255,19 @@ status = "ok"; }; -&tlmm { - sar_int_default: sar_int_default { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; - sar_int_sleep: sar_int_sleep { - mux { - pins = "gpio24"; - function = "gpio"; - }; - config { - pins = "gpio24"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; -}; &pm6125_l12 { regulator-always-on; qcom,init-voltage = <1800000>; }; +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + &qupv3_se10_i2c { status = "ok"; @@ -379,7 +359,7 @@ }; }; }; - sx937x:sx937x@2c { + sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; pinctrl-names = "default","sleep"; From 597f7a4485c8c483f35258c8e5e23c4e244fa0a8 Mon Sep 17 00:00:00 2001 From: Qiang Guo Date: Wed, 7 Jul 2021 09:37:53 +0800 Subject: [PATCH 0302/1247] corfup: dvt1a camera not work corfup: dvt1a pmic use pm6125, ldo supply change Change-Id: I643fd129bfda538f149c7973615f15ffa00d0fa5 Signed-off-by: Qiang Guo Reviewed-on: https://gerrit.mot.com/2004139 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bolei Shang Reviewed-by: Qiang Guo Reviewed-by: Ji Zhao Reviewed-by: Shuo Wang Reviewed-by: Wang Liu Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index bc30a91a08f0..d0ab4053520f 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -31,6 +31,8 @@ #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "corfup-charger.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" &smb1394 { status = "disabled"; @@ -274,8 +276,7 @@ compatible = "semi,wl2866d"; reg = <0x28>; - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; + vin1-supply = <&S6A>; semi,init-value = <0x05>; regulators { @@ -311,8 +312,7 @@ compatible = "semi,wl2864c"; reg = <0x29>; - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; + vin1-supply = <&S6A>; regulators { cam_pmic1_ldo1_dvdd1: ldo1 { From bbe198dbc3525ada2eecc479cd57798ec836ec4a Mon Sep 17 00:00:00 2001 From: liuwang2 Date: Wed, 7 Jul 2021 10:59:27 +0800 Subject: [PATCH 0303/1247] arm/dt: cypfg: modify wl2864c dts [detail] remove vin2, its supply is VPH_PWR. Change-Id: I81db414c97444a61019c369c882b70896bc8d270 Signed-off-by: liuwang2 Reviewed-on: https://gerrit.mot.com/2004287 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiang Guo Reviewed-by: XiaoFeng Wang Reviewed-by: Shuo Wang Reviewed-by: Zhenxin Xi Reviewed-by: Long Cheng Submit-Approved: Jira Key --- qcom/holi-cypfg-common-overlay.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/holi-cypfg-common-overlay.dtsi b/qcom/holi-cypfg-common-overlay.dtsi index a359f130dd20..87a94a1759d8 100644 --- a/qcom/holi-cypfg-common-overlay.dtsi +++ b/qcom/holi-cypfg-common-overlay.dtsi @@ -195,7 +195,6 @@ pinctrl-0 = <&cam_pmic_en_default>; vin1-supply = <&S8E>; - vin2-supply = <&BOB>; regulators { cam_ldo1: ldo1 { From 7de4228bd63f91c0322abb0077d28e4956e558f6 Mon Sep 17 00:00:00 2001 From: liuwang2 Date: Wed, 7 Jul 2021 10:16:05 +0800 Subject: [PATCH 0304/1247] arm/dt: cypfq: add camera dts [detail] add camera dts Change-Id: I43496b0b2b39006ea5d2deaed8d8cb520ea65b45 Signed-off-by: liuwang2 Reviewed-on: https://gerrit.mot.com/2004229 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiang Guo Reviewed-by: XiaoFeng Wang Reviewed-by: Shuo Wang Reviewed-by: Zhenxin Xi Reviewed-by: Long Cheng Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 85 ++++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 3 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 7211d887b5f4..6a393ac7f875 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -18,7 +18,7 @@ #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include "camera/holi-camera-pm6125-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-cypfq-overlay.dtsi" #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" @@ -106,6 +106,19 @@ }; &tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -223,6 +236,74 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S6A>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + &soc { gpio_keys { compatible = "gpio-keys"; @@ -296,5 +377,3 @@ &pm7250b_qg { qcom,qg-iterm-ma = <500>; }; - -#include "camera/holi-camera-sensor-pm6125-mtp.dtsi" From adfe4faf765df0a56afae35c23e801b8ad718946 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 7 Jul 2021 14:18:48 +0800 Subject: [PATCH 0305/1247] arm/dts: config ntc for corfuq and corfur dts/ntc config ntc for corfuq and corfur product Change-Id: Ia75809ce649690ce41d6466bc3bb364c088a7e3d Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2004470 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 33 +++++++++++++++------------- qcom/holi-corfur-common-overlay.dtsi | 32 ++++++++++++++------------- 2 files changed, 35 insertions(+), 30 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index d0ab4053520f..1c1bc992e88f 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -15,7 +15,6 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "moto_therm_sys_temp.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -30,6 +29,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" #include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" @@ -544,7 +544,6 @@ }; }; -/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -573,11 +572,15 @@ xo-therm-usr { status = "disabled"; }; + rear-cam-therm-usr { + status = "disabled"; + }; + pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -587,11 +590,12 @@ }; }; }; + msm_therm { polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -602,10 +606,10 @@ }; }; pa_therm3 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -616,10 +620,10 @@ }; }; pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -633,7 +637,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -689,7 +693,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -714,7 +718,6 @@ }; }; }; -*/ &pm8008_8 { status = "disabled"; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 08723770fba7..56b2b9f0fd2b 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -15,7 +15,6 @@ //#include "corfup-touchscreen.dtsi" //#include "corfup-fps-overlay.dtsi" //#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" -//#include "moto_therm_sys_temp.dtsi" #include "holi-pm6125-moto-common-overlay.dtsi" @@ -31,6 +30,7 @@ #include "corfuq-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" &smb1394 { @@ -545,7 +545,6 @@ }; }; -/* &thermal_zones { pa-therm0-usr { status = "disabled"; @@ -574,11 +573,15 @@ xo-therm-usr { status = "disabled"; }; + rear-cam-therm-usr { + status = "disabled"; + }; + pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -592,7 +595,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -603,10 +606,10 @@ }; }; pa_therm3 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_AMUX_THM3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -617,10 +620,10 @@ }; }; pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -634,7 +637,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm ADC5_GPIO4_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -690,7 +693,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6150l_adc_tm_iio ADC5_GPIO2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -715,7 +718,6 @@ }; }; }; -*/ &pm8008_8 { status = "disabled"; From 5e132013a6fa757dd5b148ee1e9e715a7e805523 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Tue, 6 Jul 2021 13:58:38 +0800 Subject: [PATCH 0306/1247] Thermal: Config NTCs for cypfq cypfq in on SM4350 Pro with PM6125. Config the thermal zones by HW schematic. Change-Id: Ie09c43c73999ae8bd226d8a8cc25b23bab53be4a Reviewed-on: https://gerrit.mot.com/2003206 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 143 ++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 6a393ac7f875..8a41c5c012b9 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -364,6 +364,149 @@ qcom,iterm-ma = <150>; }; +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + chg_skin_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + ufs_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + camera_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + &pm7250b_charger { qcom,dcp-curr-max = <2000000>; qcom,fcc-max-ua = <3000000>; From cff755e6e05c86ac1a9e8bfe6d20fbcf62ab06d5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 7 Jul 2021 17:59:12 +0800 Subject: [PATCH 0307/1247] arm64/dts: cypfq: update the configuration of backlight 1.the width bits is 11bit ,so the max backlight is 2047 2.This must use 2 bytes for backlight. Change-Id: Iff5a79b8ba054585b7877ac5c01ad9cb94bd7b54 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2005082 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 749ed523f7db..a28cdf96b2f2 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -122,11 +122,12 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <27>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -176,11 +177,12 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <27>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From 4e8b6e0d981fac6191b1a31fbc1760ab2d4881eb Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 7 Jul 2021 18:09:10 +0800 Subject: [PATCH 0308/1247] dts/panel: cypfq: remove gpio24 used in LCD At "holi-sde-display-mtp-pm6125.dtsi", gpio24 is used to enable avdd for panel. For cypfq, gpio24 is for sar. Change-Id: Id291165d60aee4a05bfd7f952e3ff4fa00d00a0f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2005094 SME-Granted: SME Approvals Granted Tested-by: Jira Key SLTApproved: Slta Waiver Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index a28cdf96b2f2..391208cd042f 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -59,11 +59,17 @@ }; }; +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + &sde_dsi { /delete-property/ lab-supply; /delete-property/ ibb-supply; /delete-property/ vddio-supply; /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; //lab-supply = <&tps65132_outp>; //ibb-supply = <&tps65132_outn>; @@ -73,6 +79,7 @@ pinctrl-1 = <&sde_avdd_avee_enable_active &sde_avdd_avee_enable_suspend>; }; + &soc { dsi_panel_pwr_supply_cypfq: dsi_panel_pwr_supply_cypfq{ #address-cells = <1>; From 556b67592df3e11df758c010dd31c7aaab5d2623 Mon Sep 17 00:00:00 2001 From: Qiang Guo Date: Thu, 8 Jul 2021 16:16:09 +0800 Subject: [PATCH 0309/1247] corfur: camera dts configuration corfur camera dts configuration Change-Id: I0d442240c4b2637d8fe8d3db6d905537e4297c7a Signed-off-by: Qiang Guo Reviewed-on: https://gerrit.mot.com/2006660 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bolei Shang Reviewed-by: Zhuoran Xu Reviewed-by: Wang Liu Reviewed-by: XiaoFeng Wang Reviewed-by: Ying Xu Reviewed-by: Shuo Wang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-corfur-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 56b2b9f0fd2b..89153a6702de 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -32,6 +32,8 @@ #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" &smb1394 { status = "disabled"; @@ -275,8 +277,7 @@ compatible = "semi,wl2866d"; reg = <0x28>; - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; + vin1-supply = <&S6A>; semi,init-value = <0x05>; regulators { @@ -312,8 +313,7 @@ compatible = "semi,wl2864c"; reg = <0x29>; - vin1-supply = <&S8E>; - vin2-supply = <&BOB>; + vin1-supply = <&S6A>; regulators { cam_pmic1_ldo1_dvdd1: ldo1 { From 5905cae9b7062e9652898f687341feef465755f4 Mon Sep 17 00:00:00 2001 From: liaoxl Date: Fri, 9 Jul 2021 11:29:28 +0800 Subject: [PATCH 0310/1247] arm64/dts: cypfq: enable FM ELNA control module Per tinno HW team req, enable this feature to control FM ELNA module, fix FM signal loss issue of HW design. Change-Id: Ib565b173990e9c78e55579a0d188893d66b29479 Reviewed-on: https://gerrit.mot.com/2007695 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-fmr-overlay.dtsi | 48 +++++++++++++++++++++++++++++ qcom/holi-cypfq-common-overlay.dtsi | 1 + 2 files changed, 49 insertions(+) create mode 100644 qcom/cypfq-fmr-overlay.dtsi diff --git a/qcom/cypfq-fmr-overlay.dtsi b/qcom/cypfq-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/cypfq-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 8a41c5c012b9..1debd825261e 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -21,6 +21,7 @@ #include "camera/holi-camera-sensor-mot-cypfq-overlay.dtsi" #include "cypfq-display.dtsi" #include "cypfg-touchscreen.dtsi" +#include "cypfq-fmr-overlay.dtsi" &smb1394 { status = "disabled"; From f60fd6499b87db573d5632199f74bd1be10bdb60 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 8 Jul 2021 19:57:47 +0800 Subject: [PATCH 0311/1247] arm64/dts:cypfq:audio:change to aw88261 smart pa cypfq:4350pro + aw88261 use aw88261 snd card dts config. Change-Id: Id6b27063646cc2dde61fb5c136a19818cd851687 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2006956 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 1debd825261e..2285a528dfbd 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "holi-pm6125-moto-common-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include #include #include "cypfq-fps-overlay.dtsi" From b9f5ddee5e8c6b2e872639cc85c563574c1415c7 Mon Sep 17 00:00:00 2001 From: weiweij Date: Fri, 9 Jul 2021 11:36:32 +0800 Subject: [PATCH 0312/1247] dts: add google key configuration for cypfq Adding google key configurations for product cypfq Change-Id: Idba07c337274441fea9184a57a6103ccc2f88904 Reviewed-on: https://gerrit.mot.com/2007703 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 2285a528dfbd..c58459bbb669 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -107,6 +107,19 @@ }; &tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + cam_pmic_en_default: cam_pmic_en_default { mux { pins = "gpio38"; @@ -311,7 +324,7 @@ label = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&key_vol_up_default>; + pinctrl-0 = <&key_vol_up_default &google_key_default>; vol_up { label = "volume_up"; @@ -322,6 +335,16 @@ debounce-interval = <15>; linux,can-disable; }; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; }; cx_ipeak_lm: cx_ipeak@3ed000 { From c4a19df1898c6d0216be23bd5eb47fb6bb644c20 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 9 Jul 2021 16:27:42 +0800 Subject: [PATCH 0313/1247] arch/dts: enable leds-indicator-pwm driver As cypfq use pm6375 gpio8 to control charging led, so enable leds-indicator-pwm.ko to control led. Change-Id: Ic96865d46872751eacbc36d351d2266b397cfd4e Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2007933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 33 +++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index c58459bbb669..ab067687775c 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -544,3 +544,36 @@ &pm7250b_qg { qcom,qg-iterm-ma = <500>; }; + +&pm6125_gpios { + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; From 32be3e931ec5ebf4ce96859cf7aba6abd5f92956 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 5 Jul 2021 10:30:39 +0800 Subject: [PATCH 0314/1247] arm64/dts: denver: increase wled ovp and ocp The need for this modification comes from the hardware team. Increase wled ovp and ocp, otherwise new board and panel may trigger ovp fault, cause backlight can't work. Change-Id: Iabaff8d1cdc91730d0e9f01db14d56f36d397e70 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2001706 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/denver-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/denver-display.dtsi b/qcom/denver-display.dtsi index c2e3dcd593ca..ec8710b4446a 100644 --- a/qcom/denver-display.dtsi +++ b/qcom/denver-display.dtsi @@ -26,8 +26,8 @@ qcom,wled-bl-step-up; qcom,wled-bl-step-sequence = <255 5>, <2048 6>; - qcom,ovp = <23500>; - qcom,boost-current-limit = <1050>; + qcom,ovp = <26500>; + qcom,boost-current-limit = <1400>; mmi,only-low-bl-force-cabc-disable; mmi,low-bl-threshold = <200>; From a2e1a3f28fe4a18417122a199dbab2f592ff6424 Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Mon, 12 Jul 2021 14:15:12 +0800 Subject: [PATCH 0315/1247] corf5G:leda voltage default set as 3.0V corfup/r: set default leda voltage as 3.0v in the dts Change-Id: Iedbaa1b3fddf5bcbfeeb8c1b8bf10f6e9d12a401 Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2009109 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-corfuq-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 1c1bc992e88f..092f15e28f38 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -301,8 +301,8 @@ cam_pmic2_ldo4_avdd2: ldo4 { regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-always-on; }; }; From b1bcfd094122133c6d143918ac98be16413120f1 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 13 Jul 2021 14:47:04 +0800 Subject: [PATCH 0316/1247] Cypfq: arm64/dts: Fixed ilitek touch esd issue - Since ilitek touch will meet esd issue and need to keep int gpio in pull up state, therefore change dtsi for fixed this issue. Change-Id: I499da7069160ec7084df6d4ebd27b2d13ca945e7 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2010711 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfg-touchscreen.dtsi | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/qcom/cypfg-touchscreen.dtsi b/qcom/cypfg-touchscreen.dtsi index 96a06ad3c86b..a070854121bf 100755 --- a/qcom/cypfg-touchscreen.dtsi +++ b/qcom/cypfg-touchscreen.dtsi @@ -38,6 +38,20 @@ }; }; + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + touch_reset_mux { touch_reset_active: active { mux { @@ -102,10 +116,9 @@ panel = <&dsi_tm_ili7807s_678_fhd_video>; touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2008>; - pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; pinctrl-0 = <&ts_active>; - pinctrl-1 = <&touch_int_suspend &touch_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; + pinctrl-1 = <&ts_int_suspend_high>; status = "ok"; }; From 68da0aa3cd328572d81a59c4e8c6375a7b714c09 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Fri, 9 Jul 2021 20:52:05 +0800 Subject: [PATCH 0317/1247] arm64/dt: corfur: create the dts of corfur remark: create the dts of corfur for SM6375 Change-Id: Ie4227e503df429dbef9bbcff772349f9be095b4f Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2008259 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 8 +- qcom/blair-corfur-common-overlay.dtsi | 737 ++++++++++++++++++ ...lay.dts => blair-corfur-dvt1b-overlay.dts} | 6 +- ...lay.dts => blair-corfur-dvt1d-overlay.dts} | 6 +- qcom/blair-moto-base.dts | 41 + qcom/blair-pm6125-moto-common-overlay.dtsi | 309 ++++++++ qcom/blair-pm6125-overlay.dtsi | 75 ++ qcom/corfur-display.dtsi | 87 +++ qcom/corfur-fps-overlay.dtsi | 85 ++ 9 files changed, 1344 insertions(+), 10 deletions(-) create mode 100644 qcom/blair-corfur-common-overlay.dtsi rename qcom/{holi-corfur-dvt1b-overlay.dts => blair-corfur-dvt1b-overlay.dts} (79%) rename qcom/{holi-corfur-dvt1d-overlay.dts => blair-corfur-dvt1d-overlay.dts} (79%) create mode 100644 qcom/blair-moto-base.dts create mode 100644 qcom/blair-pm6125-moto-common-overlay.dtsi create mode 100644 qcom/blair-pm6125-overlay.dtsi create mode 100644 qcom/corfur-display.dtsi create mode 100644 qcom/corfur-fps-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index b5b1326c97c9..8126ab72f685 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -53,11 +53,11 @@ holi-corfuq-dvt1a-overlay.dtbo-base := holi-moto-base.dtb holi-corfuq-dvt1c-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CORFUR_DTB) += \ - holi-corfur-dvt1b-overlay.dtbo \ - holi-corfur-dvt1d-overlay.dtbo + blair-corfur-dvt1b-overlay.dtbo \ + blair-corfur-dvt1d-overlay.dtbo -holi-corfur-dvt1b-overlay.dtbo-base := holi-moto-base.dtb -holi-corfur-dvt1d-overlay.dtbo-base := holi-moto-base.dtb +blair-corfur-dvt1b-overlay.dtbo-base := blair-moto-base.dtb +blair-corfur-dvt1d-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_CYPFG_DTB) += \ holi-cypfg-evb-overlay.dtbo \ diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi new file mode 100644 index 000000000000..a6a41b3a28f9 --- /dev/null +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -0,0 +1,737 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include "blair-pm6125-moto-common-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include +#include "camera/holi-camera-pm6125-overlay.dtsi" +#include "corfur-fps-overlay.dtsi" +#include "corfur-display.dtsi" +#include "corfuq-touchscreen.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "corfup-charger.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" + +&smb1394 { + status = "disabled"; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 6: Enable */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + + + +&soc { + gpio_keys: gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + + +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + +&qupv3_se8_i2c { + sx937x@2c { + status = "disabled"; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic2: wl2866d@28{ + compatible = "semi,wl2866d"; + reg = <0x28>; + + vin1-supply = <&S6A>; + semi,init-value = <0x05>; + + regulators { + cam_pmic2_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic2_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + regulator-always-on; + }; + + cam_pmic2_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + regulator-always-on; + }; + }; + }; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l12>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <4>; + Semtech,ref-phases-b = <5>; + Semtech,ref-phases-c = <6>; + Semtech,button-flag = <0x0f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8020 0x10 /*Set scan period*/ + + /*set Phase sampling frequency to 65KHz*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + + /*Set Phase Proximity Threshold*/ + 0x8098 0x00009240 /*prox threshold ph0*/ + 0x80B8 0x00008035 /*prox threshold ph1*/ + 0x80D8 0x00004343 /*prox threshold ph2*/ + 0x80F8 0x00003C3C /*prox threshold ph3*/ + 0x8118 0x00000000 /*prox threshold ph4*/ + 0x8138 0x00000000 /*prox threshold ph5*/ + 0x8158 0x00000000 /*prox threshold ph6*/ + /*0x8178 0x00000000*/ /*prox threshold ph7*/ + + /*Set Useful Filter*/ + 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ + 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ + 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ + 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ + 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ + 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ + 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ + 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ + + 0x8090 0x50D47000 + 0x80B0 0x46D87000 + 0x80D0 0x46D07000 + 0x80F0 0x3CDE7000 + 0x8110 0x50D27000 + 0x8130 0x50D27000 + 0x8150 0x50D27000 + 0x8170 0x50D27000 + + /*PH0123 raw filter 1/4*/ + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + + /*PH456 raw filter 1/64*/ + 0x8108 0x600000 + 0x8128 0x600000 + 0x8148 0x600000 + + /*Set Reference Phase*/ + 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ + 0x818C 0x0 /*Reference Correction Setup B ENG2*/ + 0x8190 0x0 /*Reference Correction Setup B ENG3*/ + 0x8194 0x0 /*Reference Correction Setup B ENG4*/ + + /*Set Reference Correction*/ + 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ + 0x80C0 0x0 /*Reference Correction Setup A PH1*/ + 0x80E0 0x0 /*Reference Correction Setup A PH2*/ + 0x8100 0x0 /*Reference Correction Setup A PH3*/ + 0x8120 0x0 /*Reference Correction Setup A PH4*/ + 0x8140 0x0 /*Reference Correction Setup A PH5*/ + 0x8160 0x0 /*Reference Correction Setup A PH6*/ + 0x8180 0x0 /*Reference Correction Setup A PH7*/ + + 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ + >; + + status = "ok"; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L11A>; + avdd-supply = <&L6A>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&pm7250b_vadc { + cp_therm { + reg = ; + label = "cp_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + cp_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + pa-therm0-usr { + status = "disabled"; + }; + sdm-skin-therm-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + rfc-cam-pa3-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + conn-therm-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + + pa_therm2 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm3 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + conn_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cp_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&sdhc_2 { + qcom,vdd-voltage-level = <3000000 3000000>; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; diff --git a/qcom/holi-corfur-dvt1b-overlay.dts b/qcom/blair-corfur-dvt1b-overlay.dts similarity index 79% rename from qcom/holi-corfur-dvt1b-overlay.dts rename to qcom/blair-corfur-dvt1b-overlay.dts index 7fd29e6ca3f0..c0127c7689e5 100644 --- a/qcom/holi-corfur-dvt1b-overlay.dts +++ b/qcom/blair-corfur-dvt1b-overlay.dts @@ -13,11 +13,11 @@ /dts-v1/; /plugin/; -#include "holi-corfuq-common-overlay.dtsi" +#include "blair-corfur-common-overlay.dtsi" / { model = "corfur"; - compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; + compatible = "qcom,blair-corfur", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; qcom,board-id = <0x45 0xB1B0>; }; diff --git a/qcom/holi-corfur-dvt1d-overlay.dts b/qcom/blair-corfur-dvt1d-overlay.dts similarity index 79% rename from qcom/holi-corfur-dvt1d-overlay.dts rename to qcom/blair-corfur-dvt1d-overlay.dts index 5198cd5a17a6..ebe531d5dbad 100644 --- a/qcom/holi-corfur-dvt1d-overlay.dts +++ b/qcom/blair-corfur-dvt1d-overlay.dts @@ -13,11 +13,11 @@ /dts-v1/; /plugin/; -#include "holi-corfuq-common-overlay.dtsi" +#include "blair-corfur-common-overlay.dtsi" / { model = "corfur"; - compatible = "qcom,holi-corfur", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; + compatible = "qcom,blair-corfur", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; qcom,board-id = <0x46 0xB1D0>; }; diff --git a/qcom/blair-moto-base.dts b/qcom/blair-moto-base.dts new file mode 100644 index 000000000000..d58fd6da010b --- /dev/null +++ b/qcom/blair-moto-base.dts @@ -0,0 +1,41 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi new file mode 100644 index 000000000000..20be0df954db --- /dev/null +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -0,0 +1,309 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-pm6125-overlay.dtsi" +#include "holi-mtp-pm7250b.dtsi" + +#include "carrier-channel-ids.dtsi" +#include + +&utags { + compatible = "mmi,utags"; + mmi,main-utags = "/dev/block/bootdevice/by-name/utags"; + mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup"; +}; + +&hw { + compatible = "mmi,utags"; + mmi,dir-name = "hw"; + mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; +}; + +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + no-dump-oops; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; + +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&pm6125_l12 { + regulator-always-on; + qcom,init-voltage = <1800000>; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sx937x:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6125_l12>; + /*use PH5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x25E /*AFE_PARAM_PH0*/ + 0x8034 0x25E /*AFE_PARAM_PH1*/ + 0x8040 0x25E /*AFE_PARAM_PH2*/ + 0x804C 0x25E /*AFE_PARAM_PH3*/ + 0x8058 0x25E /*AFE_PARAM_PH4*/ + 0x8064 0x25E /*AFE_PARAM_PH5*/ + 0x8070 0x25E /*AFE_PARAM_PH6*/ + 0x807C 0x25E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Back center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0xC8644D2C + 0x80B8 0xC8644D2C + 0x80D8 0xC8644D2C + 0x80F8 0xC8644D2C + 0x8118 0xC8644D2C + 0x8138 0xC8644D2C + 0x8158 0xC8644D2C + 0x8178 0xC8644D2C + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x0 + 0x818C 0x0 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xe + >; + + status = "ok"; + }; +}; + +&soc { + mot_batterydata: qcom,battery-data { + df-serialnum = "SB18D00294"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-md50-amperex-5000mah.dtsi" + }; +}; + +&pm7250b_charger { + status = "ok"; + qcom,battery-data = <&mot_batterydata>; + qcom,sec-charger-config = <0>; + qcom,auto-recharge-soc = <98>; + qcom,charger-temp-max = <800>; + qcom,smb-temp-max = <800>; + qcom,suspend-input-on-debug-batt; + qcom,hvdcp3-standalone-config; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4450000>; + qcom,usb-icl-ua = <3000000>; + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + qcom,pd-voltage-max-uv = <9000000>; + qcom,usbpd-phandle = <&pm7250b_pdphy>; +}; + +&spmi_bus { + qcom,pm7250b@2 { + pm7250b_mmi: qcom,qpnp-smb5-mmi { + status = "ok"; + compatible = "qcom,mmi-pm7250b-smb5"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_CTM_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_RERUN_AICL>, + <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_BATT_FULL_CURRENT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>; + io-channel-names = "usb_ctm_current_max", + "main_current_max", + "usb_typec_mode", + "battery_dp_dm", + "usb_pd_active", + "usb_real_type", + "usb_hw_current_max", + "usb_input_current_settled", + "battery_rerun_aicl", + "battery_sw_jeita_enabled", + "voltage_now", + "current_now", + "temp", + "capacity", + "charge_full", + "batt_full_current", + "charge_full_design"; + qcom,enable-charging-limit; + qcom,upper-limit-capacity = <65>; + qcom,lower-limit-capacity = <60>; + qcom,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 2500 0>; + qcom,iterm-ma = <242>; + qcom,vfloat-comp-uv = <20000>; + qcom,force-hvdcp-5v; + }; + }; +}; + +&pm7250b_qg { + status = "ok"; + qcom,battery-data = <&mot_batterydata>; + qcom,qg-iterm-ma = <150>; + qcom,hold-soc-while-full; + qcom,linearize-soc; + qcom,cl-feedback-on; + qcom,cl-min-start-soc = <0>; + qcom,cl-max-start-soc = <5>; + qcom,cl-min-temp = <150>; + qcom,cl-max-temp = <450>; + qcom,cl-max-increment = <5>; + qcom,cl-max-decrement = <10>; + qcom,cl-min-limit = <200>; + qcom,cl-max-limit = <30>; + qcom,s3-entry-ibat-ua = <35000>; + qcom,s3-exit-ibat-ua = <50000>; +}; + +&pm7250b_pdphy { + qcom,default-sink-caps = <5000 3000>, /*5V @ 3A*/ + <9000 2000>; /*9V @ 2A*/ +}; + +&bcl_soc { + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>; + io-channel-names = "usb_hw_current_max"; + qcom,bcl-not-mitigate-icl = <2500>; +}; diff --git a/qcom/blair-pm6125-overlay.dtsi b/qcom/blair-pm6125-overlay.dtsi new file mode 100644 index 000000000000..23a9aac2aeb4 --- /dev/null +++ b/qcom/blair-pm6125-overlay.dtsi @@ -0,0 +1,75 @@ +&mdss_dsi_phy0 { + vdda-0p9-supply = <&S1E_LEVEL>; +}; + +&mdss_dsi0 { + vdda-1p2-supply = <&L4A>; +}; + +&icnss { + vdd-cx-mx-supply = <&L2E>; + vdd-1.8-xo-supply = <&L16A>; + vdd-1.3-rfa-supply = <&L2A>; + vdd-3.3-ch1-supply = <&L21A>; + vdd-3.3-ch0-supply = <&L23A>; + vdd-smps-supply = <&S5A>; + qcom,vdd-cx-mx-config = <640000 640000>; + qcom,vdd-3.3-ch1-config = <3000000 3312000>; + qcom,vdd-3.3-ch0-config = <3000000 3312000>; +}; + +&bluetooth { + qcom,bt-vdd-smps-supply = <&S5A>; /* SMPS */ + qcom,bt-vdd-io-supply = <&L9A>; /* IO */ + qcom,bt-vdd-core-supply = <&L2A>; /* RFA */ + qcom,bt-vdd-pa-supply = <&L23A>; /* CH0 */ + qcom,bt-vdd-xtal-supply = <&L16A>; /* XO */ + + qcom,bt-vdd-smps-config = <984000 984000 1 0>; +}; + +&dispcc { + vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ +}; + +&gpucc { + vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ + vdd_mx-supply = <&S1E_LEVEL>; /* VDD_MX_LEVEL */ + vdd_gx-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ +}; + +&gpu_cx_gdsc { + parent-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ +}; + +&gpu_gx_gdsc { + parent-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ +}; + +&gcc { + vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ + vdd_mx-supply = <&S1E_LEVEL>; /* VDD_MX_LEVEL */ +}; + +&msm_gpu { + vdd-parent-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ +}; + +&pil_turing { + vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ +}; + +&pil_modem { + vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ +}; + +&pil_lpass { + vdd_lpi_cx-supply = <&L1A_LEVEL>; + vdd_lpi_mx-supply = <&L17A_LEVEL>; +}; + + +&usb_qmp_dp_phy { + vdd-supply = <&L18A>; + core-supply = <&L4A>; +}; diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi new file mode 100644 index 000000000000..1b06df5a6b30 --- /dev/null +++ b/qcom/corfur-display.dtsi @@ -0,0 +1,87 @@ + +#include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" + + +&sde_dsi { + /delete-property/ qcom,dsi-default-panel; + qcom,dsi-default-panel = <&dsi_vtdr6110c_visionox_video>; + + /delete-property/ avdd-supply; + vddio-supply = <&L13A>; +}; + +&soc { + dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <20>; + }; + }; +}; + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&dsi_vtdr6110c_visionox_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x1D>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 22 09 09 19 23 09 + 09 09 02 04 00 1D 0E]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [01 09 01 01 1b 1b 01 + 01 02 02 04 00 0a 11]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/corfur-fps-overlay.dtsi b/qcom/corfur-fps-overlay.dtsi new file mode 100644 index 000000000000..0f1cea4c587b --- /dev/null +++ b/qcom/corfur-fps-overlay.dtsi @@ -0,0 +1,85 @@ +&tlmm { + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; From 60832cc55939a948f6cc2d90f05980ac0c2ca35f Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Wed, 14 Jul 2021 14:17:43 +0800 Subject: [PATCH 0318/1247] Thermal: Change charging NTC name to pass TCMD TCMD scan mode require the charging skin NTC name as "chg_therm", Then move the "chg_skin_therm" to "chg_therm" Change-Id: Ib9616f2753ae6e22983d6bade2b6e93cb8210c3f Reviewed-on: https://gerrit.mot.com/2011878 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Yuecai Liu Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index ab067687775c..279cc77abba7 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -410,7 +410,7 @@ xo-therm-usr { status = "disabled"; }; - chg_skin_therm { + chg_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; From 7db52b6dab9d39b762136304472df57e6ca8d47c Mon Sep 17 00:00:00 2001 From: Qiang Guo Date: Fri, 16 Jul 2021 15:28:46 +0800 Subject: [PATCH 0319/1247] corfur: 6375 hw camera not work corfur 6375 hw camera not work Change-Id: Id9f981ec9a5e7efc3695277b350cbe8042ac3a4c Signed-off-by: Qiang Guo Reviewed-on: https://gerrit.mot.com/2014934 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: XiaoFeng Wang Reviewed-by: Bolei Shang Reviewed-by: Ji Zhao Reviewed-by: Shuo Wang Reviewed-by: Zhuoran Xu Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index a6a41b3a28f9..42ce1186e33c 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -17,14 +17,13 @@ #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include -#include "camera/holi-camera-pm6125-overlay.dtsi" #include "corfur-fps-overlay.dtsi" #include "corfur-display.dtsi" #include "corfuq-touchscreen.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include "moto_therm_sys_temp.dtsi" #include "corfup-charger.dtsi" -#include "camera/holi-camera-sensor-mot-corfup-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-corfup-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" &smb1394 { From 636e0ebe08667d83568e6aac968c6bc3fc90466c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 16 Jul 2021 16:39:51 +0800 Subject: [PATCH 0320/1247] arm/dt: panel: enable hbm function for vtdr6110c arm/dt: Eanble hbm function for vtdr6110c. Don't set hbm type, then s/w will set it to oled type. Change-Id: I2bb4d875603c8326c74f0f563197326f96f56433 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2015039 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index 1a86a2003ddc..f71b3ab694cb 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -32,6 +32,10 @@ qcom,mdss-pan-physical-width-dimension = <67>; qcom,mdss-pan-physical-height-dimension = <149>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-display-timings { timing@0 { From 02caa9573f785cf1c3ca160a1eb026526f9c780c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 14 Jul 2021 15:32:29 +0800 Subject: [PATCH 0321/1247] dts: cypfq/csot_panel: add the delay time of reset high Vendor's requirment is: There must be 20ms delay between reset high and download init code. Change-Id: I29d4000d335c5368eb9e3054a62a73c3e92391cd Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2011966 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi index be194e347903..11dda30440a8 100644 --- a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -25,7 +25,7 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 20>; qcom,mdss-pan-physical-width-dimension = <69>; qcom,mdss-pan-physical-height-dimension = <158>; From eaa167675f7547e98610dd2859ab94173841f818 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 16 Jul 2021 13:44:56 +0800 Subject: [PATCH 0322/1247] Cypfq: arm64/dts: Add touch dts for cypfq - Since we will only use cypfq in later stages, so add touch dts for cypfq to prevent confusion. Change-Id: If3919d1b5652e00b239feb1f3775becb7155d4b1 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2014768 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-touchscreen.dtsi | 138 ++++++++++++++++++++++++++++ qcom/holi-cypfq-common-overlay.dtsi | 2 +- 2 files changed, 139 insertions(+), 1 deletion(-) create mode 100755 qcom/cypfq-touchscreen.dtsi diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi new file mode 100755 index 000000000000..a070854121bf --- /dev/null +++ b/qcom/cypfq-touchscreen.dtsi @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se8_i2c { + synaptics_tcm@20 { + status = "disabled"; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x0>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + panel = <&dsi_tm_ili7807s_678_fhd_video>; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2008>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; + status = "ok"; + }; + + gcore@1 { + compatible = "gcore,touchscreen"; + reg = <0x1>; + spi-max-frequency = <8000000>; + panel = <&dsi_csot_gc7372_678_fhd_video>; + gcore,rst-gpio = <&tlmm 21 0x00>; + gcore,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + status = "ok"; + }; +}; diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 279cc77abba7..1dc83f4cc609 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -20,7 +20,7 @@ #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "camera/holi-camera-sensor-mot-cypfq-overlay.dtsi" #include "cypfq-display.dtsi" -#include "cypfg-touchscreen.dtsi" +#include "cypfq-touchscreen.dtsi" #include "cypfq-fmr-overlay.dtsi" &smb1394 { From 1aa60143e478c45c2b25531930b81e553b649e58 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 9 Jul 2021 15:18:15 +0800 Subject: [PATCH 0323/1247] arm64/dts: cypfq: add qcom,platform-hbm-en-gpio We will use hbm-en-gpio to set the max current. That we can switch hbm and normal mode. Change-Id: Id60013b61ebf18cae95d6b3448d3e4e24363156c Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2007870 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 391208cd042f..51f471a1442a 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -159,7 +159,10 @@ //qcom,mdss-dsi-panel-peak-brightness = <4500000>; //qcom,mdss-dsi-panel-blackness-level = <3000>; - qcom,mdss-dsi-hbm-type = "HBM_TYPE_LCD_DCS_GPIO"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; @@ -214,7 +217,10 @@ //qcom,mdss-dsi-panel-peak-brightness = <4500000>; //qcom,mdss-dsi-panel-blackness-level = <3000>; - qcom,mdss-dsi-hbm-type = "HBM_TYPE_LCD_DCS_GPIO"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; From ecc89ed6973a3cfdbe2e69e2e4df515badf11099 Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Mon, 19 Jul 2021 17:10:29 +0800 Subject: [PATCH 0324/1247] arm64/dts corfur:leda voltage default set as 3.0V corfur: leda voltage default set as 3.0V Change-Id: I79f685dd76539bb11bc5c06134b8b673ee7f4de6 Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2016856 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lijun Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 42ce1186e33c..055c899667fa 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -293,8 +293,8 @@ cam_pmic2_ldo4_avdd2: ldo4 { regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-always-on; }; }; From f40a4fb4cd134af2ef68770b5ae435863c2477bd Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 13 Jul 2021 16:51:27 +0800 Subject: [PATCH 0325/1247] dts/panel: cypfq: Correct the backlight configuration First panel( tianma) : 10bits. Second panel(csot): 11bits. Change-Id: I88be7c0676d246a9f9fbe723b354a342e0576716 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2010954 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 8 ++++---- qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi | 1 - ...dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi | 1 - 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 51f471a1442a..4cb2d68f4113 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -131,10 +131,10 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <16>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1023>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi index 11dda30440a8..375d1ed0e2c2 100644 --- a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -63,7 +63,6 @@ 15 01 00 00 00 00 02 69 00 15 01 00 00 00 00 02 35 00 15 01 00 00 00 00 02 53 2C - 39 01 00 00 00 00 03 51 06 66 15 01 00 00 00 00 02 55 01 05 01 00 00 96 00 01 11 05 01 00 00 32 00 01 29 diff --git a/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi index 65ca2b999ea6..00cbccd734ba 100644 --- a/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi @@ -66,7 +66,6 @@ 15 01 00 00 00 00 02 E1 D9 39 01 00 00 00 00 03 FD 00 00 39 01 00 00 00 00 04 FF 78 07 00 - 39 01 00 00 00 00 03 51 03 32 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 ]; From ee3c182f90da555a7b0778645021f894db9f2069 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 21 Jul 2021 16:21:52 +0800 Subject: [PATCH 0326/1247] cypfq: dtspanel: Display refresh rate Auto mode support 60, 90, 120 This requirment is come from STPM. Auto strategy can swith refresh rate at 90/60/120. But the UI only have auto/60/120 Change-Id: I6545931a8183768e88e40374e7cbb1b3a50bb9c1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2020019 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 4cb2d68f4113..5b4f8f1a88a8 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -151,7 +151,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 120>; + qcom,dsi-supported-dfps-list = <60 90 120>; //qcom,mdss-dsi-panel-hdr-enabled; //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 @@ -209,7 +209,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 120>; + qcom,dsi-supported-dfps-list = <60 90 120>; //qcom,mdss-dsi-panel-hdr-enabled; //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 From 74715030edd7ef985177a0d0e7c339c227518a28 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 21 Jul 2021 16:15:03 +0800 Subject: [PATCH 0327/1247] cypfq: dts/panel: use gpio_regulator to control vsp/vsn for LCD Change the default output voltage through I2C bus at XBL. And store the default value to EEPROM. So we can nod make I2C operation at kernel. Only pull up/down gpio to enable/disable regulator. Change-Id: I2731acde9558632435df0cab9f9cf6829b736c97 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2020022 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 114 ++++++++++++++++++---------------------- 1 file changed, 52 insertions(+), 62 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 5b4f8f1a88a8..78eb2458a0cd 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -2,66 +2,64 @@ #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi" -&qupv3_se10_i2c { - status = "ok"; - - tps65132@3e { - compatible = "ti,tps65132"; - reg = <0x3e>; - - tps65132_outp:outp { - regulator-name = "outp"; - regulator-boot-on; - regulator-always-on; - enable-gpios = <&tlmm 84 0>; - }; - - tps65132_outn:outn { - regulator-name = "outn"; - regulator-boot-on; - regulator-always-on; - regulator-active-discharge = <0>; - enable-gpios = <&tlmm 85 0>; - }; - }; - -}; - &tlmm { - sde_avdd_avee_enable_active { - sde_avdd_avee_enable_active: sde_avdd_avee_enable_active { - mux { - pins = "gpio84", "gpio85"; - function = "gpio"; - }; + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; - config { - pins = "gpio84", "gpio85"; - drive-strength = <8>; - bias-pull-up; - }; + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; }; }; - sde_avdd_avee_enable_suspend { - sde_avdd_avee_enable_suspend: sde_avdd_avee_enable_suspend { - mux { - pins = "gpio84", "gpio85"; - function = "gpio"; - }; + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; - config { - pins = "gpio84", "gpio85"; - drive-strength = <2>; - bias-pull-down; - }; + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; }; }; }; -&display_panel_avdd { - /delete-property/ gpio; - /delete-property/ pinctrl-0; +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; }; &sde_dsi { @@ -71,13 +69,11 @@ /delete-property/ qcom,dsi-default-panel; /delete-property/ avdd-supply; - //lab-supply = <&tps65132_outp>; - //ibb-supply = <&tps65132_outn>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; vddio-supply = <&L13A>; qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; - - pinctrl-1 = <&sde_avdd_avee_enable_active &sde_avdd_avee_enable_suspend>; }; &soc { @@ -93,7 +89,7 @@ qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; }; -/* + qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "lab"; @@ -113,7 +109,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; - };*/ + }; }; }; @@ -123,9 +119,6 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,avdd-enable-gpio = <&tlmm 84 0>; - qcom,avee-enable-gpio = <&tlmm 85 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; @@ -181,9 +174,6 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,avdd-enable-gpio = <&tlmm 84 0>; - qcom,avee-enable-gpio = <&tlmm 85 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; From 832134e88db5b785c0f352be1d14608fd6b71ee7 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 22 Jul 2021 15:42:48 +0800 Subject: [PATCH 0328/1247] cypfg: dts/panel: add qcom,mdss-dsi-on-command for cypfg qcom,mdss-dsi-on-command is different for cypfg and cypfq. So add qcom,mdss-dsi-on-command at cypfg-display.dtsi Change-Id: Idd9007bf43d538870e1c59a0fc29ebec6f5ffee0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2021107 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/cypfg-display.dtsi | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/qcom/cypfg-display.dtsi b/qcom/cypfg-display.dtsi index 70ee58139dcf..d123dc080190 100644 --- a/qcom/cypfg-display.dtsi +++ b/qcom/cypfg-display.dtsi @@ -121,6 +121,23 @@ 07 07 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 78 07 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 04 FF 78 07 06 + 15 01 00 00 00 00 02 3E E3 + 15 01 00 00 00 00 02 80 00 + 39 01 00 00 00 00 04 FF 78 07 08 + 39 01 00 00 00 00 03 FD 00 9F + 15 01 00 00 00 00 02 E1 D9 + 39 01 00 00 00 00 03 FD 00 00 + 39 01 00 00 00 00 04 FF 78 07 00 + 15 01 00 00 00 00 02 53 2C + 39 01 00 00 00 00 03 51 03 32 + 15 01 00 00 00 00 02 55 01 + ]; }; }; }; @@ -195,6 +212,22 @@ 02 01 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; + + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 55 AA 66 + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 36 08 + 15 01 00 00 00 00 02 BA 03 + 15 01 00 00 00 00 02 69 00 + 15 01 00 00 00 00 02 35 00 + 15 01 00 00 00 00 02 53 2C + 39 01 00 00 00 00 03 51 06 66 + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 96 00 01 11 + 05 01 00 00 32 00 01 29 + ]; }; }; }; From b2a3d11e2523c3b80a4a7a831243a33facd03fa8 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 23 Jul 2021 17:10:49 +0800 Subject: [PATCH 0329/1247] arch/dts: set otg current limit 1.5A As hardware limit, set OTG current limit to 1.5A for cyprus Change-Id: If34fab447547a9f1602e8311aafe27209013d84c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2022413 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 1dc83f4cc609..b618eb410613 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -532,6 +532,7 @@ }; &pm7250b_charger { + qcom,otg-cl-ua = <1500000>; qcom,dcp-curr-max = <2000000>; qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4400000>; From fa3f187c8e340644d94e636b37e3db70578ffa83 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 26 Jul 2021 14:53:05 +0800 Subject: [PATCH 0330/1247] dts/panel: cypfq: remove the define for GPIO24 The cypfq's hardware design is differnt with qcom. GPIO 24 is for Sar not display(panel) Change-Id: I43c7142fcaa906d2b9d5683ef43c5170dfafa1dc Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2023741 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 78eb2458a0cd..19429f1e9769 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -2,6 +2,11 @@ #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi" +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + &tlmm { lcd_panel_avdd_default: lcd_panel_avdd_default { mux { From 8b14fdf19cf6b2de2e93b16315c74e87665936e4 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 27 Jul 2021 13:27:35 +0800 Subject: [PATCH 0331/1247] arm/dts: Add swd battery profile for corfu 5g battery profile Add swd battery profile for corfu 5g product Change-Id: If13d7a10182afcbab9181cbb6468c3f766dc7334 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2024828 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 1 + qcom/qg-batterydata-ng50-swd-5000mah.dtsi | 1020 +++++++++++++++++++++ 2 files changed, 1021 insertions(+) create mode 100644 qcom/qg-batterydata-ng50-swd-5000mah.dtsi diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 1a49e12ff136..21eae3e9059f 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D17151"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-ng50-atl-5000mah.dtsi" + #include "qg-batterydata-ng50-swd-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-ng50-swd-5000mah.dtsi b/qcom/qg-batterydata-ng50-swd-5000mah.dtsi new file mode 100644 index 000000000000..61bd29025a82 --- /dev/null +++ b/qcom/qg-batterydata-ng50-swd-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,ng50-swd-5000mah { + /* 5263913_Lenovo_Gorfu5G_Sunwoda_5000mAH_PM7250B_averaged_MasterSlave_Jul21th2021 */ + serialnum = "SB18D20918"; + qcom,sdam-magic-number = <0x18D20918>; + qcom,max-voltage-uv = <4480000>; + qcom,fg-cc-cv-threshold-uv = <4470000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "NG50-SWD-5000mAh"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4847 4949 5042 5076 5087>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4934 5004 5029 5030 5035 5029>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44197 44280 44339 44361 44366>, + <44000 44116 44155 44173 44175>, + <43794 43931 43966 43983 43985>, + <43581 43721 43770 43789 43792>, + <43359 43491 43565 43585 43588>, + <43127 43259 43351 43372 43374>, + <42890 43025 43122 43148 43150>, + <42650 42786 42880 42911 42917>, + <42406 42544 42635 42668 42677>, + <42168 42298 42392 42424 42435>, + <41938 42058 42150 42178 42190>, + <41714 41822 41909 41936 41949>, + <41491 41592 41667 41696 41711>, + <41270 41366 41432 41462 41477>, + <41056 41147 41207 41237 41249>, + <40851 40937 40990 41018 41025>, + <40653 40738 40784 40805 40809>, + <40460 40543 40588 40595 40602>, + <40273 40356 40397 40396 40403>, + <40083 40172 40218 40217 40219>, + <39883 39949 40032 40041 40040>, + <39675 39631 39792 39812 39820>, + <39459 39336 39512 39513 39536>, + <39211 39169 39290 39274 39293>, + <39003 39050 39128 39133 39130>, + <38888 38940 38992 39018 38998>, + <38809 38835 38873 38895 38876>, + <38732 38736 38768 38771 38764>, + <38650 38640 38668 38660 38661>, + <38573 38548 38570 38562 38562>, + <38501 38464 38479 38475 38471>, + <38432 38386 38399 38394 38389>, + <38371 38315 38325 38319 38315>, + <38320 38256 38258 38248 38242>, + <38274 38205 38199 38182 38170>, + <38234 38158 38142 38117 38097>, + <38200 38118 38086 38051 38023>, + <38159 38075 38030 37983 37945>, + <38092 38008 37958 37899 37853>, + <37997 37909 37860 37789 37734>, + <37889 37795 37747 37664 37601>, + <37756 37664 37623 37534 37465>, + <37608 37518 37482 37395 37322>, + <37437 37350 37318 37236 37157>, + <37290 37207 37183 37115 37043>, + <37201 37126 37098 37045 36985>, + <37175 37097 37072 37017 36958>, + <37150 37077 37055 36999 36936>, + <37113 37049 37023 36964 36896>, + <37048 36959 36913 36815 36717>, + <36789 36622 36560 36458 36360>, + <36329 36140 36079 35979 35883>, + <35746 35509 35460 35360 35265>, + <34943 34610 34609 34511 34415>, + <33543 33152 33266 33165 33066>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44375 44360 44350 44305 44300 44290>, + <44085 44110 44120 44075 44060 44053>, + <43818 43873 43896 43849 43830 43823>, + <43575 43651 43681 43631 43611 43604>, + <43359 43445 43476 43419 43403 43395>, + <43143 43233 43262 43201 43190 43180>, + <42912 42999 43029 42966 42960 42951>, + <42675 42756 42786 42724 42722 42715>, + <42436 42513 42542 42482 42481 42475>, + <42191 42267 42296 42237 42234 42231>, + <41951 42022 42050 41993 41989 41988>, + <41723 41781 41808 41753 41750 41748>, + <41502 41543 41568 41515 41514 41511>, + <41280 41313 41334 41283 41282 41279>, + <41062 41091 41105 41055 41056 41053>, + <40837 40874 40883 40834 40836 40833>, + <40595 40666 40671 40623 40623 40620>, + <40339 40457 40462 40418 40417 40414>, + <40081 40218 40245 40222 40225 40223>, + <39813 39942 40023 40036 40045 40044>, + <39558 39679 39789 39828 39844 39846>, + <39339 39442 39525 39563 39588 39592>, + <39144 39224 39267 39294 39328 39332>, + <38959 39035 39068 39090 39123 39129>, + <38779 38868 38903 38920 38949 38957>, + <38611 38718 38756 38772 38797 38806>, + <38452 38581 38624 38643 38665 38673>, + <38302 38457 38504 38528 38548 38555>, + <38188 38342 38395 38422 38442 38447>, + <38108 38236 38295 38323 38346 38348>, + <38044 38136 38201 38232 38259 38258>, + <37984 38034 38111 38145 38181 38179>, + <37931 37941 38028 38066 38105 38102>, + <37876 37876 37952 37995 38027 38019>, + <37817 37829 37881 37933 37948 37932>, + <37757 37785 37816 37861 37859 37835>, + <37693 37741 37757 37773 37754 37715>, + <37629 37695 37696 37679 37646 37593>, + <37558 37634 37622 37587 37550 37498>, + <37473 37553 37535 37494 37460 37415>, + <37379 37455 37434 37396 37362 37321>, + <37280 37335 37314 37293 37258 37209>, + <37174 37196 37182 37175 37135 37082>, + <37064 37033 37037 37033 36988 36935>, + <36952 36896 36911 36932 36897 36845>, + <36847 36802 36847 36892 36868 36813>, + <36798 36761 36822 36875 36853 36798>, + <36742 36718 36791 36855 36832 36776>, + <36678 36651 36733 36809 36782 36716>, + <36609 36535 36593 36643 36584 36494>, + <36510 36290 36243 36260 36182 36069>, + <36335 35831 35674 35720 35644 35524>, + <35964 35160 34945 35019 34942 34808>, + <35302 34150 33931 34031 33966 33825>, + <34253 32655 32434 32716 32626 32392>, + <32930 29744 28050 28024 28024 28017>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12354 11807 11292 10997 10908>, + <12364 11801 11290 11002 10899>, + <12358 11792 11276 10991 10894>, + <12348 11776 11263 10979 10889>, + <12334 11752 11250 10973 10885>, + <12295 11737 11237 10969 10881>, + <12260 11728 11227 10965 10878>, + <12251 11718 11218 10960 10874>, + <12246 11700 11210 10955 10871>, + <12238 11678 11204 10952 10869>, + <12214 11666 11199 10950 10867>, + <12189 11660 11195 10947 10866>, + <12178 11655 11191 10945 10866>, + <12168 11652 11189 10943 10866>, + <12161 11649 11186 10943 10865>, + <12151 11648 11184 10943 10865>, + <12139 11644 11184 10943 10865>, + <12136 11641 11183 10943 10865>, + <12136 11639 11183 10943 10866>, + <12136 11639 11184 10943 10868>, + <12140 11639 11186 10943 10869>, + <12147 11640 11187 10944 10870>, + <12148 11643 11188 10945 10870>, + <12147 11648 11190 10947 10871>, + <12146 11657 11195 10949 10873>, + <12151 11662 11200 10952 10876>, + <12162 11662 11205 10954 10879>, + <12166 11662 11210 10957 10882>, + <12167 11664 11214 10960 10885>, + <12168 11669 11219 10964 10887>, + <12169 11672 11224 10968 10889>, + <12167 11673 11229 10972 10892>, + <12166 11674 11234 10976 10896>, + <12166 11679 11239 10980 10900>, + <12169 11692 11245 10984 10903>, + <12174 11699 11251 10988 10907>, + <12181 11700 11257 10993 10911>, + <12191 11701 11262 10998 10914>, + <12207 11705 11269 11002 10918>, + <12227 11718 11276 11007 10922>, + <12236 11729 11284 11012 10926>, + <12237 11738 11291 11016 10930>, + <12241 11748 11297 11019 10932>, + <12260 11758 11307 11022 10935>, + <12283 11770 11318 11028 10938>, + <12286 11785 11325 11031 10941>, + <12291 11782 11326 11030 10941>, + <12263 11778 11327 11030 10941>, + <12270 11780 11331 11032 10944>, + <12280 11788 11335 11037 10945>, + <12291 11801 11343 11040 10949>, + <12332 11812 11354 11047 10955>, + <12348 11819 11365 11055 10962>, + <12339 11839 11386 11066 10972>, + <12339 11839 11386 11066 10972>, + <12339 11839 11386 11066 10972>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <11592 10976 10519 10233 10224>, + <10858 12278 10509 10225 10152>, + <10782 12783 10529 10294 10203>, + <10749 12149 10554 10365 10232>, + <10713 11019 10770 10362 10260>, + <10672 10694 11034 10338 10292>, + <10639 10659 10956 10309 10302>, + <10614 10635 10558 10268 10255>, + <10594 10607 10349 10233 10202>, + <10587 10581 10552 10218 10195>, + <10656 10577 10816 10207 10202>, + <10744 10597 10772 10207 10204>, + <10741 10622 10499 10230 10200>, + <10668 10635 10369 10249 10195>, + <10629 10646 10373 10236 10188>, + <10653 10694 10380 10212 10174>, + <10687 10999 10599 10208 10170>, + <10714 11267 11275 10224 10162>, + <10740 11141 11634 10236 10154>, + <10753 10814 11686 10225 10151>, + <10743 10698 11736 10208 10149>, + <10723 10714 12638 10229 10160>, + <10717 10729 14925 10346 10221>, + <10720 10717 15657 10414 10320>, + <10723 10682 13114 10360 10689>, + <10726 10670 10583 10287 11156>, + <10729 10721 10483 10336 11151>, + <10735 10775 10572 10561 10768>, + <10749 10779 10609 10671 10456>, + <10766 10776 10613 10549 10315>, + <10778 10774 10613 10384 10214>, + <10789 10770 10592 10316 10135>, + <10798 10766 10549 10275 10069>, + <10808 10770 10534 10245 10043>, + <10818 10784 10536 10214 10049>, + <10829 10798 10542 10194 10068>, + <10840 10810 10571 10208 10102>, + <10854 10823 10628 10257 10168>, + <10876 10846 10671 10324 10240>, + <10902 10886 10703 10456 10332>, + <10914 10908 10728 10566 10420>, + <10916 10911 10751 10596 10482>, + <10923 10915 10765 10610 10528>, + <10978 10945 10754 10592 10538>, + <11293 11123 10774 10535 10457>, + <11357 11206 10804 10415 10291>, + <11188 11199 10782 10382 10276>, + <10972 11226 10710 10385 10301>, + <10860 11275 10777 10478 10360>, + <10818 11453 10788 10435 10336>, + <10734 11344 10769 10276 10155>, + <10601 11293 10635 10133 10040>, + <10397 11134 10508 10066 9946>, + <10223 10902 10457 9988 9911>, + <10223 10902 10457 9988 9911>, + <10223 10902 10457 9988 9911>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19574 19376 19342 19350 19350>, + <19509 19380 19389 19368 19359>, + <19535 19391 19414 19387 19378>, + <19584 19434 19433 19404 19391>, + <19610 19499 19452 19415 19403>, + <19621 19517 19467 19423 19413>, + <19630 19520 19468 19429 19419>, + <19638 19521 19465 19433 19422>, + <19645 19521 19462 19436 19424>, + <19649 19521 19467 19434 19423>, + <19652 19520 19474 19430 19418>, + <19654 19512 19470 19426 19414>, + <19650 19503 19454 19422 19410>, + <19635 19497 19443 19419 19406>, + <19622 19492 19436 19413 19403>, + <19613 19492 19431 19406 19399>, + <19607 19509 19435 19402 19395>, + <19601 19525 19446 19399 19390>, + <19595 19514 19451 19396 19386>, + <19592 19487 19448 19390 19382>, + <19601 19479 19442 19383 19378>, + <19618 19504 19433 19382 19374>, + <19630 19529 19417 19383 19371>, + <19637 19519 19405 19383 19369>, + <19641 19491 19395 19375 19398>, + <19634 19476 19389 19363 19441>, + <19616 19473 19391 19375 19448>, + <19607 19472 19396 19424 19445>, + <19605 19476 19405 19448 19441>, + <19604 19488 19424 19443 19435>, + <19604 19496 19440 19435 19425>, + <19605 19498 19441 19427 19416>, + <19605 19500 19440 19418 19406>, + <19603 19499 19437 19409 19395>, + <19598 19494 19430 19396 19383>, + <19595 19490 19422 19385 19373>, + <19593 19486 19416 19376 19366>, + <19590 19482 19411 19369 19361>, + <19585 19477 19406 19366 19358>, + <19577 19472 19403 19366 19355>, + <19570 19468 19401 19366 19353>, + <19563 19465 19399 19372 19361>, + <19553 19460 19398 19383 19376>, + <19534 19451 19395 19384 19380>, + <19475 19427 19382 19380 19378>, + <19424 19401 19370 19355 19358>, + <19362 19399 19368 19350 19347>, + <19303 19385 19360 19339 19337>, + <19299 19354 19356 19332 19330>, + <19296 19315 19346 19349 19342>, + <19300 19333 19372 19373 19365>, + <19301 19316 19383 19375 19363>, + <19302 19316 19378 19375 19364>, + <19318 19422 19383 19376 19365>, + <19318 19422 19383 19376 19365>, + <19318 19422 19383 19376 19365>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15154 15147 14955 14856 14844>, + <15414 15130 14979 14888 14870>, + <15374 15102 14956 14880 14866>, + <15278 15056 14926 14865 14857>, + <15195 14996 14877 14846 14843>, + <15119 14947 14826 14819 14819>, + <15052 14907 14805 14795 14797>, + <14999 14871 14794 14775 14778>, + <14955 14841 14779 14758 14762>, + <14915 14814 14741 14743 14750>, + <14872 14792 14703 14731 14741>, + <14837 14772 14698 14723 14735>, + <14826 14759 14710 14719 14732>, + <14824 14754 14715 14716 14730>, + <14820 14751 14712 14713 14727>, + <14807 14743 14707 14711 14725>, + <14794 14710 14691 14708 14723>, + <14792 14681 14659 14705 14721>, + <14795 14688 14645 14701 14718>, + <14797 14713 14644 14698 14714>, + <14794 14744 14643 14695 14709>, + <14790 14789 14671 14711 14720>, + <14793 14830 14755 14788 14792>, + <14835 14848 14810 14834 14839>, + <14874 14860 14838 14834 14802>, + <14875 14863 14853 14833 14743>, + <14867 14852 14847 14815 14723>, + <14858 14835 14826 14750 14715>, + <14845 14815 14802 14713 14710>, + <14831 14790 14770 14707 14707>, + <14822 14773 14742 14704 14704>, + <14816 14762 14729 14699 14701>, + <14812 14756 14719 14694 14696>, + <14811 14756 14716 14692 14692>, + <14810 14757 14714 14691 14689>, + <14808 14758 14714 14691 14686>, + <14806 14756 14714 14690 14684>, + <14803 14754 14715 14689 14682>, + <14798 14753 14717 14690 14683>, + <14792 14753 14726 14703 14700>, + <14783 14753 14733 14715 14716>, + <14768 14743 14729 14709 14710>, + <14750 14727 14723 14700 14699>, + <14730 14716 14720 14702 14703>, + <14694 14684 14704 14692 14694>, + <14711 14669 14678 14677 14665>, + <14771 14662 14670 14673 14664>, + <14831 14663 14658 14663 14652>, + <14833 14690 14646 14643 14632>, + <14829 14732 14660 14641 14650>, + <14827 14726 14668 14667 14679>, + <14835 14750 14664 14677 14693>, + <14838 14755 14671 14682 14701>, + <14840 14661 14668 14686 14703>, + <14840 14661 14668 14686 14703>, + <14840 14661 14668 14686 14703>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <14634 13527 13673 14644 15016>, + <14444 13478 15675 16068 16095>, + <15077 13470 16792 17667 17797>, + <16027 14846 17791 19187 19231>, + <16759 17392 18966 20276 20839>, + <17269 18447 20000 21161 22516>, + <17812 18769 20501 22176 23961>, + <18584 19096 20764 23426 25177>, + <19523 19723 21250 24703 26254>, + <20464 20536 25047 25921 27270>, + <21647 21270 29617 27108 28224>, + <22698 22019 29697 28077 28735>, + <23035 22547 27010 29017 28983>, + <23094 22700 25661 29528 29192>, + <23317 22790 25829 29309 29599>, + <24520 23459 26336 28889 30312>, + <25965 28931 29235 29123 30937>, + <26124 33888 36477 31274 31578>, + <25536 31796 40011 32760 32271>, + <25126 26207 40581 32448 33164>, + <27655 25048 40854 31701 34020>, + <33221 37281 38784 30676 33313>, + <37332 49235 32145 28656 28025>, + <40639 44787 26551 26049 24539>, + <42618 30862 21922 21549 27731>, + <40199 24081 18941 17291 32854>, + <33603 22655 18613 18975 34605>, + <30778 21955 18493 27450 35404>, + <31112 22619 18672 32235 35697>, + <31786 25166 21545 32820 35843>, + <32973 27916 25125 33008 36006>, + <35289 31180 27530 33082 35650>, + <36914 33932 29778 33181 34279>, + <37506 34768 30941 32829 32833>, + <37922 35225 31603 30652 30824>, + <38078 35364 31927 28342 29143>, + <38139 34905 31833 27609 28953>, + <38156 34217 31515 27184 29023>, + <38191 33798 30978 26961 28817>, + <38296 33426 29593 26816 26788>, + <38447 33276 28060 26743 24955>, + <38920 33681 26778 27578 26785>, + <39365 34127 25860 29132 31034>, + <39695 33321 25620 29820 34233>, + <38595 36064 25485 29355 34210>, + <26098 31230 25903 21516 24852>, + <18752 30714 25876 20258 20360>, + <13181 24707 25518 19304 19784>, + <12996 19827 28262 22158 24505>, + <12922 14452 21701 36030 38896>, + <13103 15670 23035 25093 24002>, + <12919 14015 23747 21452 19000>, + <12789 14200 20877 18985 16805>, + <13428 35346 20533 16947 15037>, + <13428 35346 20533 16947 15037>, + <13428 35346 20533 16947 15037>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15227 14898 14661 14571 14551>, + <15276 14883 14688 14593 14566>, + <15262 14872 14689 14599 14574>, + <15227 14866 14689 14601 14577>, + <15192 14861 14679 14599 14576>, + <15151 14852 14663 14591 14572>, + <15112 14830 14651 14583 14567>, + <15083 14807 14642 14577 14561>, + <15058 14789 14632 14571 14555>, + <15035 14773 14619 14563 14549>, + <15012 14757 14607 14555 14542>, + <14992 14742 14600 14549 14537>, + <14976 14730 14595 14546 14533>, + <14963 14723 14591 14542 14530>, + <14951 14719 14586 14537 14527>, + <14936 14715 14581 14532 14523>, + <14923 14710 14575 14528 14519>, + <14920 14707 14570 14525 14516>, + <14919 14704 14566 14521 14512>, + <14919 14703 14563 14516 14507>, + <14922 14705 14561 14511 14503>, + <14929 14739 14572 14518 14507>, + <14940 14772 14605 14552 14536>, + <14965 14772 14620 14571 14555>, + <14984 14766 14622 14568 14554>, + <14982 14761 14623 14562 14552>, + <14971 14754 14622 14560 14550>, + <14962 14748 14616 14558 14545>, + <14957 14744 14612 14557 14540>, + <14952 14741 14609 14552 14536>, + <14950 14738 14606 14547 14531>, + <14948 14736 14603 14542 14526>, + <14947 14734 14599 14536 14519>, + <14946 14734 14595 14530 14512>, + <14945 14734 14592 14524 14504>, + <14946 14734 14589 14518 14498>, + <14947 14732 14586 14513 14493>, + <14949 14731 14584 14509 14489>, + <14948 14731 14584 14508 14488>, + <14948 14732 14588 14513 14492>, + <14947 14733 14590 14518 14498>, + <14943 14729 14589 14520 14502>, + <14938 14723 14587 14522 14504>, + <14929 14718 14586 14523 14509>, + <14896 14699 14575 14518 14504>, + <14887 14683 14558 14499 14482>, + <14880 14679 14554 14494 14476>, + <14877 14673 14545 14485 14466>, + <14880 14673 14539 14472 14452>, + <14880 14673 14541 14480 14466>, + <14892 14687 14561 14506 14493>, + <14903 14693 14567 14514 14502>, + <14912 14701 14570 14519 14508>, + <14937 14727 14577 14524 14514>, + <14937 14727 14577 14524 14514>, + <14937 14727 14577 14524 14514>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6025 5589 5271 5009 4840 4785>, + <6012 5586 5282 5004 4839 4785>, + <6008 5581 5288 4999 4838 4784>, + <6011 5575 5291 4994 4836 4784>, + <6015 5570 5290 4990 4835 4783>, + <6017 5568 5289 4987 4834 4783>, + <6021 5566 5284 4984 4832 4783>, + <6028 5563 5277 4981 4831 4783>, + <6029 5562 5271 4978 4830 4782>, + <6021 5562 5265 4975 4828 4781>, + <6015 5562 5261 4972 4827 4780>, + <6019 5565 5259 4970 4826 4779>, + <6026 5571 5258 4969 4825 4778>, + <6029 5571 5257 4968 4824 4778>, + <6029 5567 5255 4968 4824 4779>, + <6029 5563 5253 4968 4824 4779>, + <6027 5558 5252 4969 4825 4780>, + <6021 5554 5250 4969 4826 4780>, + <6022 5554 5251 4970 4826 4781>, + <6026 5558 5253 4970 4826 4782>, + <6029 5563 5254 4971 4827 4782>, + <6033 5570 5257 4973 4828 4782>, + <6042 5576 5260 4976 4830 4783>, + <6046 5577 5261 4980 4832 4784>, + <6043 5574 5262 4983 4834 4787>, + <6039 5572 5263 4987 4837 4789>, + <6039 5575 5267 4990 4839 4790>, + <6039 5581 5272 4994 4841 4792>, + <6039 5582 5275 4997 4843 4793>, + <6044 5580 5278 5000 4844 4795>, + <6051 5579 5280 5004 4846 4798>, + <6048 5586 5285 5007 4849 4801>, + <6040 5594 5289 5012 4852 4804>, + <6037 5596 5292 5016 4855 4805>, + <6039 5594 5294 5020 4857 4806>, + <6043 5593 5297 5025 4859 4807>, + <6041 5601 5300 5029 4861 4809>, + <6030 5610 5304 5033 4863 4810>, + <6023 5609 5307 5036 4865 4812>, + <6026 5596 5311 5038 4866 4813>, + <6030 5589 5313 5041 4868 4815>, + <6030 5598 5322 5044 4869 4816>, + <6024 5606 5326 5048 4871 4818>, + <6015 5598 5331 5055 4875 4819>, + <6000 5602 5341 5061 4879 4823>, + <6037 5604 5339 5063 4878 4824>, + <6038 5622 5344 5066 4878 4824>, + <6067 5621 5347 5063 4878 4824>, + <6046 5616 5354 5062 4879 4825>, + <6036 5631 5357 5061 4880 4827>, + <6069 5633 5369 5064 4882 4830>, + <6117 5664 5368 5073 4886 4832>, + <6191 5734 5383 5086 4891 4837>, + <6270 5778 5448 5102 4898 4846>, + <6270 5778 5448 5102 4898 4846>, + <6270 5778 5448 5102 4898 4846>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <11015 11364 11521 11268 10898 11054>, + <11025 11338 11475 11224 10868 10978>, + <11033 11313 11430 11180 10834 10888>, + <11040 11288 11386 11134 10800 10800>, + <11045 11263 11344 11088 10770 10731>, + <11047 11238 11303 11042 10747 10696>, + <11047 11209 11258 10983 10731 10694>, + <11045 11182 11218 10932 10717 10697>, + <11045 11168 11198 10930 10700 10689>, + <11043 11159 11184 10951 10677 10669>, + <11043 11156 11178 10963 10663 10649>, + <11052 11165 11183 10954 10667 10630>, + <11069 11184 11194 10943 10678 10614>, + <11099 11203 11214 10944 10687 10611>, + <11177 11225 11255 10960 10706 10617>, + <11248 11254 11300 10979 10720 10621>, + <11266 11322 11337 11006 10725 10621>, + <11275 11405 11377 11048 10729 10626>, + <11288 11444 11436 11132 10777 10659>, + <11312 11464 11518 11287 10923 10761>, + <11330 11480 11552 11358 11015 10829>, + <11329 11495 11530 11326 11044 10870>, + <11321 11509 11503 11285 11061 10906>, + <11302 11523 11506 11281 11057 10911>, + <10992 11540 11531 11296 11039 10911>, + <10640 11550 11556 11317 11032 10913>, + <10713 11553 11579 11354 11056 10932>, + <11089 11555 11602 11394 11098 10965>, + <11281 11552 11631 11416 11161 11005>, + <11275 11542 11668 11436 11263 11063>, + <11255 11536 11685 11451 11332 11132>, + <11044 11550 11687 11496 11373 11229>, + <10321 11569 11688 11554 11414 11324>, + <9864 11555 11684 11608 11472 11386>, + <9783 11463 11677 11673 11543 11436>, + <9736 11367 11665 11691 11564 11447>, + <9712 11304 11637 11606 11509 11347>, + <9697 11243 11596 11512 11426 11240>, + <9688 11174 11544 11493 11333 11244>, + <9682 11095 11471 11485 11224 11275>, + <9679 11006 11388 11480 11194 11281>, + <9675 10919 11289 11490 11230 11177>, + <9672 10775 11191 11477 11223 11046>, + <9670 10091 11102 11352 11013 10913>, + <9667 9806 10957 11245 10896 10767>, + <9665 9740 10939 11204 10844 10718>, + <9664 9716 10901 11197 10849 10720>, + <9663 9693 10867 11206 10918 10766>, + <9661 9684 10802 11232 10942 10781>, + <9658 9672 10703 11227 10843 10734>, + <9654 9663 10537 11171 10764 10690>, + <9650 9654 10036 11057 10699 10606>, + <9649 9651 9696 10914 10583 10474>, + <9648 9652 9672 10762 10431 10293>, + <9648 9652 9672 10762 10431 10293>, + <9648 9652 9672 10762 10431 10293>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13399 13337 13307 13286 13279 13282>, + <13405 13341 13309 13290 13281 13282>, + <13411 13345 13312 13292 13283 13283>, + <13417 13350 13316 13294 13285 13284>, + <13422 13353 13319 13295 13286 13284>, + <13426 13356 13320 13295 13288 13285>, + <13429 13357 13319 13295 13289 13286>, + <13430 13357 13319 13294 13290 13287>, + <13431 13358 13319 13295 13291 13288>, + <13429 13360 13320 13297 13291 13289>, + <13428 13360 13321 13299 13291 13289>, + <13431 13359 13321 13299 13292 13290>, + <13438 13357 13321 13300 13293 13291>, + <13439 13356 13321 13300 13294 13291>, + <13432 13356 13321 13300 13295 13292>, + <13421 13355 13320 13300 13295 13292>, + <13414 13357 13320 13302 13295 13293>, + <13406 13358 13320 13305 13295 13293>, + <13400 13357 13321 13305 13296 13294>, + <13395 13350 13322 13303 13299 13296>, + <13390 13343 13322 13302 13299 13297>, + <13385 13338 13317 13298 13295 13292>, + <13380 13335 13310 13294 13288 13285>, + <13374 13332 13306 13292 13287 13284>, + <13363 13329 13304 13291 13286 13284>, + <13351 13327 13302 13289 13285 13284>, + <13343 13326 13302 13288 13284 13284>, + <13332 13325 13302 13287 13282 13284>, + <13326 13324 13302 13287 13283 13284>, + <13324 13323 13302 13287 13283 13284>, + <13324 13322 13302 13287 13283 13284>, + <13327 13316 13302 13286 13283 13284>, + <13333 13307 13301 13285 13283 13283>, + <13342 13307 13301 13286 13284 13284>, + <13353 13312 13301 13287 13285 13286>, + <13368 13318 13302 13287 13286 13286>, + <13386 13324 13302 13287 13284 13284>, + <13408 13329 13302 13286 13283 13282>, + <13432 13333 13303 13286 13283 13283>, + <13457 13336 13304 13286 13285 13286>, + <13484 13339 13305 13286 13285 13287>, + <13519 13341 13306 13289 13285 13285>, + <13566 13343 13307 13290 13285 13283>, + <13622 13345 13309 13287 13282 13282>, + <13694 13355 13310 13290 13284 13284>, + <13797 13376 13313 13295 13292 13289>, + <13831 13395 13318 13298 13294 13292>, + <13914 13429 13325 13303 13296 13294>, + <14047 13478 13333 13305 13296 13293>, + <14269 13565 13342 13301 13291 13290>, + <14807 13771 13351 13299 13290 13291>, + <16653 14733 13378 13301 13293 13294>, + <22477 19524 13594 13307 13298 13299>, + <43551 40940 15967 13316 13309 13309>, + <43551 40940 15967 13316 13309 13309>, + <43551 40940 15967 13316 13309 13309>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16715 16587 16542 16477 16463 16468>, + <16737 16613 16548 16476 16465 16473>, + <16784 16639 16552 16476 16468 16478>, + <16839 16662 16555 16476 16471 16482>, + <16886 16679 16557 16477 16473 16485>, + <16907 16685 16557 16479 16474 16485>, + <16906 16679 16555 16482 16474 16484>, + <16904 16671 16553 16486 16474 16483>, + <16904 16669 16552 16487 16474 16482>, + <16906 16668 16552 16487 16475 16481>, + <16908 16668 16553 16488 16477 16481>, + <16910 16676 16558 16492 16478 16482>, + <16914 16692 16569 16499 16481 16482>, + <16923 16709 16580 16506 16484 16484>, + <16960 16731 16594 16514 16488 16486>, + <16991 16752 16612 16524 16493 16490>, + <16982 16775 16643 16535 16499 16494>, + <16950 16794 16672 16548 16508 16500>, + <16910 16788 16674 16570 16524 16512>, + <16843 16739 16667 16605 16548 16531>, + <16779 16686 16655 16620 16558 16540>, + <16744 16646 16604 16575 16538 16526>, + <16719 16612 16543 16515 16508 16503>, + <16703 16593 16526 16493 16491 16490>, + <16695 16582 16517 16480 16476 16479>, + <16689 16573 16515 16477 16471 16474>, + <16671 16567 16515 16480 16473 16473>, + <16631 16562 16515 16486 16476 16472>, + <16612 16555 16517 16492 16480 16474>, + <16614 16545 16520 16499 16487 16479>, + <16618 16537 16522 16506 16495 16486>, + <16627 16533 16524 16513 16507 16498>, + <16649 16529 16525 16521 16517 16509>, + <16668 16530 16524 16528 16519 16514>, + <16681 16535 16520 16535 16520 16518>, + <16691 16544 16518 16537 16520 16518>, + <16697 16560 16522 16522 16507 16505>, + <16702 16578 16527 16505 16494 16491>, + <16705 16587 16528 16498 16495 16494>, + <16709 16593 16529 16493 16497 16508>, + <16711 16595 16529 16492 16500 16516>, + <16711 16586 16530 16496 16505 16518>, + <16707 16579 16530 16497 16502 16514>, + <16708 16596 16528 16479 16463 16465>, + <16719 16610 16530 16477 16462 16468>, + <16737 16614 16532 16489 16502 16525>, + <16717 16632 16551 16513 16538 16563>, + <16728 16662 16577 16546 16573 16599>, + <16753 16700 16619 16579 16595 16607>, + <16778 16754 16638 16555 16542 16547>, + <16833 16794 16625 16504 16493 16493>, + <17215 16877 16651 16500 16488 16491>, + <18926 19221 16772 16512 16487 16489>, + <34174 47726 18257 16542 16504 16510>, + <34174 47726 18257 16542 16504 16510>, + <34174 47726 18257 16542 16504 16510>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <17730 17790 16529 19258 17526 21885>, + <17937 18264 17892 19812 18022 21730>, + <18162 18628 18670 19905 18735 21461>, + <18380 18881 19002 19657 19478 21146>, + <18565 19020 19026 19187 20063 20855>, + <18694 19043 18880 18613 20300 20656>, + <18780 18859 18311 17540 20283 20474>, + <18841 18519 17506 16366 20206 20313>, + <18801 18213 17084 16138 19867 20214>, + <18401 17919 16844 16459 18772 19866>, + <18077 17561 16577 16553 18073 19655>, + <18516 16895 16045 16204 17811 19266>, + <19431 16204 15457 15730 17479 18647>, + <19682 16055 15134 15247 17206 18262>, + <19367 16099 14847 14697 16915 17726>, + <19085 16229 14729 14407 16542 17183>, + <19577 17393 14974 14453 15822 16574>, + <20892 19331 15539 14663 15163 16019>, + <21777 20647 17098 15025 15150 15824>, + <22313 21749 20831 15758 15450 15875>, + <22636 22280 22635 16780 15951 16115>, + <22693 22264 22105 19115 17795 17169>, + <22720 22162 21281 21352 19902 18590>, + <22669 22080 20670 21420 20610 19637>, + <20909 21973 20035 20728 21006 20791>, + <18835 21919 19789 19973 21060 21231>, + <17806 22095 19901 19018 19094 20152>, + <15543 22478 20132 18159 16867 18628>, + <14209 23073 20564 17920 16565 17824>, + <13832 24307 21389 17963 16489 17222>, + <13613 24964 22120 18002 16475 16908>, + <13498 21721 22652 17776 16608 16744>, + <13336 17001 23181 17617 16882 16650>, + <13255 16423 23923 18301 17700 17391>, + <13272 17626 24824 20016 19338 19630>, + <13313 18846 25106 21134 20188 20560>, + <13454 20243 24202 21713 20375 20257>, + <13869 21721 22931 22038 20465 19935>, + <14108 22163 22107 21590 20871 20755>, + <13982 22223 21412 20333 21678 23106>, + <13794 22188 20794 19937 22034 23998>, + <13772 21749 20202 21156 22221 23362>, + <13838 20892 19788 21582 22017 22477>, + <13761 16184 19292 19869 19659 21335>, + <13419 14365 18278 19344 17555 17972>, + <13369 14021 18450 18877 17437 15355>, + <13661 13977 18514 18609 16346 14812>, + <13650 14278 18512 18617 15913 14667>, + <13523 14506 18367 18505 15727 14487>, + <13983 14414 18308 18014 15189 14881>, + <13751 14152 17957 18928 16066 16062>, + <11774 13280 15359 19555 16497 15802>, + <9834 9862 13524 19881 17052 16248>, + <8966 8906 10883 22632 24676 23548>, + <8966 8906 10883 22632 24676 23548>, + <8966 8906 10883 22632 24676 23548>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5470 5198 5097 5011 4983 4982>, + <5480 5212 5099 5012 4985 4984>, + <5489 5221 5100 5013 4988 4985>, + <5498 5227 5100 5014 4990 4987>, + <5504 5230 5100 5015 4992 4989>, + <5507 5231 5100 5015 4993 4990>, + <5505 5228 5098 5015 4994 4990>, + <5503 5222 5095 5015 4994 4990>, + <5499 5220 5094 5016 4995 4991>, + <5494 5219 5093 5017 4995 4991>, + <5491 5218 5093 5019 4995 4992>, + <5493 5219 5093 5020 4997 4992>, + <5497 5220 5095 5022 4998 4993>, + <5500 5222 5097 5024 5000 4994>, + <5503 5227 5101 5026 5001 4995>, + <5505 5232 5105 5029 5003 4997>, + <5501 5239 5114 5034 5005 4998>, + <5488 5245 5121 5039 5008 5000>, + <5473 5243 5122 5045 5013 5004>, + <5453 5224 5120 5054 5021 5011>, + <5434 5205 5117 5057 5024 5014>, + <5424 5191 5099 5042 5015 5006>, + <5418 5180 5077 5022 5001 4994>, + <5411 5174 5070 5014 4995 4989>, + <5404 5170 5067 5010 4990 4986>, + <5398 5168 5066 5008 4989 4984>, + <5393 5168 5066 5009 4989 4984>, + <5389 5168 5067 5010 4989 4984>, + <5387 5168 5068 5012 4990 4985>, + <5395 5168 5070 5014 4992 4986>, + <5409 5167 5072 5017 4995 4989>, + <5425 5165 5073 5019 4999 4992>, + <5448 5163 5074 5021 5002 4995>, + <5473 5164 5075 5024 5003 4997>, + <5500 5176 5076 5027 5005 4999>, + <5531 5191 5077 5029 5005 5000>, + <5562 5209 5080 5025 5000 4995>, + <5595 5230 5084 5020 4996 4989>, + <5628 5249 5088 5018 4996 4991>, + <5662 5269 5092 5018 4998 4998>, + <5697 5288 5097 5018 5000 5000>, + <5737 5306 5102 5021 5001 5000>, + <5783 5326 5109 5023 5000 4998>, + <5838 5350 5116 5017 4988 4984>, + <5907 5387 5128 5020 4990 4987>, + <6006 5424 5133 5027 5007 5007>, + <6037 5464 5149 5037 5019 5020>, + <6117 5520 5170 5049 5031 5032>, + <6243 5596 5198 5060 5037 5034>, + <6446 5713 5224 5050 5018 5013>, + <6944 5941 5254 5035 5005 5001>, + <8539 6803 5338 5037 5006 5003>, + <13216 11100 5654 5047 5010 5007>, + <31874 33710 7925 5066 5024 5022>, + <31874 33710 7925 5066 5024 5022>, + <31874 33710 7925 5066 5024 5022>; + }; + +}; From a182e2894f1fc853f1a90e9cbf2c7f10d4679a62 Mon Sep 17 00:00:00 2001 From: liaohj Date: Tue, 27 Jul 2021 13:53:50 +0800 Subject: [PATCH 0332/1247] arm64/dts:Cypfq:vibrator:adjust long vib volt to 2.6v as KP request, adjust long vib volt to 2.6v. avoid the vibrator noise issue. Change-Id: Icc4b35cef50d4ac94759fe57ecc71fcec12b2833 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2024857 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index b618eb410613..788d98ba5ba3 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -371,6 +371,9 @@ &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <80>; + qcom,vib-ldo-volt-uv-long = <2600000>; }; &mot_batterydata { From 8709b71fce8cfdbaa50d782d61176026ad0bc01b Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 27 Jul 2021 14:09:55 +0800 Subject: [PATCH 0333/1247] arm/dts: Rename sc8549 to cp arm/dts/cp rename sc8549 to cp for charge pump common modules. Change-Id: I61c90cbfdb8f310a5020d6863f743282f74724a5 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2024910 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 21eae3e9059f..11fe9f785817 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -60,7 +60,7 @@ "cycle_count", "charge_full_design", "time_to_full_now", - "sc8549_input_voltage_now"; + "cp_input_voltage_now"; qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4480000>; qcom,dcp-curr-max = <2000000>; @@ -189,11 +189,11 @@ "battery_dp_dm", "usb_qc3p_power", /*qc3p end*/ - "sc8549_cp_enable", - "sc8549_input_current_now", - "sc8549_input_voltage_now", - "sc8549_cp_status1", - "sc8549_cp_clear_error"; + "cp_enable", + "cp_input_current_now", + "cp_input_voltage_now", + "cp_status1", + "cp_clear_error"; qcom,usbpd-phandle = <&pm7250b_pdphy>; mmi,pps-volt-steps = <20000>; From a1733f3e226eea77fb764ac03b8c0eea1a39cce6 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 27 Jul 2021 14:08:35 +0800 Subject: [PATCH 0334/1247] arm64/dts: Support single tap feature for ili9882_mmi - Enable ilitek,report_gesture_key for enable report KEY_F1 and KEY_F2 function to make single tap can works properly. Change-Id: Ib303b536c8e4660efc3b150f431b87ef00d19254 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2024904 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi index a070854121bf..c723a552ef66 100755 --- a/qcom/cypfq-touchscreen.dtsi +++ b/qcom/cypfq-touchscreen.dtsi @@ -119,6 +119,7 @@ pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; status = "ok"; }; From a37a86d99a26d0526ea65be5892be29d2c4cc32f Mon Sep 17 00:00:00 2001 From: duqiu2 Date: Thu, 29 Jul 2021 17:13:13 +0800 Subject: [PATCH 0335/1247] arm64/dts: corfur: enable FM ELNA control module Per tinno HW team req, enable this feature to control FM ELNA module, fix FM signal loss issue of HW design. Change-Id: I29018dbed21e233ece4d9bb5771843384baf4af1 Signed-off-by: duqiu2 Reviewed-on: https://gerrit.mot.com/2027757 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xianglong Liao Reviewed-by: Ying Xu Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 1 + qcom/blair-corfur-fmr-overlay.dtsi | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/blair-corfur-fmr-overlay.dtsi diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 055c899667fa..c33880479a23 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -25,6 +25,7 @@ #include "corfup-charger.dtsi" #include "camera/blair-camera-sensor-mot-corfup-overlay.dtsi" #include "camera/holi-camera-sensor-mot-corfup-dvt1-overlay.dtsi" +#include "blair-corfur-fmr-overlay.dtsi" &smb1394 { status = "disabled"; diff --git a/qcom/blair-corfur-fmr-overlay.dtsi b/qcom/blair-corfur-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-corfur-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; From c2c37277314cdd1f01aee63b92c34765d2e504f3 Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 30 Jul 2021 11:20:47 +0800 Subject: [PATCH 0336/1247] Cypfq:vibrator:adjust vib-dis-short-long-val to 70 sync with KP bianxh. cypfq vib 80ms with 3v will cause nosie. so set vib-dis-short-long-val to 70ms. if vib time>70ms ,set vib volt to 2.6v. Change-Id: Ibbcb4f95bb54631d65e3b457178c3c4d86c9f2b7 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2028749 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 788d98ba5ba3..a25f87b04caf 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -372,7 +372,7 @@ &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; - qcom,vib-dis-short-long-val = <80>; + qcom,vib-dis-short-long-val = <70>; qcom,vib-ldo-volt-uv-long = <2600000>; }; From 61c443a76a6ee2a8f637665c417c0f74d0e84890 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Thu, 29 Jul 2021 16:22:18 +0800 Subject: [PATCH 0337/1247] arm64/dts: update corfu5G vibrator config According to hardware suggestion, set default duration 70ms, voltage 3V(keep same voltage for long & short virations). Change-Id: I7448e9e9a3889b2ce8512905c9445758a766411f Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2027673 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 7 +++++++ qcom/holi-corfup-common-overlay.dtsi | 7 ++++++- qcom/holi-corfuq-common-overlay.dtsi | 7 +++++++ 3 files changed, 20 insertions(+), 1 deletion(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index c33880479a23..9f53b363499e 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -44,6 +44,13 @@ cdc-vdd-mic-bias-supply = <>; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <3000000>; +}; + &tlmm { google_key_default: google_key_default { mux { diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index fe633b0e25f8..6f1d63548c9c 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -127,7 +127,12 @@ }; }; - +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <3000000>; +}; &gpio_keys { pinctrl-0 = <&key_vol_up_default &google_key_default>; diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 092f15e28f38..15e6bd5af04e 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -51,6 +51,13 @@ cdc-vdd-mic-bias-supply = <>; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <3000000>; +}; + &tlmm { google_key_default: google_key_default { mux { From f99c8655bc24b5318076403c15561f36686a90d1 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Thu, 29 Jul 2021 16:13:34 +0800 Subject: [PATCH 0338/1247] devicetree/qcom: add dvt2 dts configuration for cyprus 5G The hwid definition is as following: https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Ib03e06bee63448a42e8947946686eaea269f058b Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2027658 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/holi-cypfq-dvt2-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-cypfq-dvt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 8126ab72f685..48e9103239f4 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -67,9 +67,11 @@ holi-cypfg-evb-overlay.dtbo-base := holi-moto-base.dtb holi-cypfg-evt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFQ_DTB) += \ - holi-cypfq-dvt1-overlay.dtbo + holi-cypfq-dvt1-overlay.dtbo \ + holi-cypfq-dvt2-overlay.dtbo holi-cypfq-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfq-dvt2-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ holi-cypfr-evb-overlay.dtbo \ diff --git a/qcom/holi-cypfq-dvt2-overlay.dts b/qcom/holi-cypfq-dvt2-overlay.dts new file mode 100644 index 000000000000..ab776dd01fb5 --- /dev/null +++ b/qcom/holi-cypfq-dvt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfq-common-overlay.dtsi" + +/ { + model = "cypfq"; + compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xB200>; +}; + From a58766377188dd3697f095b96e2921aeab760f73 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 30 Jul 2021 14:35:36 +0800 Subject: [PATCH 0339/1247] dts: update usb phy tuning parameter The near-end eye diagram is more critical than the position of the test pattern. echo 0x1f> /d/162b000.qusb/bias_ctrl2. the eys signal will improve so bias_ctrl2 change from 0x22 to 0x1f. Change-Id: I2e422e38f05b4184e2956497599763cf4d9e5659 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2028943 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 44 +++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index a25f87b04caf..ba3f5d511f24 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -581,3 +581,47 @@ }; }; }; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; From 2eaabd8f1a8e14994000dc2b40d05a72966ba3c6 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 30 Jul 2021 15:21:27 +0800 Subject: [PATCH 0340/1247] arm64/dts:update sx9375 paras on corfu5G update parameters for sx9375 on corfu5G modify on 4350 & 4350 pro &6375 Change-Id: I0d1d50c7fea4150da21014670b06781cff0dfc69 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2028999 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 126 ++++++++++++------------- qcom/holi-corfup-common-overlay.dtsi | 126 ++++++++++++------------- qcom/holi-corfup-dvt1-overlay.dts | 128 ++++++++++++-------------- qcom/holi-corfup-evt2-overlay.dts | 126 ++++++++++++------------- qcom/holi-corfuq-common-overlay.dtsi | 126 ++++++++++++------------- qcom/holi-corfur-common-overlay.dtsi | 126 ++++++++++++------------- 6 files changed, 355 insertions(+), 403 deletions(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 9f53b363499e..6ce659d046c1 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -376,21 +376,22 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ @@ -398,66 +399,57 @@ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 6f1d63548c9c..27f1786968b8 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -260,21 +260,22 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ @@ -282,66 +283,57 @@ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; diff --git a/qcom/holi-corfup-dvt1-overlay.dts b/qcom/holi-corfup-dvt1-overlay.dts index 01f2f233922a..f24284dbe61b 100644 --- a/qcom/holi-corfup-dvt1-overlay.dts +++ b/qcom/holi-corfup-dvt1-overlay.dts @@ -46,88 +46,80 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT1, Bottom*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT2, Top Right*/ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT4, Top Right side*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, Top Left*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; diff --git a/qcom/holi-corfup-evt2-overlay.dts b/qcom/holi-corfup-evt2-overlay.dts index c291fa04795c..5e6b537703cb 100644 --- a/qcom/holi-corfup-evt2-overlay.dts +++ b/qcom/holi-corfup-evt2-overlay.dts @@ -45,21 +45,22 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ @@ -67,66 +68,57 @@ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 15e6bd5af04e..261d3fbaaaf9 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -383,21 +383,22 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ @@ -405,66 +406,57 @@ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; diff --git a/qcom/holi-corfur-common-overlay.dtsi b/qcom/holi-corfur-common-overlay.dtsi index 89153a6702de..8f4590767a75 100644 --- a/qcom/holi-corfur-common-overlay.dtsi +++ b/qcom/holi-corfur-common-overlay.dtsi @@ -377,21 +377,22 @@ Semtech,ref-phases-b = <5>; Semtech,ref-phases-c = <6>; Semtech,button-flag = <0x0f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <65>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8020 0x10 /*Set scan period*/ + 0x4004 0x70 /*irq mask*/ + 0x4008 0x8 /*irq setup*/ + 0x8020 0x32 /*Set scan period*/ /*set Phase sampling frequency to 65KHz*/ - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - /*0x807C 0x876 */ /*AFE_PARAM_PH7*/ + 0x8028 0x87E /*AFE_PARAM_PH0*/ + 0x8034 0x87E /*AFE_PARAM_PH1*/ + 0x8040 0x87E /*AFE_PARAM_PH2*/ + 0x804C 0x87E /*AFE_PARAM_PH3*/ + 0x8058 0x87E /*AFE_PARAM_PH4*/ + 0x8064 0x87E /*AFE_PARAM_PH5*/ + 0x8070 0x87E /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT1, Bottom*/ @@ -399,66 +400,57 @@ 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT3, Top Left*/ 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right side*/ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT1_REF, Bottom*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT2_REF, Top Right*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT3_REF, Top Left*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT2_REF, Top Right*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT3_REF, WIFI GPS*/ + 0x8084 0x800 /*REG_AFEPH_PH7, NOT USE*/ /*Set Phase Proximity Threshold*/ - 0x8098 0x00009240 /*prox threshold ph0*/ - 0x80B8 0x00008035 /*prox threshold ph1*/ - 0x80D8 0x00004343 /*prox threshold ph2*/ - 0x80F8 0x00003C3C /*prox threshold ph3*/ - 0x8118 0x00000000 /*prox threshold ph4*/ - 0x8138 0x00000000 /*prox threshold ph5*/ - 0x8158 0x00000000 /*prox threshold ph6*/ - /*0x8178 0x00000000*/ /*prox threshold ph7*/ + 0x8098 0x693F /*prox threshold ph0*/ + 0x80B8 0x8038 /*prox threshold ph1*/ + 0x80D8 0x4343 /*prox threshold ph2*/ + 0x80F8 0x3C3C /*prox threshold ph3*/ + 0x8118 0x8E /*prox threshold ph4*/ + 0x8138 0x8E /*prox threshold ph5*/ + 0x8158 0x8E /*prox threshold ph6*/ + 0x8178 0x5A40 /*prox threshold ph7*/ /*Set Useful Filter*/ - 0x808C 0x20600019 /*PH0 Filter Setup B, non-detect threshold of USE filter*/ - 0x80AC 0x20600019 /*PH1 Filter Setup B, non-detect threshold of USE filter*/ - 0x80CC 0x20600019 /*PH2 Filter Setup B, non-detect threshold of USE filter*/ - 0x80EC 0x20600019 /*PH3 Filter Setup B, non-detect threshold of USE filter*/ - 0x810C 0x20600019 /*PH4 Filter Setup B, non-detect threshold of USE filter*/ - 0x812C 0x20600019 /*PH5 Filter Setup B, non-detect threshold of USE filter*/ - 0x814C 0x20600019 /*PH6 Filter Setup B, non-detect threshold of USE filter*/ - 0x816C 0x20600019 /*PH7 Filter Setup B, non-detect threshold of USE filter*/ - - 0x8090 0x50D47000 - 0x80B0 0x46D87000 - 0x80D0 0x46D07000 - 0x80F0 0x3CDE7000 - 0x8110 0x50D27000 - 0x8130 0x50D27000 - 0x8150 0x50D27000 - 0x8170 0x50D27000 - - /*PH0123 raw filter 1/4*/ - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - - /*PH456 raw filter 1/64*/ - 0x8108 0x600000 - 0x8128 0x600000 - 0x8148 0x600000 - - /*Set Reference Phase*/ - 0x8188 0x8000014 /*Reference Correction Setup B ENG1*/ - 0x818C 0x0 /*Reference Correction Setup B ENG2*/ - 0x8190 0x0 /*Reference Correction Setup B ENG3*/ - 0x8194 0x0 /*Reference Correction Setup B ENG4*/ - - /*Set Reference Correction*/ - 0x80A0 0x222200E1 /*Reference Correction Setup A PH0*/ - 0x80C0 0x0 /*Reference Correction Setup A PH1*/ - 0x80E0 0x0 /*Reference Correction Setup A PH2*/ - 0x8100 0x0 /*Reference Correction Setup A PH3*/ - 0x8120 0x0 /*Reference Correction Setup A PH4*/ - 0x8140 0x0 /*Reference Correction Setup A PH5*/ - 0x8160 0x0 /*Reference Correction Setup A PH6*/ - 0x8180 0x0 /*Reference Correction Setup A PH7*/ - + 0x80A0 0x1E1E00E1 + 0x80C0 0x0 + 0x80E0 0xD0D0002 + 0x8100 0xF0F00E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000014 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x3CD45000 + 0x80B0 0x3CD25000 + 0x80D0 0x3CD45000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD85000 + 0x8130 0x3CD85000 + 0x8150 0x3CD85000 + 0x8170 0x3CD85000 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x500000 + 0x8128 0x500000 + 0x8148 0x500000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F /*PHEN, Enable PH0~PH6*/ >; From 848f06f677dbdd3e707c6d1debf84fd93b2a4496 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 30 Jul 2021 10:38:57 +0800 Subject: [PATCH 0341/1247] arm/dts: Modify DCP and OTG current limt to 1.5A Modify DCP and OTG current max limit to 1.5A for corfu 5G product. Change-Id: I2a6928503f73bfed8d5f248ef58a2bc307577c54 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2028674 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 11fe9f785817..d8a7bd080704 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -63,7 +63,8 @@ "cp_input_voltage_now"; qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4480000>; - qcom,dcp-curr-max = <2000000>; + qcom,dcp-curr-max = <1500000>; + qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 From ecf82cfa7215a88db1098dda8ad53634d13ab954 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 30 Jul 2021 17:27:44 +0800 Subject: [PATCH 0342/1247] arm/dts: Config thermal limit cp current 1. add 3.5A and 2A thermal limit level 2. Modify min thermal charge current from 3A to 2A Change-Id: Ic51c5f4e850bc55ce43d1fe272e3c01bf143304a Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2029108 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index d8a7bd080704..ff6654c85983 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -204,7 +204,7 @@ mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; mmi,pl-chrg-vbatt-min = <3600000>; - mmi,typec-middle-current = <1500000>; + mmi,typec-middle-current = <1000000>; mmi,step-first-current-comp = <0>; mmi,dont-rerun-aicl; /*qc3p start*/ @@ -223,8 +223,10 @@ <5800000>, <5000000>, <4000000>, + <3500000>, <3000000>, - <2000000>; + <2000000>, + <1000000>; charger_device_0 { chrg-name = "pmic-sw"; psy-name = "battery"; From 2aa0a1534eda37e7995135bda346391a2a80df7e Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Sun, 1 Aug 2021 17:42:15 +0800 Subject: [PATCH 0343/1247] arm/dt: corfur: set mipi clk to 1103.16 for rf arm/dt: Set mipi clk to 1103.16 for rf. Change panel ic osc clk. Change power off timing. Change-Id: I75d66866026b827a4a0458d39ba946c955c06feb Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2030039 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-display.dtsi | 2 +- qcom/corfuq-display.dtsi | 2 +- qcom/corfur-display.dtsi | 8 ++--- ...anel-mot-visionox-vtdr6110c-fhd-video.dtsi | 32 ++++++++++--------- 4 files changed, 23 insertions(+), 21 deletions(-) diff --git a/qcom/corfup-display.dtsi b/qcom/corfup-display.dtsi index 2d8fb2dcaf51..94db6eb18fc7 100644 --- a/qcom/corfup-display.dtsi +++ b/qcom/corfup-display.dtsi @@ -86,7 +86,7 @@ qcom,mdss-dsi-t-clk-pre = <0x3B>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A 0A 09 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; diff --git a/qcom/corfuq-display.dtsi b/qcom/corfuq-display.dtsi index 2a0a7bc2c5da..a39344862ed7 100644 --- a/qcom/corfuq-display.dtsi +++ b/qcom/corfuq-display.dtsi @@ -58,7 +58,7 @@ qcom,mdss-dsi-t-clk-pre = <0x3B>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 25 09 + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A 0A 09 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 1b06df5a6b30..3f46c737a173 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -54,12 +54,12 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0E>; - qcom,mdss-dsi-t-clk-pre = <0x1D>; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x1F>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 22 09 09 19 23 09 - 09 09 02 04 00 1D 0E]; + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A + 0A 09 02 04 00 1F 1A]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index f71b3ab694cb..108497c502bb 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -41,9 +41,9 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <40>; - qcom,mdss-dsi-h-back-porch = <40>; - qcom,mdss-dsi-h-pulse-width = <2>; + qcom,mdss-dsi-h-front-porch = <88>; + qcom,mdss-dsi-h-back-porch = <88>; + qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; qcom,mdss-dsi-v-back-porch = <14>; @@ -56,22 +56,24 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ - 15 01 00 00 00 00 02 35 00 - 15 01 00 00 00 00 02 53 20 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 6F 01 - 15 01 00 00 00 00 02 59 09 - 39 01 00 00 00 00 03 F0 AA 10 - 39 01 00 00 00 00 03 EA 30 00 - 39 01 00 00 00 00 03 F0 AA 11 - 39 01 00 00 00 00 03 BB 10 21 - 39 01 00 00 00 00 03 F0 AA 00 + 15 00 00 00 00 00 02 35 00 + 15 00 00 00 00 00 02 53 20 + 39 00 00 00 00 00 03 51 00 00 + 15 00 00 00 00 00 02 6F 01 + 15 00 00 00 00 00 02 59 09 + 39 00 00 00 00 00 03 F0 AA 10 + 39 00 00 00 00 00 03 EA 30 00 + 39 00 00 00 00 00 03 F0 AA 11 + 39 00 00 00 00 00 03 BB 10 21 + 39 00 00 00 00 00 03 F0 AA 12 + 15 00 00 00 00 00 02 C8 84 + 39 00 00 00 00 00 03 F0 AA 00 05 01 00 00 78 00 01 11 05 01 00 00 01 00 01 29 ]; qcom,mdss-dsi-off-command = [ - 05 01 00 00 44 00 01 28 - 05 01 00 00 00 00 01 10 + 05 01 00 00 14 00 01 28 + 05 01 00 00 78 00 01 10 ]; qcom,mdss-dsi-t-clk-post = <0x0E>; qcom,mdss-dsi-t-clk-pre = <0x35>; From 34d1732ac828f8ada5d110253305f31d2890ab1a Mon Sep 17 00:00:00 2001 From: zhouwl Date: Mon, 2 Aug 2021 13:50:45 +0800 Subject: [PATCH 0344/1247] arm64/dts: corfu5G long vibration driver voltage Due to the requirement from hardware team, long vibration driver voltage need to decrease to 2.5V avoid 50M camera noise. Change-Id: I408ea7aea1032c0e093dfbb7136f8efbacc2ce4f Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2030286 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 2 +- qcom/holi-corfup-common-overlay.dtsi | 2 +- qcom/holi-corfuq-common-overlay.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 6ce659d046c1..82d8801f6401 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -48,7 +48,7 @@ qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; qcom,vib-dis-short-long-val = <70>; - qcom,vib-ldo-volt-uv-long = <3000000>; + qcom,vib-ldo-volt-uv-long = <2500000>; }; &tlmm { diff --git a/qcom/holi-corfup-common-overlay.dtsi b/qcom/holi-corfup-common-overlay.dtsi index 27f1786968b8..3b0317f08316 100644 --- a/qcom/holi-corfup-common-overlay.dtsi +++ b/qcom/holi-corfup-common-overlay.dtsi @@ -131,7 +131,7 @@ qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; qcom,vib-dis-short-long-val = <70>; - qcom,vib-ldo-volt-uv-long = <3000000>; + qcom,vib-ldo-volt-uv-long = <2500000>; }; &gpio_keys { diff --git a/qcom/holi-corfuq-common-overlay.dtsi b/qcom/holi-corfuq-common-overlay.dtsi index 261d3fbaaaf9..76c0b7584854 100644 --- a/qcom/holi-corfuq-common-overlay.dtsi +++ b/qcom/holi-corfuq-common-overlay.dtsi @@ -55,7 +55,7 @@ qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; qcom,vib-dis-short-long-val = <70>; - qcom,vib-ldo-volt-uv-long = <3000000>; + qcom,vib-ldo-volt-uv-long = <2500000>; }; &tlmm { From 930fd3036a1ac5d72aa41b47e2af9988e83d7acf Mon Sep 17 00:00:00 2001 From: varunshrivastava Date: Mon, 2 Aug 2021 12:26:24 +0530 Subject: [PATCH 0345/1247] Holi(SM4350) : Configure Compute DSP as secure Make even CDSP as secure DSP per QC recommendation See QCOM KBA-180627141440 for details Mot-CRs-fixed: (CR) Signed-off-by: varunshrivastava Change-Id: I22ea6c47a6138098277ecc8904d4f8fbbd144bec Reviewed-on: https://gerrit.mot.com/2030368 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index 58cb194da4a7..bb69a576a024 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -2514,6 +2514,7 @@ qcom,adsp-remoteheap-vmid = <22 37>; qcom,fastrpc-adsp-audio-pdr; qcom,fastrpc-adsp-sensors-pdr; + qcom,secure-domains = <0x0F>; qcom,msm_fastrpc_compute_cb1 { compatible = "qcom,msm-fastrpc-compute-cb"; From 6eaa1e1cea734039efb2d5fb01b76723736e5bf2 Mon Sep 17 00:00:00 2001 From: jixj Date: Mon, 2 Aug 2021 15:34:19 +0800 Subject: [PATCH 0346/1247] delete duplicate cx_ipeak_lm to fix build error Fix below build error: arch/arm64/boot/dts/vendor/qcom/holi-cypfq-dvt1-overlay.dtbo: ERROR (duplicate_label): Duplicate label 'cx_ipeak_lm' on /fragment@109/__overlay__/cx_ipeak@3ed000 and /fragment@16/__overlay__/cx_ipeak@3ed000 ERROR: Input tree has errors, aborting (use -f to force output) Change-Id: I2e2607a0020efb389601ece02a02065255e2e224 Reviewed-on: https://gerrit.mot.com/2030400 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Xiaojun Ji --- qcom/holi-cypfq-common-overlay.dtsi | 7 ------- qcom/holi-cypfr-common-overlay.dtsi | 7 ------- 2 files changed, 14 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index ba3f5d511f24..18f5ec1de1c9 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -346,13 +346,6 @@ linux,can-disable; }; }; - - cx_ipeak_lm: cx_ipeak@3ed000 { - #size-cells = <1>; - compatible = "qcom,cx-ipeak-v2"; - reg = <0x3ed000 0xe010>; - status = "ok"; - }; }; &soc { diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index a3e8dcd50530..7bf7672708ec 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -235,13 +235,6 @@ linux,can-disable; }; }; - - cx_ipeak_lm: cx_ipeak@3ed000 { - #size-cells = <1>; - compatible = "qcom,cx-ipeak-v2"; - reg = <0x3ed000 0xe010>; - status = "ok"; - }; }; &soc { From df748c4d4eb500b48623918af8575d4f36ab795a Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 2 Aug 2021 18:43:02 +0800 Subject: [PATCH 0347/1247] cypfq: arm64/dts: Support single tap feature for gc7372 - Enable gcore,report_gesture_key for enable report KEY_F1 and KEY_F2 function to make single tap can works properly. Change-Id: I21e1296e28913296d53321730f00ff79c1e9bd10 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2030594 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi index c723a552ef66..bc05a6a4446f 100755 --- a/qcom/cypfq-touchscreen.dtsi +++ b/qcom/cypfq-touchscreen.dtsi @@ -134,6 +134,7 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; + gcore,report_gesture_key; status = "ok"; }; }; From 4b1eb89c08661583ad7ba4a711950220bd3538f2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 3 Aug 2021 16:37:42 +0800 Subject: [PATCH 0348/1247] arm64/dts: cypfq/panel: enable touch_state_check For "double tap" function, reset and power can not been power down. So we check touch_state to get the state of "double tap". If it is enabled ,then we keep reset and power always on. Change-Id: Ia626726632e67c74df56a1c8870cbfb7e6be26c3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2031484 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 19429f1e9769..0cad623166b3 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -198,9 +198,9 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "csot"; - //qcom,platform-reset-gpio-always-on; + qcom,platform-reset-gpio-always-on; - //qcom,tp_state_check_enable; + qcom,tp_state_check_enable; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; From 504c916088135b7578cd906b3e804c21817feec1 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 5 Aug 2021 16:31:06 +0800 Subject: [PATCH 0349/1247] cypfq/sensor: sar sensor params update 1.update sx937x params 2.holi-pm6125-moto-common-overlay.dtsi for common Change-Id: I761bd28c8020b501b9bd66d5e75c7048ef1d6f45 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2033909 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 40 +++++++++++------------ 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 364bfc71c0d0..80ce151a02f3 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -126,14 +126,14 @@ 0x8008 0x0 0x4280 0x0 0x8020 0x32 - 0x8028 0x25E /*AFE_PARAM_PH0*/ - 0x8034 0x25E /*AFE_PARAM_PH1*/ - 0x8040 0x25E /*AFE_PARAM_PH2*/ - 0x804C 0x25E /*AFE_PARAM_PH3*/ - 0x8058 0x25E /*AFE_PARAM_PH4*/ - 0x8064 0x25E /*AFE_PARAM_PH5*/ - 0x8070 0x25E /*AFE_PARAM_PH6*/ - 0x807C 0x25E /*AFE_PARAM_PH7*/ + 0x8028 0x25F /*AFE_PARAM_PH0*/ + 0x8034 0x25F /*AFE_PARAM_PH1*/ + 0x8040 0x25F /*AFE_PARAM_PH2*/ + 0x804C 0x25F /*AFE_PARAM_PH3*/ + 0x8058 0x25F /*AFE_PARAM_PH4*/ + 0x8064 0x25F /*AFE_PARAM_PH5*/ + 0x8070 0x25F /*AFE_PARAM_PH6*/ + 0x807C 0x25F /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ @@ -151,27 +151,27 @@ 0x8068 0x0 0x8074 0x0 0x8080 0x0 - 0x8098 0xC8644D2C - 0x80B8 0xC8644D2C - 0x80D8 0xC8644D2C - 0x80F8 0xC8644D2C - 0x8118 0xC8644D2C - 0x8138 0xC8644D2C - 0x8158 0xC8644D2C - 0x8178 0xC8644D2C + 0x8098 0xC864 + 0x80B8 0xA147 + 0x80D8 0x7A37 + 0x80F8 0x9B54 + 0x8118 0x7F20 + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 0x80A0 0x0 0x80C0 0x0 - 0x80E0 0x0 + 0x80E0 0x1C1C0001 0x8100 0x0 0x8120 0x0 0x8140 0x0 0x8160 0x0 0x8180 0x0 - 0x8188 0x0 + 0x8188 0x8000015 0x818C 0x0 0x8190 0x0 0x8194 0x0 - 0x8090 0x2AD67000 + 0x8090 0x3CC47000 0x80B0 0x2AD67000 0x80D0 0x2AD67000 0x80F0 0x2AD67000 @@ -181,7 +181,7 @@ 0x8170 0x2AD67000 0x8088 0x300000 0x80A8 0x300000 - 0x80C8 0x300000 + 0x80C8 0x100000 0x80E8 0x300000 0x8108 0x300000 0x8128 0x300000 From fb1368b7ad91567d5a3cfc02c2fda84142f2d4f9 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 30 Jul 2021 15:31:06 +0800 Subject: [PATCH 0350/1247] arch/dts: add usb-pdhandle and pd current max iio for charging dlkm For add PD charging(include PPS/Fixed) policy in DLKM for single charge path(only pmic charging), so need add usb-pdhandle and pd current max iio in dtsi Change-Id: I07d8b98ecfd8c9e6bd91f08656ac119e209af6b9 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2029005 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 3 +++ qcom/holi-pm6125-moto-common-overlay.dtsi | 3 +++ 2 files changed, 6 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index cb6a9cbcdce3..737eea261a77 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -425,6 +425,7 @@ <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_RERUN_AICL>, <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, <&pm7250b_qg PSY_IIO_CURRENT_NOW>, <&pm7250b_qg PSY_IIO_TEMP>, @@ -442,6 +443,7 @@ "usb_input_current_settled", "battery_rerun_aicl", "battery_sw_jeita_enabled", + "usb_pd_current_max", "voltage_now", "current_now", "temp", @@ -460,6 +462,7 @@ qcom,iterm-ma = <242>; qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; }; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 80ce151a02f3..161992bf0e04 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -248,6 +248,7 @@ <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_RERUN_AICL>, <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, <&pm7250b_qg PSY_IIO_CURRENT_NOW>, <&pm7250b_qg PSY_IIO_TEMP>, @@ -265,6 +266,7 @@ "usb_input_current_settled", "battery_rerun_aicl", "battery_sw_jeita_enabled", + "usb_pd_current_max", "voltage_now", "current_now", "temp", @@ -283,6 +285,7 @@ qcom,iterm-ma = <242>; qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; }; }; From 8140bcbb15469fd1611a367bd53bb73ee587a6a9 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 5 Aug 2021 09:52:14 +0800 Subject: [PATCH 0351/1247] arch/dts: add usb-pdhandle and pd current max iio for charging dlkm For add PD charging(include PPS/Fixed) policy in DLKM for single charge path(only pmic charging), so need add usb-pdhandle and pd current max iio in dtsi for blair. Change-Id: I66e4ed74df450254abd1ba556f3c3dc76f87f0e1 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2033442 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 20be0df954db..b427296e8cb2 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -239,6 +239,7 @@ <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, <&pm7250b_charger PSY_IIO_RERUN_AICL>, <&pm7250b_charger PSY_IIO_SW_JEITA_ENABLED>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, <&pm7250b_qg PSY_IIO_CURRENT_NOW>, <&pm7250b_qg PSY_IIO_TEMP>, @@ -256,6 +257,7 @@ "usb_input_current_settled", "battery_rerun_aicl", "battery_sw_jeita_enabled", + "usb_pd_current_max", "voltage_now", "current_now", "temp", @@ -274,6 +276,7 @@ qcom,iterm-ma = <242>; qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; + qcom,usbpd-phandle = <&pm7250b_pdphy>; }; }; }; From ce8af8005a1a7b6c1de58d0e822c410f1208b0e5 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 5 Aug 2021 14:03:50 +0800 Subject: [PATCH 0352/1247] arm/dts: Remove vfloat comp Remove vflaot comp configur by battery KP requirement. Change-Id: I42c17c671f74b225f1fcdb82ccf009145fdc740f Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2033635 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 1 - qcom/holi-moto-common-overlay.dtsi | 1 - qcom/holi-pm6125-moto-common-overlay.dtsi | 1 - 3 files changed, 3 deletions(-) diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index b427296e8cb2..ccbf92f0e22f 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -274,7 +274,6 @@ <45 0 4000 4000>, <60 4200 2500 0>; qcom,iterm-ma = <242>; - qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; qcom,usbpd-phandle = <&pm7250b_pdphy>; }; diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 737eea261a77..158a100989ce 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -460,7 +460,6 @@ <45 0 4000 4000>, <60 4200 2500 0>; qcom,iterm-ma = <242>; - qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; qcom,usbpd-phandle = <&pm7250b_pdphy>; }; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 161992bf0e04..84c38e065597 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -283,7 +283,6 @@ <45 0 4000 4000>, <60 4200 2500 0>; qcom,iterm-ma = <242>; - qcom,vfloat-comp-uv = <20000>; qcom,force-hvdcp-5v; qcom,usbpd-phandle = <&pm7250b_pdphy>; }; From 54b7cc5ef2afd7e8bb548b01027df2cfa6440088 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 30 Jul 2021 18:39:46 +0800 Subject: [PATCH 0353/1247] arm/dts: add mmi_cp_enabled_status iio config add mmi_cp_enabled_status iio config for corfu Change-Id: I461826df7b4e7d0ee341a551e6552b6d9816e76c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2029175 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index ff6654c85983..f49ecd13600a 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -177,7 +177,8 @@ <&sc8549 PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, <&sc8549 PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, <&sc8549 PSY_IIO_CP_STATUS1>, - <&sc8549 PSY_IIO_MMI_CP_CLEAR_ERROR>; + <&sc8549 PSY_IIO_MMI_CP_CLEAR_ERROR>, + <&pm7250b_mmi PSY_IIO_CP_ENABLE>; io-channel-names = "usb_hw_current_max", @@ -194,7 +195,8 @@ "cp_input_current_now", "cp_input_voltage_now", "cp_status1", - "cp_clear_error"; + "cp_clear_error", + "mmi_cp_enabled_status"; qcom,usbpd-phandle = <&pm7250b_pdphy>; mmi,pps-volt-steps = <20000>; From c7a00c024c033e20e61208a29344901029e45d3a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 5 Aug 2021 14:57:39 +0800 Subject: [PATCH 0354/1247] arm64/dts: cypfq/display: remove "qcom,platform-reset-gpio-always-on" When power down, we must disable all power and signal. Otherwise, electric leakage will be caused. Change-Id: I43db8f1b0005f60bf626e5b384156053da718d11 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2033722 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 0cad623166b3..c5cee0711ecf 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -143,7 +143,6 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "tm"; - qcom,platform-reset-gpio-always-on; qcom,tp_state_check_enable; @@ -198,7 +197,6 @@ qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "csot"; - qcom,platform-reset-gpio-always-on; qcom,tp_state_check_enable; From e79beb79617805b84ec8a1dd1110573fe630a8cb Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 5 Aug 2021 17:51:28 +0800 Subject: [PATCH 0355/1247] arm64/dt: Remove un-used blair-pm6125-overlay.dtsi holi-pm6125.dtsi is added by qcom for 4350Pro, but qcom does not add blair-pm6125-overlay.dtsi fro 6375, and we don't need add it, it is un-used for us Change-Id: I9d4c7b625edc8c47264562b3e4ad1a20cf8de090 Reviewed-on: https://gerrit.mot.com/2034017 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 1 - qcom/blair-pm6125-overlay.dtsi | 75 ---------------------- 2 files changed, 76 deletions(-) delete mode 100644 qcom/blair-pm6125-overlay.dtsi diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index ccbf92f0e22f..628aa6a12b1f 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -9,7 +9,6 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "blair-pm6125-overlay.dtsi" #include "holi-mtp-pm7250b.dtsi" #include "carrier-channel-ids.dtsi" diff --git a/qcom/blair-pm6125-overlay.dtsi b/qcom/blair-pm6125-overlay.dtsi deleted file mode 100644 index 23a9aac2aeb4..000000000000 --- a/qcom/blair-pm6125-overlay.dtsi +++ /dev/null @@ -1,75 +0,0 @@ -&mdss_dsi_phy0 { - vdda-0p9-supply = <&S1E_LEVEL>; -}; - -&mdss_dsi0 { - vdda-1p2-supply = <&L4A>; -}; - -&icnss { - vdd-cx-mx-supply = <&L2E>; - vdd-1.8-xo-supply = <&L16A>; - vdd-1.3-rfa-supply = <&L2A>; - vdd-3.3-ch1-supply = <&L21A>; - vdd-3.3-ch0-supply = <&L23A>; - vdd-smps-supply = <&S5A>; - qcom,vdd-cx-mx-config = <640000 640000>; - qcom,vdd-3.3-ch1-config = <3000000 3312000>; - qcom,vdd-3.3-ch0-config = <3000000 3312000>; -}; - -&bluetooth { - qcom,bt-vdd-smps-supply = <&S5A>; /* SMPS */ - qcom,bt-vdd-io-supply = <&L9A>; /* IO */ - qcom,bt-vdd-core-supply = <&L2A>; /* RFA */ - qcom,bt-vdd-pa-supply = <&L23A>; /* CH0 */ - qcom,bt-vdd-xtal-supply = <&L16A>; /* XO */ - - qcom,bt-vdd-smps-config = <984000 984000 1 0>; -}; - -&dispcc { - vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ -}; - -&gpucc { - vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ - vdd_mx-supply = <&S1E_LEVEL>; /* VDD_MX_LEVEL */ - vdd_gx-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ -}; - -&gpu_cx_gdsc { - parent-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ -}; - -&gpu_gx_gdsc { - parent-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ -}; - -&gcc { - vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ - vdd_mx-supply = <&S1E_LEVEL>; /* VDD_MX_LEVEL */ -}; - -&msm_gpu { - vdd-parent-supply = <&S8A_LEVEL>; /* VDD_GFX_LEVEL */ -}; - -&pil_turing { - vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ -}; - -&pil_modem { - vdd_cx-supply = <&S2E_LEVEL>; /* VDD_CX_LEVEL */ -}; - -&pil_lpass { - vdd_lpi_cx-supply = <&L1A_LEVEL>; - vdd_lpi_mx-supply = <&L17A_LEVEL>; -}; - - -&usb_qmp_dp_phy { - vdd-supply = <&L18A>; - core-supply = <&L4A>; -}; From 185a35522293668e08c16fba5ab26cfe4e9d8ccb Mon Sep 17 00:00:00 2001 From: jixj Date: Wed, 4 Aug 2021 16:29:46 +0800 Subject: [PATCH 0356/1247] arm64/dt: Add Milan 5G initial dts blair-milanf-common-overlay.dtsi is copied from blair-mtp.dtsi of date 2021-06-02 17:56:14 Change-Id: I1e7d0ba5c66786efc91598eb25b1ecbd9aab48ba Reviewed-on: https://gerrit.mot.com/2032524 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 7 + qcom/blair-milanf-common-overlay.dtsi | 214 +++++++++++++++++++ qcom/blair-milanf-evb1-overlay.dts | 24 +++ qcom/blair-milanf-evb2-overlay.dts | 24 +++ qcom/blair-nopmi-milanf-common-overlay.dtsi | 14 ++ qcom/blair-nopmi-moto-common-overlay.dtsi | 55 +++++ qcom/blair-pm6125-milanf-common-overlay.dtsi | 17 ++ 7 files changed, 355 insertions(+) create mode 100644 qcom/blair-milanf-common-overlay.dtsi create mode 100644 qcom/blair-milanf-evb1-overlay.dts create mode 100644 qcom/blair-milanf-evb2-overlay.dts create mode 100644 qcom/blair-nopmi-milanf-common-overlay.dtsi create mode 100644 qcom/blair-nopmi-moto-common-overlay.dtsi create mode 100644 qcom/blair-pm6125-milanf-common-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 48e9103239f4..c41cd7b00f45 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -80,6 +80,13 @@ dtbo-$(CONFIG_CYPFR_DTB) += \ holi-cypfr-evb-overlay.dtbo-base := holi-moto-base.dtb holi-cypfr-evt-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_MILANF_DTB) += \ + blair-milanf-evb1-overlay.dtbo \ + blair-milanf-evb2-overlay.dtbo + +blair-milanf-evb1-overlay.dtbo-base := blair-moto-base.dtb +blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi new file mode 100644 index 000000000000..0718d2d74d89 --- /dev/null +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -0,0 +1,214 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" + + + +&wcd938x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddio"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wsa881x_i2c_e { + cdc-vdd-1p8-supply = <&L9A>; +}; + +&wsa881x_i2c_f { + cdc-vdd-1p8-supply = <&L9A>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&qupv3_se0_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +}; + +&soc { + touch_avdd: touch_avdd_stub { + /* + * Touch eLDO controlled by gpio#53 is always ON. + * Using dummy regulator. + */ + compatible = "qcom,stub-regulator"; + regulator-name = "touch_avdd_stub"; + qcom,hpm-min-load = <10000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L9A>; + avdd-supply = <&touch_avdd>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; +}; + +#include "camera/blair-camera-sensor-mtp.dtsi" + diff --git a/qcom/blair-milanf-evb1-overlay.dts b/qcom/blair-milanf-evb1-overlay.dts new file mode 100644 index 000000000000..944304da2480 --- /dev/null +++ b/qcom/blair-milanf-evb1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-milanf-common-overlay.dtsi" + +/ { + model = "milanf"; + compatible = "qcom,blair-milanf", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA100>; +}; + diff --git a/qcom/blair-milanf-evb2-overlay.dts b/qcom/blair-milanf-evb2-overlay.dts new file mode 100644 index 000000000000..d274723f4d9e --- /dev/null +++ b/qcom/blair-milanf-evb2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-milanf-common-overlay.dtsi" + +/ { + model = "milanf"; + compatible = "qcom,blair-milanf", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA200>; +}; + diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi new file mode 100644 index 000000000000..3bdda39cd5a3 --- /dev/null +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -0,0 +1,14 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-milanf-common-overlay.dtsi" +#include "blair-nopmi-moto-common-overlay.dtsi" + diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi new file mode 100644 index 000000000000..f9507b44ed27 --- /dev/null +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -0,0 +1,55 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "carrier-channel-ids.dtsi" +#include + +&utags { + compatible = "mmi,utags"; + mmi,main-utags = "/dev/block/bootdevice/by-name/utags"; + mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup"; +}; + +&hw { + compatible = "mmi,utags"; + mmi,dir-name = "hw"; + mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; +}; + +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + no-dump-oops; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; diff --git a/qcom/blair-pm6125-milanf-common-overlay.dtsi b/qcom/blair-pm6125-milanf-common-overlay.dtsi new file mode 100644 index 000000000000..33a3f3b365ea --- /dev/null +++ b/qcom/blair-pm6125-milanf-common-overlay.dtsi @@ -0,0 +1,17 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-milanf-common-overlay.dtsi" +#include "blair-pm6125-moto-common-overlay.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; From 9b2d6f07cd514d7d01a040296182957598d5cdfa Mon Sep 17 00:00:00 2001 From: jixj Date: Fri, 6 Aug 2021 10:50:20 +0800 Subject: [PATCH 0357/1247] qcom: Add NFC initialized config https://gerrit.mot.com/#/c/2008259/ has removed nfc from base dts, so add NFC config in blair-milanf-common-overlay.dtsi just l(CR) holi-denver-common-overlay.dtsi to avoid build error. Change-Id: I2d8398f730f2c7a545f2d7359e348235f9ce1178 Reviewed-on: https://gerrit.mot.com/2034662 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 94 +++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 0718d2d74d89..4e70b2a0c144 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -18,6 +18,100 @@ #include "display/blair-sde-display-mtp.dtsi" +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; &wcd938x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 58060c0815547d4702399f607719911dd0ac3eb2 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 6 Aug 2021 17:49:47 +0800 Subject: [PATCH 0358/1247] Cypfq: arm64/dts: Only set int pin when suspend - Since now we having display/touch current drain issue when suspend, so need to set rst pin to low when suspend and add reset process to change rst pin to high when resume. This change will control int pin by default and will control rst pin in addition process. Change-Id: I57c0c3dafb77171ca820a330942181d37b2351fd Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2035342 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi index bc05a6a4446f..af8757b02a89 100755 --- a/qcom/cypfq-touchscreen.dtsi +++ b/qcom/cypfq-touchscreen.dtsi @@ -47,7 +47,7 @@ config { pins = "gpio22"; drive-strength = <2>; - bias-pull-up; + bias-pull-down; }; }; }; @@ -117,7 +117,7 @@ touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2008>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; - pinctrl-0 = <&ts_active>; + pinctrl-0 = <&touch_int_active>; pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; status = "ok"; From 2863147b9886816a951f22b5685bd13cca224354 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 10 Aug 2021 18:07:04 +0800 Subject: [PATCH 0359/1247] arm/dt: corfur: disable sdhc-2 device corfur: Disable sdhc-2 device, because corfur does not support sdcard device. Sdhc driver disable L22A when suspend, impact touch, because touch use L22A on corfur. Change-Id: I12460eebd430c0da8b5ee8fcf2cb3e427bea741b Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2037760 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 82d8801f6401..c26cd2c16f8c 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -211,7 +211,7 @@ }; &sdhc_2 { - status = "ok"; + status = "disabled"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc2_on>; From d6a48f897cc5a4b108350d5c3da169f3ee36d694 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 10 Aug 2021 18:11:16 +0800 Subject: [PATCH 0360/1247] arm/dt: corfur: change touch to reset when sume corfur: Don't power off when suspend, keep power and reset on, but reset when resume to meet IC spec. Change-Id: I00844e360b70a70e7138f965afe4b35767addc5b Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2037764 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfuq-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi index 6693364e0540..c0f52887f4d9 100755 --- a/qcom/corfuq-touchscreen.dtsi +++ b/qcom/corfuq-touchscreen.dtsi @@ -39,6 +39,6 @@ mmi,enable-gestures; mmi,usb-charger-detection; mmi,class-entry-name = "ft3519"; - mmi,power-off-suspend; + mmi,reset-on-resume = <0x01>; }; }; From bb5d43528ae12251ef6a4ca1caaa8ba6032d58a1 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Aug 2021 09:25:56 +0800 Subject: [PATCH 0361/1247] arm64/dts: cypfq/csot_panel: change the bit width of bl to 10bist. In order to be consistent with the first panel(tianma), we change the bit width of csot_panel's backlight to 10bits. Change-Id: I9dd42c9578c3c30f17b7567fc0863bb1642a21e0 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2038394 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index c5cee0711ecf..8e092e473d5e 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -183,10 +183,10 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <16>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1023>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -212,8 +212,8 @@ qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 06 66]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; From f0af1d284f880ae5a795be26c273bcd8da3542c4 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Aug 2021 10:20:07 +0800 Subject: [PATCH 0362/1247] arm64/dts: cypfq/csot_panel: add code to change bit width of backlight In order to be consistent with the first panel(tianma), we change the bit width of csot_panel's backlight to 10bits. From DVT2, these code will be otp,So we can not send the init code to change bit width. Change-Id: I852d64671ddcf8040bdd5e7e8f1b528f23e47066 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2038441 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-dvt1-overlay.dts | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qcom/holi-cypfq-dvt1-overlay.dts b/qcom/holi-cypfq-dvt1-overlay.dts index a3a04f189bf0..e2ac6906e930 100644 --- a/qcom/holi-cypfq-dvt1-overlay.dts +++ b/qcom/holi-cypfq-dvt1-overlay.dts @@ -22,3 +22,28 @@ qcom,board-id = <0x47 0xB100>; }; + +&dsi_csot_gc7372_678_fhd_video { + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 55 AA 66 + 15 01 00 00 00 00 02 FF 23 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 2E 2B + 15 01 00 00 00 00 02 32 01 + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 00 + 15 01 00 00 00 00 02 36 08 + 15 01 00 00 00 00 02 BA 03 + 15 01 00 00 00 00 02 69 00 + 15 01 00 00 00 00 02 35 00 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 96 00 01 11 + 05 01 00 00 32 00 01 29 + ]; + }; + }; +}; From f3b8244b594fbb499e92d93b7284503ddc6afcba Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 11 Aug 2021 08:58:08 +0800 Subject: [PATCH 0363/1247] dts: add rt9426a fuel gauge dts file add rt9426a fuel gauge dts file from richtek. Change-Id: I492a7c670590dbd47ad0cef84625b831b2857237 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2038388 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rt9426a.dtsi | 108 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 qcom/rt9426a.dtsi diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi new file mode 100644 index 000000000000..fd6b6c8b11ad --- /dev/null +++ b/qcom/rt9426a.dtsi @@ -0,0 +1,108 @@ +#include + +&qupv3_se0_i2c { + rt9426a@55 { + compatible = "richtek,rt9426a"; + reg = <0x55>; + status = "okay"; + interrupts-extended = <&tlmm 14 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&rt9426a_alert>; + rt,dtsi_version = <01 709>; + rt,para_version = <0x0001>; + rt,battery_type = <4352>; + rt,volt_source = <3>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV + rt,temp_source = <1>; // 0:AP 1:FG_TEMP 2:FG_INTT; 3:FG_AT + rt,curr_source = <2>; // 0:AP 1:FG_CURR 2:FG_AI + rt,offset_interpolation_order = <2 2>; + rt,soc_offset_size = <2 1>; + rt,soc_offset_data = <0 250 0 1000 250 0>; + rt,rs_ic_setting = <100>; /* unit:0.01mR ; 100x0.01 = 1.0mR */ + rt,rs_schematic = <100>; /* unit:0.01mR ; 100x0.01 = 1.0mR */ + rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 80 00 00 + 80 34 21 10 00 30 00 00 3F 0A 1D 32 12 05 1E 50 + 00 81 00 02 00 02 00 40 00 40 D0 07 D0 07 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 + 15 0E 48 44 78 27 46 41 19 05 91 12 33 32 32 00 + 71 55 12 32 77 A5 04 73 22 33 52 68 A7 64 32 19 + 28 14 0E 08 08 06 06 06 05 05 08 08 06 05 05 03 + 03 F6 F6 F6 F2 F2 EC E6 EE EE EE E4 E4 DE D8 00 + 56 02 C0 48 00 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; + + /* add for smooth soc ; 2021-01-18 */ + rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ + /* add for aging cv ; 2021-01-18 */ + rt,fcc = <2000 2001 2002 2003 2004>; + rt,fg_fc_vth = <0x00 0x01 0x02 0x03 0x04>; + rt,fg_ocv_table0 = <0x0013 0x5000 0x5500 0x5933 0x5C1A 0x5C26 0x5D00 0x5E66 + 0x5FF3 0x610D 0x61F3 0x6333 0x6413 0x66A0 0x68F3 0x6A5A + 0x6B9A 0x6C1A 0x6E20 0x706D 0x1400 0x0433 0x023B 0x000D + 0x0038 0x004B 0x0031 0x0042 0x0055 0x00AD 0x0080 0x0081 + 0x0091 0x0092 0x0098 0x0039 0x0096 0x00EC 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000D 0x003D 0x0073 0x1300 0x0497 0x036E + 0x053A 0x03DD 0x0300 0x017B 0x0200 0x01FB 0x01C3 0x01C0 + 0x01AE 0x0480 0x01B4 0x0116 0xB0EF 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table1 = <0x0013 0x44C0 0x4B00 0x55F3 0x5A60 0x5BED 0x5C93 0x5DFA + 0x5FA6 0x60AD 0x619A 0x62CD 0x63AD 0x662D 0x687A 0x69E0 + 0x6B0D 0x6C46 0x6DC0 0x706D 0x1900 0x0AF3 0x0367 0x01A2 + 0x002B 0x004B 0x0035 0x003E 0x0058 0x00A6 0x0080 0x007F + 0x0090 0x0092 0x008F 0x008B 0x006D 0x0112 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0017 0x004B 0x009D 0x0600 0x036E + 0x04D6 0x0425 0x02EB 0x018B 0x0200 0x0205 0x01C8 0x01C0 + 0x01CA 0x01D6 0x0257 0x00EF 0x27A8 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table2 = <0x0013 0x44C0 0x4B00 0x563A 0x5A93 0x5BF3 0x5CC0 0x5E00 + 0x5F93 0x60A6 0x619A 0x62CD 0x63A6 0x6626 0x687A 0x69E0 + 0x6B0D 0x6C4D 0x6DC0 0x706D 0x1900 0x0B3A 0x0359 0x0173 + 0x0035 0x0043 0x0032 0x0041 0x005A 0x00A6 0x007C 0x007F + 0x0091 0x0092 0x008F 0x008E 0x006C 0x0112 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0017 0x004D 0x00B1 0x04E0 0x03D7 + 0x0525 0x03F4 0x02D8 0x018B 0x020F 0x0205 0x01C3 0x01C0 + 0x01CA 0x01CD 0x0261 0x00EF 0x5DCE 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table3 = <0x0013 0x49C0 0x5500 0x5898 0x5AE2 0x5B24 0x5C24 0x5D50 + 0x5EF8 0x600E 0x60FE 0x61C1 0x62AA 0x654B 0x6770 0x68B9 + 0x69DB 0x6B1B 0x6CE0 0x706D 0x2D00 0x0398 0x01C3 0x0046 + 0x0042 0x003F 0x0034 0x0041 0x0059 0x006A 0x0085 0x0085 + 0x0086 0x0086 0x008A 0x008E 0x0083 0x016C 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0047 0x0091 0x03A7 0x03E7 0x0418 + 0x04E5 0x03E9 0x02E3 0x026C 0x01EC 0x01EC 0x01E9 0x01E8 + 0x01DA 0x01CD 0x01F3 0x00B4 0x6E98 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table4 = <0x0013 0x5000 0x5500 0x593A 0x5C20 0x5C26 0x5D13 0x5E60 + 0x5FED 0x60FA 0x61E6 0x631A 0x63FA 0x6673 0x68C0 0x6A20 + 0x6B5A 0x6BF3 0x6E20 0x706D 0x1400 0x043A 0x023B 0x0007 + 0x003D 0x0045 0x0031 0x003F 0x0058 0x00A6 0x0080 0x007D + 0x0090 0x0090 0x0095 0x0044 0x00A1 0x00EC 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000D 0x003D 0x0073 0x2600 0x0437 0x03B1 + 0x053A 0x040C 0x02EB 0x018B 0x0200 0x020A 0x01C8 0x01C8 + 0x01B7 0x03C0 0x0196 0x0116 0xCCCE 0x0000 0x0000 0x0000 >; + }; +}; + +&tlmm { + rt9426a_alert: rt9426a_alert { + mux { + pins = "gpio14"; + function = "gpio"; + }; + + config { + pins = "gpio14"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; From b8aee042cad8af3ec29d074f3dd9d75b8f00619f Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 12 Aug 2021 14:14:17 +0800 Subject: [PATCH 0364/1247] arm/dts: Config report ui soc 100 to 0.1C modify report ui soc 100% from 95% to 0.1c corfu 5g 0.1c is about 97.4% cell soc. Change-Id: I9f492c3a8febffd16cfb7fbc9d51182832bc8218 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2039750 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index f49ecd13600a..4579671e132c 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -81,13 +81,13 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4450 243 789>, - <4450 243 789>, - <4450 243 789>, - <4480 575 1186>, - <4480 635 1295>, - <4480 661 1356>, - <4450 243 789>; + qcom,mmi-ffc-zones = <4450 243 500>, + <4450 243 500>, + <4450 243 500>, + <4480 575 890>, + <4480 635 987>, + <4480 661 1031>, + <4450 243 500>; qcom,iterm-ma = <243>; }; From 285153bbca324d130c64b870503625f5a66afe1a Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 11 Aug 2021 16:28:12 +0800 Subject: [PATCH 0365/1247] arm/dts: Disable fcc-stepping-enable for corfu 5G If enable fcc step feature,fcc will ramp change as it will cause delay in limiting main charge current. we need to quick limit main fcc while CP enable, otherwise there is a risk that cp enable fail. Change-Id: Iff36b50b58fc1dc84dc6c77b140ea0efa9c05785 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2038838 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 4579671e132c..06fb509254a0 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -70,6 +70,7 @@ 1200000 900000 600000>; mmi,qc3p-support; + /delete-property/ qcom,fcc-stepping-enable; }; From 53ef4e8f5ee27d2e8d6deae80ed760fb4f61f69c Mon Sep 17 00:00:00 2001 From: liuwang2 Date: Thu, 12 Aug 2021 13:55:59 +0800 Subject: [PATCH 0366/1247] arm/dt: cypfr: add camera config [detail] add camera config for cypfr Change-Id: I6f2f17507c45a5c4166d6fed165d93d49ad44acb Signed-off-by: liuwang2 Reviewed-on: https://gerrit.mot.com/2039722 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bolei Shang Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-cypfr-common-overlay.dtsi | 87 +++++++++++++++++++++++++++-- 1 file changed, 82 insertions(+), 5 deletions(-) diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/holi-cypfr-common-overlay.dtsi index 7bf7672708ec..3fa442ed670b 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/holi-cypfr-common-overlay.dtsi @@ -18,7 +18,7 @@ #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include "camera/holi-camera-pm6125-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -100,6 +100,19 @@ }; &tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -217,6 +230,74 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S6A>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + &soc { gpio_keys { compatible = "gpio-keys"; @@ -254,7 +335,3 @@ &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; }; - - - -#include "camera/holi-camera-sensor-pm6125-mtp.dtsi" From 9c9730c26a188d3713c8c0983c0e1f41b3e187eb Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 12 Aug 2021 10:09:07 +0800 Subject: [PATCH 0367/1247] dts: add adb force eanble configuration Adding ADB force enable configuration(qcom,force-adb-enable) to enable adb for debuging. Refs: https://gerrit.mot.com/#/c/2038917/ Change-Id: I86e1a3cb21754e53ba816f597ab3d2d44cda4ea2 Reviewed-on: https://gerrit.mot.com/2039541 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 3bdda39cd5a3..9efc86e3191b 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -12,3 +12,8 @@ #include "blair-milanf-common-overlay.dtsi" #include "blair-nopmi-moto-common-overlay.dtsi" +&usb0 { + qcom,force-adb-enable; +}; + + From a71be866874ac2d1f5608b0cfa570bfc4da7b5c7 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 13 Aug 2021 13:45:27 +0800 Subject: [PATCH 0368/1247] arm/dt: corfur: set l13a as always on arm/dt: Set 13a as always on to meet ic spec. Change-Id: I6bb79836b7a0f26c88eae13de793d314f520dfe4 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2040893 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 3f46c737a173..459b84fc9c84 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -11,6 +11,10 @@ vddio-supply = <&L13A>; }; +&pm6125_l13 { + regulator-always-on; +}; + &soc { dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { #address-cells = <1>; From be1561feaa3ad4cc80f44fb1246d0e885f02253f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 13 Aug 2021 15:36:15 +0800 Subject: [PATCH 0369/1247] arm64/dts: cypfq_panel: add the delay time before power down vddio Get the requrement from vendor . Power off vsp ,delay 2ms, then power off vddio. Change-Id: I5ed5326c3961ebd48be1caab9b4c93df5d4d69ab Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2041117 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 8e092e473d5e..5ed9340be2ae 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -93,6 +93,7 @@ qcom,supply-max-voltage = <1904000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; }; qcom,panel-supply-entry@1 { From af20cb6f7f88525a43d0652af3cb6ef4910b036d Mon Sep 17 00:00:00 2001 From: chailu1 Date: Sat, 14 Aug 2021 10:15:50 +0800 Subject: [PATCH 0370/1247] arm/dts: Config usb phy parameter for corfur Config usb phy parameter for corfur this parameter come from HW tuning. Change-Id: Ic73ac8b0779d41026f9b07b0dd6a3b6a7961ed9c Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2041779 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index c26cd2c16f8c..029c862b8ce9 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -734,3 +734,10 @@ &pm7250b_charger { dpdm-supply = <&usb2_phy0>; }; + +&usb2_phy0 { + qcom,param-override-seq = + <0x61 0x6c /* override_x0 */ + 0x85 0x70 /* override_x1 */ + 0x2e 0x74>; /* override x2 */ +}; From f49c1224ef4f7bf4a668d9bc0698335392d24327 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 13 Aug 2021 18:03:16 +0800 Subject: [PATCH 0371/1247] arm/dt: corfur: add panel dc parameters arm/dt: Add panel dc parameters for vtdr6110c. Change-Id: Ia7122912f4de9423c7be4daf2bbcd8605938a675 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2041264 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index 108497c502bb..efdd54dc2f4e 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -37,6 +37,20 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-dc-off-command = [ + 15 00 00 00 00 00 02 26 01 + 39 00 00 00 00 00 03 F0 AA 11 + 39 01 00 00 10 00 0E C2 10 02 60 13 01 12 23 34 45 46 47 48 49 + 15 01 00 00 00 00 02 D5 05]; + qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-dc-on-command = [ + 15 00 00 00 00 00 02 26 02 + 39 00 00 00 00 00 03 F0 AA 11 + 39 01 00 00 10 00 0E C2 10 02 60 13 41 42 43 44 45 46 47 48 49 + 15 01 00 00 00 00 02 D5 05]; + qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; From c99b3fdcdc38b8c8d98c8f82a329b3991bf6e879 Mon Sep 17 00:00:00 2001 From: liaohj Date: Tue, 17 Aug 2021 16:22:12 +0800 Subject: [PATCH 0372/1247] arm64/dts:Milan_5G:Audio EVB bringup Milan_5G use qcom 6375 platform + aw88261 smart pa. config related dts. Change-Id: I7a8dd867ea6f9231ec53451432633f0c16506230 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2043648 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 49 ++++++-------------- qcom/blair-pm6125-milanf-common-overlay.dtsi | 4 ++ 2 files changed, 18 insertions(+), 35 deletions(-) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 4e70b2a0c144..fd03947eed45 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-audio-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -17,6 +17,19 @@ #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + &tlmm { nfc { @@ -113,40 +126,6 @@ }; }; -&wcd938x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddio"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddpx-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wsa881x_i2c_e { - cdc-vdd-1p8-supply = <&L9A>; -}; - -&wsa881x_i2c_f { - cdc-vdd-1p8-supply = <&L9A>; -}; - /* Dummy LDO reference */ &sdhc_1 { status = "ok"; diff --git a/qcom/blair-pm6125-milanf-common-overlay.dtsi b/qcom/blair-pm6125-milanf-common-overlay.dtsi index 33a3f3b365ea..7e8c921a3d27 100644 --- a/qcom/blair-pm6125-milanf-common-overlay.dtsi +++ b/qcom/blair-pm6125-milanf-common-overlay.dtsi @@ -15,3 +15,7 @@ &pm7250b_charger { dpdm-supply = <&usb2_phy0>; }; + +&smb1394 { + status = "disabled"; +}; From 07dcec76644074a852ba4e438704689d7c3a7d12 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 16 Aug 2021 16:42:05 +0800 Subject: [PATCH 0373/1247] dts/panel: milanf: add the tianma panel file tianma + nt36672e + 1080x2460 +6.78' 120HZ + DSC Change-Id: I1ac7f9268cd3af2b26280e1364c21343a07f1dfc Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2042451 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...l-mot-tm-nt36672e-678-1080x2460-video.dtsi | 113 +++++++++++ qcom/milanf-display.dtsi | 179 ++++++++++++++++++ 2 files changed, 292 insertions(+) create mode 100644 qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi create mode 100644 qcom/milanf-display.dtsi diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..cf9ba6c3fdce --- /dev/null +++ b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi @@ -0,0 +1,113 @@ +&mdss_mdp { + dsi_tm_nt36672e_678_fhdp_120_video: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 2>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <110>; + qcom,mdss-dsi-h-back-porch = <18>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <60>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 29 01 00 00 00 00 02 FF 10 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 36 00 + 29 01 00 00 00 00 06 3B 03 14 3C 04 04 + 29 01 00 00 00 00 02 B0 00 + 29 01 00 00 00 00 02 C0 03 + 29 01 00 00 00 00 03 C2 1B A0 + 29 01 00 00 00 00 02 E9 00 + + 29 01 00 00 00 00 02 FF E0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 35 82 + 29 01 00 00 00 00 02 85 32 + + 29 01 00 00 00 00 02 FF F0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 1C 01 + 29 01 00 00 00 00 02 33 01 + 29 01 00 00 00 00 02 5A 00 + 29 01 00 00 00 00 02 9F 19 + + 29 01 00 00 00 00 02 FF D0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 53 22 + 29 01 00 00 00 00 02 54 02 + + 29 01 00 00 00 00 02 FF C0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 9C 11 + 29 01 00 00 00 00 02 9D 11 + + 29 01 00 00 00 00 02 FF 25 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 0F 1B + 29 01 00 00 00 00 02 18 20 + + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 C0 03 + 39 01 00 00 00 00 02 51 CC + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 01 + + 05 01 00 00 65 00 01 11 + 05 01 00 00 29 00 01 29 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 46 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + }; +}; diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi new file mode 100644 index 000000000000..c1c960fd1f5c --- /dev/null +++ b/qcom/milanf-display.dtsi @@ -0,0 +1,179 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + + +&tlmm { + lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { + mux { + pins = "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio86"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsp_en_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 86 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsn_en_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5600000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5600000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-post-on-sleep = <10>; + }; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vddio-supply = <&L13A>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + + qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; +}; + +&dsi_tm_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-clockrate = <900000000>; + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; From 1c4bb782616c98fda94ac941f6431fed82489e23 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 16 Aug 2021 16:43:43 +0800 Subject: [PATCH 0374/1247] milanf: dts_overlay: add milanf-display.dtsi tianma + nt36672e + 1080x2460 +6.78' 120HZ + DSC Change-Id: I5c1ee4d690d6fa10fcd73669fab23939a6973a90 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2042454 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index fd03947eed45..59436e979793 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -16,6 +16,7 @@ #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" +#include "milanf-display.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 50e6f468ca5b32ad05108ede68928d4148bcce5f Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 18 Aug 2021 18:11:50 +0800 Subject: [PATCH 0375/1247] arm/dts: Config pps charge allow min current for coruf 5g 1. config pps charge allow min current to 1A. 2. config typec_middle_current to 2A. Change-Id: I6eb501a0168cadf633fc48bdbc6f5d1a878e824e Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2045081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 06fb509254a0..1fbdd8993879 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -207,7 +207,8 @@ mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; mmi,pl-chrg-vbatt-min = <3600000>; - mmi,typec-middle-current = <1000000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; mmi,step-first-current-comp = <0>; mmi,dont-rerun-aicl; /*qc3p start*/ From 78168a9b6f07f96ce27d5a6cdf5ae0a00415c8df Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Thu, 19 Aug 2021 15:16:03 +0800 Subject: [PATCH 0376/1247] arm64/dts: bringup sd card. sd card interrupt level is low as default, need set HIGH as design on milan 5G. Change-Id: If22f53080a564ae7eeae0be2ca5ffe7ad3a1fb46 Reviewed-on: https://gerrit.mot.com/2045887 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xinmin Fu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 59436e979793..9923bbc7ef28 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -161,7 +161,7 @@ qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; &ufsphy_mem { From a604d0a239fdfdae31556de3a99f9f2f367b7141 Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 19 Aug 2021 11:26:59 +0800 Subject: [PATCH 0377/1247] arm64/dt: Add Cyprus 5G IP68 initial dts 1.blair-cypfr-common-overlay.dtsi is copied from blair-mtp.dtsi of date 2021-06-02 17:56:14 2.AAdd NFC initialized config https://gerrit.mot.com/#/c/2008259/ has removed nfc from base dts, so add NFC config in blair-cypfr-common-overlay.dtsi just l(CR) holi-denver-common-overlay.dtsi to avoid build error. Change-Id: Icbe6ad737473d1e41fddb56d71372399c8082912 Reviewed-on: https://gerrit.mot.com/2045705 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 8 +- ...y.dtsi => blair-cypfr-common-overlay.dtsi} | 329 ++++++++---------- ...verlay.dts => blair-cypfr-evb-overlay.dts} | 6 +- ...verlay.dts => blair-cypfr-evt-overlay.dts} | 6 +- 4 files changed, 161 insertions(+), 188 deletions(-) rename qcom/{holi-cypfr-common-overlay.dtsi => blair-cypfr-common-overlay.dtsi} (68%) rename qcom/{holi-cypfr-evb-overlay.dts => blair-cypfr-evb-overlay.dts} (81%) rename qcom/{holi-cypfr-evt-overlay.dts => blair-cypfr-evt-overlay.dts} (80%) diff --git a/qcom/Makefile b/qcom/Makefile index c41cd7b00f45..59a12e69bdf8 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -74,11 +74,11 @@ holi-cypfq-dvt1-overlay.dtbo-base := holi-moto-base.dtb holi-cypfq-dvt2-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ - holi-cypfr-evb-overlay.dtbo \ - holi-cypfr-evt-overlay.dtbo + blair-cypfr-evb-overlay.dtbo \ + blair-cypfr-evt-overlay.dtbo -holi-cypfr-evb-overlay.dtbo-base := holi-moto-base.dtb -holi-cypfr-evt-overlay.dtbo-base := holi-moto-base.dtb +blair-cypfr-evb-overlay.dtbo-base := blair-moto-base.dtb +blair-cypfr-evt-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_MILANF_DTB) += \ blair-milanf-evb1-overlay.dtbo \ diff --git a/qcom/holi-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi similarity index 68% rename from qcom/holi-cypfr-common-overlay.dtsi rename to qcom/blair-cypfr-common-overlay.dtsi index 3fa442ed670b..8fdea8453793 100644 --- a/qcom/holi-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -9,110 +9,18 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-pm6125-moto-common-overlay.dtsi" +#include "blair-nopmi-moto-common-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-overlay.dtsi" +#include "holi-audio-overlay.dtsi" #include #include -#include "cypfq-fps-overlay.dtsi" #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" +#include "display/blair-sde-display-mtp.dtsi" -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddpx-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -/* Dummy LDO reference */ -&sdhc_1 { - status = "ok"; - - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&sdc1_on>; - pinctrl-1 = <&sdc1_off>; - - vdd-supply = <&L24A>; - qcom,vdd-voltage-level = <2960000 2960000>; - qcom,vdd-current-level = <0 570000>; - - vdd-io-supply = <&L11A>; - qcom,vdd-io-always-on; - qcom,vdd-io-lpm-sup; - qcom,vdd-io-voltage-level = <1800000 1800000>; - qcom,vdd-io-current-level = <0 325000>; -}; - -&sdhc_2 { - status = "ok"; - - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&sdc2_on>; - pinctrl-1 = <&sdc2_off>; - - vdd-supply = <&L22A>; - qcom,vdd-voltage-level = <2960000 2960000>; - qcom,vdd-current-level = <0 800000>; - - vdd-io-supply = <&L5A>; - qcom,vdd-io-voltage-level = <1800000 2960000>; - qcom,vdd-io-current-level = <0 22000>; - - cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; -}; - -&ufsphy_mem { - compatible = "qcom,ufs-phy-qmp-v3"; - - vdda-phy-supply = <&L7A>; - vdda-pll-supply = <&L4A>; - vdda-phy-max-microamp = <62900>; - vdda-pll-max-microamp = <18300>; - - status = "ok"; -}; - -&ufshc_mem { - vdd-hba-supply = <&gcc_ufs_phy_gdsc>; - vdd-hba-fixed-regulator; - - vcc-supply = <&L24A>; - vcc-voltage-level = <2950000 2960000>; - vcc-max-microamp = <800000>; - - vccq2-supply = <&L11A>; - vccq2-max-microamp = <800000>; - vccq2-voltage-level = <1800000 1800000>; - - qcom,vddp-ref-clk-supply = <&L4A>; - qcom,vddp-ref-clk-max-microamp = <100>; - - status = "ok"; -}; &tlmm { - cam_pmic_en_default: cam_pmic_en_default { - mux { - pins = "gpio38"; - function = "gpio"; - }; - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-down; - output-low; - }; - }; - nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -207,97 +115,129 @@ }; }; -&qupv3_se7_i2c { +&wcd938x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddio-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddio"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&wsa881x_i2c_e { + cdc-vdd-1p8-supply = <&L9A>; +}; + +&wsa881x_i2c_f { + cdc-vdd-1p8-supply = <&L9A>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&qupv3_se0_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 48 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; interrupt-parent = <&tlmm>; interrupts = <9 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>; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; }; }; -&qupv3_se10_i2c { - status = "ok"; - - cam_pmic: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - - vin1-supply = <&S6A>; - - regulators { - cam_ldo1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo3: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo4: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo5: ldo5 { - regulator-name = "ldo5"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo6: ldo6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo7: ldo7 { - regulator-name = "ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - }; - }; -}; - -&pm8008_8 { - status = "disabled"; -}; - -&pm8008_9 { - status = "disabled"; -}; - &soc { gpio_keys { compatible = "gpio-keys"; @@ -332,6 +272,39 @@ }; }; -&pm7250b_vib { - qcom,vib-ldo-volt-uv = <3000000>; +&qupv3_se8_i2c { + status = "okay"; + qcom,i2c-touch-active="synaptics,tcm-i2c"; + + synaptics_tcm@20 { + compatible = "synaptics,tcm-i2c"; + reg = <0x20>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + vdd-supply = <&L9A>; + avdd-supply = <&touch_avdd>; + synaptics,pwr-reg-name = "avdd"; + synaptics,bus-reg-name = "vdd"; + synaptics,irq-gpio = <&tlmm 22 0x2008>; + synaptics,irq-on-state = <0>; + synaptics,reset-gpio = <&tlmm 21 0x00>; + synaptics,reset-on-state = <0>; + synaptics,reset-active-ms = <20>; + synaptics,reset-delay-ms = <200>; + synaptics,power-delay-ms = <200>; + synaptics,ubl-i2c-addr = <0x20>; + synaptics,extend_report; + synaptics,firmware-name = "synaptics_firmware.img"; + + panel = <&dsi_rm69299_visionox_amoled_video + &dsi_rm69299_visionox_amoled_cmd>; + }; }; + +#include "camera/blair-camera-sensor-mtp.dtsi" + diff --git a/qcom/holi-cypfr-evb-overlay.dts b/qcom/blair-cypfr-evb-overlay.dts similarity index 81% rename from qcom/holi-cypfr-evb-overlay.dts rename to qcom/blair-cypfr-evb-overlay.dts index 56378e80d554..0749f2124c3b 100644 --- a/qcom/holi-cypfr-evb-overlay.dts +++ b/qcom/blair-cypfr-evb-overlay.dts @@ -13,12 +13,12 @@ /dts-v1/; /plugin/; -#include "holi-cypfr-common-overlay.dtsi" +#include "blair-cypfr-common-overlay.dtsi" / { model = "cypfr"; - compatible = "qcom,holi-cypfr", "qcom,holi-moto", "qcom,holi"; + compatible = "qcom,blair-cypfr", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xA100>; + qcom,board-id = <0x4B 0xA100>; }; diff --git a/qcom/holi-cypfr-evt-overlay.dts b/qcom/blair-cypfr-evt-overlay.dts similarity index 80% rename from qcom/holi-cypfr-evt-overlay.dts rename to qcom/blair-cypfr-evt-overlay.dts index 50b4d4326b10..222b0d1483e5 100644 --- a/qcom/holi-cypfr-evt-overlay.dts +++ b/qcom/blair-cypfr-evt-overlay.dts @@ -13,12 +13,12 @@ /dts-v1/; /plugin/; -#include "holi-cypfr-common-overlay.dtsi" +#include "blair-cypfr-common-overlay.dtsi" / { model = "cypfr"; - compatible = "qcom,holi-cypfr", "qcom,holi-moto", "qcom,holi"; + compatible = "qcom,blair-cypfr", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xA200>, <0x48 0xA200>; + qcom,board-id = <0x4B 0xA200>; }; From 107cfe28fca06a2ad2e94a4e2fd3ee9fa5aab3a4 Mon Sep 17 00:00:00 2001 From: jixj Date: Fri, 20 Aug 2021 09:27:40 +0800 Subject: [PATCH 0378/1247] arm64/dt: Change "qcom,msm-id" for cypfr cypfr uses sm6375 and "qom,msm-id" of sm6375 is <507 0x10000> Change-Id: Id57828ef805acbeea6a9e8bed8c90972113d270e Reviewed-on: https://gerrit.mot.com/2046537 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-evb-overlay.dts | 2 +- qcom/blair-cypfr-evt-overlay.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/blair-cypfr-evb-overlay.dts b/qcom/blair-cypfr-evb-overlay.dts index 0749f2124c3b..2139c2e2c73f 100644 --- a/qcom/blair-cypfr-evb-overlay.dts +++ b/qcom/blair-cypfr-evb-overlay.dts @@ -18,7 +18,7 @@ / { model = "cypfr"; compatible = "qcom,blair-cypfr", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,msm-id = <507 0x10000>; qcom,board-id = <0x4B 0xA100>; }; diff --git a/qcom/blair-cypfr-evt-overlay.dts b/qcom/blair-cypfr-evt-overlay.dts index 222b0d1483e5..d1bb01dc69ae 100644 --- a/qcom/blair-cypfr-evt-overlay.dts +++ b/qcom/blair-cypfr-evt-overlay.dts @@ -18,7 +18,7 @@ / { model = "cypfr"; compatible = "qcom,blair-cypfr", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,msm-id = <507 0x10000>; qcom,board-id = <0x4B 0xA200>; }; From 1ade9a10f43829a06e4ab8e6d59587cb4cca007f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 19 Aug 2021 11:28:54 +0800 Subject: [PATCH 0379/1247] dts: milanf/display: change the min voltage of vsn/vsp For milanf's tianma panel, vsp/vsn = 5.5V . So we change change the min voltage of vsn/vsp to 5.5V Change-Id: I35e6df4c7eab48da29a95935478768bac466b55e Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2045709 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index c1c960fd1f5c..29725fd41006 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -82,7 +82,7 @@ qcom,panel-supply-entry@1 { reg = <1>; qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5600000>; + qcom,supply-min-voltage = <5500000>; qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; @@ -91,7 +91,7 @@ qcom,panel-supply-entry@2 { reg = <2>; qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5600000>; + qcom,supply-min-voltage = <5500000>; qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; From 17d465ae24aba4c89b9e372834114dcd93f162b7 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 19 Aug 2021 16:15:24 +0800 Subject: [PATCH 0380/1247] dts: milanf/display: add backlight configure 1. there are two backlight driver IC(AW99703 and lm3697). 2. on early-init, will insmod these drivers. Change-Id: Iae8520cc8444ccb71c01951d0f77181c81eb6330 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2045934 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 29725fd41006..684f0cfa0de0 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -177,3 +177,48 @@ }; }; }; + + +&qupv3_se10_i2c { + status = "ok"; + + lcd_backlight@36 { + compatible = "awinic,aw99703-bl","ti,lm3697"; + reg = <0x36>; + + /* Awinic, aw99703 */ + aw99703,hwen-gpio = <&tlmm 13 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 31V */ + aw99703,ocp-level = <1>; /* 1.8A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x09>; /* 256ms */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <0x07>; /* 512ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <1>; /* linear */ + aw99703,work-mode = <1>; /* backlight */ + + /* TI, lm3697*/ + enable-gpios = <&tlmm 13 0>; + backlight { + compatible = "ti,lm3697-backlight"; + lcd { + led-sources = <0 1 2>; + ramp-up-msec = <200>; + ramp-down-msec = <200>; + pwm-period = <0>; + current-mode = <2>; /*2: 25mA*/ + boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/ + boost-freq = <1>; /*0:500Khz 1:1Mhz*/ + default-brightness-level = <255>; + }; + }; + }; +}; From df5fa7ff9c31d47000848c039a527d592074e5c0 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Aug 2021 15:14:22 +0800 Subject: [PATCH 0381/1247] dts: cypfq/csot_panel: change MiPi clock to 811M Get the require from ODM/RF at 2021.08.17. Change the mipi clock to fix rf desense issue. Change-Id: I8130772d32524143d5fdbf03b5b2d74f2f3619ab Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2046905 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 10 +++++----- .../dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 5ed9340be2ae..585c87234297 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -167,7 +167,7 @@ qcom,mdss-dsi-t-clk-pre = <0x30>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 07 07 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; @@ -217,12 +217,12 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0C>; - qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-t-clk-post = <0x0D>; + qcom,mdss-dsi-t-clk-pre = <0x32>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 - 07 07 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 23 21 07 + 07 08 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; diff --git a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi index 375d1ed0e2c2..977a2d789758 100644 --- a/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi @@ -40,8 +40,8 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2460>; - qcom,mdss-dsi-h-front-porch = <28>; - qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-front-porch = <40>; + qcom,mdss-dsi-h-back-porch = <40>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; From d9fa560f6db9c766d35f4142236447b1084b0b1d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 20 Aug 2021 15:37:05 +0800 Subject: [PATCH 0382/1247] dts: cypfq/tm_panel: let mipi signal into ulps mode Get require from ODM, need make this change to meet the timing. When panel suspend, let mipi into ulps mode. That MIPI signal will be pull down. Change-Id: I4ddfe06c8e1c8e244fc1191a760bbba935fa2c23 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2046943 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 585c87234297..e9616cdfda4c 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -145,6 +145,8 @@ qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "tm"; + qcom,suspend-ulps-enabled; + qcom,tp_state_check_enable; qcom,mdss-dsi-pan-enable-dynamic-fps; From 21591e715f47c9a97896ccc1f2e7d713da8e7553 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Wed, 18 Aug 2021 18:24:32 +0800 Subject: [PATCH 0383/1247] milanf: arm64/dts: Bringup touch nt36672c - Add novatek touch dtsi configuration. - Remove unused touch configration. Change-Id: I62297780627134394073e4685d8a749fde2cf403 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2045085 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 73 +-------------------- qcom/milanf-touchscreen.dtsi | 91 +++++++++++++++++++++++++++ 2 files changed, 92 insertions(+), 72 deletions(-) create mode 100755 qcom/milanf-touchscreen.dtsi diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 9923bbc7ef28..8dd7a25034e8 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -17,6 +17,7 @@ #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" #include "milanf-display.dtsi" +#include "milanf-touchscreen.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -193,29 +194,6 @@ status = "ok"; }; -&qupv3_se0_i2c { - status = "ok"; - #address-cells = <1>; - #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; - interrupt-parent = <&tlmm>; - interrupts = <9 0>; - interrupt-names = "nfc_irq"; - pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; - }; -}; - &soc { gpio_keys { compatible = "gpio-keys"; @@ -235,54 +213,5 @@ }; }; }; - -&soc { - touch_avdd: touch_avdd_stub { - /* - * Touch eLDO controlled by gpio#53 is always ON. - * Using dummy regulator. - */ - compatible = "qcom,stub-regulator"; - regulator-name = "touch_avdd_stub"; - qcom,hpm-min-load = <10000>; - regulator-min-microvolt = <2700000>; - regulator-max-microvolt = <3544000>; - }; -}; - -&qupv3_se8_i2c { - status = "okay"; - qcom,i2c-touch-active="synaptics,tcm-i2c"; - - synaptics_tcm@20 { - compatible = "synaptics,tcm-i2c"; - reg = <0x20>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - vdd-supply = <&L9A>; - avdd-supply = <&touch_avdd>; - synaptics,pwr-reg-name = "avdd"; - synaptics,bus-reg-name = "vdd"; - synaptics,irq-gpio = <&tlmm 22 0x2008>; - synaptics,irq-on-state = <0>; - synaptics,reset-gpio = <&tlmm 21 0x00>; - synaptics,reset-on-state = <0>; - synaptics,reset-active-ms = <20>; - synaptics,reset-delay-ms = <200>; - synaptics,power-delay-ms = <200>; - synaptics,ubl-i2c-addr = <0x20>; - synaptics,extend_report; - synaptics,firmware-name = "synaptics_firmware.img"; - - panel = <&dsi_rm69299_visionox_amoled_video - &dsi_rm69299_visionox_amoled_cmd>; - }; -}; - #include "camera/blair-camera-sensor-mtp.dtsi" diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi new file mode 100755 index 000000000000..3a7c7346aa35 --- /dev/null +++ b/qcom/milanf-touchscreen.dtsi @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + panel = <&dsi_tm_nt36672e_678_fhdp_120_video>; + status = "ok"; + }; + +}; From f9791002029908e00ec39ac1fb811b5be9f8356b Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 20 Aug 2021 14:20:53 +0800 Subject: [PATCH 0384/1247] arm/dt: corfur: close wl2866d ldo when device shutdown arm/dt: Close wl2866d when device shutdown. 1: For peripherals stability 2: For current leak Change-Id: I193250e186b396974461c0ab2c0830cd977f9dca Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2046833 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 029c862b8ce9..0e1febf805e2 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -278,6 +278,7 @@ vin1-supply = <&S6A>; semi,init-value = <0x05>; + semi,shutdown-ldo; regulators { cam_pmic2_ldo1_dvdd1: ldo1 { From 7889e7d764726a8298d131544036db49fa848cf9 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 23 Aug 2021 11:31:50 +0800 Subject: [PATCH 0385/1247] milan5G: sar sensor bringup 1.add sx937x dts for milanf 2.enable capsense_reset for headset Change-Id: I651be46e437af445f224a20b837be1b41b7e26e0 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2048121 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 132 ++++++++++++++++++++++ 1 file changed, 132 insertions(+) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index f9507b44ed27..0ce2fcf7f485 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -53,3 +53,135 @@ 0x0 MMI_ANNOTATE_SIZE>; }; }; + +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&qupv3_se10_i2c { + status = "okay"; + + sx937x:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x74 /*irq mask*/ + 0x8008 0x7F000081 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x58E /*AFE_PARAM_PH0*/ + 0x8034 0x78E /*AFE_PARAM_PH1*/ + 0x8040 0x58E /*AFE_PARAM_PH2*/ + 0x804C 0x566 /*AFE_PARAM_PH3*/ + 0x8058 0x566 /*AFE_PARAM_PH4*/ + 0x8064 0x57E /*AFE_PARAM_PH5*/ + 0x8070 0x566 /*AFE_PARAM_PH6*/ + 0x807C 0x58D /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ + 0x8048 0xBFF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ + 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ + 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ + 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ + 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ + 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0xF3C3CF + 0x8044 0x940250 + 0x8050 0x9BC26F + 0x805C 0x990264 + 0x8068 0xD4C353 + 0x8074 0xB4C2D3 + 0x8080 0x0 + 0x8098 0x862D + 0x80B8 0x782D + 0x80D8 0x8774 + 0x80F8 0x785C + 0x8118 0x5740 + 0x8138 0xF4 + 0x8158 0xF4 + 0x8178 0x0 + 0x80A0 0x222200E1 + 0x80C0 0x0 + 0x80E0 0x1E1E00E1 + 0x8100 0x2B2B00E2 + 0x8120 0xE2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x46E87000 + 0x80B0 0x34F27000 + 0x80D0 0x50E87000 + 0x80F0 0x24E87000 + 0x8110 0x32E47000 + 0x8130 0x7000 + 0x8150 0x7000 + 0x8170 0x0 + 0x8088 0x200000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x200000 + 0x8108 0x200000 + 0x8128 0x6500000 + 0x8148 0x6500000 + 0x8168 0x0 + 0x808C 0x60600019 + 0x80AC 0x60600019 + 0x80CC 0x60600019 + 0x80EC 0x60600019 + 0x810C 0x60600019 + 0x812C 0x60600019 + 0x814C 0x60600019 + 0x816C 0x0 + 0x8024 0x7F7F + 0x4280 0xe + >; + + status = "ok"; + }; +}; From a76cda952c4ec6356a343fb0c460d7ce49bbc9a5 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 13 Aug 2021 18:44:13 +0800 Subject: [PATCH 0386/1247] :arm/dts: Config rt1715 for milan 5g dts/pd config rt1715 for milan 5g Change-Id: I0ccb6c6273fe830b81f80703be8cb902451377dd Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2041300 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/tcpc_config.dtsi | 202 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 qcom/tcpc_config.dtsi diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi new file mode 100644 index 000000000000..8ae52d1ccc50 --- /dev/null +++ b/qcom/tcpc_config.dtsi @@ -0,0 +1,202 @@ +/* + * Copyright (c) 2020 Richtek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&qupv3_se8_i2c { + rt1711h@4e { + compatible = "richtek,rt1711h"; + reg = <0x4e>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + rt-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + rt-tcpc,role_def = <4>; /* 0: SNK Only, 1: SRC Only, 2: DRP, */ + /* 3: Try.SRC, 4: Try.SNK */ + rt-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + rt-tcpc,vconn_supply = <1>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + rt1711pd,intr_gpio = <&tlmm 11 0x0>; + rt1711pd,intr_gpio_num = <11>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1711h_int_n>; + pd-data { + pd,vid = <0x29cf>; + pd,pid = <0x1711>; + pd,source-cap-ext = <0x171129cf 0x00000000 0x00000000 + 0x00000000 0x00000000 0x02000000>; + pd,mfrs = "RichtekTCPC"; + + /* + * VSAFE5V = 0, MAX_POWER = 1, CUSTOM = 2, + * MAX_POWER_LV = 0x21, MAX_POWER_LVIC = 0x31 + * MAX_POWER_HV = 0x41, MAX_POWER_HVIC = 0x51 + */ + pd,charging_policy= <0x31>; + + /* + * Fixed 5V, 500 mA <0x00019032> + * Fixed 5V, 1A <0x00019064> + * Fixed 5V, 2A <0x000190c8> + * Fixed 5V, 3A <0x0001912c> + * Fixed 9V, 500 mA <0x0002d032> + * Fixed 9V, 1A <0x0002d064> + * Fixed 9V, 2A <0x0002d0c8> + * Fixed 9V, 3A <0x0002d12c> + * Variable 5-9V, 1A <0x8642d064> + * Variable 5-9V, 2A <0x8642d0c8> + * Variable 5-9V, 3A <0x8642d12c> + * PPS 3V~5.9V, 3A <0xC0761E3C> + */ + pd,source-pdo-size = <1>; + pd,source-pdo-data = <0x00019032>; + pd,sink-pdo-size = <1>; + pd,sink-pdo-data = <0x000190c8>; + + /* + * No DP, host + device + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + * With DP + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd54029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + */ + + pd,id-vdo-size = <6>; + pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + + bat,nr = <1>; + pd,country_nr = <0>; + + bat-info0 { + bat,vid = <0x29cf>; + bat,pid = <0x1711>; + bat,mfrs = "bat1"; + bat,design_cap = <3000>; + }; + + //bat-info1 { + // bat,vid = <0x8abc>; + // bat,pid = <0x5234>; + // bat,mfrs = "bat2"; + // bat,design_cap = <4000>; + //}; + + //country0 { + // pd,country_code = <0x5457>; + // pd,country_len = <2>; /* max len = 26 */ + // pd,country_data = <0xff 0xff>; + //}; + + //country1 { + // pd,country_code = <0x5553>; + // pd,country_len = <3>; /* max len = 26 */ + // pd,country_data = <0xf1 0xf2 0xf3>; + //}; + }; + dpm_caps { + local_dr_power; + local_dr_data; + //local_ext_power; + local_usb_comm; + //local_usb_suspend; + //local_high_cap; + //local_give_back; + local_no_suspend; + local_vconn_supply; + + //attemp_discover_cable_dfp; + attemp_enter_dp_mode; + attemp_discover_cable; + attemp_discover_id; + + /* 0: disable, 1: prefer_snk, 2: prefer_src */ + pr_check = <0>; + //pr_reject_as_source; + //pr_reject_as_sink; + //pr_check_gp_source; + //pr_check_gp_sink; + + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <0>; + //dr_reject_as_dfp; + //dr_reject_as_ufp; + }; + displayport { + /* connection type = "both", "ufp_d", "dfp_d" */ + 1st_connection = "dfp_d"; + 2nd_connection = "dfp_d"; + signal,dp_v13; + //signal,dp_gen2; + //usbr20_not_used; + typec,receptacle; + ufp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + //pin_assignment,mode_c; + //pin_assignment,mode_d; + //pin_assignment,mode_e; + }; + dfp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + pin_assignment,mode_c; + pin_assignment,mode_d; + pin_assignment,mode_e; + //pin_assignment,mode_f; + }; + }; + }; +}; + +&soc { + rpm: rt-pd-manager { + compatible = "richtek,rt-pd-manager"; + + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, + <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, + <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, + <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; + io-channel-names = "pd_active", + "pd_usb_suspend_supported", + "pd_in_hard_reset", + "pd_current_max", + "pd_voltage_min", + "pd_voltage_max", + "real_type"; + }; +}; + +&tlmm { + rt1711h_int_n: rt1711h_int_n { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; +/* First not config ,this should cause phone could not power on +&usb0 { + extcon = <&eud>, <&rpm>; +}; +*/ From 11a5bc68072669027dac51d9979a981ac456c5c8 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 23 Aug 2021 17:39:29 +0800 Subject: [PATCH 0387/1247] arm/dts: apply rt1715 dts for milanf apply rt1715 dts and remove pm7250b depend. Change-Id: Id515f53f75997982fa041a4868532c379e01ac29 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2048518 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 1 + qcom/tcpc_config.dtsi | 15 +-------------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 9efc86e3191b..8142ffb09d23 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -11,6 +11,7 @@ */ #include "blair-milanf-common-overlay.dtsi" #include "blair-nopmi-moto-common-overlay.dtsi" +#include "tcpc_config.dtsi" &usb0 { qcom,force-adb-enable; diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index 8ae52d1ccc50..f848783de4fc 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -164,20 +164,7 @@ compatible = "richtek,rt-pd-manager"; #io-channel-cells = <1>; - io-channels = <&pm7250b_charger PSY_IIO_PD_ACTIVE>, - <&pm7250b_charger PSY_IIO_PD_USB_SUSPEND_SUPPORTED>, - <&pm7250b_charger PSY_IIO_PD_IN_HARD_RESET>, - <&pm7250b_charger PSY_IIO_PD_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MIN>, - <&pm7250b_charger PSY_IIO_PD_VOLTAGE_MAX>, - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>; - io-channel-names = "pd_active", - "pd_usb_suspend_supported", - "pd_in_hard_reset", - "pd_current_max", - "pd_voltage_min", - "pd_voltage_max", - "real_type"; + }; }; From 79b6102b6eecc95f705a990387504688ad5446af Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 17 Aug 2021 19:59:35 +0800 Subject: [PATCH 0388/1247] DTS/milanf: config sd77426 fuel gauge dts config sd77426 fuel gauge dts sd77426 config to I2C-8 Change-Id: I96772b207c9e926b4ca26b332e58aee91f70691d Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2044002 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 8142ffb09d23..4e496838e6e0 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -18,3 +18,10 @@ }; +&qupv3_se8_i2c { + oz8806@2f { + compatible = "o2micro,oz8806"; + reg = <0x2f>; + status = "okay"; + }; +}; From ecf33c9f20f34f4cda06c4903f3c6d09d0b39a6f Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 13 Aug 2021 18:06:55 +0800 Subject: [PATCH 0389/1247] DTS/milanf: config fg rt9426a dts add fg rt9426a dts i2c with se8_i2c intr gpio with GPIO8 Change-Id: I8e2a99fbd914115e15504eb5cdc3cf94780d9a5e Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2041271 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 1 + qcom/rt9426a.dtsi | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 4e496838e6e0..f3a17cf35ad7 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -12,6 +12,7 @@ #include "blair-milanf-common-overlay.dtsi" #include "blair-nopmi-moto-common-overlay.dtsi" #include "tcpc_config.dtsi" +#include "rt9426a.dtsi" &usb0 { qcom,force-adb-enable; diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index fd6b6c8b11ad..2002ae0d601b 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -1,11 +1,11 @@ #include -&qupv3_se0_i2c { +&qupv3_se8_i2c { rt9426a@55 { compatible = "richtek,rt9426a"; reg = <0x55>; status = "okay"; - interrupts-extended = <&tlmm 14 IRQ_TYPE_LEVEL_LOW>; + interrupts-extended = <&tlmm 8 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; rt,dtsi_version = <01 709>; @@ -95,12 +95,12 @@ &tlmm { rt9426a_alert: rt9426a_alert { mux { - pins = "gpio14"; + pins = "gpio8"; function = "gpio"; }; config { - pins = "gpio14"; + pins = "gpio8"; drive-strength = <2>; bias-pull-up; }; From 586e1f0bb6fbfaf2f9e540ab56e2792205003838 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 23 Aug 2021 19:02:26 +0800 Subject: [PATCH 0390/1247] Revert "(CR) arm/dt: corfur: set l13a as always on" This reverts commit 9308e9c5978282e8b7d2a54cfa76ac34ff4f0a12. This patch cause panel can't work when flash gki. So use another method to keep l13 on. Mot-CRs-fixed: (CR) Change-Id: I8104732de046f608c0d6d3535f01cab18341f057 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2049630 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 459b84fc9c84..3f46c737a173 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -11,10 +11,6 @@ vddio-supply = <&L13A>; }; -&pm6125_l13 { - regulator-always-on; -}; - &soc { dsi_panel_pwr_supply_visionox: dsi_panel_pwr_supply_visionox { #address-cells = <1>; From be1834c4b1667cab7f157120a4716bb280e487f9 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 24 Aug 2021 17:40:58 +0800 Subject: [PATCH 0391/1247] arm/dt: corfur: keep panel regulator on when screen on/off corfur: Add qcom,keep-regulators-on for vtdr6110c panel. keep l13 always on for meet vendor requirement. Change-Id: I815a2d7a897fc0e87edc61b0d7899bebd31b61d1 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2049686 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 3f46c737a173..679a1b9713fc 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -45,6 +45,7 @@ qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; + qcom,keep-regulators-on; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From 45194f3fd97ddd0b5d510e00606052c81757d503 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 24 Aug 2021 10:19:39 +0800 Subject: [PATCH 0392/1247] arm64/dt: milan: add ets fps device node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Milan 5G use et528 as 1st fps sensor, Add device node for it. Change-Id: Ib06fb7982ce3e51b384fafe6f30325cc52ee1a33 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2049075 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 1 + qcom/milanf-fps-overlay.dtsi | 120 ++++++++++++++++++++++++++ 2 files changed, 121 insertions(+) create mode 100644 qcom/milanf-fps-overlay.dtsi diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 8dd7a25034e8..4567af7b648f 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -16,6 +16,7 @@ #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" +#include "milanf-fps-overlay.dtsi" #include "milanf-display.dtsi" #include "milanf-touchscreen.dtsi" diff --git a/qcom/milanf-fps-overlay.dtsi b/qcom/milanf-fps-overlay.dtsi new file mode 100644 index 000000000000..c0d10317a647 --- /dev/null +++ b/qcom/milanf-fps-overlay.dtsi @@ -0,0 +1,120 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + }; + +}; From 314caab538c171c8070d609ce8efee76b5e49f05 Mon Sep 17 00:00:00 2001 From: Qiang Guo Date: Tue, 24 Aug 2021 18:38:10 +0800 Subject: [PATCH 0393/1247] milanf: milan 5G camera bringup 1.Configuring camera dtsi file 2.Configuring wl28xx dtsi file Change-Id: Ia52e39003e00ad416f1e31b8c6b745a59ff77a26 Signed-off-by: Qiang Guo Reviewed-on: https://gerrit.mot.com/2049721 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bolei Shang Reviewed-by: Wang Liu Reviewed-by: Shuo Wang Reviewed-by: XiaoFeng Wang Reviewed-by: Long Cheng Reviewed-by: Zhuoran Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 3 +- qcom/milanf-wl286xx.dtsi | 70 +++++++++++++++++++++++++++ 2 files changed, 72 insertions(+), 1 deletion(-) create mode 100644 qcom/milanf-wl286xx.dtsi diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 4567af7b648f..487764f01a40 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -19,6 +19,8 @@ #include "milanf-fps-overlay.dtsi" #include "milanf-display.dtsi" #include "milanf-touchscreen.dtsi" +#include "camera/blair-camera-sensor-mot-milanf-overlay.dtsi" +#include "milanf-wl286xx.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -214,5 +216,4 @@ }; }; }; -#include "camera/blair-camera-sensor-mtp.dtsi" diff --git a/qcom/milanf-wl286xx.dtsi b/qcom/milanf-wl286xx.dtsi new file mode 100644 index 000000000000..4327781f6b12 --- /dev/null +++ b/qcom/milanf-wl286xx.dtsi @@ -0,0 +1,70 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From 6fefbf7721878412fd3959bd18de7dde2b6ba64d Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 27 Aug 2021 10:25:43 +0800 Subject: [PATCH 0394/1247] arm/dts: enable qupv3_se8_i2c qupv3_se8_i2c was disable in holi-qupv3.dtsi enable it for cc/pd/charger/fg device. Change-Id: If6d1c068e9d5a881402dc55798296997b1e46073 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2052601 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 1 + qcom/rt9426a.dtsi | 1 + qcom/tcpc_config.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index f3a17cf35ad7..f47bbaa2ff40 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -20,6 +20,7 @@ &qupv3_se8_i2c { + status = "okay"; oz8806@2f { compatible = "o2micro,oz8806"; reg = <0x2f>; diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index 2002ae0d601b..1e106b5a1169 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -1,6 +1,7 @@ #include &qupv3_se8_i2c { + status = "okay"; rt9426a@55 { compatible = "richtek,rt9426a"; reg = <0x55>; diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index f848783de4fc..649ca6052f05 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -11,6 +11,7 @@ * GNU General Public License for more details. */ &qupv3_se8_i2c { + status = "okay"; rt1711h@4e { compatible = "richtek,rt1711h"; reg = <0x4e>; From b062967780f2ea8300529ae3346de2ca7fecd983 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 27 Aug 2021 10:38:21 +0800 Subject: [PATCH 0395/1247] arm/dts: Enable aicl at factory boot mode arm/dts Enable aicl at factory boot mode for corfu 5g. Change-Id: Ic2d6ccc88eb9775cd9d4d723749241ca993ebd17 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2052615 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 1fbdd8993879..f0359f847c68 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -91,6 +91,7 @@ <4450 243 500>; qcom,iterm-ma = <243>; + mmi,enable-factory-mode-aicl; }; From 65d125ba8b69d196b53bcd04785689eca375687e Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 27 Aug 2021 16:44:26 +0800 Subject: [PATCH 0396/1247] arm/dts: Config max otg out current to 1A Config max otg out current from 1.5A to 1A for corfu 5g this requirement come from HW. Change-Id: I7f618ecde010b3d93e476310d295ef32f2c3791d Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2053064 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index f0359f847c68..482d118c2777 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -64,7 +64,7 @@ qcom,fcc-max-ua = <3000000>; qcom,fv-max-uv = <4480000>; qcom,dcp-curr-max = <1500000>; - qcom,otg-cl-ua = <1500000>; + qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 From abd2bba1c58cd91aba807bf4e4b63bf1cdf39e1b Mon Sep 17 00:00:00 2001 From: huangjq9 Date: Thu, 26 Aug 2021 17:25:50 +0800 Subject: [PATCH 0397/1247] milanf: dts: stylus bu520xx bringup - bringup stylus rohm bu52055 hall sensor; - changes interrupt pin to gpio84; Change-Id: I889c80009a7ec9b9ab3153c7b050afbedd66add9 Signed-off-by: huangjq9 Reviewed-on: https://gerrit.mot.com/2051945 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 1 + qcom/milanf-sensors.dtsi | 51 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100755 qcom/milanf-sensors.dtsi diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 487764f01a40..53a6bcfb499e 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -19,6 +19,7 @@ #include "milanf-fps-overlay.dtsi" #include "milanf-display.dtsi" #include "milanf-touchscreen.dtsi" +#include "milanf-sensors.dtsi" #include "camera/blair-camera-sensor-mot-milanf-overlay.dtsi" #include "milanf-wl286xx.dtsi" diff --git a/qcom/milanf-sensors.dtsi b/qcom/milanf-sensors.dtsi new file mode 100755 index 000000000000..f3426b6eb2ab --- /dev/null +++ b/qcom/milanf-sensors.dtsi @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + From 164171b63f69f55b1a4057c02d2e2051bc4fb7a3 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 31 Aug 2021 12:02:51 +0800 Subject: [PATCH 0398/1247] milan5G: sar sensor params 1.update params about channels mapping 2.blair-nopmi-moto-common-overlay.dtsi Change-Id: I7872c94173d50c633abee000a3ef7e65a934ad75 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2055118 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 0ce2fcf7f485..104bbab4f5dc 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -118,14 +118,14 @@ 0x8070 0x566 /*AFE_PARAM_PH6*/ 0x807C 0x58D /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS7, ANT1, Bottom center*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top Left*/ - 0x8048 0xBFF9FF /*REG_AFEPH_PH2, CS5, ANT8, Bottom Right*/ - 0x8054 0xFFF9EF /*REG_AFEPH_PH3, CS1, ANT4, Right*/ - 0x8060 0xFFF9FD /*REG_AFEPH_PH4, CS0, ANT5, Back center*/ - 0x806C 0xF7F9FF /*REG_AFEPH_PH5, CS6, ANT1/8_REF, Bottom_Ref*/ - 0x8078 0xFFF97F /*REG_AFEPH_PH6, CS2, ANT4/5_REF, Middle*/ - 0x8084 0xBFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ + 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x802C 0x0 0x8038 0xF3C3CF 0x8044 0x940250 From b018c3ff8c474ddb10a0967eec0e5682d7ae73cf Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 17 Aug 2021 18:22:21 +0800 Subject: [PATCH 0399/1247] arm/dts: config sgm4154x dtsi config sgm4154x dtsi for bring up Change-Id: I4f42729f4412be90d1e37f623058998c1af721fa Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2043899 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index f47bbaa2ff40..c06a693e018f 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -27,3 +27,42 @@ status = "okay"; }; }; + +&qupv3_se8_i2c { + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; +}; From d2789148c04647f98509fb95da74cc57b35dd13b Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 26 Aug 2021 17:05:34 +0800 Subject: [PATCH 0400/1247] arm/dts: config GPIO6 of pm6375 to vbus ADC use GPIO6 of pm6375 to read vbus voltage, so config gpio6 to 1:3 ADC Change-Id: I58c49d6aeb2a7a467fa8a8f40684e398094b789a Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2049596 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 26 +++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index c06a693e018f..eb4112b24ed8 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -28,11 +28,37 @@ }; }; +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + &qupv3_se8_i2c { + status = "okay"; + sgm4154x: sgm4154x@3B { status = "okay"; compatible = "sgm,sgm41542"; reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + interrupt-parent = <&tlmm>; interrupts = <12 0>; //irq num base on hardware design sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design From 26bcde00e802b0f841395a276ed5f830fa0cd99b Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 31 Aug 2021 18:28:40 +0800 Subject: [PATCH 0401/1247] arm/dts: enable leds-indicator-pwm driver As milan 5G use pm6375 gpio8 to control charging led, so enable leds-indicator-pwm.ko to control led. Change-Id: Id3287569523ec3d4c7e47299ffcaf7b2a9e91450 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2055599 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 31 +++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index eb4112b24ed8..551cf36eacaf 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -44,6 +44,37 @@ bias-high-impedance; }; }; + + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; }; &qupv3_se8_i2c { From b6189b30bfeea7cc30318227b602cafd0eadf5bc Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 31 Aug 2021 14:00:34 +0800 Subject: [PATCH 0402/1247] arm/dts: Add sgm7220 configure typec/sgm7220 Add sgm7220 driver configure Change-Id: I4c5c7816Montana86680007e844d25b31ef3d3404c81 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2055215 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 1 + qcom/sgm7220.dtsi | 50 +++++++++++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 qcom/sgm7220.dtsi diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 551cf36eacaf..55dcb78ebf57 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -12,6 +12,7 @@ #include "blair-milanf-common-overlay.dtsi" #include "blair-nopmi-moto-common-overlay.dtsi" #include "tcpc_config.dtsi" +#include "sgm7220.dtsi" #include "rt9426a.dtsi" &usb0 { diff --git a/qcom/sgm7220.dtsi b/qcom/sgm7220.dtsi new file mode 100644 index 000000000000..36e795804a50 --- /dev/null +++ b/qcom/sgm7220.dtsi @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2021 motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR tcpcA PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se8_i2c { + status = "okay"; + sgm7220@47 { + compatible = "sgm,usb_type_c_sgm7220"; + reg = <0x47>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + sgm7220-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + sgm7220-tcpc,role_def = <4>; /* 0: SNK Only, 1: SRC Only, 2: DRP, */ + /* 3: Try.SRC, 4: Try.SNK */ + sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + sgm7220,intr_gpio = <&tlmm 11 0x0>; + sgm7220,intr_gpio_num = <11>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n>; + }; +}; + + +&tlmm { + sgm7220_int_n: sgm7220_int_n { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From c778a9296a11118b56987d81ec3b49a7084ec91c Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 2 Sep 2021 10:40:25 +0800 Subject: [PATCH 0403/1247] arm/dts: modify role rt-tcpc,role_def modify role rt-tcpc,role_def this changes come from richtek patch05 Change-Id: I241177c470e3525b16a371cfb52e6cf330db8c6e Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2057482 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/tcpc_config.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index 649ca6052f05..f3c49f6ca056 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -19,8 +19,8 @@ tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ /* 1: dfp, 2: ufp */ rt-tcpc,name = "type_c_port0"; /* tcpc_device's name */ - rt-tcpc,role_def = <4>; /* 0: SNK Only, 1: SRC Only, 2: DRP, */ - /* 3: Try.SRC, 4: Try.SNK */ + rt-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ rt-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ rt-tcpc,vconn_supply = <1>; /* 0: Never, 1: Always, */ /* 2: EMarkOnly, 3: StartOnly */ From f5c64bb4b6347f8de010ec4c029b905bfc5e5da9 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 2 Sep 2021 17:20:26 +0800 Subject: [PATCH 0404/1247] arm/dts: soc 97% report ui soc 100% arm/dts config soc 97% report ui soc 100% for corfur Change-Id: I9fd0ca196602ed3b147632a59d03fea288be9fe7 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2057854 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfup-charger.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/corfup-charger.dtsi b/qcom/corfup-charger.dtsi index 482d118c2777..4c04bff9222a 100644 --- a/qcom/corfup-charger.dtsi +++ b/qcom/corfup-charger.dtsi @@ -82,13 +82,13 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4450 243 500>, - <4450 243 500>, - <4450 243 500>, - <4480 575 890>, - <4480 635 987>, - <4480 661 1031>, - <4450 243 500>; + qcom,mmi-ffc-zones = <4450 243 575>, + <4450 243 575>, + <4450 243 575>, + <4480 575 939>, + <4480 635 1038>, + <4480 661 1086>, + <4450 243 575>; qcom,iterm-ma = <243>; mmi,enable-factory-mode-aicl; From 805620e0ea5dea0460cf33e08a431f96b7c9003b Mon Sep 17 00:00:00 2001 From: chailu1 Date: Fri, 3 Sep 2021 16:18:40 +0800 Subject: [PATCH 0405/1247] arm/dts: Modify trip soc threshold from 10 to 5 for corfur Modify trip soc limiting cpu performance threshold from 10 to 5 for corfur product. Change-Id: If4a551d49ea34bde4596d35cad04f6975611bfbc Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2057460 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 628aa6a12b1f..f3e847ead1f6 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -308,3 +308,7 @@ io-channel-names = "usb_hw_current_max"; qcom,bcl-not-mitigate-icl = <2500>; }; + +&socd_trip { + temperature = <95>; +}; From 74765e064e06bcb9454a8b3ee4a7fc7bded85f77 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 3 Sep 2021 17:25:52 +0800 Subject: [PATCH 0406/1247] cypfq/sensor: sar sensor params update 1.update sx937x params 2.holi-pm6125-moto-common-overlay.dtsi for common Change-Id: Ic1a9d4465bce92e29733fa97e8b0e12921072220 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2058976 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 66 +++++++++++------------ 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 84c38e065597..420822c53b67 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -126,14 +126,14 @@ 0x8008 0x0 0x4280 0x0 0x8020 0x32 - 0x8028 0x25F /*AFE_PARAM_PH0*/ - 0x8034 0x25F /*AFE_PARAM_PH1*/ - 0x8040 0x25F /*AFE_PARAM_PH2*/ - 0x804C 0x25F /*AFE_PARAM_PH3*/ - 0x8058 0x25F /*AFE_PARAM_PH4*/ - 0x8064 0x25F /*AFE_PARAM_PH5*/ - 0x8070 0x25F /*AFE_PARAM_PH6*/ - 0x807C 0x25F /*AFE_PARAM_PH7*/ + 0x8028 0x445E /*AFE_PARAM_PH0*/ + 0x8034 0x445E /*AFE_PARAM_PH1*/ + 0x8040 0x445E /*AFE_PARAM_PH2*/ + 0x804C 0x445E /*AFE_PARAM_PH3*/ + 0x8058 0x445E /*AFE_PARAM_PH4*/ + 0x8064 0x445E /*AFE_PARAM_PH5*/ + 0x8070 0x445E /*AFE_PARAM_PH6*/ + 0x807C 0x445E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT6, Top Left*/ @@ -151,50 +151,50 @@ 0x8068 0x0 0x8074 0x0 0x8080 0x0 - 0x8098 0xC864 - 0x80B8 0xA147 - 0x80D8 0x7A37 - 0x80F8 0x9B54 - 0x8118 0x7F20 + 0x8098 0xC86E + 0x80B8 0x7F54 + 0x80D8 0x4E3C + 0x80F8 0x954E + 0x8118 0x402D 0x8138 0xC8 0x8158 0xC8 0x8178 0xC8 - 0x80A0 0x0 - 0x80C0 0x0 - 0x80E0 0x1C1C0001 + 0x80A0 0x1C1C00E1 + 0x80C0 0x171700E2 + 0x80E0 0x1F1F00E1 0x8100 0x0 - 0x8120 0x0 + 0x8120 0x1C1C00E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 0x8188 0x8000015 - 0x818C 0x0 + 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x3CC47000 + 0x8090 0x2AD67000 0x80B0 0x2AD67000 - 0x80D0 0x2AD67000 - 0x80F0 0x2AD67000 + 0x80D0 0x28D67000 + 0x80F0 0x50B07100 0x8110 0x2AD67000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 + 0x8130 0x2AD66000 + 0x8150 0x2AD66000 + 0x8170 0x2AD66000 0x8088 0x300000 0x80A8 0x300000 - 0x80C8 0x100000 + 0x80C8 0x300000 0x80E8 0x300000 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 - 0x80CC 0x60200018 - 0x80EC 0x60200018 - 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 + 0x808C 0x60200000 + 0x80AC 0x60200000 + 0x80CC 0x60200000 + 0x80EC 0x60200000 + 0x810C 0x60200000 + 0x812C 0x60200000 + 0x814C 0x60200000 + 0x816C 0x60200000 0x8024 0x7F7F 0x4280 0xe >; From 3127037660b97813b80fc1681d88478ef529ee26 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 6 Sep 2021 10:02:15 +0800 Subject: [PATCH 0407/1247] arm/dts: Modify trip soc threshold from 10% to 5% Modify trip soc limiting cpu performance threshold from 10% to 5% . Change-Id: I9cd86e98b5f3297f0f28953bf4531dea6a64f70a Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2059866 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-moto-common-overlay.dtsi | 4 ++++ qcom/holi-pm6125-moto-common-overlay.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 158a100989ce..01d2476a0456 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -581,6 +581,10 @@ qcom,bcl-not-mitigate-icl = <2500>; }; +&socd_trip { + temperature = <95>; +}; + &usb0 { extcon = <&pm7250b_pdphy>, <&eud>; #io-channel-cells = <1>; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 420822c53b67..0de30f37bfb7 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -318,3 +318,7 @@ io-channel-names = "usb_hw_current_max"; qcom,bcl-not-mitigate-icl = <2500>; }; + +&socd_trip { + temperature = <95>; +}; From 3f31e8ef7c4df4c379034fd5c602d0fde5e1f3d6 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Thu, 26 Aug 2021 16:58:11 +0800 Subject: [PATCH 0408/1247] Thermal: Thermal NTC Config Rename the NTC as Moto custom Basing on EVB2 HW design Change-Id: I3facaaf1aa8896626a24ffd013f82ac4fa479d5d Reviewed-on: https://gerrit.mot.com/2051905 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 203 ++++++++++++++++++++++++++ 1 file changed, 203 insertions(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 53a6bcfb499e..f0a4311aff05 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -198,6 +198,209 @@ status = "ok"; }; +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + &soc { gpio_keys { compatible = "gpio-keys"; From 135be43a2bce75f1cb9684d0906a034f4792bbf1 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 1 Sep 2021 16:20:52 +0800 Subject: [PATCH 0409/1247] arm/dt: change oled avdd voltage from 7.6v to 7.3v arm/dt: Change oled panel avdd voltage from 7.6v to 7.3v, according to vendor suggestion. Change-Id: Ied40a56cdd0be97145b75af808c297d9da9dd823 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2056813 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi index efdd54dc2f4e..20eca04672d0 100644 --- a/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi @@ -76,10 +76,16 @@ 15 00 00 00 00 00 02 6F 01 15 00 00 00 00 00 02 59 09 39 00 00 00 00 00 03 F0 AA 10 + 39 00 00 00 00 00 05 CF 0D 87 0B 12 + 39 00 00 00 00 00 12 D0 84 15 50 14 14 00 29 2C 14 19 32 00 2C 14 19 32 00 39 00 00 00 00 00 03 EA 30 00 39 00 00 00 00 00 03 F0 AA 11 39 00 00 00 00 00 03 BB 10 21 39 00 00 00 00 00 03 F0 AA 12 + 39 00 00 00 00 00 05 C7 8F 54 A5 02 + 39 00 00 00 00 00 03 F0 AA 15 + 39 00 00 00 00 00 0C BE 22 11 22 22 11 11 00 00 00 00 00 + 39 00 00 00 00 00 03 F0 AA 12 15 00 00 00 00 00 02 C8 84 39 00 00 00 00 00 03 F0 AA 00 05 01 00 00 78 00 01 11 From 2e190d3515759145ae5f195e751f33e27c99a4e1 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 7 Sep 2021 17:35:56 +0800 Subject: [PATCH 0410/1247] arm/dts: config sgm7220 role arm/dts config sgm7220 role to try.snk. refer to enum definition in tcpm.h enum typec_role_defination { 385 TYPEC_ROLE_UNKNOWN = 0, 386 TYPEC_ROLE_SNK, 387 TYPEC_ROLE_SRC, 388 TYPEC_ROLE_DRP, 389 TYPEC_ROLE_TRY_SRC, 390 TYPEC_ROLE_TRY_SNK, 391 TYPEC_ROLE_NR, 392 }; Change-Id: I1aa6576a3f3e4b1f0a3bb0f9d6bd23c382affd4d Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2061348 Reviewed-by: Huosheng Liao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/sgm7220.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/sgm7220.dtsi b/qcom/sgm7220.dtsi index 36e795804a50..fdbeb7f7b059 100644 --- a/qcom/sgm7220.dtsi +++ b/qcom/sgm7220.dtsi @@ -20,8 +20,8 @@ tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ /* 1: dfp, 2: ufp */ sgm7220-tcpc,name = "type_c_port0"; /* tcpc_device's name */ - sgm7220-tcpc,role_def = <4>; /* 0: SNK Only, 1: SRC Only, 2: DRP, */ - /* 3: Try.SRC, 4: Try.SNK */ + sgm7220-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ /* 2: EMarkOnly, 3: StartOnly */ From acc8a37dc1cd6f60c28cc1e09f88b19263822f77 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 31 Aug 2021 10:07:17 +0800 Subject: [PATCH 0411/1247] arm64/dt: milanf: add ldo vibrator device node Milan 5G use an ldo to driver vibrator. Add device node for it Change-Id: Ib2878e0cedb8dfd9eda55edb290457a9b35fd411 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2055011 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index f0a4311aff05..27f167dbc705 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -419,5 +419,11 @@ linux,can-disable; }; }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; }; From 4a2197af90386931f8cf6cae53af7291976fed0c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 9 Sep 2021 09:29:29 +0800 Subject: [PATCH 0412/1247] dts/cypfr: include the dts file of display The panel for cypfr is the similar to cypfq. So copy the panel configuration form cypfq. And rename it to cypfr-display.dtsi. Change-Id: Ie54c6a43bb593e41bafdd025462e8f3382651b20 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2062678 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 8fdea8453793..9606311aa84d 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -18,7 +18,7 @@ #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" - +#include "cypfr-display.dtsi" &tlmm { nfc { From 9c1266149271575d9258d20b98bc5dcf72a3852a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 9 Sep 2021 09:54:48 +0800 Subject: [PATCH 0413/1247] dts/cypfr: Add the dts file of display The panel for cypfr is the similar to cypfq. So copy the panel configuration form cypfq. And rename it to cypfr-display.dtsi.aa Change-Id: I4875682ce67d2f69244ae5543669fb104509e45a Reviewed-on: https://gerrit.mot.com/2062683 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/cypfr-display.dtsi | 195 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 195 insertions(+) create mode 100644 qcom/cypfr-display.dtsi diff --git a/qcom/cypfr-display.dtsi b/qcom/cypfr-display.dtsi new file mode 100644 index 000000000000..11ed8641654f --- /dev/null +++ b/qcom/cypfr-display.dtsi @@ -0,0 +1,195 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&tlmm { + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; +}; + +&soc { + dsi_panel_pwr_supply_cypfq: dsi_panel_pwr_supply_cypfq{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + + +&dsi_tm_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00 17 0B]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; From 37c73427588607a955b0b443917ea2c766605597 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 31 Aug 2021 10:05:52 +0800 Subject: [PATCH 0414/1247] arm64/dt: milanf: add silead fps device node Silead fps is the 2nd source supply sensor. Add dts node for it. 00 Signed-off-by: wuwl10 Change-Id: Ia4e762f3a711ec274a937f6e65443effc7976585 Reviewed-on: https://gerrit.mot.com/2062928 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Zhong Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/milanf-fps-overlay.dtsi | 46 +++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/qcom/milanf-fps-overlay.dtsi b/qcom/milanf-fps-overlay.dtsi index c0d10317a647..364d5a440a08 100644 --- a/qcom/milanf-fps-overlay.dtsi +++ b/qcom/milanf-fps-overlay.dtsi @@ -41,6 +41,34 @@ }; }; + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + fps_rst_active: fps_rst_active { /* active state */ mux { @@ -111,10 +139,26 @@ egistec,gpio_vcc_en = <&tlmm 38 0x0>; egistec,gpio_irq = <&tlmm 17 0x0>; egistec,gpio_reset = <&tlmm 18 0x0>; - pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active"; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; pinctrl-0 = <&ets_rst_high>; pinctrl-1 = <&ets_rst_low>; pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; }; + silead: silead { + compatible = "sil,silead_fp"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + avdd-gpios = <&tlmm 38 0x0>; + irq-gpios = <&tlmm 17 0x0>; + rst-gpios = <&tlmm 18 0x0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; }; From 7d207d68882780037516c269845da6da0b6cfc1a Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 10 Sep 2021 10:56:14 +0800 Subject: [PATCH 0415/1247] arm64/dts: modify vbat cut off voltage to 3.4V As sm4350 pro and sm6375 platform don't support BOB, so change vbat vut off voltage from 3.2V to 3.4V, and change vbat empty voltage from 3.0V to 3.2V Change-Id: I95f010b09f8764c194c757eaad128eb1e8c836b1 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2063748 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 4 ++++ qcom/holi-pm6125-moto-common-overlay.dtsi | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index f3e847ead1f6..917ffc6ede3d 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -285,6 +285,10 @@ qcom,qg-iterm-ma = <150>; qcom,hold-soc-while-full; qcom,linearize-soc; + qcom,vbatt-cutoff-mv = <3400>; + qcom,vbatt-low-mv = <3500>; + qcom,vbatt-empty-mv = <3200>; + qcom,vbatt-empty-cold-mv = <3200>; qcom,cl-feedback-on; qcom,cl-min-start-soc = <0>; qcom,cl-max-start-soc = <5>; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 0de30f37bfb7..50e0408fda13 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -295,6 +295,10 @@ qcom,qg-iterm-ma = <150>; qcom,hold-soc-while-full; qcom,linearize-soc; + qcom,vbatt-cutoff-mv = <3400>; + qcom,vbatt-low-mv = <3500>; + qcom,vbatt-empty-mv = <3200>; + qcom,vbatt-empty-cold-mv = <3200>; qcom,cl-feedback-on; qcom,cl-min-start-soc = <0>; qcom,cl-max-start-soc = <5>; From 5f564e156fd2502b553165810ed9d742b07d40fa Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 10 Sep 2021 10:32:38 +0800 Subject: [PATCH 0416/1247] dts/milanf: display: don't disable I2C when enter sleep Panel's bias/bl driver IC use the same I2C bus with sar sensor. Enter sleep, but Sar sensor is still on work. So we can not disable I2C gpio when sleep. Change-Id: Ic44a690ada42491e870648705a887ce928194616 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2063713 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Minghui Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 684f0cfa0de0..f0fe93701d03 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -222,3 +222,11 @@ }; }; }; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From 80fa9e926380d04548716262c38528a92fa99723 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 10 Sep 2021 11:01:28 +0800 Subject: [PATCH 0417/1247] Cypfr: arm64/dts: Bringup touch ili9882 - Remove unused touch and i2c configuration. - Add ili9882 dts configuration. Change-Id: I77df1af23a10128fc71982d5a26df35be8f6e629 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2063750 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Weilong Wu Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 58 +------------ qcom/cypfr-touchscreen.dtsi | 125 +++++++++++++++++++++++++++ 2 files changed, 126 insertions(+), 57 deletions(-) create mode 100755 qcom/cypfr-touchscreen.dtsi diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 9606311aa84d..78b95f4227b7 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -19,6 +19,7 @@ #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" #include "cypfr-display.dtsi" +#include "cypfr-touchscreen.dtsi" &tlmm { nfc { @@ -215,29 +216,6 @@ status = "ok"; }; -&qupv3_se0_i2c { - status = "ok"; - #address-cells = <1>; - #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 6 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; - interrupt-parent = <&tlmm>; - interrupts = <9 0>; - interrupt-names = "nfc_irq"; - pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; - }; -}; - &soc { gpio_keys { compatible = "gpio-keys"; @@ -272,39 +250,5 @@ }; }; -&qupv3_se8_i2c { - status = "okay"; - qcom,i2c-touch-active="synaptics,tcm-i2c"; - - synaptics_tcm@20 { - compatible = "synaptics,tcm-i2c"; - reg = <0x20>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - vdd-supply = <&L9A>; - avdd-supply = <&touch_avdd>; - synaptics,pwr-reg-name = "avdd"; - synaptics,bus-reg-name = "vdd"; - synaptics,irq-gpio = <&tlmm 22 0x2008>; - synaptics,irq-on-state = <0>; - synaptics,reset-gpio = <&tlmm 21 0x00>; - synaptics,reset-on-state = <0>; - synaptics,reset-active-ms = <20>; - synaptics,reset-delay-ms = <200>; - synaptics,power-delay-ms = <200>; - synaptics,ubl-i2c-addr = <0x20>; - synaptics,extend_report; - synaptics,firmware-name = "synaptics_firmware.img"; - - panel = <&dsi_rm69299_visionox_amoled_video - &dsi_rm69299_visionox_amoled_cmd>; - }; -}; - #include "camera/blair-camera-sensor-mtp.dtsi" diff --git a/qcom/cypfr-touchscreen.dtsi b/qcom/cypfr-touchscreen.dtsi new file mode 100755 index 000000000000..8107798e6d3e --- /dev/null +++ b/qcom/cypfr-touchscreen.dtsi @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se8_i2c { + synaptics_tcm@20 { + status = "disabled"; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x0>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + panel = <&dsi_tm_ili7807s_678_fhd_video>; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2008>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&touch_int_active>; + pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; + status = "ok"; + }; +}; From f62d03723643a1b3e6c16b437851310112bcf4fa Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 10 Sep 2021 17:52:52 +0800 Subject: [PATCH 0418/1247] dts/display: cypfq: enable "qcom,platform-need-execute-shutdown" When "qcom,tp_state_check_enable" is enabled. and "single tap" is enabled. That we do not power down panel at panel_power_off() function. So when shutdown phone, that will not power down panel with right timing. Change-Id: I324d28719e8dbc18a4975b6e38de4e016c69247f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2064106 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index e9616cdfda4c..4bcf94a05925 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -148,6 +148,7 @@ qcom,suspend-ulps-enabled; qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; @@ -202,6 +203,7 @@ qcom,mdss-dsi-panel-supplier = "csot"; qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; From 06b797454a2ce5bcdac5b45930a1914ddb2ff372 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Mon, 13 Sep 2021 11:36:16 +0800 Subject: [PATCH 0419/1247] arm64/dts: bringup sd card. sd card interrupt level is low as default, need set HIGH as design on cypfr 5G. Change-Id: Id83ea14f258e99115d460117ed5633adef11fd21 Reviewed-on: https://gerrit.mot.com/2064765 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xinmin Fu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 78b95f4227b7..44c538294c3e 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -184,7 +184,7 @@ qcom,vdd-io-voltage-level = <1800000 2960000>; qcom,vdd-io-current-level = <0 22000>; - cd-gpios = <&tlmm 94 GPIO_ACTIVE_LOW>; + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; }; &ufsphy_mem { From ac0d76e13a0759c4cc2728cb93436db4bc1fa562 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 13 Sep 2021 16:40:30 +0800 Subject: [PATCH 0420/1247] cypfr/sensor: sar sensor bringup 1.I2C for sar should pull-up when sleep 2.blari-cypfr-common-overlay.dtsi Change-Id: I8675ca7518f5af9c4625687882fa7a950b984151 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2064989 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 44c538294c3e..1f36c4234999 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -250,5 +250,13 @@ }; }; +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + #include "camera/blair-camera-sensor-mtp.dtsi" From b8622a3bf191857a35e2ad3d16ab8b52000f5153 Mon Sep 17 00:00:00 2001 From: liaohj Date: Tue, 14 Sep 2021 09:47:22 +0800 Subject: [PATCH 0421/1247] arm64/dts:cypfr:config audio dts bringup cypfr 6375 + aw88261 Change-Id: I5cfd21fb090f5a3b8ea54cef53c0f41e45b8bd41 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2065764 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Wanlong Zhou Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 49 ++++++++-------------------- 1 file changed, 14 insertions(+), 35 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 1f36c4234999..5d61c567356e 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "holi-audio-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -21,6 +21,19 @@ #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + &tlmm { nfc { nfc_int_active: nfc_int_active { @@ -116,40 +129,6 @@ }; }; -&wcd938x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddio-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddio"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddpx-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; - -&wsa881x_i2c_e { - cdc-vdd-1p8-supply = <&L9A>; -}; - -&wsa881x_i2c_f { - cdc-vdd-1p8-supply = <&L9A>; -}; - /* Dummy LDO reference */ &sdhc_1 { status = "ok"; From 47746944f2ed04a91da3c56ac566afd140108b95 Mon Sep 17 00:00:00 2001 From: gongsc1 Date: Mon, 13 Sep 2021 19:12:01 +0800 Subject: [PATCH 0422/1247] arm64/dts: add rt9467 dtsi add rt9467 dtsi from vendor. Change-Id: I66a775526dc629484d9061bb8326c6062169ffd5 Reviewed-on: https://gerrit.mot.com/2065157 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 42 +++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 55dcb78ebf57..4c1e7b26ff02 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -123,4 +123,46 @@ temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; }; + + rt9467@5b { + compatible = "richtek,rt9467"; + reg = <0x5b>; + status = "okay"; + interrupts-extended = <&tlmm 12 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&rt9467_int>; + interrupt-names = "wdtmri", "chg_mivr", "chg_aiclmeasi", + "attachi", "detachi", "pwr_rdy", "chg_statci"; + charger_name = "rt9467"; + regmap_name = "rt9467_primary"; + regmap_represent_slave_addr = <0x5b>; + ichg = <2000000>; /* uA */ + aicr = <500000>; /* uA */ + mivr = <4400000>; /* uV */ + cv = <4350000>; /* uV */ + ieoc = <250000>; /* uA */ + safety_timer = <12>; /* hour */ + ircmp_resistor = <25000>; /* uohm */ + ircmp_vclamp = <32000>; /* uV */ + en_te; + en_wdt; + en_chgdet; + /* en_jeita; */ + /* en_irq_pulse; */ + }; +}; + +&tlmm { + rt9467_int: rt9467_int { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + }; + }; }; From e04590b1a580cd1f9cd89e4180e2f0bc9cdb0c63 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 14 Sep 2021 14:49:03 +0800 Subject: [PATCH 0423/1247] arm64/dt: cypfr: config fps device node Cyprus IP68 use ET528 and Fpc1540 as fps sensor. Add device node for it. Change-Id: I8100f22dabc0cd64527256a0ceb7924fb4f8daed Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2066001 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + qcom/cypfr-fps-overlay.dtsi | 163 +++++++++++++++++++++++++++ 2 files changed, 164 insertions(+) create mode 100644 qcom/cypfr-fps-overlay.dtsi diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 5d61c567356e..3e5883be8ea8 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -18,6 +18,7 @@ #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" #include "display/blair-sde-display-mtp.dtsi" +#include "cypfr-fps-overlay.dtsi" #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" diff --git a/qcom/cypfr-fps-overlay.dtsi b/qcom/cypfr-fps-overlay.dtsi new file mode 100644 index 000000000000..40fa18745865 --- /dev/null +++ b/qcom/cypfr-fps-overlay.dtsi @@ -0,0 +1,163 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + egistec,gpio_vcc_en = <&tlmm 87 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; From 92c46af451cd7c081083b23aabd1973895e5c844 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 15 Sep 2021 09:55:09 +0800 Subject: [PATCH 0424/1247] arm64/dt: cypfr: add vibrator device node Add vibrator device node for cypfr. It use an ldo to driver it. Change-Id: I671569319Montana059913d420dcdc8b244a30bf6054 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2067028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 35 ++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 3e5883be8ea8..423eba33515f 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -128,6 +128,32 @@ }; }; }; + + vib_3v_active: vib_3v_active { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + vib_3v_suspend: vib_3v_suspend { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; }; /* Dummy LDO reference */ @@ -228,6 +254,15 @@ regulator-min-microvolt = <2700000>; regulator-max-microvolt = <3544000>; }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&vib_3v_active>; + pinctrl-1 = <&vib_3v_suspend>; + }; }; &qupv3_se10_i2c_sleep { From 47029d85d91568e2f644b31114c0fb1fca551906 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 15 Sep 2021 09:36:25 +0800 Subject: [PATCH 0425/1247] arm/dts: apply batt_id SB18D00294 parameter for rt9426a fg -apply batt id:SB18D00294 parameter -NTC 100K -RS 10mR the battery temp test pass. Change-Id: Iafa10c80dec7030ed0a4878f8054e76d034488b0 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2066798 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rt9426a.dtsi | 142 +++++++++++++++++++++++----------------------- 1 file changed, 71 insertions(+), 71 deletions(-) diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index 1e106b5a1169..e4155b1d5426 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -9,87 +9,87 @@ interrupts-extended = <&tlmm 8 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; - rt,dtsi_version = <01 709>; + rt,dtsi_version = <01 910>; rt,para_version = <0x0001>; rt,battery_type = <4352>; - rt,volt_source = <3>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV + rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV rt,temp_source = <1>; // 0:AP 1:FG_TEMP 2:FG_INTT; 3:FG_AT - rt,curr_source = <2>; // 0:AP 1:FG_CURR 2:FG_AI + rt,curr_source = <1>; // 0:AP 1:FG_CURR 2:FG_AI rt,offset_interpolation_order = <2 2>; rt,soc_offset_size = <2 1>; rt,soc_offset_data = <0 250 0 1000 250 0>; - rt,rs_ic_setting = <100>; /* unit:0.01mR ; 100x0.01 = 1.0mR */ - rt,rs_schematic = <100>; /* unit:0.01mR ; 100x0.01 = 1.0mR */ - rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 80 00 00 - 80 34 21 10 00 30 00 00 3F 0A 1D 32 12 05 1E 50 - 00 81 00 02 00 02 00 40 00 40 D0 07 D0 07 04 24 - 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 - 15 0E 48 44 78 27 46 41 19 05 91 12 33 32 32 00 - 71 55 12 32 77 A5 04 73 22 33 52 68 A7 64 32 19 - 28 14 0E 08 08 06 06 06 05 05 08 08 06 05 05 03 - 03 F6 F6 F6 F2 F2 EC E6 EE EE EE E4 E4 DE D8 00 - 56 02 C0 48 00 09 00 00 00 00 00 00 00 00 37 73 - 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; + rt,rs_ic_setting = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */ + rt,rs_schematic = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */ + rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 80 00 00 + 80 34 00 00 FB 3E 00 20 7F 08 1D 32 12 05 1E 50 + 00 82 00 02 00 02 00 40 00 40 1F 13 1F 13 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 + 15 0E 48 44 A2 4B 05 41 19 05 8D 12 23 32 1F 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 04 04 04 00 00 00 00 02 02 02 00 00 FD + FC FA FA FA F9 F9 EE E5 9B 9B 9B EB EB C0 AD 00 + 76 02 E0 48 14 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 EC 00 00 B9 36 96 33 0F 07 00 00 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; /* add for smooth soc ; 2021-01-18 */ rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ /* add for aging cv ; 2021-01-18 */ - rt,fcc = <2000 2001 2002 2003 2004>; - rt,fg_fc_vth = <0x00 0x01 0x02 0x03 0x04>; - rt,fg_ocv_table0 = <0x0013 0x5000 0x5500 0x5933 0x5C1A 0x5C26 0x5D00 0x5E66 - 0x5FF3 0x610D 0x61F3 0x6333 0x6413 0x66A0 0x68F3 0x6A5A - 0x6B9A 0x6C1A 0x6E20 0x706D 0x1400 0x0433 0x023B 0x000D - 0x0038 0x004B 0x0031 0x0042 0x0055 0x00AD 0x0080 0x0081 - 0x0091 0x0092 0x0098 0x0039 0x0096 0x00EC 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000D 0x003D 0x0073 0x1300 0x0497 0x036E - 0x053A 0x03DD 0x0300 0x017B 0x0200 0x01FB 0x01C3 0x01C0 - 0x01AE 0x0480 0x01B4 0x0116 0xB0EF 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table1 = <0x0013 0x44C0 0x4B00 0x55F3 0x5A60 0x5BED 0x5C93 0x5DFA - 0x5FA6 0x60AD 0x619A 0x62CD 0x63AD 0x662D 0x687A 0x69E0 - 0x6B0D 0x6C46 0x6DC0 0x706D 0x1900 0x0AF3 0x0367 0x01A2 - 0x002B 0x004B 0x0035 0x003E 0x0058 0x00A6 0x0080 0x007F - 0x0090 0x0092 0x008F 0x008B 0x006D 0x0112 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0017 0x004B 0x009D 0x0600 0x036E - 0x04D6 0x0425 0x02EB 0x018B 0x0200 0x0205 0x01C8 0x01C0 - 0x01CA 0x01D6 0x0257 0x00EF 0x27A8 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table2 = <0x0013 0x44C0 0x4B00 0x563A 0x5A93 0x5BF3 0x5CC0 0x5E00 - 0x5F93 0x60A6 0x619A 0x62CD 0x63A6 0x6626 0x687A 0x69E0 - 0x6B0D 0x6C4D 0x6DC0 0x706D 0x1900 0x0B3A 0x0359 0x0173 - 0x0035 0x0043 0x0032 0x0041 0x005A 0x00A6 0x007C 0x007F - 0x0091 0x0092 0x008F 0x008E 0x006C 0x0112 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0017 0x004D 0x00B1 0x04E0 0x03D7 - 0x0525 0x03F4 0x02D8 0x018B 0x020F 0x0205 0x01C3 0x01C0 - 0x01CA 0x01CD 0x0261 0x00EF 0x5DCE 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table3 = <0x0013 0x49C0 0x5500 0x5898 0x5AE2 0x5B24 0x5C24 0x5D50 - 0x5EF8 0x600E 0x60FE 0x61C1 0x62AA 0x654B 0x6770 0x68B9 - 0x69DB 0x6B1B 0x6CE0 0x706D 0x2D00 0x0398 0x01C3 0x0046 - 0x0042 0x003F 0x0034 0x0041 0x0059 0x006A 0x0085 0x0085 - 0x0086 0x0086 0x008A 0x008E 0x0083 0x016C 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x0006 0x0047 0x0091 0x03A7 0x03E7 0x0418 - 0x04E5 0x03E9 0x02E3 0x026C 0x01EC 0x01EC 0x01E9 0x01E8 - 0x01DA 0x01CD 0x01F3 0x00B4 0x6E98 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table4 = <0x0013 0x5000 0x5500 0x593A 0x5C20 0x5C26 0x5D13 0x5E60 - 0x5FED 0x60FA 0x61E6 0x631A 0x63FA 0x6673 0x68C0 0x6A20 - 0x6B5A 0x6BF3 0x6E20 0x706D 0x1400 0x043A 0x023B 0x0007 - 0x003D 0x0045 0x0031 0x003F 0x0058 0x00A6 0x0080 0x007D - 0x0090 0x0090 0x0095 0x0044 0x00A1 0x00EC 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000D 0x003D 0x0073 0x2600 0x0437 0x03B1 - 0x053A 0x040C 0x02EB 0x018B 0x0200 0x020A 0x01C8 0x01C8 - 0x01B7 0x03C0 0x0196 0x0116 0xCCCE 0x0000 0x0000 0x0000 >; + rt,fcc = <4895 4895 4895 4895 4895>; + rt,fg_fc_vth = <0xa2 0xa2 0xa2 0xa2 0xa2>; + rt,fg_ocv_table0 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table1 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table2 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table3 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table4 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; }; }; From e448c702df3032926be9012bbc7440d8362de326 Mon Sep 17 00:00:00 2001 From: tinno10 Date: Wed, 15 Sep 2021 18:08:56 +0800 Subject: [PATCH 0426/1247] arm/dt: cypfr: add camera config add camera config for cypfr cypfr add 2864 pmic config Change-Id: Ia4c331509b14cfb4753605b8f12655a370336b86 Signed-off-by: tinno10 Reviewed-on: https://gerrit.mot.com/2067317 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Liu Reviewed-by: Ji Zhao Reviewed-by: Bolei Shang Reviewed-by: Xingyun Fu Reviewed-by: XiaoFeng Wang Reviewed-by: Shuo Wang Reviewed-by: Shanghui Zhang Reviewed-by: Chunhui Li Reviewed-by: Zhuoran Xu Reviewed-by: Huosheng Liao Reviewed-by: Jianqi Yang Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 83 +++++++++++++++++++++++++++- 1 file changed, 82 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 423eba33515f..f5d74a61c3b7 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -21,6 +21,7 @@ #include "cypfr-fps-overlay.dtsi" #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" +#include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -36,6 +37,19 @@ }; &tlmm { + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -222,6 +236,74 @@ status = "ok"; }; +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S6A>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + &soc { gpio_keys { compatible = "gpio-keys"; @@ -273,5 +355,4 @@ }; }; -#include "camera/blair-camera-sensor-mtp.dtsi" From 0c237dff9a58e454e02bb12e58489bd291130297 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Thu, 16 Sep 2021 15:56:24 +0800 Subject: [PATCH 0427/1247] arm64/dts: overlay linein threshold for corfu5g Qcom mbhc default linein threshold is 5000, but some AUX carkit speaker impedance is not large than it, mbhc detects it as headphone, not use LINE audio parameter, causes audio performance issue.overlay it as 4000 for corfu5g. Change-Id: I4e1dbdad176654a75a19b03dd7a13a673c48a436 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2068427 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-corfur-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-corfur-common-overlay.dtsi b/qcom/blair-corfur-common-overlay.dtsi index 0e1febf805e2..6fb4921566ab 100644 --- a/qcom/blair-corfur-common-overlay.dtsi +++ b/qcom/blair-corfur-common-overlay.dtsi @@ -44,6 +44,10 @@ cdc-vdd-mic-bias-supply = <>; }; +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; From c20bb702d385361e647c395da02486594bf8af24 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 16 Sep 2021 13:36:23 +0800 Subject: [PATCH 0428/1247] dts: add google key configuration for cypfr Adding google key configurations for product cypfr. Change-Id: I6b429275c778815704de814c9dc713737aef4263 Reviewed-on: https://gerrit.mot.com/2067354 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index f5d74a61c3b7..24201040ebe3 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -50,6 +50,19 @@ }; }; + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -310,7 +323,7 @@ label = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&key_vol_up_default>; + pinctrl-0 = <&key_vol_up_default &google_key_default>; vol_up { label = "volume_up"; @@ -321,6 +334,16 @@ debounce-interval = <15>; linux,can-disable; }; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; }; }; From 67fc4700621441b1f21e098f7d7af5942e4fd2e8 Mon Sep 17 00:00:00 2001 From: zhucc2 Date: Fri, 17 Sep 2021 16:28:12 +0800 Subject: [PATCH 0429/1247] arm64/config: change spm-level to 3 for ufs PROPAGATED_from (CR) from qcom's suggestion , change the ufs spm-level to 3. it maybe improve stability of ufs. spm-level 3: UFS_SLEEP_PWR_MODE, UIC_LINK_HIBERN8_STATE spm-level 5: UFS_POWERDOWN_PWR_MODE, UIC_LINK_OFF_STATE And after set spm_lvl as 3, the ufs will avoid reinit/probe during resume. thus no uevent sent out, hvdcp will not wakeup yet. Change-Id: I48cf6626d13f1ce563230d0bdb87082d6d5a0fb5 Reviewed-on: https://gerrit.mot.com/2069877 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 4 ++++ qcom/blair-pm6125-moto-common-overlay.dtsi | 4 ++++ qcom/holi-pm6125-moto-common-overlay.dtsi | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 104bbab4f5dc..3011bfeb592d 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -185,3 +185,7 @@ status = "ok"; }; }; + +&ufshc_mem { + spm-level = <3>; +}; diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 917ffc6ede3d..bdc576be5206 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -316,3 +316,7 @@ &socd_trip { temperature = <95>; }; + +&ufshc_mem { + spm-level = <3>; +}; diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 50e0408fda13..816da99a7f60 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -326,3 +326,7 @@ &socd_trip { temperature = <95>; }; + +&ufshc_mem { + spm-level = <3>; +}; From 0cbb521559146be5c0f998ce57192c4b94b824e8 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Sat, 18 Sep 2021 11:11:09 +0800 Subject: [PATCH 0430/1247] cypfq/devicetree: update hwid for cyprus 5G update hwid for cypfq according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Ia169e6c4c53329ff4fb706af5aad1c9e5ac9c0dc Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2070579 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/holi-cypfq-pvt-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-cypfq-pvt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 59a12e69bdf8..b2b1f5f194e3 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -68,10 +68,12 @@ holi-cypfg-evt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFQ_DTB) += \ holi-cypfq-dvt1-overlay.dtbo \ - holi-cypfq-dvt2-overlay.dtbo + holi-cypfq-dvt2-overlay.dtbo \ + holi-cypfq-pvt-overlay.dtbo holi-cypfq-dvt1-overlay.dtbo-base := holi-moto-base.dtb holi-cypfq-dvt2-overlay.dtbo-base := holi-moto-base.dtb +holi-cypfq-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ blair-cypfr-evb-overlay.dtbo \ diff --git a/qcom/holi-cypfq-pvt-overlay.dts b/qcom/holi-cypfq-pvt-overlay.dts new file mode 100644 index 000000000000..0d7f1be9cd11 --- /dev/null +++ b/qcom/holi-cypfq-pvt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-cypfq-common-overlay.dtsi" + +/ { + model = "cypfq"; + compatible = "qcom,holi-cypfq", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xC000>, <0x48 0xC000>; +}; + From cfdd47c5dde98cc41ff4d6b4a5320489294a0c90 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 7 Sep 2021 17:37:20 +0800 Subject: [PATCH 0431/1247] arm/dts: config tcpc extcon and default rdo 1. default rdo 5v/3a 2. open extcon Change-Id: Ibcc54ca8896b0aa24f3168348c1d858a4ec2741d Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2057477 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/tcpc_config.dtsi | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index f3c49f6ca056..3938182e8896 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -59,7 +59,7 @@ pd,source-pdo-size = <1>; pd,source-pdo-data = <0x00019032>; pd,sink-pdo-size = <1>; - pd,sink-pdo-data = <0x000190c8>; + pd,sink-pdo-data = <0x0001912c>; /* * No DP, host + device @@ -164,8 +164,6 @@ rpm: rt-pd-manager { compatible = "richtek,rt-pd-manager"; - #io-channel-cells = <1>; - }; }; @@ -183,8 +181,8 @@ }; }; }; -/* First not config ,this should cause phone could not power on + &usb0 { extcon = <&eud>, <&rpm>; }; -*/ + From d1cfd4770e744018e6ccecea94ca196132307f55 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 16 Sep 2021 16:19:07 +0800 Subject: [PATCH 0432/1247] arm/dts: milanf apply fuel gauge cw2217 dts add cw2217 dts to i2c8 form milanf Change-Id: Ib2bfddfc25f8f044e83929c43f87c25b1601393b Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2068457 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 4c1e7b26ff02..b509420efe12 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -27,6 +27,12 @@ reg = <0x2f>; status = "okay"; }; + + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + }; }; &pm6125_vadc { From d9595b873bddd59fcfed343f93cbc538b91e2c33 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 21 Sep 2021 10:31:46 +0800 Subject: [PATCH 0433/1247] milanf: remove sd77426 dts config milanf wouldn't use sd77426 fg remove this dts config Change-Id: I63a90cb176c3c04e0369a1e4050e340ffee4c418 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2071501 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 6 ------ 1 file changed, 6 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index b509420efe12..5121b1817235 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -22,12 +22,6 @@ &qupv3_se8_i2c { status = "okay"; - oz8806@2f { - compatible = "o2micro,oz8806"; - reg = <0x2f>; - status = "okay"; - }; - cw2217@64 { compatible = "cellwise,cw2217"; reg = <0x64>; From 516c5231d469f6b5098e1a094bdef716d3004487 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Sat, 18 Sep 2021 16:23:23 +0800 Subject: [PATCH 0434/1247] arm/dts: cypfr add fuel gauge rt9426a dts config cypfr add fuel gauge(rt9426a) dts config Change-Id: I0e84451001d64c74ade9ad21bce5b8dbad64593b Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2070796 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 24201040ebe3..b91092f306bb 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -22,6 +22,7 @@ #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" +#include "rt9426a.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From 7fd831ce32c9f1c9b795e5d1019011217f9d4098 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Sat, 18 Sep 2021 16:27:41 +0800 Subject: [PATCH 0435/1247] arm/dts: cypfr add fuel gauge cw2217 dts config -enable se8_i2c -cypfr add fuel gauge(cw2217) dts config Change-Id: Icb5cd84eaf04d60aed560a79d0ad6b8063ef5ae9 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2070798 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index b91092f306bb..12a81e7f3867 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -250,6 +250,15 @@ status = "ok"; }; +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + }; +}; + &qupv3_se10_i2c { status = "ok"; From ba3f8abf16966a63f9fd60550aa0ccd5ecf8389a Mon Sep 17 00:00:00 2001 From: Shicheng Gong Date: Mon, 20 Sep 2021 21:41:08 -0500 Subject: [PATCH 0436/1247] Revert rt9467 dtsi remove rt9467 dtsi for milanf 5g. This reverts commit 562f459b26544adf26d055456fab1250566121cd. Change-Id: I83b85437dd051e53d8abd9dd14fdc84941b6cdc5 Reviewed-on: https://gerrit.mot.com/2071506 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 42 --------------------- 1 file changed, 42 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 5121b1817235..5d872a938472 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -123,46 +123,4 @@ temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; }; - - rt9467@5b { - compatible = "richtek,rt9467"; - reg = <0x5b>; - status = "okay"; - interrupts-extended = <&tlmm 12 IRQ_TYPE_LEVEL_LOW>; - pinctrl-names = "default"; - pinctrl-0 = <&rt9467_int>; - interrupt-names = "wdtmri", "chg_mivr", "chg_aiclmeasi", - "attachi", "detachi", "pwr_rdy", "chg_statci"; - charger_name = "rt9467"; - regmap_name = "rt9467_primary"; - regmap_represent_slave_addr = <0x5b>; - ichg = <2000000>; /* uA */ - aicr = <500000>; /* uA */ - mivr = <4400000>; /* uV */ - cv = <4350000>; /* uV */ - ieoc = <250000>; /* uA */ - safety_timer = <12>; /* hour */ - ircmp_resistor = <25000>; /* uohm */ - ircmp_vclamp = <32000>; /* uV */ - en_te; - en_wdt; - en_chgdet; - /* en_jeita; */ - /* en_irq_pulse; */ - }; -}; - -&tlmm { - rt9467_int: rt9467_int { - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - drive-strength = <2>; - bias-pull-up; - }; - }; }; From ec7abd00c90655280ea9daade787087345afe879 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 21 Sep 2021 11:54:12 +0800 Subject: [PATCH 0437/1247] arm/dts: config discrete charging dtsi config discrete charging dtsi for cyprus 5G JP and milan Change-Id: I2433df81559b5a9426b4912eeeb218cdf79c36e4 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2071095 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + qcom/blair-nopmi-milanf-common-overlay.dtsi | 87 +----------------- qcom/discrete_charging.dtsi | 99 +++++++++++++++++++++ 3 files changed, 101 insertions(+), 86 deletions(-) create mode 100644 qcom/discrete_charging.dtsi diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 12a81e7f3867..62806fe0e1cd 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -23,6 +23,7 @@ #include "cypfr-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" #include "rt9426a.dtsi" +#include "discrete_charging.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 5d872a938472..b7f775f0432d 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -14,6 +14,7 @@ #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "rt9426a.dtsi" +#include "discrete_charging.dtsi" &usb0 { qcom,force-adb-enable; @@ -29,46 +30,6 @@ }; }; -&pm6125_vadc { - gpio6_div3{ - reg = ; - label = "gpio3_div3"; - qcom,pre-scaling = <1 3>; - }; -}; - -&pm6125_gpios { - gpio6_adc{ - gpio6_adc_default:gpio6_adc_default{ - pins = "gpio6"; - function = "normal"; - bias-high-impedance; - }; - }; - - indicator_led { - indicator_led_default: indicator_led_default { - pins = "gpio8"; - function = "func1"; - output-low; - }; - }; -}; - -&soc { - indicator_led { - compatible = "qcom,indicator-pwm-led"; - pinctrl-names = "default"; - pinctrl-0 = <&indicator_led_default>; - indicator_led { - label = "charging"; - led-sources = <0>; - pwms = <&pm6125_pwm 0 1000000>; - linux,default-trigger = "timer"; - }; - }; -}; - &spmi_bus { qcom,pm6125@1 { #address-cells = <1>; @@ -78,49 +39,3 @@ }; }; -&qupv3_se8_i2c { - status = "okay"; - - sgm4154x: sgm4154x@3B { - status = "okay"; - compatible = "sgm,sgm41542"; - reg = <0x3B>; - - pinctrl-names = "default"; - pinctrl-0 = <&gpio6_adc_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; - - interrupt-parent = <&tlmm>; - interrupts = <12 0>; //irq num base on hardware design - sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design - sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other - - /* sw jeita parameter customer defined*/ - enable_sw_jeita; - jeita_temp_above_t4_cv = <0>; - jeita_temp_t3_to_t4_cv = <4100000>; - jeita_temp_t2_to_t3_cv = <4350000>; - jeita_temp_t1_to_t2_cv = <4350000>; - jeita_temp_t0_to_t1_cv = <0>; - jeita_temp_below_t0_cv = <0>; - - jeita_temp_above_t4_cc_current = <0>; - jeita_temp_t3_to_t4_cc_current = <1000000>; - jeita_temp_t2_to_t3_cc_current = <1250000>; - jeita_temp_t1_to_t2_cc_current = <1000000>; - jeita_temp_below_t0_cc_current = <0>; - - temp_t4_thres = <50>; - temp_t4_thres_minus_x_degree = <48>; - temp_t3_thres = <45>; - temp_t3_thres_minus_x_degree = <45>; - temp_t2_thres = <20>; - temp_t2_thres_plus_x_degree = <15>; - temp_t1_thres = <0>; - temp_t1_thres_plus_x_degree = <0>; - temp_t0_thres = <0>; - temp_t0_thres_plus_x_degree = <2>; - temp_neg_10_thres = <0>; - }; -}; diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi new file mode 100644 index 000000000000..a1c81a1c6214 --- /dev/null +++ b/qcom/discrete_charging.dtsi @@ -0,0 +1,99 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; + + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; +}; From 5188dc337fd70376991b73be6da3974c6ce355e7 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 21 Sep 2021 14:01:09 +0800 Subject: [PATCH 0438/1247] dts: add adb force eanble configuration Adding ADB force enable configuration(qcom,force-adb-enable) to enable adb for debuging. Refs: https://gerrit.mot.com/#/c/2038917/ Change-Id: If8bac1c7220374497ce44ca18fbc6ca8d314a386 Reviewed-on: https://gerrit.mot.com/2071538 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 62806fe0e1cd..401551e6f632 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -25,6 +25,10 @@ #include "rt9426a.dtsi" #include "discrete_charging.dtsi" +&usb0 { + qcom,force-adb-enable; +}; + &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; From 0e706744b79914fe3a212d5141e427597dafbd28 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 21 Sep 2021 14:19:36 +0800 Subject: [PATCH 0439/1247] cypfr/dts: change google_key from gpio11 to gpio60 For cypfr, gio60 is assigned to google_key. So we should change google_key gpio configuration from gpio11 to gpio60 Change-Id: I04883880a97e2e6747bfd66a2e08e7c704ad22c0 Signed-off-by: weiweij Reviewed-on: https://gerrit.mot.com/2071543 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 401551e6f632..424d234b0257 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -58,12 +58,12 @@ google_key_default: google_key_default { mux { - pins = "gpio11"; + pins = "gpio60"; function = "gpio"; }; config { - pins = "gpio11"; + pins = "gpio60"; drive-strength = <2>; bias-pull-up; }; @@ -352,7 +352,7 @@ google_key { label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + gpios = <&tlmm 60 GPIO_ACTIVE_LOW>; linux,input-type = <1>; linux,code = ; gpio-key,wakeup; From 670efde00f600cb72e43e6005b0e30e0c2b91683 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 21 Sep 2021 16:06:21 +0800 Subject: [PATCH 0440/1247] arm/dts: milanf set qupv3_se8_i2c input-enable In kernel steps, the set8_i2c always in low level thant means in sleep mode. and affect the PD/TYPEC alert. set it to input-enable can work. Change-Id: Id1d3f3a39ae22535d708b0c4decb5458d9df24f1 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2071582 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 3011bfeb592d..a343100b99ca 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -189,3 +189,9 @@ &ufshc_mem { spm-level = <3>; }; + +&qupv3_se8_i2c_sleep { + config { + input-enable; + }; +}; From 787b3ea7cf2450ac27e1311da1c813982dbab87e Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 21 Sep 2021 11:05:55 +0800 Subject: [PATCH 0441/1247] arm/dts: cypfr add typec dts config cypfr use sgm7220 typec. add dts config for it Change-Id: Iff9d2c85d9ee588604f7bc79cd92996faa6a55d4 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2071512 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 424d234b0257..19b3cf12063d 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -24,6 +24,7 @@ #include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" #include "rt9426a.dtsi" #include "discrete_charging.dtsi" +#include "sgm7220.dtsi" &usb0 { qcom,force-adb-enable; @@ -324,6 +325,16 @@ }; }; +&soc { + rpm: rt-pd-manager { + compatible = "richtek,rt-pd-manager"; + }; +}; + +&usb0 { + extcon = <&eud>, <&rpm>; +}; + &pm8008_8 { status = "disabled"; }; From c1ec3aae57ed765316c73241583e4559b154ff4f Mon Sep 17 00:00:00 2001 From: gongsc1 Date: Fri, 17 Sep 2021 11:21:57 +0800 Subject: [PATCH 0442/1247] arm64/dts: add bq25890 dtsi add bq25890 dtsi config for milanf 5g Change-Id: I02c0732e486c451445abcb7126e7ec3c7ab5eade Reviewed-on: https://gerrit.mot.com/2069668 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index a1c81a1c6214..9253f738e1f4 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -96,4 +96,41 @@ temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; }; + + bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq>; + bq2589x_irq-gpio = <&tlmm 12 0>; + + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4350>; + ti,bq2589x,charge-current = <3250>; + ti,bq2589x,term-current = <256>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; +}; + +&tlmm { + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; }; From 7f306d7c14ecbea4d8a8af134ca94947bb19c3f9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 24 Sep 2021 15:53:07 +0800 Subject: [PATCH 0443/1247] dts: cypfq/panel: update the init code Change 0x3E register value to 0x50., to reduce the time of low voltage. So will make DDIC can do the clean more quickly when error low voltage happen. That can avoid the panel flash. Change-Id: I09d044e8070b32c8bd7d5534d670a542a98249f1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2075556 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi index 00cbccd734ba..e5f11a2d7291 100644 --- a/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi @@ -57,6 +57,9 @@ [ 39 01 00 00 00 00 04 FF 78 07 00 05 01 00 00 78 00 01 11 + 39 01 00 00 00 00 04 FF 78 07 05 + 15 01 00 00 00 00 02 3E 50 + 39 01 00 00 00 00 04 FF 78 07 00 05 01 00 00 14 00 01 29 39 01 00 00 00 00 04 FF 78 07 06 15 01 00 00 00 00 02 3E E3 From 07cbab8f5e756c4699625c94d8efc46585cab2e7 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Sun, 26 Sep 2021 11:07:58 +0800 Subject: [PATCH 0444/1247] arm/dts: add sgm7220 pwr enable gpio arm/dts add sgm7220 pwr enable gpio for cpgrus-ip68 product Change-Id: I5a4b5d2642fab6a7332fe53c171e4fb4e912a4b6 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2075735 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-evt-overlay.dts | 3 +++ qcom/sgm7220.dtsi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-evt-overlay.dts b/qcom/blair-cypfr-evt-overlay.dts index d1bb01dc69ae..6eb3a60a95e7 100644 --- a/qcom/blair-cypfr-evt-overlay.dts +++ b/qcom/blair-cypfr-evt-overlay.dts @@ -22,3 +22,6 @@ qcom,board-id = <0x4B 0xA200>; }; +&sgm7220 { + sgm7220,pwr_gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; +}; diff --git a/qcom/sgm7220.dtsi b/qcom/sgm7220.dtsi index fdbeb7f7b059..81e90cc0c2de 100644 --- a/qcom/sgm7220.dtsi +++ b/qcom/sgm7220.dtsi @@ -13,7 +13,7 @@ &qupv3_se8_i2c { status = "okay"; - sgm7220@47 { + sgm7220: sgm7220@47 { compatible = "sgm,usb_type_c_sgm7220"; reg = <0x47>; status = "okay"; From b890257fa0f7cee89dde93099d61fded3dae7697 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 27 Sep 2021 18:59:28 +0800 Subject: [PATCH 0445/1247] arm/dts: move led pwm enable config to common file cypfr led don't work, because miss the pwm enable config. So move pwm config to common file. Change-Id: I0c6f5f9ae4f26e323cc9591343cb48ea389c985a Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2077576 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 9 --------- qcom/discrete_charging.dtsi | 9 +++++++++ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index b7f775f0432d..19a8a953026e 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -30,12 +30,3 @@ }; }; -&spmi_bus { - qcom,pm6125@1 { - #address-cells = <1>; - qcom,pwms@b300 { - status = "ok"; - }; - }; -}; - diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 9253f738e1f4..4a249d638eed 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -51,6 +51,15 @@ }; }; +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; + &qupv3_se8_i2c { status = "okay"; From 586bfd9393728856e7a8825bceba3088f64e17da Mon Sep 17 00:00:00 2001 From: gongsc1 Date: Mon, 27 Sep 2021 15:37:33 +0800 Subject: [PATCH 0446/1247] arm64/dts: config charge enable pin for bq25890 config charge enable pin for bq25890 as spec description. Change-Id: If19549701e80fd255c60a2a0935aa09f3e58edff Reviewed-on: https://gerrit.mot.com/2077235 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 4a249d638eed..fc0885b0eb08 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -114,6 +114,7 @@ pinctrl-names = "default"; pinctrl-0 = <&bq2589x_irq>; bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ From 54129806cb839e84590853c519bdef0843df176d Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Mon, 13 Sep 2021 15:22:50 +0800 Subject: [PATCH 0447/1247] Thermal Zone Name Modification Modify the name of thermal zone. To pass TCMD test. Change-Id: Ia2af57406669e7e9e4c46c11fcb265cfa1b3bcb4 Reviewed-on: https://gerrit.mot.com/2078231 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Yuecai Liu Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 188 +++++++++++++++++++++++++++ 1 file changed, 188 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 19b3cf12063d..52bf77e32a53 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -190,6 +190,194 @@ }; }; +&pmk8350_vadc { + pmk8350_chg_therm { + reg = ; + label = "pmk8350_chg_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_ufs_therm { + reg = ; + label = "pmk8350_ufs_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + ufs_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_tz { + io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>; + io-channel-names = "thermal"; + + camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + ufs_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + camera_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_tz PMR735A_ADC7_DIE_TEMP>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + /* Dummy LDO reference */ &sdhc_1 { status = "ok"; From 9e68b4a617d33633a27417545aed1c6e6d79f1fe Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 16 Sep 2021 14:52:48 +0800 Subject: [PATCH 0448/1247] arm64/st: cypfr: add device node for NXP SN100P Cyprus IP68 use NXP SN100P as nfc controller Add device node for it. Change-Id: I25e4098da2221686360d6f14496269e21927b1ba Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2068290 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 52bf77e32a53..1ca797f42878 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -584,6 +584,33 @@ }; }; + +&qupv3_se7_i2c { + status = "ok"; + #qcom,clk-freq-out = <1000000>; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 133 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupts = <9 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>; + }; +}; + &qupv3_se10_i2c_sleep { config { /delete-property/ bias-disable; From e55bc18561a3ba5717db504a8bc236a43b606b58 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 30 Sep 2021 16:54:24 +0800 Subject: [PATCH 0449/1247] dts/cyfq: remove the support for csot panel For cypfq, we don't suport csot panel. So we remove these related codes. Change-Id: Ic91e164c8b9b8b967cccf937c546cda8daMontana7ff Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2080493 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 56 -------------------------------- qcom/cypfq-touchscreen.dtsi | 15 --------- qcom/holi-cypfq-dvt1-overlay.dts | 25 -------------- 3 files changed, 96 deletions(-) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 4bcf94a05925..b548b8f1a609 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -1,6 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-csot-gc7372-678-1080x2460-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -178,61 +177,6 @@ }; }; -&dsi_csot_gc7372_678_fhd_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,bklt-dcs-2bytes-enabled; - - qcom,mdss-dsi-bl-min-level = <8>; - qcom,mdss-dsi-bl-max-level = <1023>; - qcom,mdss-dsi-bl-default-level = <512>; - qcom,mdss-brightness-max-level = <1023>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-on-check-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "csot"; - - qcom,tp_state_check_enable; - qcom,platform-need-execute-shutdown; - - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90 120>; - - //qcom,mdss-dsi-panel-hdr-enabled; - //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 - // 16770 15010 32385 7770 1830>; - //qcom,mdss-dsi-panel-peak-brightness = <4500000>; - //qcom,mdss-dsi-panel-blackness-level = <3000>; - - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0D>; - qcom,mdss-dsi-t-clk-pre = <0x32>; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 23 21 07 - 07 08 02 04 00]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi index af8757b02a89..8107798e6d3e 100755 --- a/qcom/cypfq-touchscreen.dtsi +++ b/qcom/cypfq-touchscreen.dtsi @@ -122,19 +122,4 @@ ilitek,report_gesture_key; status = "ok"; }; - - gcore@1 { - compatible = "gcore,touchscreen"; - reg = <0x1>; - spi-max-frequency = <8000000>; - panel = <&dsi_csot_gc7372_678_fhd_video>; - gcore,rst-gpio = <&tlmm 21 0x00>; - gcore,irq-gpio = <&tlmm 22 0x2001>; - pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - gcore,report_gesture_key; - status = "ok"; - }; }; diff --git a/qcom/holi-cypfq-dvt1-overlay.dts b/qcom/holi-cypfq-dvt1-overlay.dts index e2ac6906e930..a3a04f189bf0 100644 --- a/qcom/holi-cypfq-dvt1-overlay.dts +++ b/qcom/holi-cypfq-dvt1-overlay.dts @@ -22,28 +22,3 @@ qcom,board-id = <0x47 0xB100>; }; - -&dsi_csot_gc7372_678_fhd_video { - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-on-command = - [ - 39 01 00 00 00 00 04 FF 55 AA 66 - 15 01 00 00 00 00 02 FF 23 - 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 2E 2B - 15 01 00 00 00 00 02 32 01 - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 00 - 15 01 00 00 00 00 02 36 08 - 15 01 00 00 00 00 02 BA 03 - 15 01 00 00 00 00 02 69 00 - 15 01 00 00 00 00 02 35 00 - 15 01 00 00 00 00 02 53 2C - 15 01 00 00 00 00 02 55 01 - 05 01 00 00 96 00 01 11 - 05 01 00 00 32 00 01 29 - ]; - }; - }; -}; From 7253769d7f01d76327a1173c9364bece106fed9e Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 1 Oct 2021 14:22:29 +0800 Subject: [PATCH 0450/1247] arm/dts: milanf add mutil-battery parameter for cw2217 1th batt:SB18D33989 2th batt:SB18D01192 default batt is 1th. Change-Id: I732a8f284694d400e255ddd607b758aae25f95a1 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2081400 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_md50-amperex-5000mah.dtsi | 25 +++++++++++++++++++ qcom/bat_setting/CW_md50-scud-5000mah.dtsi | 25 +++++++++++++++++++ qcom/blair-nopmi-milanf-common-overlay.dtsi | 4 +++ 3 files changed, 54 insertions(+) create mode 100644 qcom/bat_setting/CW_md50-amperex-5000mah.dtsi create mode 100644 qcom/bat_setting/CW_md50-scud-5000mah.dtsi diff --git a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi new file mode 100644 index 000000000000..be9aa6c6fcea --- /dev/null +++ b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +md50-amperex-5000mah { + serialnum = "SB18D33989"; + config_profile_info = [5A 00 00 00 00 00 00 00 + A6 B1 B2 CE C1 C1 9E 5F + 36 FF FF F9 BA 92 7F 6B + 60 5D 58 94 E7 DE 9A DC + C2 CA D2 D7 D6 D3 D1 CC + CA C9 CE B8 9C 92 88 81 + 75 71 7F 91 AB 83 71 70 + 20 00 57 10 02 B0 5D 00 + 00 00 64 26 D3 51 00 00 + 00 00 00 00 00 00 00 94 ]; +}; diff --git a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi new file mode 100644 index 000000000000..4ecfc971b6f0 --- /dev/null +++ b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi @@ -0,0 +1,25 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +md50-scud-5000mah { + serialnum = "SB18D01192"; + config_profile_info = [5A 00 00 00 00 00 00 00 + A1 AE AA CB C1 C4 92 4F + 2D FF FF FF C6 9C 83 6C + 5B 56 4E 9B E5 DE 59 CC + C6 C9 D1 D5 D5 D4 D0 CE + CB C9 CC BB A0 92 8A 82 + 76 71 81 95 AB 7B 7B 75 + 20 00 57 10 02 B0 5B 00 + 00 00 64 26 D3 4F 00 00 + 00 00 00 00 00 00 00 54 ]; +}; diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index 19a8a953026e..b394747f5849 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -27,6 +27,10 @@ compatible = "cellwise,cw2217"; reg = <0x64>; status = "okay"; + + df-serialnum = "SB18D33989"; + #include "bat_setting/CW_md50-scud-5000mah.dtsi" + #include "bat_setting/CW_md50-amperex-5000mah.dtsi" }; }; From a8bddd79d3b57539df39dd09101f748be2372888 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 1 Oct 2021 16:11:10 +0800 Subject: [PATCH 0451/1247] arm/dts: discrete rt9426a battery parameter to a independent file -to support muti-battery parameter. -add 1th(SB18D33989) battery parameter Change-Id: Ia9cc221b145f2b5fb423491afcd5b9ed2f99cff1 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2081432 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-amperex-5000mah.dtsi | 69 +++++++++++++++++++ qcom/rt9426a.dtsi | 57 ++------------- 2 files changed, 73 insertions(+), 53 deletions(-) create mode 100644 qcom/bat_setting/RT_md50-amperex-5000mah.dtsi diff --git a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi new file mode 100644 index 000000000000..8bb01226413c --- /dev/null +++ b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi @@ -0,0 +1,69 @@ +/* + * Copyright (C) 2021 MediaTek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +md50-amperex-5000mah { + serialnum = "SB18D33989"; + /* add for aging cv ; 2021-01-18 */ + rt,fcc = <4895 4895 4895 4895 4895>; + rt,fg_fc_vth = <0xa2 0xa2 0xa2 0xa2 0xa2>; + rt,fg_ocv_table0 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table1 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table2 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table3 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table4 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B + 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 + 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE + 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C + 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE + 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 + 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; +}; + diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index e4155b1d5426..d20a0fdf5bdc 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -37,59 +37,10 @@ /* add for smooth soc ; 2021-01-18 */ rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ - /* add for aging cv ; 2021-01-18 */ - rt,fcc = <4895 4895 4895 4895 4895>; - rt,fg_fc_vth = <0xa2 0xa2 0xa2 0xa2 0xa2>; - rt,fg_ocv_table0 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table1 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table2 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table3 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table4 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + + df-serialnum = "SB18D33989"; + #include "bat_setting/RT_md50-amperex-5000mah.dtsi" + }; }; From cb9cd47723fafaf887838cfd518d8369565657be Mon Sep 17 00:00:00 2001 From: weimh1 Date: Sat, 9 Oct 2021 14:10:55 +0800 Subject: [PATCH 0452/1247] cypfq/sensor: sar sensor params update 1.update sx937x params for pvt 2.holi-pm6125-moto-common-overlay.dtsi for common Change-Id: I54562d8fa077e4953709ad959e7e8bd76b9743d8 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2086376 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-pm6125-moto-common-overlay.dtsi | 34 +++++++++++------------ 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 816da99a7f60..005c04313cb6 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -154,8 +154,8 @@ 0x8098 0xC86E 0x80B8 0x7F54 0x80D8 0x4E3C - 0x80F8 0x954E - 0x8118 0x402D + 0x80F8 0x644E + 0x8118 0x2D28 0x8138 0xC8 0x8158 0xC8 0x8178 0xC8 @@ -171,14 +171,14 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x2AD67000 - 0x80B0 0x2AD67000 - 0x80D0 0x28D67000 + 0x8090 0x2AD67100 + 0x80B0 0x2AD67100 + 0x80D0 0x649C7100 0x80F0 0x50B07100 - 0x8110 0x2AD67000 - 0x8130 0x2AD66000 - 0x8150 0x2AD66000 - 0x8170 0x2AD66000 + 0x8110 0x2AD67100 + 0x8130 0x2AD66100 + 0x8150 0x2AD66100 + 0x8170 0x2AD66100 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 @@ -187,14 +187,14 @@ 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 - 0x808C 0x60200000 - 0x80AC 0x60200000 - 0x80CC 0x60200000 - 0x80EC 0x60200000 - 0x810C 0x60200000 - 0x812C 0x60200000 - 0x814C 0x60200000 - 0x816C 0x60200000 + 0x808C 0x60200010 + 0x80AC 0x60200010 + 0x80CC 0x60200010 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x71310010 + 0x814C 0x60200010 + 0x816C 0x60200010 0x8024 0x7F7F 0x4280 0xe >; From b94ae8b3573d498f79ff1cb2483b0bf7c786c504 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Sat, 9 Oct 2021 11:24:11 +0800 Subject: [PATCH 0453/1247] arm/dts: add battery fcc_design info add battery fcc_design info to charge policy. Change-Id: I7f042825f53f9828b3cbdacac0c908ff6e08f627 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2086308 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_md50-amperex-5000mah.dtsi | 1 + qcom/bat_setting/CW_md50-scud-5000mah.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi index be9aa6c6fcea..e31fdb606254 100644 --- a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi @@ -12,6 +12,7 @@ */ md50-amperex-5000mah { serialnum = "SB18D33989"; + fcc_design = <4700>; config_profile_info = [5A 00 00 00 00 00 00 00 A6 B1 B2 CE C1 C1 9E 5F 36 FF FF F9 BA 92 7F 6B diff --git a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi index 4ecfc971b6f0..3c2ba5088fa5 100644 --- a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi @@ -12,6 +12,7 @@ */ md50-scud-5000mah { serialnum = "SB18D01192"; + fcc_design = <4700>; config_profile_info = [5A 00 00 00 00 00 00 00 A1 AE AA CB C1 C4 92 4F 2D FF FF FF C6 9C 83 6C From 9c0b4c33df4311d8f82ebd5aeea94e8ba7aaa3e8 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 28 Sep 2021 19:34:13 +0800 Subject: [PATCH 0454/1247] arm/dts: config mmi discrete charger dtsi config mmi discrete charger and mmi charger for discrete charging solution bring up Change-Id: If7eb65f13c8ea710a1c663ec161bae5e12fc11bc Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2078663 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key Reviewed-by: Yuecai Liu --- qcom/discrete_charging.dtsi | 38 +++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index fc0885b0eb08..505328604503 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -144,3 +144,41 @@ }; }; }; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <100000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,df-serialnum = "SB18D33989"; + mmi,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 2500 0>; + mmi,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + From aa2d5d98220ce6a312d0d1cc6d2da4231221c460 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Sat, 9 Oct 2021 10:48:45 +0800 Subject: [PATCH 0455/1247] arm64/dt: milanf: add nfc device node Add nfc device node for milanf 5G St21nfc was used for it. Change-Id: I28a721a1140f4188823c102e56ab2c6f7a4a4622 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2086277 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 33 ++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 27f167dbc705..ce34819999b5 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -71,13 +71,12 @@ nfc_enable_active: nfc_enable_active { mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio48"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -85,13 +84,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio48"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -232,6 +230,29 @@ }; }; +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; From 8d0a044b4e2f8723aa43bfb988709e1ddaddcabe Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 11 Oct 2021 10:10:35 +0800 Subject: [PATCH 0456/1247] arm/dts: cypfr add cw2217 battery parameter SB18C77591 -> ATL 1th SB18C77226 ->SCUD 2th apply above two battery parameter from CellWise Change-Id: I21d0dbe4e7ce2501581f2b1c225991425fdc7fcd Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2086797 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 26 ++++++++++++++++++++++ qcom/bat_setting/CW_jd50-scud-5000mah.dtsi | 26 ++++++++++++++++++++++ qcom/blair-cypfr-common-overlay.dtsi | 3 +++ 3 files changed, 55 insertions(+) create mode 100644 qcom/bat_setting/CW_jd50-atl-5000mah.dtsi create mode 100644 qcom/bat_setting/CW_jd50-scud-5000mah.dtsi diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi new file mode 100644 index 000000000000..4e5b0a16bea3 --- /dev/null +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +jd50-atl-5000mah { + serialnum = "SB18C77591"; + fcc_design = <4850>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A0 B2 BF CB C3 C2 96 59 + 2F FF FF DB A6 8D 74 60 + 55 52 4D 8D FD DC 02 CF + CF D2 D1 D1 D0 CD C8 CD + C1 C0 C5 AD 95 8A 81 74 + 62 62 73 8F A7 87 5F 62 + 20 00 57 10 02 B0 76 00 + 00 00 64 28 D3 7C 00 00 + 00 00 00 00 00 00 00 44 ]; +}; diff --git a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi new file mode 100644 index 000000000000..cb39fea22cbb --- /dev/null +++ b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +jd50-scud-5000mah { + serialnum = "SB18C77226"; + fcc_design = <4850>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A5 B1 B5 CE C3 C2 97 58 + 31 FF FF E3 92 80 63 58 + 4F 4D 4A 86 F0 DC 0D D2 + D2 D1 D1 D1 CF CC BC DC + B0 C3 C8 AA 96 89 80 71 + 68 64 73 8F A3 86 65 60 + 20 00 57 10 02 B0 74 00 + 00 00 64 24 D3 79 00 00 + 00 00 00 00 00 00 00 5F ]; +}; diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 1ca797f42878..40deae1b69ca 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -451,6 +451,9 @@ reg = <0x64>; status = "okay"; }; + df-serialnum = "SB18C77591"; + #include "bat_setting/CW_jd50-scud-5000mah.dtsi" + #include "bat_setting/CW_jd50-atl-5000mah.dtsi" }; &qupv3_se10_i2c { From bf030abe4249fb663b7ef07135a906899d0cd0f8 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 11 Oct 2021 15:32:07 +0800 Subject: [PATCH 0457/1247] arm/dts: fix build error build fail. muti-battery parameter should add into cw2217 Change-Id: Idc4ff79dd55e249729e2e78116b0fd908cd1ecc8 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2087076 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 18 +++++++++--------- qcom/bat_setting/CW_jd50-scud-5000mah.dtsi | 18 +++++++++--------- qcom/blair-cypfr-common-overlay.dtsi | 8 +++++--- 3 files changed, 23 insertions(+), 21 deletions(-) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi index 4e5b0a16bea3..7781533401ec 100644 --- a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi @@ -14,13 +14,13 @@ jd50-atl-5000mah { serialnum = "SB18C77591"; fcc_design = <4850>; config_profile_info = [5A 00 00 00 00 00 00 00 - A0 B2 BF CB C3 C2 96 59 - 2F FF FF DB A6 8D 74 60 - 55 52 4D 8D FD DC 02 CF - CF D2 D1 D1 D0 CD C8 CD - C1 C0 C5 AD 95 8A 81 74 - 62 62 73 8F A7 87 5F 62 - 20 00 57 10 02 B0 76 00 - 00 00 64 28 D3 7C 00 00 - 00 00 00 00 00 00 00 44 ]; + A0 B2 BF CB C3 C2 96 59 + 2F FF FF DB A6 8D 74 60 + 55 52 4D 8D FD DC 02 CF + CF D2 D1 D1 D0 CD C8 CD + C1 C0 C5 AD 95 8A 81 74 + 62 62 73 8F A7 87 5F 62 + 20 00 57 10 02 B0 76 00 + 00 00 64 28 D3 7C 00 00 + 00 00 00 00 00 00 00 44 ]; }; diff --git a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi index cb39fea22cbb..3695aed76735 100644 --- a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi @@ -14,13 +14,13 @@ jd50-scud-5000mah { serialnum = "SB18C77226"; fcc_design = <4850>; config_profile_info = [5A 00 00 00 00 00 00 00 - A5 B1 B5 CE C3 C2 97 58 - 31 FF FF E3 92 80 63 58 - 4F 4D 4A 86 F0 DC 0D D2 - D2 D1 D1 D1 CF CC BC DC - B0 C3 C8 AA 96 89 80 71 - 68 64 73 8F A3 86 65 60 - 20 00 57 10 02 B0 74 00 - 00 00 64 24 D3 79 00 00 - 00 00 00 00 00 00 00 5F ]; + A5 B1 B5 CE C3 C2 97 58 + 31 FF FF E3 92 80 63 58 + 4F 4D 4A 86 F0 DC 0D D2 + D2 D1 D1 D1 CF CC BC DC + B0 C3 C8 AA 96 89 80 71 + 68 64 73 8F A3 86 65 60 + 20 00 57 10 02 B0 74 00 + 00 00 64 24 D3 79 00 00 + 00 00 00 00 00 00 00 5F ]; }; diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 40deae1b69ca..9dd93a49613c 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -450,10 +450,12 @@ compatible = "cellwise,cw2217"; reg = <0x64>; status = "okay"; + + df-serialnum = "SB18C77591"; + #include "bat_setting/CW_jd50-scud-5000mah.dtsi" + #include "bat_setting/CW_jd50-atl-5000mah.dtsi" }; - df-serialnum = "SB18C77591"; - #include "bat_setting/CW_jd50-scud-5000mah.dtsi" - #include "bat_setting/CW_jd50-atl-5000mah.dtsi" + }; &qupv3_se10_i2c { From 248c1acf99a4c39e2c17f2b67bbc91496227d66e Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 11 Oct 2021 11:13:21 +0800 Subject: [PATCH 0458/1247] milanf: arm64/dts: Fixed touch input is inaccurate issue - Now milan is using 1080*2460 but current configuration does not match, therefore, change the resolution to the appropriate value. Change-Id: I19ab49aa0c245b1140ac6e78507f6d3c3fdef4c4 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2086854 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index 3a7c7346aa35..b384e8cb0171 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -79,7 +79,7 @@ spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ novatek,reset-gpio = <&tlmm 21 0x00>; novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2400>; + novatek,def-max-resolution = <1080 2460>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; From 9e7aa812997d6efcbd90478ede9c27efe1eeca74 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Wed, 29 Sep 2021 10:36:32 +0800 Subject: [PATCH 0459/1247] Thermal: Enable NTC on PMR735A The NTC camera_therm is on PMR735A which should include ADC and IIO configuration. Change-Id: I6ff0d618c1570d6ddcc5e69dc08f6fceb2176a28 Reviewed-on: https://gerrit.mot.com/2079164 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 42 ++++++++++++++++++++++++---- qcom/holi-pmic-overlay-pm6125.dtsi | 2 +- 2 files changed, 37 insertions(+), 7 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 9dd93a49613c..c3320159a163 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -224,14 +224,44 @@ }; }; -&pmr735a_tz { - io-channels = <&pmk8350_vadc PMR735A_ADC7_DIE_TEMP>; - io-channel-names = "thermal"; - +&pmr735a_gpios { camera_therm { - reg = ; + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; }; }; @@ -336,7 +366,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmr735a_tz PMR735A_ADC7_DIE_TEMP>; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { diff --git a/qcom/holi-pmic-overlay-pm6125.dtsi b/qcom/holi-pmic-overlay-pm6125.dtsi index b4e6769ace5b..22636f2c3ebc 100644 --- a/qcom/holi-pmic-overlay-pm6125.dtsi +++ b/qcom/holi-pmic-overlay-pm6125.dtsi @@ -21,7 +21,7 @@ }; &spmi_bus { - qcom,pmr735a@4 { + pmr735a_4: qcom,pmr735a@4 { /* Example configuration to enable PMR735A VADC in standalone mode */ pmr735a_vadc: vadc@3600 { compatible = "qcom,spmi-adc7-sw-calib"; From ad90f613cea6ffc0c4a6bf6e2ea293fc13d58731 Mon Sep 17 00:00:00 2001 From: liaoxl Date: Mon, 11 Oct 2021 14:54:30 +0800 Subject: [PATCH 0460/1247] arm64/dts: cypfr: enable FM ELNA control module Per tinno HW team req, enable this feature to control FM ELNA module, fix FM signal loss issue of HW design. Change-Id: Iba10b49f416d2e4ae98af3b81d3bd8cc93045703 Reviewed-on: https://gerrit.mot.com/2087029 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Bin Liu Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + qcom/blair-cypfr-fmr-overlay.dtsi | 48 ++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/blair-cypfr-fmr-overlay.dtsi diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index c3320159a163..99593bda5cb2 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -25,6 +25,7 @@ #include "rt9426a.dtsi" #include "discrete_charging.dtsi" #include "sgm7220.dtsi" +#include "blair-cypfr-fmr-overlay.dtsi" &usb0 { qcom,force-adb-enable; diff --git a/qcom/blair-cypfr-fmr-overlay.dtsi b/qcom/blair-cypfr-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-cypfr-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; From 3af7878e8746541b98bd999a31d1ff993632f350 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 12 Oct 2021 11:44:16 +0800 Subject: [PATCH 0461/1247] corfur/spm: watchdog on GKI This is a patch(CR 3052079) from qcom: 1.enable deep mem_sleep mode when suspend 2.blari.dtsi Change-Id: I11cb7c4b38de17dbf3177036b7561bce768c9c40 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2087836 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index 8956d7e3b0b6..6c951ebcb552 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -141,6 +141,7 @@ device_type = "cpu"; compatible = "qcom,kryo"; reg = <0x0 0x400>; + cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; enable-method = "psci"; cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; @@ -159,6 +160,7 @@ device_type = "cpu"; compatible = "qcom,kryo"; reg = <0x0 0x500>; + cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; enable-method = "psci"; cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; From c1a1e7c927ceb1a01a995b603423d86d8ff03ab0 Mon Sep 17 00:00:00 2001 From: gongsc1 Date: Mon, 6 Sep 2021 10:49:24 +0800 Subject: [PATCH 0462/1247] arm/dts: add dt config for mmi_chg_tcmd. add dt config for mmi_chg_tcmd. mmi_chg_tcmd is for factory test charger/usb Change-Id: I6e63b5f7c44e5bd6267ddfb32a6bb0b0d10c7279 Reviewed-on: https://gerrit.mot.com/2059914 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-moto-base.dts | 1 + qcom/discrete_charging.dtsi | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/blair-moto-base.dts b/qcom/blair-moto-base.dts index d58fd6da010b..d8af97ec2c7f 100644 --- a/qcom/blair-moto-base.dts +++ b/qcom/blair-moto-base.dts @@ -26,6 +26,7 @@ mot_batterydata: qcom,battery-data { }; utags: utags { }; hw: hw { }; + mmi_chg_tcmd: mmi_chg_tcmd { }; }; &reserved_memory { diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 505328604503..dd7fbb342b19 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -9,7 +9,10 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ - +&mmi_chg_tcmd { + compatible = "mmi,mmi-chg-tcmd"; + status = "okay"; +}; &pm6125_vadc { gpio6_div3{ From b0b7633ba821115716605a5ada39cadd081ac9e2 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Thu, 14 Oct 2021 15:35:26 +0800 Subject: [PATCH 0463/1247] arm64/dt: cypfr: config new vibrator node Config new device node because we use new HW design and new driver Change-Id: I9939d743a2f7079f48d0d6f0d622757e367d51bf Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2089624 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Wanlong Zhou Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 99593bda5cb2..5d125df9f63e 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -610,13 +610,11 @@ regulator-max-microvolt = <3544000>; }; - ldo_vib { - compatible = "moto,vibrator-ldo"; - moto,vib-ldo-gpio = <&tlmm 100 0x0>; - status = "ok"; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&vib_3v_active>; - pinctrl-1 = <&vib_3v_suspend>; + ext_vib { + compatible = "ext-vibrator-ldo"; + vib_vcc-supply = <&L21A>; + vib,vcc-voltage = <3000000 3000000>; + vib,vcc-current = <300000>; }; }; From 93081f32ca84bfe9e3b9259f4b08d81b0c1a7cba Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 14 Oct 2021 16:20:26 +0800 Subject: [PATCH 0464/1247] arm/dts: config max charging current 2.9A As HW require, change max charging current to 2.9A for avoid max real charging current more than 3.03A Change-Id: I172a42529bf42b885c83acba72a665f80e23dcd0 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2089663 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-cypfq-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-cypfq-common-overlay.dtsi b/qcom/holi-cypfq-common-overlay.dtsi index 18f5ec1de1c9..86055b0cbda9 100644 --- a/qcom/holi-cypfq-common-overlay.dtsi +++ b/qcom/holi-cypfq-common-overlay.dtsi @@ -530,9 +530,9 @@ &pm7250b_charger { qcom,otg-cl-ua = <1500000>; qcom,dcp-curr-max = <2000000>; - qcom,fcc-max-ua = <3000000>; + qcom,fcc-max-ua = <2900000>; qcom,fv-max-uv = <4400000>; - qcom,thermal-mitigation = <3000000 2500000 + qcom,thermal-mitigation = <2900000 2600000 2000000 1500000 1200000 900000 600000 300000>; From 78a9d92682ea5f7920f68a1f731568f9371b3352 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 15 Oct 2021 12:06:37 +0800 Subject: [PATCH 0465/1247] cypfr/sensor: sar sensor params 1.update params about channels mapping 2.blari-cypfr-common-overlay.dtsi Change-Id: I07c18d3cbc81d3a2fc629ab42566bea5f0382e1a Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2090452 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 90 ++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 5d125df9f63e..275aa8c43731 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -653,4 +653,94 @@ }; }; +&sx937x { + /*use PH5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x445E /*AFE_PARAM_PH0*/ + 0x8034 0x445E /*AFE_PARAM_PH1*/ + 0x8040 0x445E /*AFE_PARAM_PH2*/ + 0x804C 0x445E /*AFE_PARAM_PH3*/ + 0x8058 0x445E /*AFE_PARAM_PH4*/ + 0x8064 0x445E /*AFE_PARAM_PH5*/ + 0x8070 0x445E /*AFE_PARAM_PH6*/ + 0x807C 0x445E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT8, Back center*/ + 0x8048 0xFFF97F /*REG_AFEPH_PH2, CS2, ANT1, Bottom Right*/ + 0x8054 0xFFD9FF /*REG_AFEPH_PH3, CS4, ANT4, Top Right*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ + 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0xC86E + 0x80B8 0x7F54 + 0x80D8 0x4E3C + 0x80F8 0x644E + 0x8118 0x2D28 + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x1C1C00E1 + 0x80C0 0x171700E2 + 0x80E0 0x1F1F00E1 + 0x8100 0x0 + 0x8120 0x1C1C00E2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x2AD67100 + 0x80B0 0x2AD67100 + 0x80D0 0x649C7100 + 0x80F0 0x50B07100 + 0x8110 0x2AD67100 + 0x8130 0x2AD66100 + 0x8150 0x2AD66100 + 0x8170 0x2AD66100 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200010 + 0x80AC 0x60200010 + 0x80CC 0x60200010 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x71310010 + 0x814C 0x60200010 + 0x816C 0x60200010 + 0x8024 0x7F7F + 0x4280 0xe + >; + + status = "ok"; +}; + From 7c9a8c98b2c0bc71d295a249ada20e1bc3483905 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 14 Oct 2021 11:10:59 +0800 Subject: [PATCH 0466/1247] dts/cypfq: bringup the new 2nd panel CSOT + ili7807s. The DDIC is the same as the 1st panel. Change-Id: Ia3876bd544a3a43ecd40b4fb8071b70634920352 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2089435 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/cypfq-display.dtsi | 52 +++++++++++ ...mot-csot-ili7807s-678-1080x2460-video.dtsi | 90 +++++++++++++++++++ 2 files changed, 142 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index b548b8f1a609..998dff0c5eed 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -177,6 +178,57 @@ }; }; +&dsi_csot_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_cypfq>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..5cb0386c4266 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi @@ -0,0 +1,90 @@ +&mdss_mdp { + dsi_csot_ili7807s_678_fhd_video: qcom,mdss_dsi_csot_ili7807s_678_fhd_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_csot_ili7807s_fhd_678"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xfff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 12>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <24>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <12>; + qcom,mdss-dsi-v-front-porch = <2565>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 01 00 00 00 00 04 FF 78 07 06 + 15 01 00 00 00 00 02 3E E2 + 15 01 00 00 00 00 02 80 00 + 39 01 00 00 00 00 04 FF 78 07 08 + 39 01 00 00 00 00 03 FD 00 9F + 15 01 00 00 00 00 02 E1 D7 + 39 01 00 00 00 00 03 FD 00 00 + 39 01 00 00 00 00 04 FF 78 07 00 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 32 00 01 28 + 05 01 00 00 96 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_hs_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <10>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + + }; +}; From 1bf0cea8e66c0ac0b0a057c824a78b89d4f758d1 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 14 Oct 2021 13:46:43 +0800 Subject: [PATCH 0467/1247] dts: cypfq/csot_panel: fix the panel issue caused by otp code CABC and DSC config are not incluled by otp code.And panels have been sent to factory. So Ap will download these commands to fix these issue. For the next version, these command will be included by otp.then we revert the change. Change-Id: I700146341cf3f755f97dfede0e5d7da36eb0460e Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2089522 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi index 5cb0386c4266..f07146181ca9 100644 --- a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi @@ -65,6 +65,14 @@ 39 01 00 00 00 00 04 FF 78 07 00 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 + 39 01 00 00 00 00 04 FF 78 07 03 + 15 01 00 00 00 00 02 83 C8 + 15 01 00 00 00 00 02 84 04 + 39 01 00 00 00 00 04 FF 78 07 06 + 15 01 00 00 00 00 02 08 20 + 39 01 00 00 00 00 04 FF 78 07 17 + 39 01 00 00 00 00 86 20 00 00 00 00 00 11 00 00 89 30 80 09 9c 04 38 00 0a 02 1c 02 1c 02 00 02 0e 00 20 00 ed 00 07 00 0c 0a ab 0a 2c 18 00 10 f0 03 0c 20 00 06 0b 0b 33 0e 1c 2a 38 46 54 62 69 70 77 79 7b 7d 7e 01 02 01 00 09 40 09 be 19 fc 19 fa 19 f8 1a 38 1a 78 1a b6 2a f6 2b 34 2b 74 3b 74 6b f4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 01 00 00 00 00 04 FF 78 07 00 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 ]; From feb21069911a46608c55b4f1c03be2646ab2c942 Mon Sep 17 00:00:00 2001 From: Yuecai Liu Date: Fri, 15 Oct 2021 01:41:01 -0500 Subject: [PATCH 0468/1247] Revert "(CR) arm/dts: add dt config for mmi_chg_tcmd." Don't use mmi_chg_tcmd.ko complete the tcmd testcase in discrete policy Mot-CRs-fixed: (CR) This reverts commit cac7e9e3edc6ff9da84331702ff2b114f4aac6d3. Change-Id: Ia07ee0458165cb4287f2600ccf8e4b76772f44ee Reviewed-on: https://gerrit.mot.com/2090609 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-moto-base.dts | 1 - qcom/discrete_charging.dtsi | 5 +---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/qcom/blair-moto-base.dts b/qcom/blair-moto-base.dts index d8af97ec2c7f..d58fd6da010b 100644 --- a/qcom/blair-moto-base.dts +++ b/qcom/blair-moto-base.dts @@ -26,7 +26,6 @@ mot_batterydata: qcom,battery-data { }; utags: utags { }; hw: hw { }; - mmi_chg_tcmd: mmi_chg_tcmd { }; }; &reserved_memory { diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index dd7fbb342b19..505328604503 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -9,10 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -&mmi_chg_tcmd { - compatible = "mmi,mmi-chg-tcmd"; - status = "okay"; -}; + &pm6125_vadc { gpio6_div3{ From ab2dea518576819013c4222555510a9b65528c4f Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Mon, 18 Oct 2021 14:25:09 +0800 Subject: [PATCH 0469/1247] arm64/dt: Add Milan 5G DVT1 dts configuration According to the change of hardware design, update the device tree for DVT1 Change-Id: I53efdd64a28a01c5481a31fa7fb524bc8aa51f7a Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2091805 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/blair-milanf-dvt1-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/blair-milanf-dvt1-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index b2b1f5f194e3..b7d508d389f8 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -84,10 +84,12 @@ blair-cypfr-evt-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_MILANF_DTB) += \ blair-milanf-evb1-overlay.dtbo \ - blair-milanf-evb2-overlay.dtbo + blair-milanf-evb2-overlay.dtbo \ + blair-milanf-dvt1-overlay.dtbo blair-milanf-evb1-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb +blair-milanf-dvt1-overlay.dtbo-base := blair-moto-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts new file mode 100644 index 000000000000..8614bfdb2301 --- /dev/null +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-milanf-common-overlay.dtsi" + +/ { + model = "milanf"; + compatible = "qcom,blair-milanf", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xB100>; +}; + From 2011689fc9c81036a4a52e46659ac9425b854500 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Tue, 19 Oct 2021 16:58:10 +0800 Subject: [PATCH 0470/1247] arm64/dt: milanf: config hw change for DVT1 Fps LDO power controll gpio chagne from GPIO38 to GPIO6 on DVT1A HW. config it as HW design Change-Id: I86262b0da5e5c7e871140749f2f32f7013b2d023 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2093279 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt1-overlay.dts | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts index 8614bfdb2301..586de4886784 100644 --- a/qcom/blair-milanf-dvt1-overlay.dts +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -22,3 +22,32 @@ qcom,board-id = <0x49 0xB100>; }; +&tlmm { + ets_vcc_high { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + ets_vcc_low { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; +}; + +&et528 { + egistec,gpio_vcc_en = <&tlmm 6 0x0>; +}; + +&silead { + avdd-gpios = <&tlmm 6 0x0>; +}; From c58b999f3bb2f475547251b4f926af5081d53cc5 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Tue, 19 Oct 2021 11:27:18 +0800 Subject: [PATCH 0471/1247] arm64/dt: initial rhodep dts files initial dts files cloned from milanf Change-Id: I1ede668cc2b0f1f557c3f6d2c81ed0f8678d3f62 Reviewed-on: https://gerrit.mot.com/2092928 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: gaoyx9 Submit-Approved: gaoyx9 Tested-by: gaoyx9 Reviewed-by: Huosheng Liao --- qcom/Makefile | 10 + qcom/blair-nopmi-rhodep-common-overlay.dtsi | 36 ++ qcom/blair-pm6125-rhodep-common-overlay.dtsi | 21 + qcom/blair-rhodep-common-overlay.dtsi | 450 +++++++++++++++++++ qcom/blair-rhodep-dvt1-overlay.dts | 24 + qcom/blair-rhodep-evb1-overlay.dts | 24 + qcom/blair-rhodep-evb2-overlay.dts | 24 + qcom/rhodep-display.dtsi | 232 ++++++++++ qcom/rhodep-fps-overlay.dtsi | 164 +++++++ qcom/rhodep-sensors.dtsi | 51 +++ qcom/rhodep-touchscreen.dtsi | 91 ++++ qcom/rhodep-wl286xx.dtsi | 70 +++ 12 files changed, 1197 insertions(+) create mode 100644 qcom/blair-nopmi-rhodep-common-overlay.dtsi create mode 100644 qcom/blair-pm6125-rhodep-common-overlay.dtsi create mode 100644 qcom/blair-rhodep-common-overlay.dtsi create mode 100644 qcom/blair-rhodep-dvt1-overlay.dts create mode 100644 qcom/blair-rhodep-evb1-overlay.dts create mode 100644 qcom/blair-rhodep-evb2-overlay.dts create mode 100644 qcom/rhodep-display.dtsi create mode 100644 qcom/rhodep-fps-overlay.dtsi create mode 100755 qcom/rhodep-sensors.dtsi create mode 100755 qcom/rhodep-touchscreen.dtsi create mode 100644 qcom/rhodep-wl286xx.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index b7d508d389f8..8f6252b9e453 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -91,6 +91,16 @@ blair-milanf-evb1-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-dvt1-overlay.dtbo-base := blair-moto-base.dtb +dtbo-$(CONFIG_RHODEP_DTB) += \ + blair-rhodep-evb1-overlay.dtbo \ + blair-rhodep-evb2-overlay.dtbo \ + blair-rhodep-dvt1-overlay.dtbo + +blair-rhodep-evb1-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evb2-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-base.dtb + + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/blair-nopmi-rhodep-common-overlay.dtsi b/qcom/blair-nopmi-rhodep-common-overlay.dtsi new file mode 100644 index 000000000000..375110d2af50 --- /dev/null +++ b/qcom/blair-nopmi-rhodep-common-overlay.dtsi @@ -0,0 +1,36 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-rhodep-common-overlay.dtsi" +#include "blair-nopmi-moto-common-overlay.dtsi" +#include "tcpc_config.dtsi" +#include "sgm7220.dtsi" +#include "rt9426a.dtsi" +#include "discrete_charging.dtsi" + +&usb0 { + qcom,force-adb-enable; +}; + + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D33989"; + #include "bat_setting/CW_md50-scud-5000mah.dtsi" + #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + }; +}; + diff --git a/qcom/blair-pm6125-rhodep-common-overlay.dtsi b/qcom/blair-pm6125-rhodep-common-overlay.dtsi new file mode 100644 index 000000000000..e0bc0a29bae0 --- /dev/null +++ b/qcom/blair-pm6125-rhodep-common-overlay.dtsi @@ -0,0 +1,21 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-rhodep-common-overlay.dtsi" +#include "blair-pm6125-moto-common-overlay.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi new file mode 100644 index 000000000000..458d113c8c74 --- /dev/null +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -0,0 +1,450 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "rhodep-fps-overlay.dtsi" +#include "rhodep-display.dtsi" +#include "rhodep-touchscreen.dtsi" +#include "rhodep-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" +#include "rhodep-wl286xx.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; +}; + diff --git a/qcom/blair-rhodep-dvt1-overlay.dts b/qcom/blair-rhodep-dvt1-overlay.dts new file mode 100644 index 000000000000..888b505195b2 --- /dev/null +++ b/qcom/blair-rhodep-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xB100>; +}; + diff --git a/qcom/blair-rhodep-evb1-overlay.dts b/qcom/blair-rhodep-evb1-overlay.dts new file mode 100644 index 000000000000..5a2b1da5c7ef --- /dev/null +++ b/qcom/blair-rhodep-evb1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA100>; +}; + diff --git a/qcom/blair-rhodep-evb2-overlay.dts b/qcom/blair-rhodep-evb2-overlay.dts new file mode 100644 index 000000000000..a034d114bb21 --- /dev/null +++ b/qcom/blair-rhodep-evb2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA200>; +}; + diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi new file mode 100644 index 000000000000..f0fe93701d03 --- /dev/null +++ b/qcom/rhodep-display.dtsi @@ -0,0 +1,232 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + + +&tlmm { + lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { + mux { + pins = "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio86"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsp_en_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 86 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsn_en_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-post-on-sleep = <10>; + }; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vddio-supply = <&L13A>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + + qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; +}; + +&dsi_tm_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-clockrate = <900000000>; + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + +&qupv3_se10_i2c { + status = "ok"; + + lcd_backlight@36 { + compatible = "awinic,aw99703-bl","ti,lm3697"; + reg = <0x36>; + + /* Awinic, aw99703 */ + aw99703,hwen-gpio = <&tlmm 13 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 31V */ + aw99703,ocp-level = <1>; /* 1.8A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x09>; /* 256ms */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <0x07>; /* 512ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <1>; /* linear */ + aw99703,work-mode = <1>; /* backlight */ + + /* TI, lm3697*/ + enable-gpios = <&tlmm 13 0>; + backlight { + compatible = "ti,lm3697-backlight"; + lcd { + led-sources = <0 1 2>; + ramp-up-msec = <200>; + ramp-down-msec = <200>; + pwm-period = <0>; + current-mode = <2>; /*2: 25mA*/ + boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/ + boost-freq = <1>; /*0:500Khz 1:1Mhz*/ + default-brightness-level = <255>; + }; + }; + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/rhodep-fps-overlay.dtsi b/qcom/rhodep-fps-overlay.dtsi new file mode 100644 index 000000000000..364d5a440a08 --- /dev/null +++ b/qcom/rhodep-fps-overlay.dtsi @@ -0,0 +1,164 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + silead: silead { + compatible = "sil,silead_fp"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + avdd-gpios = <&tlmm 38 0x0>; + irq-gpios = <&tlmm 17 0x0>; + rst-gpios = <&tlmm 18 0x0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/rhodep-sensors.dtsi b/qcom/rhodep-sensors.dtsi new file mode 100755 index 000000000000..f3426b6eb2ab --- /dev/null +++ b/qcom/rhodep-sensors.dtsi @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi new file mode 100755 index 000000000000..b384e8cb0171 --- /dev/null +++ b/qcom/rhodep-touchscreen.dtsi @@ -0,0 +1,91 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2460>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + panel = <&dsi_tm_nt36672e_678_fhdp_120_video>; + status = "ok"; + }; + +}; diff --git a/qcom/rhodep-wl286xx.dtsi b/qcom/rhodep-wl286xx.dtsi new file mode 100644 index 000000000000..4327781f6b12 --- /dev/null +++ b/qcom/rhodep-wl286xx.dtsi @@ -0,0 +1,70 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From 1586aa21b5fbcbc8ad33ed0b28538af3699590f2 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 19 Oct 2021 18:17:56 +0800 Subject: [PATCH 0472/1247] arm/dts: milanf update 1th battery parameter milanf update 1th battery parameter. fg_extreg_table is different,so move it to battery's dts file Change-Id: I43e511e6ac6354dab7fee0e05547f52a644e50d9 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2093359 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-amperex-5000mah.dtsi | 18 ++++++++++++++++-- qcom/rt9426a.dtsi | 16 +--------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi index 8bb01226413c..b522cf0641b3 100644 --- a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi @@ -12,9 +12,23 @@ */ md50-amperex-5000mah { serialnum = "SB18D33989"; - /* add for aging cv ; 2021-01-18 */ + /* add for aging cv */ rt,fcc = <4895 4895 4895 4895 4895>; - rt,fg_fc_vth = <0xa2 0xa2 0xa2 0xa2 0xa2>; + rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; + rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 + 80 34 00 00 FB 3E 00 20 FF 08 1D 32 12 05 5A 5A + 00 82 00 02 00 02 00 40 00 40 1F 13 1F 13 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 + 15 0E 48 44 9E 4C 05 41 19 05 8D 12 23 32 1F 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 04 04 04 00 00 00 00 02 02 02 00 00 FD + FC FA FA FA F9 F9 EE E5 9B 9B 9B EB EB C0 AD 00 + 76 02 E0 48 14 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; rt,fg_ocv_table0 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index d20a0fdf5bdc..793c9f8821ad 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -9,7 +9,7 @@ interrupts-extended = <&tlmm 8 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; - rt,dtsi_version = <01 910>; + rt,dtsi_version = <01 1012>; rt,para_version = <0x0001>; rt,battery_type = <4352>; rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV @@ -20,20 +20,6 @@ rt,soc_offset_data = <0 250 0 1000 250 0>; rt,rs_ic_setting = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */ rt,rs_schematic = <1000>; /* unit:0.01mR ; 1000x0.01 = 10.0mR */ - rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 80 00 00 - 80 34 00 00 FB 3E 00 20 7F 08 1D 32 12 05 1E 50 - 00 82 00 02 00 02 00 40 00 40 1F 13 1F 13 04 24 - 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 - 15 0E 48 44 A2 4B 05 41 19 05 8D 12 23 32 1F 00 - 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F - 20 16 03 04 04 04 00 00 00 00 02 02 02 00 00 FD - FC FA FA FA F9 F9 EE E5 9B 9B 9B EB EB C0 AD 00 - 76 02 E0 48 14 09 00 00 00 00 00 00 00 00 37 73 - 2D 19 05 EC 00 00 B9 36 96 33 0F 07 00 00 0B A9 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; /* add for smooth soc ; 2021-01-18 */ rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ From 24b7675d07c527ed9ad5319457e491f00085993d Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 18 Oct 2021 10:23:41 +0800 Subject: [PATCH 0473/1247] Cypfq: arm64/dts: Bringup touch CSOT ILI7807S - Add panel name dsi_csot_ili7807s_678_fhd_video for compatible with tianma panel. Change-Id: I89adb2f37e1f255bb313b5e1a7b363199d897f86 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2091636 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/cypfq-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/cypfq-touchscreen.dtsi b/qcom/cypfq-touchscreen.dtsi index 8107798e6d3e..bfe7714dd000 100755 --- a/qcom/cypfq-touchscreen.dtsi +++ b/qcom/cypfq-touchscreen.dtsi @@ -113,7 +113,7 @@ spi-max-frequency = <6000000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2008>; - panel = <&dsi_tm_ili7807s_678_fhd_video>; + panel = <&dsi_tm_ili7807s_678_fhd_video &dsi_csot_ili7807s_678_fhd_video>; touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2008>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; From 9107b35c93e8e37af3fbcb6c5ae8509ee61d1061 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 19 Oct 2021 19:30:53 +0800 Subject: [PATCH 0474/1247] arm/dts: milanf rt9426a fg add 2th battery parameter 2th battery serialnum:SB18D01192 md50_scud_5000mah Change-Id: I3bdb649a831533920b3d44dbf481e825d5ab13df Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2093414 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-scud-5000mah.dtsi | 83 ++++++++++++++++++++++ qcom/rt9426a.dtsi | 1 + 2 files changed, 84 insertions(+) create mode 100644 qcom/bat_setting/RT_md50-scud-5000mah.dtsi diff --git a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi new file mode 100644 index 000000000000..e08fd2f38610 --- /dev/null +++ b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi @@ -0,0 +1,83 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +md50-scud-5000mah { + serialnum = "SB18D01192"; + /* add for aging cv */ + rt,fcc = <4815 4815 4815 4815 4815>; + rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; + rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 + 80 34 00 00 FB 3E 00 20 FF 08 1D 32 12 05 5A 5A + 00 82 00 02 00 02 00 40 00 40 CF 12 CF 12 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 + 15 0E 48 44 9E 4C 05 41 19 05 8E 12 23 32 1A 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 08 08 08 03 03 03 02 03 03 03 00 00 FC + F9 F2 F2 F2 F0 F0 D7 CA F2 F2 F2 CE CE 9C 81 00 + 76 02 C0 48 14 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; + rt,fg_ocv_table0 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 + 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 + 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C + 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C + 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB + 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC + 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table1 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 + 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 + 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C + 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C + 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB + 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC + 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table2 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 + 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 + 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C + 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C + 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB + 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC + 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table3 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 + 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 + 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C + 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C + 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB + 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC + 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; + rt,fg_ocv_table4 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 + 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 + 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C + 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C + 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB + 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC + 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; +}; + diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index 793c9f8821ad..8ab03270fc6d 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -26,6 +26,7 @@ df-serialnum = "SB18D33989"; #include "bat_setting/RT_md50-amperex-5000mah.dtsi" + #include "bat_setting/RT_md50-scud-5000mah.dtsi" }; }; From 0a883d11e0b7b44433f0677d5287827c2d943dbf Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 19 Oct 2021 17:19:33 +0800 Subject: [PATCH 0475/1247] arm/dts: milanf rt9426a fg alert_irq modify to gpio38 gpio8 will be used by NFC, RT9426A IRQ switch to gpio38 from DVT1 HW. Change-Id: I8f162a09c9ae5b5657ea8314594ce4abf2b1c293 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2093292 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt1-overlay.dts | 16 ++++++++++++++++ qcom/rt9426a.dtsi | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts index 586de4886784..f039e76f90ba 100644 --- a/qcom/blair-milanf-dvt1-overlay.dts +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -22,6 +22,22 @@ qcom,board-id = <0x49 0xB100>; }; +&rt9426a { + interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; +}; +&rt9426a_alert { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + }; +}; + &tlmm { ets_vcc_high { mux { diff --git a/qcom/rt9426a.dtsi b/qcom/rt9426a.dtsi index 8ab03270fc6d..a453c114a75c 100644 --- a/qcom/rt9426a.dtsi +++ b/qcom/rt9426a.dtsi @@ -2,7 +2,7 @@ &qupv3_se8_i2c { status = "okay"; - rt9426a@55 { + rt9426a: rt9426a@55 { compatible = "richtek,rt9426a"; reg = <0x55>; status = "okay"; From 6d17843831486c7235eb81519061da580f277f22 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 13 Oct 2021 14:54:40 +0800 Subject: [PATCH 0476/1247] arm/dts: add dpdm supply handler add dpdm supply handler for bc1.2 detect Change-Id: I07a86ee620c5b3644d544819225f19ac7c133b6a Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2088723 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 505328604503..f240a1752084 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -78,6 +78,8 @@ sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + dpdm-supply = <&usb2_phy0>; + /* sw jeita parameter customer defined*/ enable_sw_jeita; jeita_temp_above_t4_cv = <0>; From 38f1995a460103e20d57c1be409bd16661c1b7c8 Mon Sep 17 00:00:00 2001 From: gongsc1 Date: Tue, 12 Oct 2021 11:07:31 +0800 Subject: [PATCH 0477/1247] arm64/dts:config dpdm-supply for bq25890 config dpdm-supply for bq25890 to get dpdm from dwc3. Change-Id: I76a77b04b082444265528298a0f854cba2acd61c Reviewed-on: https://gerrit.mot.com/2087777 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index f240a1752084..de6f23ec1c3f 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -117,6 +117,7 @@ pinctrl-0 = <&bq2589x_irq>; bq2589x_irq-gpio = <&tlmm 12 0>; bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&usb2_phy0>; ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ From ac369f890f9b100716b92e528d11b40aaa2f239c Mon Sep 17 00:00:00 2001 From: chailu1 Date: Tue, 19 Oct 2021 17:59:59 +0800 Subject: [PATCH 0478/1247] arm/dts: config typec/pd side iio channel for cyprus ip68 arm/dts config typec/pd side iio channel for cyprus ip68 Change-Id: Id937a6606963b91595f7d8e67a63c5c77154239f Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2089723 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 275aa8c43731..6daaeffc0fc9 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -26,10 +26,8 @@ #include "discrete_charging.dtsi" #include "sgm7220.dtsi" #include "blair-cypfr-fmr-overlay.dtsi" +#include -&usb0 { - qcom,force-adb-enable; -}; &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -552,6 +550,11 @@ &soc { rpm: rt-pd-manager { compatible = "richtek,rt-pd-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; + io-channel-names = "usb_real_type", + "otg_enable"; }; }; From 61832e77a8fb4c053464c22d67958e9e6398b226 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 14 Oct 2021 14:05:50 +0800 Subject: [PATCH 0479/1247] arm/dts: config typec/pd side iio channel for milanf arm/dts config typec/pd side iio channel Change-Id: Ie0bb72c11e673d16cb75fae1304cc9a788f04f19 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2089539 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 5 ----- qcom/discrete_charging.dtsi | 1 + qcom/tcpc_config.dtsi | 7 +++++++ 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index b394747f5849..edd28552926f 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -16,11 +16,6 @@ #include "rt9426a.dtsi" #include "discrete_charging.dtsi" -&usb0 { - qcom,force-adb-enable; -}; - - &qupv3_se8_i2c { status = "okay"; cw2217@64 { diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index de6f23ec1c3f..c042247fd7e8 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -163,6 +163,7 @@ mmi_discrete_charger: mmi,discrete-charging { status = "ok"; compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; battery-names = "battery"; supplied-from = "mmi_battery"; diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index 3938182e8896..9e7efe6a577d 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -10,6 +10,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include + &qupv3_se8_i2c { status = "okay"; rt1711h@4e { @@ -163,6 +165,11 @@ &soc { rpm: rt-pd-manager { compatible = "richtek,rt-pd-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; + io-channel-names = "usb_real_type", + "otg_enable"; }; }; From 540d1b8f1e89768b6bcbc8ccaf010de866072c2c Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 20 Oct 2021 18:04:22 +0800 Subject: [PATCH 0480/1247] arm/dts: config charger irq pull up for cypfr As cypfr don't use external pull up at charger irq gpio12, so config pull up at PM6375 gpio12 Change-Id: I55bbdd38068a2ab917ff2f7c38a56ba634fa0bfd Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2094560 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 6daaeffc0fc9..a51ca8cfade0 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -187,6 +187,26 @@ output-high; }; }; + + chg_irq_default: chg_irq_default { + /* IRQ */ + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + bias-pull-up; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; +}; + +&sgm4154x { + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; }; &pmk8350_vadc { From e7e25164df57ad7b50a3fe7c4682665152e4f987 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 19 Oct 2021 16:11:24 +0800 Subject: [PATCH 0481/1247] dts/milanf-display: update the configuration of backlight 1. enable exponential mode 2. enable bl current align for lm3697 3. add the virtual I2c device addr(0x35) for lm3697, and set the right I2c device addr at code. Change-Id: I0440a1ada8b8db8f4b24ad4c4674e6e1aaa7e17f Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2093226 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 51 +++++++++++++++++++++++----------------- 1 file changed, 30 insertions(+), 21 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index f0fe93701d03..a6e50ea93c63 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -182,28 +182,35 @@ &qupv3_se10_i2c { status = "ok"; - lcd_backlight@36 { - compatible = "awinic,aw99703-bl","ti,lm3697"; - reg = <0x36>; + lcd_backlight@36 { + compatible = "awinic,aw99703-bl"; + reg = <0x36>; /* Awinic, aw99703 */ - aw99703,hwen-gpio = <&tlmm 13 0>; - aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ - aw99703,using-lsb; - aw99703,ovp-level = <2>; /* 31V */ - aw99703,ocp-level = <1>; /* 1.8A */ - aw99703,switch-freq = <1>; /* 1000kHz(default) */ - aw99703,auto-freq-high = <0x10>; - aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <3>; - aw99703,turn-on-ramp = <0x09>; /* 256ms */ - aw99703,turn-off-ramp = <0x04>; /* 8ms */ - aw99703,pwm-trans-dim = <0>; /* 2ms */ - aw99703,i2c-trans-dim = <0x07>; /* 512ms */ - aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ - aw99703,map-type = <1>; /* linear */ - aw99703,work-mode = <1>; /* backlight */ + aw99703,hwen-gpio = <&tlmm 13 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; + + }; + + lm3697@35 { + compatible = "ti,lm3697"; + reg = <0x35>; /* TI, lm3697*/ enable-gpios = <&tlmm 13 0>; @@ -217,7 +224,9 @@ current-mode = <2>; /*2: 25mA*/ boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/ boost-freq = <1>; /*0:500Khz 1:1Mhz*/ - default-brightness-level = <255>; + map-type = <0>; /* 0 exponential, 1 linear */ + current-align-type = <1>;/* 0 none, 1 aw99703, for exp mode current align*/ + default-brightness-level = <1810>; }; }; }; From e53cd0e44906cb9a3093eb09200d6185902d10d8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 22 Oct 2021 10:39:20 +0800 Subject: [PATCH 0482/1247] dts/cypfq/csot_panel: update the value of porch. CSOT_panel: Get the right value of porch, and update it. Change-Id: I30a7ef9244dfee6a87c6124c519b1a8167fa18d3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2096691 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...si-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi index f07146181ca9..7db5ccdd7962 100644 --- a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi @@ -40,14 +40,14 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2460>; - qcom,mdss-dsi-h-front-porch = <28>; - qcom,mdss-dsi-h-back-porch = <24>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <20>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <12>; - qcom,mdss-dsi-v-front-porch = <2565>; - qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-v-back-porch = <48>; + qcom,mdss-dsi-v-front-porch = <2588>; + qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; From fbdf0aab06781bf6d0528e2befca9d5bb3af2c68 Mon Sep 17 00:00:00 2001 From: jixj Date: Tue, 26 Oct 2021 10:29:13 +0800 Subject: [PATCH 0483/1247] Update evb and evt dts for Rhode 5G+ 1. Rhode 5G+ uses no pmi dts of SM6375, remove pmi related dtsi 2. Update "qcom,board-id" to "M" as product id Change-Id: Ib0375b2dfb34b745bc983a674ff9ae2b68cc973e Reviewed-on: https://gerrit.mot.com/2100830 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 10 +++--- qcom/blair-nopmi-rhodep-common-overlay.dtsi | 36 ------------------- qcom/blair-pm6125-rhodep-common-overlay.dtsi | 21 ----------- qcom/blair-rhodep-common-overlay.dtsi | 19 ++++++++++ ...erlay.dts => blair-rhodep-evb-overlay.dts} | 4 +-- qcom/blair-rhodep-evb1-overlay.dts | 24 ------------- ...erlay.dts => blair-rhodep-evt-overlay.dts} | 4 +-- 7 files changed, 27 insertions(+), 91 deletions(-) delete mode 100644 qcom/blair-nopmi-rhodep-common-overlay.dtsi delete mode 100644 qcom/blair-pm6125-rhodep-common-overlay.dtsi rename qcom/{blair-rhodep-evb2-overlay.dts => blair-rhodep-evb-overlay.dts} (89%) delete mode 100644 qcom/blair-rhodep-evb1-overlay.dts rename qcom/{blair-rhodep-dvt1-overlay.dts => blair-rhodep-evt-overlay.dts} (89%) diff --git a/qcom/Makefile b/qcom/Makefile index 8f6252b9e453..df48d68e3d40 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -92,13 +92,11 @@ blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-dvt1-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ - blair-rhodep-evb1-overlay.dtbo \ - blair-rhodep-evb2-overlay.dtbo \ - blair-rhodep-dvt1-overlay.dtbo + blair-rhodep-evb-overlay.dtbo \ + blair-rhodep-evt-overlay.dtbo \ -blair-rhodep-evb1-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-evb2-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evb-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evt-overlay.dtbo-base := blair-moto-base.dtb else diff --git a/qcom/blair-nopmi-rhodep-common-overlay.dtsi b/qcom/blair-nopmi-rhodep-common-overlay.dtsi deleted file mode 100644 index 375110d2af50..000000000000 --- a/qcom/blair-nopmi-rhodep-common-overlay.dtsi +++ /dev/null @@ -1,36 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#include "blair-rhodep-common-overlay.dtsi" -#include "blair-nopmi-moto-common-overlay.dtsi" -#include "tcpc_config.dtsi" -#include "sgm7220.dtsi" -#include "rt9426a.dtsi" -#include "discrete_charging.dtsi" - -&usb0 { - qcom,force-adb-enable; -}; - - -&qupv3_se8_i2c { - status = "okay"; - cw2217@64 { - compatible = "cellwise,cw2217"; - reg = <0x64>; - status = "okay"; - - df-serialnum = "SB18D33989"; - #include "bat_setting/CW_md50-scud-5000mah.dtsi" - #include "bat_setting/CW_md50-amperex-5000mah.dtsi" - }; -}; - diff --git a/qcom/blair-pm6125-rhodep-common-overlay.dtsi b/qcom/blair-pm6125-rhodep-common-overlay.dtsi deleted file mode 100644 index e0bc0a29bae0..000000000000 --- a/qcom/blair-pm6125-rhodep-common-overlay.dtsi +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#include "blair-rhodep-common-overlay.dtsi" -#include "blair-pm6125-moto-common-overlay.dtsi" - -&pm7250b_charger { - dpdm-supply = <&usb2_phy0>; -}; - -&smb1394 { - status = "disabled"; -}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 458d113c8c74..5141bc488c20 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -9,6 +9,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +#include "blair-nopmi-moto-common-overlay.dtsi" + #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include #include @@ -22,6 +24,23 @@ #include "rhodep-sensors.dtsi" #include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" #include "rhodep-wl286xx.dtsi" +#include "tcpc_config.dtsi" +#include "sgm7220.dtsi" +#include "rt9426a.dtsi" +#include "discrete_charging.dtsi" + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D33989"; + #include "bat_setting/CW_md50-scud-5000mah.dtsi" + #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + }; +}; &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/blair-rhodep-evb2-overlay.dts b/qcom/blair-rhodep-evb-overlay.dts similarity index 89% rename from qcom/blair-rhodep-evb2-overlay.dts rename to qcom/blair-rhodep-evb-overlay.dts index a034d114bb21..17c4ec8f41fc 100644 --- a/qcom/blair-rhodep-evb2-overlay.dts +++ b/qcom/blair-rhodep-evb-overlay.dts @@ -13,12 +13,12 @@ /dts-v1/; /plugin/; -#include "blair-nopmi-rhodep-common-overlay.dtsi" +#include "blair-rhodep-common-overlay.dtsi" / { model = "rhodep"; compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xA200>; + qcom,board-id = <0x4D 0xA100>; }; diff --git a/qcom/blair-rhodep-evb1-overlay.dts b/qcom/blair-rhodep-evb1-overlay.dts deleted file mode 100644 index 5a2b1da5c7ef..000000000000 --- a/qcom/blair-rhodep-evb1-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "blair-pm6125-rhodep-common-overlay.dtsi" - -/ { - model = "rhodep"; - compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xA100>; -}; - diff --git a/qcom/blair-rhodep-dvt1-overlay.dts b/qcom/blair-rhodep-evt-overlay.dts similarity index 89% rename from qcom/blair-rhodep-dvt1-overlay.dts rename to qcom/blair-rhodep-evt-overlay.dts index 888b505195b2..1adc5ea43232 100644 --- a/qcom/blair-rhodep-dvt1-overlay.dts +++ b/qcom/blair-rhodep-evt-overlay.dts @@ -13,12 +13,12 @@ /dts-v1/; /plugin/; -#include "blair-nopmi-rhodep-common-overlay.dtsi" +#include "blair-rhodep-common-overlay.dtsi" / { model = "rhodep"; compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xB100>; + qcom,board-id = <0x4D 0xA200>; }; From 5321451e09755015e2ccf7ed6406341f541a6c02 Mon Sep 17 00:00:00 2001 From: panyq6 Date: Wed, 27 Oct 2021 14:40:14 +0800 Subject: [PATCH 0484/1247] rhodec bringup: init rhodec dts files init rhodec dts based on cypfq Change-Id: I941c49cd803867064543fde42a2af3bf1680fc8b Reviewed-on: https://gerrit.mot.com/2101515 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: panyq6 --- qcom/Makefile | 9 + qcom/holi-rhodec-common-overlay.dtsi | 620 +++++++++++++++++++++++++++ qcom/holi-rhodec-dvt1-overlay.dts | 24 ++ qcom/holi-rhodec-dvt2-overlay.dts | 24 ++ qcom/holi-rhodec-pvt-overlay.dts | 24 ++ qcom/rhodec-display.dtsi | 251 +++++++++++ qcom/rhodec-fmr-overlay.dtsi | 48 +++ qcom/rhodec-fps-overlay.dtsi | 163 +++++++ qcom/rhodec-touchscreen.dtsi | 125 ++++++ 9 files changed, 1288 insertions(+) create mode 100644 qcom/holi-rhodec-common-overlay.dtsi create mode 100644 qcom/holi-rhodec-dvt1-overlay.dts create mode 100644 qcom/holi-rhodec-dvt2-overlay.dts create mode 100644 qcom/holi-rhodec-pvt-overlay.dts create mode 100644 qcom/rhodec-display.dtsi create mode 100644 qcom/rhodec-fmr-overlay.dtsi create mode 100644 qcom/rhodec-fps-overlay.dtsi create mode 100755 qcom/rhodec-touchscreen.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index df48d68e3d40..303a87bf2203 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -75,6 +75,15 @@ holi-cypfq-dvt1-overlay.dtbo-base := holi-moto-base.dtb holi-cypfq-dvt2-overlay.dtbo-base := holi-moto-base.dtb holi-cypfq-pvt-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_RHODEC_DTB) += \ + holi-rhodec-dvt1-overlay.dtbo \ + holi-rhodec-dvt2-overlay.dtbo \ + holi-rhodec-pvt-overlay.dtbo + +holi-rhodec-dvt1-overlay.dtbo-base := holi-moto-base.dtb +holi-rhodec-dvt2-overlay.dtbo-base := holi-moto-base.dtb +holi-rhodec-pvt-overlay.dtbo-base := holi-moto-base.dtb + dtbo-$(CONFIG_CYPFR_DTB) += \ blair-cypfr-evb-overlay.dtbo \ blair-cypfr-evt-overlay.dtbo diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi new file mode 100644 index 000000000000..c751b15a307b --- /dev/null +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -0,0 +1,620 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-pm6125-moto-common-overlay.dtsi" + +#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include +#include +#include "rhodec-fps-overlay.dtsi" +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "camera/holi-camera-sensor-mot-rhodec-overlay.dtsi" +#include "rhodec-display.dtsi" +#include "rhodec-touchscreen.dtsi" +#include "rhodec-fmr-overlay.dtsi" + +&smb1394 { + status = "disabled"; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&tlmm { + google_key_default: google_key_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; + + cam_pmic_en_default: cam_pmic_en_default { + mux { + pins = "gpio38"; + function = "gpio"; + }; + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 48 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + + semi,cs-gpios = <&tlmm 38 0>; + + pinctrl-names = "default"; + pinctrl-0 = <&cam_pmic_en_default>; + + vin1-supply = <&S6A>; + + regulators { + cam_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default &google_key_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + + google_key { + label = "google_key"; + gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; +}; + +&soc { + touch_avdd: touch_avdd_stub { + /* + * Touch eLDO controlled by gpio#53 is always ON. + * Using dummy regulator. + */ + compatible = "qcom,stub-regulator"; + regulator-name = "touch_avdd_stub"; + qcom,hpm-min-load = <10000>; + regulator-min-microvolt = <2700000>; + regulator-max-microvolt = <3544000>; + }; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <2600000>; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + qcom,iterm-ma = <150>; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + ufs_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + camera_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&pm7250b_charger { + qcom,otg-cl-ua = <1500000>; + qcom,dcp-curr-max = <2000000>; + qcom,fcc-max-ua = <2900000>; + qcom,fv-max-uv = <4400000>; + qcom,thermal-mitigation = <2900000 2600000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + +&pm7250b_qg { + qcom,qg-iterm-ma = <500>; +}; + +&pm6125_gpios { + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-rhodec-dvt1-overlay.dts b/qcom/holi-rhodec-dvt1-overlay.dts new file mode 100644 index 000000000000..dfa9ebc54d84 --- /dev/null +++ b/qcom/holi-rhodec-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-rhodec-common-overlay.dtsi" + +/ { + model = "rhodec"; + compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xB100>; +}; + diff --git a/qcom/holi-rhodec-dvt2-overlay.dts b/qcom/holi-rhodec-dvt2-overlay.dts new file mode 100644 index 000000000000..2475e2b87a76 --- /dev/null +++ b/qcom/holi-rhodec-dvt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-rhodec-common-overlay.dtsi" + +/ { + model = "rhodec"; + compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xB200>; +}; + diff --git a/qcom/holi-rhodec-pvt-overlay.dts b/qcom/holi-rhodec-pvt-overlay.dts new file mode 100644 index 000000000000..438898fee2d4 --- /dev/null +++ b/qcom/holi-rhodec-pvt-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-rhodec-common-overlay.dtsi" + +/ { + model = "rhodec"; + compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xC000>, <0x48 0xC000>; +}; + diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi new file mode 100644 index 000000000000..46747bed804f --- /dev/null +++ b/qcom/rhodec-display.dtsi @@ -0,0 +1,251 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&tlmm { + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; +}; + +&soc { + dsi_panel_pwr_supply_rhodec: dsi_panel_pwr_supply_rhodec{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + + +&dsi_tm_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_csot_ili7807s_678_fhd_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <1023>; + qcom,mdss-dsi-bl-default-level = <512>; + qcom,mdss-brightness-max-level = <1023>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 + 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/rhodec-fmr-overlay.dtsi b/qcom/rhodec-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/rhodec-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; diff --git a/qcom/rhodec-fps-overlay.dtsi b/qcom/rhodec-fps-overlay.dtsi new file mode 100644 index 000000000000..40fa18745865 --- /dev/null +++ b/qcom/rhodec-fps-overlay.dtsi @@ -0,0 +1,163 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + egistec,gpio_vcc_en = <&tlmm 87 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi new file mode 100755 index 000000000000..bfe7714dd000 --- /dev/null +++ b/qcom/rhodec-touchscreen.dtsi @@ -0,0 +1,125 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-down; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se8_i2c { + synaptics_tcm@20 { + status = "disabled"; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x0>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + panel = <&dsi_tm_ili7807s_678_fhd_video &dsi_csot_ili7807s_678_fhd_video>; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2008>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&touch_int_active>; + pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; + status = "ok"; + }; +}; From c1a6dc72c27e62810f1c41b775d4eafb43b519e8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 28 Oct 2021 16:39:50 +0800 Subject: [PATCH 0485/1247] dts/panel: milanf: the 2nd panel bringup the 2nd panel bringup. CSOT+NT36672e Change-Id: Ied0415be56beab018e35d5ea18cb737e19468cac Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2102011 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...mot-csot-nt36672e-678-1080x2460-video.dtsi | 111 ++++++++++++++++++ 1 file changed, 111 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi diff --git a/qcom/dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..eafe93da8da3 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi @@ -0,0 +1,111 @@ +&mdss_mdp { + dsi_csot_nt36672e_678_fhdp_120_video: qcom,mdss_dsi_csot_nt36672e_678_fhdp_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_csot_nt36672e_fhdp_678_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 2>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <76>; + qcom,mdss-dsi-h-back-porch = <60>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <18>; + qcom,mdss-dsi-v-front-porch = <54>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 29 01 00 00 00 00 02 FF 10 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 B0 00 + + 29 01 00 00 00 00 02 FF 25 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 18 20 + + 29 01 00 00 00 00 02 FF 23 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 07 20 + 29 01 00 00 00 00 02 08 0A + 29 01 00 00 00 00 02 09 0E + + 29 01 00 00 00 00 02 FF E0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 35 82 + + 29 01 00 00 00 00 02 FF F0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 1C 01 + 29 01 00 00 00 00 02 33 01 + 29 01 00 00 00 00 02 5A 00 + 29 01 00 00 00 00 02 D2 50 + + 29 01 00 00 00 00 02 FF D0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 53 22 + 29 01 00 00 00 00 02 54 02 + + 29 01 00 00 00 00 02 FF C0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 9C 11 + 29 01 00 00 00 00 02 9D 11 + + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 39 01 00 00 00 00 02 51 CC + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 01 + + 05 01 00 00 65 00 01 11 + 05 01 00 00 29 00 01 29 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 46 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + }; +}; From 6f97952c645210203f4c4d0bd697c60c0613882c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 28 Oct 2021 16:40:22 +0800 Subject: [PATCH 0486/1247] dts/display: milanf: add the support for 2nd panel the 2nd panel bringup. CSOT+NT36672e Change-Id: Id082dfa46b131ff08c9ca3244c0ec482fea74c84 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2102012 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 46 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index a6e50ea93c63..4a62830c669c 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -178,6 +179,51 @@ }; }; +&dsi_csot_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "csot"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-clockrate = <900000000>; + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; &qupv3_se10_i2c { status = "ok"; From f910bc344022dabe6b0bd4d1559997b6ca3593d4 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 29 Oct 2021 17:05:18 +0800 Subject: [PATCH 0487/1247] arm/dts: config qc3.0 for sgm41542 config qc3.0 feature for sgm41542 Change-Id: I00eed3872b5a5ea273f04aeb4d99dfa6135215b2 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2103361 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index c042247fd7e8..7e57e2168294 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -79,6 +79,7 @@ sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; /* sw jeita parameter customer defined*/ enable_sw_jeita; From dffdd5cef8e08f32740809157c1ed44785d3508b Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 1 Nov 2021 13:59:28 +0800 Subject: [PATCH 0488/1247] milanf: dts/backlight: correct the enable-bl gpio For milanf, use gpio 60 to enable baclight. Not gpio13. Change-Id: I983b17b7d3246b83a7ead2241310ba7128f043df Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2104499 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 4a62830c669c..9b0080c699a0 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -233,7 +233,7 @@ reg = <0x36>; /* Awinic, aw99703 */ - aw99703,hwen-gpio = <&tlmm 13 0>; + aw99703,hwen-gpio = <&tlmm 60 0>; aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ aw99703,using-lsb; aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ @@ -259,7 +259,7 @@ reg = <0x35>; /* TI, lm3697*/ - enable-gpios = <&tlmm 13 0>; + enable-gpios = <&tlmm 60 0>; backlight { compatible = "ti,lm3697-backlight"; lcd { From a079b21640379b13cc23805364794fd43ead3741 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Fri, 29 Oct 2021 18:01:49 +0800 Subject: [PATCH 0489/1247] Thermal: Correct the ADC channel of chg_therm GPIO_03 CHARGER_SKIN_THERM PMK8350_ADC7_AMUX_THM2_100K_PU GPIO_01 UMCP_THERM PMK8350_ADC7_AMUX_THM4_100K_PU Change-Id: I2ff5cb040e236945eec5a0bf3fbaba427aebd880 Reviewed-on: https://gerrit.mot.com/2103417 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index a51ca8cfade0..656636a1531a 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -210,16 +210,16 @@ }; &pmk8350_vadc { - pmk8350_chg_therm { + pmk8350_ufs_therm { reg = ; - label = "pmk8350_chg_therm"; + label = "pmk8350_ufs_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; - pmk8350_ufs_therm { + pmk8350_chg_therm { reg = ; - label = "pmk8350_ufs_therm"; + label = "pmk8350_chg_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; @@ -231,12 +231,12 @@ <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; - chg_therm { + ufs_therm { reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; }; - ufs_therm { + chg_therm { reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; @@ -310,7 +310,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -370,7 +370,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { From b0be069cfbbd76ae9b8982ab195ad5b796f8a8c5 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 2 Nov 2021 09:22:14 +0800 Subject: [PATCH 0490/1247] arm/dts: config qc2 charger max icl 1.5A As qcom updated, qcom config qc2.0 charger max icl 2A for 18W(9V2A). But as moto standard, qc2.0 charger only work in 5V, so need to config max icl 1.5A for all product. Change-Id: I22729310af4f85415da96717b69a2131ca64ec93 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2105217 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-pm6125-moto-common-overlay.dtsi | 1 + qcom/holi-moto-common-overlay.dtsi | 1 + qcom/holi-pm6125-moto-common-overlay.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index bdc576be5206..dd5b2daa5da3 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -213,6 +213,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4450000>; qcom,usb-icl-ua = <3000000>; + qcom,hvdcp2-max-icl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 2000000 1500000 diff --git a/qcom/holi-moto-common-overlay.dtsi b/qcom/holi-moto-common-overlay.dtsi index 01d2476a0456..f0c934f00b51 100644 --- a/qcom/holi-moto-common-overlay.dtsi +++ b/qcom/holi-moto-common-overlay.dtsi @@ -400,6 +400,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4450000>; qcom,usb-icl-ua = <3000000>; + qcom,hvdcp2-max-icl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 2000000 1500000 diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 005c04313cb6..803c21d68e03 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -223,6 +223,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4450000>; qcom,usb-icl-ua = <3000000>; + qcom,hvdcp2-max-icl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 2000000 1500000 From 9841fa95e4acee1e96a4bd361e6c47acbb1c6c3b Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Mon, 1 Nov 2021 11:25:13 +0800 Subject: [PATCH 0491/1247] milanf: arm64/dts: Add support for csot touch panel - Add support for touch csot panel. - Add dts panel for compatible with tm and csot. Change-Id: Id86c6ae8c5a8d9b4b78d8c202d21095ef104aca5 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2104443 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index b384e8cb0171..d58b6e625138 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -84,7 +84,8 @@ novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; novatek,usb_charger; - panel = <&dsi_tm_nt36672e_678_fhdp_120_video>; + novatek,panel-supplier = "tm","csot"; + panel = <&dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; status = "ok"; }; From 7cbf39ac609eee22062ec5465ab4bdea83a19aa8 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 2 Nov 2021 16:04:56 +0800 Subject: [PATCH 0492/1247] dts/panel: milanf: Optimize the power on and power off timing 1. After enable VDDIO, delay 2ms ,then enable VSN/VSP. 2. After disable vsp/vsn, delay 2ms, then disable VDDIO. 3. After disable VSN, delay 2ms, then disable VSP. Change-Id: Ib00507694ce889fc76e7e4eee33bf50adf1ede76 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2105584 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 9b0080c699a0..ca6f7beb81f2 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -78,6 +78,8 @@ qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <62000>; qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; }; qcom,panel-supply-entry@1 { @@ -85,8 +87,9 @@ qcom,supply-name = "lab"; qcom,supply-min-voltage = <5500000>; qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <2>; }; qcom,panel-supply-entry@2 { From e8c6d4566cf48aada009a4c3c18409df45f953e8 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 3 Nov 2021 10:39:19 +0800 Subject: [PATCH 0493/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: Ida7c91d3dd6f3c03da8aca35c057bb0874a319d3 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2106115 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 117 ++++++++++++++++----------- 1 file changed, 71 insertions(+), 46 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 656636a1531a..244a90ab063d 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -687,17 +687,22 @@ Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ - 0x8008 0x0 - 0x4280 0x0 + 0x4008 0x8 + 0x42C0 0x40800 + 0x42C4 0xFF + 0x8010 0x0 + 0x8014 0x0 + 0x8018 0x0 + 0x8018 0x0 0x8020 0x32 - 0x8028 0x445E /*AFE_PARAM_PH0*/ - 0x8034 0x445E /*AFE_PARAM_PH1*/ - 0x8040 0x445E /*AFE_PARAM_PH2*/ - 0x804C 0x445E /*AFE_PARAM_PH3*/ - 0x8058 0x445E /*AFE_PARAM_PH4*/ - 0x8064 0x445E /*AFE_PARAM_PH5*/ - 0x8070 0x445E /*AFE_PARAM_PH6*/ - 0x807C 0x445E /*AFE_PARAM_PH7*/ + 0x8028 0x85E /*AFE_PARAM_PH0*/ + 0x8034 0x85E /*AFE_PARAM_PH1*/ + 0x8040 0x85E /*AFE_PARAM_PH2*/ + 0x804C 0x85E /*AFE_PARAM_PH3*/ + 0x8058 0x85E /*AFE_PARAM_PH4*/ + 0x8064 0x85E /*AFE_PARAM_PH5*/ + 0x8070 0x85E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT0, Bottom center*/ 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT8, Back center*/ @@ -715,52 +720,72 @@ 0x8068 0x0 0x8074 0x0 0x8080 0x0 - 0x8098 0xC86E - 0x80B8 0x7F54 - 0x80D8 0x4E3C - 0x80F8 0x644E - 0x8118 0x2D28 - 0x8138 0xC8 - 0x8158 0xC8 - 0x8178 0xC8 - 0x80A0 0x1C1C00E1 - 0x80C0 0x171700E2 - 0x80E0 0x1F1F00E1 - 0x8100 0x0 - 0x8120 0x1C1C00E2 + 0x8098 0x8446 + 0x80B8 0x3030 + 0x80D8 0x5A31 + 0x80F8 0x8A4E + 0x8118 0x3E31 + 0x8138 0x5A40 + 0x8158 0x5A40 + 0x8178 0x5A40 + 0x80A0 0x1F1F0001 + 0x80C0 0x25250002 + 0x80E0 0x20200001 + 0x8100 0x15150000 + 0x8120 0x1C1C0002 0x8140 0x0 0x8160 0x0 0x8180 0x0 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8190 0x0 + 0x8188 0x8000016 + 0x818C 0x8000015 + 0x8190 0x8000016 0x8194 0x0 - 0x8090 0x2AD67100 - 0x80B0 0x2AD67100 - 0x80D0 0x649C7100 - 0x80F0 0x50B07100 - 0x8110 0x2AD67100 - 0x8130 0x2AD66100 - 0x8150 0x2AD66100 - 0x8170 0x2AD66100 - 0x8088 0x300000 - 0x80A8 0x300000 + 0x819C 0x0 + 0x81AC 0x0 + 0x81A0 0x0 + 0x81B0 0x0 + 0x81A4 0x0 + 0x81B4 0x0 + 0x81A8 0x0 + 0x81B8 0x0 + 0x81E0 0x0 + 0x81E4 0x0 + 0x81E8 0x0 + 0x81EC 0x0 + 0x8090 0x1EE87000 + 0x80B0 0x14F07000 + 0x80D0 0x24E37000 + 0x80F0 0x32CE7000 + 0x8110 0x1EE87000 + 0x8130 0x1EE86000 + 0x8150 0x1EE86000 + 0x8170 0x2AD67000 + 0x8094 0x0 + 0x80B4 0x0 + 0x80D4 0x0 + 0x80F4 0x0 + 0x8114 0x0 + 0x8134 0x0 + 0x8154 0x0 + 0x8174 0x0 + 0x8088 0x200000 + 0x80A8 0x100000 0x80C8 0x300000 0x80E8 0x300000 - 0x8108 0x300000 + 0x8108 0x200000 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 - 0x808C 0x60200010 - 0x80AC 0x60200010 - 0x80CC 0x60200010 - 0x80EC 0x60200010 - 0x810C 0x60200010 - 0x812C 0x71310010 - 0x814C 0x60200010 - 0x816C 0x60200010 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F - 0x4280 0xe + 0x4280 0xF >; status = "ok"; From acb34c0d7c3fb948fcac9102cd94a458727fe894 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 3 Nov 2021 13:53:50 +0800 Subject: [PATCH 0494/1247] arm/dts: config battery charging parameter config cypfr IP68 battery charging parameter Change-Id: I320ba06286836bd3d74c9a929d0022793bf2e27f Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2106219 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 244a90ab063d..ba243c53480e 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -209,6 +209,21 @@ pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; }; +&mmi_discrete_charger { + mmi,max-fv-mv = <4400>; + mmi,chrg-iterm-ma = <150>; + mmi,max-fcc-ma = <3000>; + mmi,df-serialnum = "SB18C77591"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <15 0 1000 1000>, + <45 0 3000 3000>, + <60 4200 2500 0>; + mmi,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; +}; + &pmk8350_vadc { pmk8350_ufs_therm { reg = ; From 365fe92e7c175ae02456a7e90ef5d8fae4f1cdc9 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 29 Oct 2021 13:54:41 +0800 Subject: [PATCH 0495/1247] arm64/dt: milanf: config new nfc Milanf will change nfc from ST to NXP PN557. Change from DVT1A HW. Change-Id: I529b678f79ac1c9c3982815a09bca9199f93f0d8 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2103064 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt1-overlay.dts | 44 ++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts index f039e76f90ba..e32d40932a41 100644 --- a/qcom/blair-milanf-dvt1-overlay.dts +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -58,6 +58,26 @@ pins = "gpio6"; }; }; + + nfc_enable_active { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + nfc_enable_suspend { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; }; &et528 { @@ -67,3 +87,27 @@ &silead { avdd-gpios = <&tlmm 6 0x0>; }; + +&qupv3_se7_i2c { + st21nfc@8 { + status = "diabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; From 4735f729a914cc3d4cc0464c971d239670b71cd0 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 5 Nov 2021 17:18:55 +0800 Subject: [PATCH 0496/1247] arm/dts: add adb force eanble configuration rhodep is bringup no adb to debug. Adding ADB force enable configuration(qcom,force-adb-enable) to enable adb Change-Id: Ie8c274dcd225d4079fc0119aa8e93adc7a3ace14 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2108713 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 5141bc488c20..ea33c1155d39 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -29,6 +29,11 @@ #include "rt9426a.dtsi" #include "discrete_charging.dtsi" + +&usb0 { + qcom,force-adb-enable; +}; + &qupv3_se8_i2c { status = "okay"; cw2217@64 { From 7d8a819ae9838dbecc9cec8f30f856ae3d63ee96 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 8 Nov 2021 16:36:54 +0800 Subject: [PATCH 0497/1247] milan5G: sar sensor params 1.update params for sx937x. 2.blair-nopmi-moto-common-overlay.dtsi Change-Id: Ie8bd721fb7ffe802d425b8cd85c613d34829f8ea Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2109768 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 159 ++++++++++++++-------- 1 file changed, 100 insertions(+), 59 deletions(-) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index a343100b99ca..b9fde8d47faf 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -102,21 +102,25 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; + Semtech,reg-num = <116>; Semtech,reg-init = < - 0x8024 0x7F00 /*PHEN, Disable all Phases*/ - 0x4004 0x74 /*irq mask*/ - 0x8008 0x7F000081 - 0x4280 0x0 + 0x4004 0x70 + 0x4008 0xB + 0x42C0 0x40800 + 0x42C4 0x0 + 0x8010 0x0 + 0x8014 0x0 + 0x8018 0x0 + 0x8018 0x0 0x8020 0x32 - 0x8028 0x58E /*AFE_PARAM_PH0*/ - 0x8034 0x78E /*AFE_PARAM_PH1*/ - 0x8040 0x58E /*AFE_PARAM_PH2*/ - 0x804C 0x566 /*AFE_PARAM_PH3*/ - 0x8058 0x566 /*AFE_PARAM_PH4*/ - 0x8064 0x57E /*AFE_PARAM_PH5*/ - 0x8070 0x566 /*AFE_PARAM_PH6*/ - 0x807C 0x58D /*AFE_PARAM_PH7*/ + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x8A6 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x866 /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ @@ -126,27 +130,27 @@ 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0xF3C3CF - 0x8044 0x940250 - 0x8050 0x9BC26F - 0x805C 0x990264 - 0x8068 0xD4C353 - 0x8074 0xB4C2D3 - 0x8080 0x0 - 0x8098 0x862D - 0x80B8 0x782D - 0x80D8 0x8774 - 0x80F8 0x785C - 0x8118 0x5740 - 0x8138 0xF4 - 0x8158 0xF4 - 0x8178 0x0 - 0x80A0 0x222200E1 - 0x80C0 0x0 - 0x80E0 0x1E1E00E1 - 0x8100 0x2B2B00E2 - 0x8120 0xE2 + 0x8098 0x7A36 + 0x80B8 0x9536 + 0x80D8 0x5959 + 0x80F8 0x3F3F + 0x8118 0x2C2C + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x5A40 + 0x809C 0x0 + 0x80BC 0x0 + 0x80DC 0x0 + 0x80FC 0x0 + 0x811C 0x0 + 0x813C 0x0 + 0x815C 0x0 + 0x817C 0x0 + 0x80A0 0x1E1E00E1 + 0x80C0 0x404000E2 + 0x80E0 0x222200E1 + 0x8100 0x161600E2 + 0x8120 0x0 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -154,32 +158,69 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x46E87000 - 0x80B0 0x34F27000 - 0x80D0 0x50E87000 - 0x80F0 0x24E87000 - 0x8110 0x32E47000 - 0x8130 0x7000 - 0x8150 0x7000 - 0x8170 0x0 - 0x8088 0x200000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x200000 - 0x8108 0x200000 - 0x8128 0x6500000 - 0x8148 0x6500000 - 0x8168 0x0 - 0x808C 0x60600019 - 0x80AC 0x60600019 - 0x80CC 0x60600019 - 0x80EC 0x60600019 - 0x810C 0x60600019 - 0x812C 0x60600019 - 0x814C 0x60600019 - 0x816C 0x0 + 0x8198 0x0 + 0x81BC 0x0 + 0x819C 0x0 + 0x81AC 0x0 + 0x81A0 0x0 + 0x81B0 0x0 + 0x81A4 0x0 + 0x81B4 0x0 + 0x81A8 0x0 + 0x81B8 0x0 + 0x81C0 0x0 + 0x81D0 0x0 + 0x81C4 0x0 + 0x81D4 0x0 + 0x81C8 0x0 + 0x81D8 0x0 + 0x81CC 0x0 + 0x81DC 0x0 + 0x81E0 0x0 + 0x81E4 0x0 + 0x81E8 0x0 + 0x81EC 0x0 + 0x80A4 0x0 + 0x80C4 0x0 + 0x80E4 0x0 + 0x8104 0x0 + 0x8124 0x0 + 0x8144 0x0 + 0x8164 0x0 + 0x8184 0x0 + 0x8090 0x40CD3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68AE3000 + 0x8110 0x30273000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8094 0x0 + 0x80B4 0x0 + 0x80D4 0x0 + 0x80F4 0x0 + 0x8114 0x0 + 0x8134 0x0 + 0x8154 0x0 + 0x8174 0x0 + 0x8088 0x300005 + 0x80A8 0x300005 + 0x80C8 0x300005 + 0x80E8 0x300005 + 0x8108 0x300005 + 0x8128 0x3600000 + 0x8148 0x3600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F - 0x4280 0xe >; status = "ok"; From ca86f84dc686b9bb33968d3c0e1a1beda5d68c2d Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 4 Nov 2021 15:14:11 +0800 Subject: [PATCH 0498/1247] arm/dts: config typeC mode iio interface for cypfr arm/dts add typeC mode iio interface Change-Id: I1f17df54ed63f6a3f8e813a4f0ce55cd894b35b4 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2107398 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index ba243c53480e..c5348e23fa09 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -27,7 +27,7 @@ #include "sgm7220.dtsi" #include "blair-cypfr-fmr-overlay.dtsi" #include - +#include "discrete-rt-pd-manger.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -582,17 +582,6 @@ }; }; -&soc { - rpm: rt-pd-manager { - compatible = "richtek,rt-pd-manager"; - #io-channel-cells = <1>; - io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, - <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; - io-channel-names = "usb_real_type", - "otg_enable"; - }; -}; - &usb0 { extcon = <&eud>, <&rpm>; }; From 75b3da00d5758fc69895609c9c93ca9d9acde000 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 4 Nov 2021 15:02:55 +0800 Subject: [PATCH 0499/1247] arm/dts: config typeC mode iio interface arm/dts add typeC mode iio interface Change-Id: I762ccf27aace91f3b9c002c0e44a796fe7066927 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2107395 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 1 + qcom/discrete-rt-pd-manger.dtsi | 26 +++++++++++++++++++++ qcom/tcpc_config.dtsi | 12 ---------- 3 files changed, 27 insertions(+), 12 deletions(-) create mode 100644 qcom/discrete-rt-pd-manger.dtsi diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index edd28552926f..aa110e29bc6a 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -12,6 +12,7 @@ #include "blair-milanf-common-overlay.dtsi" #include "blair-nopmi-moto-common-overlay.dtsi" #include "tcpc_config.dtsi" +#include "discrete-rt-pd-manger.dtsi" #include "sgm7220.dtsi" #include "rt9426a.dtsi" #include "discrete_charging.dtsi" diff --git a/qcom/discrete-rt-pd-manger.dtsi b/qcom/discrete-rt-pd-manger.dtsi new file mode 100644 index 000000000000..8020a03c1376 --- /dev/null +++ b/qcom/discrete-rt-pd-manger.dtsi @@ -0,0 +1,26 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +&soc { + rpm: rt-pd-manager { + compatible = "richtek,rt-pd-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>, + <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>; + io-channel-names = "usb_real_type", + "otg_enable", + "typec_mode"; + + }; +}; diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index 9e7efe6a577d..19b160cd6cd4 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -162,18 +162,6 @@ }; }; -&soc { - rpm: rt-pd-manager { - compatible = "richtek,rt-pd-manager"; - #io-channel-cells = <1>; - io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, - <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; - io-channel-names = "usb_real_type", - "otg_enable"; - - }; -}; - &tlmm { rt1711h_int_n: rt1711h_int_n { mux { From a487a77fdd29f7bed0890bde1e92a56d2c3ee9b0 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 8 Nov 2021 17:12:26 +0800 Subject: [PATCH 0500/1247] arm/dts: config pm6375 gpio3 as vbus iio channel As HW design use pm6375 gpio3 to monitor vbus voltage, so config gpio3 iio channel. Change-Id: I27c0eb7a5e30e2ee46b2b698c77fbeab067f3d15 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2109812 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Lu Chai Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 7e57e2168294..5dbd55fb6ed1 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -115,7 +115,10 @@ reg = <0x6A>; pinctrl-names = "default"; - pinctrl-0 = <&bq2589x_irq>; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + bq2589x_irq-gpio = <&tlmm 12 0>; bq2589x_en-gpio = <&tlmm 92 0>; dpdm-supply = <&usb2_phy0>; From 0168b525736ec8bc99a945014b8732aa3f5cef57 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Mon, 8 Nov 2021 17:59:43 +0800 Subject: [PATCH 0501/1247] arm/dts: enable qc3.0 function for bq25890H enable qc3.0 function for bq25890H Change-Id: Ibed5a638e66f5f9d46f47818308d9acc4bbfc132 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2109875 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Lu Chai Reviewed-by: Shicheng Gong Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 5dbd55fb6ed1..92a658e69278 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -123,6 +123,7 @@ bq2589x_en-gpio = <&tlmm 92 0>; dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; From 15be839bb235bced2915b51c0b23c195f1f9ff83 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 10 Nov 2021 11:38:23 +0800 Subject: [PATCH 0502/1247] arm/dts: config charging parameter base on OD config max fcc 3A, charging term 128mA for bq25890H Change-Id: I49f8a1dced5c34515f5ed8e8982532126cc3227e Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2111780 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 92a658e69278..ff261a06e76c 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -127,9 +127,9 @@ ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; - ti,bq2589x,charge-voltage = <4350>; - ti,bq2589x,charge-current = <3250>; - ti,bq2589x,term-current = <256>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; ti,bq2589x,enable-auto-dpdm; ti,bq2589x,enable-termination; ti,bq2589x,enable-ico; @@ -175,16 +175,15 @@ mmi,chrg-iterm-ma = <243>; mmi,fg-iterm-ma = <500>; mmi,max-fv-mv = <4450>; - mmi,max-fcc-ma = <4000>; + mmi,max-fcc-ma = <3000>; mmi,demo-fv-mv = <4000>; mmi,df-serialnum = "SB18D33989"; mmi,mmi-temp-zones = <0 4200 970 0>, <10 4200 2500 970>, <15 0 2500 2500>, - <45 0 4000 4000>, + <45 0 3000 3000>, <60 4200 2500 0>; - mmi,thermal-mitigation = <4000000 3500000 - 3000000 2500000 + mmi,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 600000 300000>; From 03827ea0b55ece2479224a45b2baf2963659db20 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 9 Nov 2021 14:16:57 +0800 Subject: [PATCH 0503/1247] arm/dtsi: rhodep remove rt9426a fg dts rhodep project no rt9426a fg Not inculde rt9426a dts. Change-Id: I89b9f8dfae3219253e0e4dbf63416e9a84c0e891 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2110684 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index ea33c1155d39..d8166f19eb62 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -26,7 +26,6 @@ #include "rhodep-wl286xx.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" -#include "rt9426a.dtsi" #include "discrete_charging.dtsi" From 4ca52398ffe98e6b9c2c3a3d87137e080f90aa7c Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 10 Nov 2021 13:53:20 +0800 Subject: [PATCH 0504/1247] arm/dts: rhodep add discrete-rt-pd-manage.dtsi refs to: https://gerrit.mot.com/#/c/2107395/ discrete-rt-pd-manage was discreted from tcpc_config.dts rhodep project didn't add it so build fail. Change-Id: Iac95edf5edfc50e5e344a8c5dd78e69038e65cc6 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2111849 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index d8166f19eb62..17a861bb17bc 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -27,6 +27,7 @@ #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "discrete_charging.dtsi" +#include "discrete-rt-pd-manger.dtsi" &usb0 { From 0ca41e2f45bd8148d250b8ff6b13266d121a72cb Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 10 Nov 2021 14:07:39 +0800 Subject: [PATCH 0505/1247] arm/dts: move extcon config to discrete-rt-pd-manager.dtsi tcpc_config.dtsi config use for config rt1711h device. if project have no PD device, we should not include tcpc_config.dtsi. and extcon is for rt-pd-manage struct, so move extcon config to discrete-rt-pd-manage.dtsi. Change-Id: Ib82b796b657071c6a93adf9e7440b463fff83c95 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2111857 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete-rt-pd-manger.dtsi | 4 ++++ qcom/tcpc_config.dtsi | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/discrete-rt-pd-manger.dtsi b/qcom/discrete-rt-pd-manger.dtsi index 8020a03c1376..ee76a5310744 100644 --- a/qcom/discrete-rt-pd-manger.dtsi +++ b/qcom/discrete-rt-pd-manger.dtsi @@ -24,3 +24,7 @@ }; }; + +&usb0 { + extcon = <&eud>, <&rpm>; +}; diff --git a/qcom/tcpc_config.dtsi b/qcom/tcpc_config.dtsi index 19b160cd6cd4..d48646429f58 100644 --- a/qcom/tcpc_config.dtsi +++ b/qcom/tcpc_config.dtsi @@ -177,7 +177,3 @@ }; }; -&usb0 { - extcon = <&eud>, <&rpm>; -}; - From e968eae662da8a026a5fe470858a36d8ca544a26 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 10 Nov 2021 14:16:27 +0800 Subject: [PATCH 0506/1247] arm/dts: cypfr-overlay dtsi remove usb extcon config refs to:https://gerrit.mot.com/#/c/2111857/ the extcon config to discrete-rt-pd-manage.dtsi we had include it. no need overlay it. Change-Id: Id7b8484af4a305c5760cfe188c4a2b354fcc005b Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2111861 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index c5348e23fa09..2544d79d7a7e 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -582,10 +582,6 @@ }; }; -&usb0 { - extcon = <&eud>, <&rpm>; -}; - &pm8008_8 { status = "disabled"; }; From 435f48f09bc2372c6994d36dac8d13c7d9fe2f3a Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 10 Nov 2021 17:32:29 +0800 Subject: [PATCH 0507/1247] milan5G: sar sensor params 1.update params for sar status:absense. 2.blair-nopmi-moto-common-overlay.dtsi Change-Id: Ic418fecfe30d0cf979df823cd3bc4c6c549480fe Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2112085 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 70 +++++------------------ 1 file changed, 14 insertions(+), 56 deletions(-) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index b9fde8d47faf..9b4cb06824f1 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -102,16 +102,12 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <116>; + Semtech,reg-num = <73>; Semtech,reg-init = < + 0x8024 0x7F00 0x4004 0x70 - 0x4008 0xB - 0x42C0 0x40800 - 0x42C4 0x0 - 0x8010 0x0 - 0x8014 0x0 - 0x8018 0x0 - 0x8018 0x0 + 0x8008 0x0 + 0x4280 0x0 0x8020 0x32 0x8028 0x886 /*AFE_PARAM_PH0*/ 0x8034 0x886 /*AFE_PARAM_PH1*/ @@ -130,6 +126,14 @@ 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 0x8098 0x7A36 0x80B8 0x9536 0x80D8 0x5959 @@ -138,14 +142,6 @@ 0x8138 0xFF 0x8158 0xFF 0x8178 0x5A40 - 0x809C 0x0 - 0x80BC 0x0 - 0x80DC 0x0 - 0x80FC 0x0 - 0x811C 0x0 - 0x813C 0x0 - 0x815C 0x0 - 0x817C 0x0 0x80A0 0x1E1E00E1 0x80C0 0x404000E2 0x80E0 0x222200E1 @@ -158,52 +154,14 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8198 0x0 - 0x81BC 0x0 - 0x819C 0x0 - 0x81AC 0x0 - 0x81A0 0x0 - 0x81B0 0x0 - 0x81A4 0x0 - 0x81B4 0x0 - 0x81A8 0x0 - 0x81B8 0x0 - 0x81C0 0x0 - 0x81D0 0x0 - 0x81C4 0x0 - 0x81D4 0x0 - 0x81C8 0x0 - 0x81D8 0x0 - 0x81CC 0x0 - 0x81DC 0x0 - 0x81E0 0x0 - 0x81E4 0x0 - 0x81E8 0x0 - 0x81EC 0x0 - 0x80A4 0x0 - 0x80C4 0x0 - 0x80E4 0x0 - 0x8104 0x0 - 0x8124 0x0 - 0x8144 0x0 - 0x8164 0x0 - 0x8184 0x0 - 0x8090 0x40CD3000 + 0x8090 0x40CF3000 0x80B0 0x7FB33000 0x80D0 0x40CD3000 - 0x80F0 0x68AE3000 + 0x80F0 0x68B03000 0x8110 0x30273000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD67000 - 0x8094 0x0 - 0x80B4 0x0 - 0x80D4 0x0 - 0x80F4 0x0 - 0x8114 0x0 - 0x8134 0x0 - 0x8154 0x0 - 0x8174 0x0 0x8088 0x300005 0x80A8 0x300005 0x80C8 0x300005 From d665ed90a10297736566829937d86bc661cd641e Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Mon, 8 Nov 2021 14:16:59 +0800 Subject: [PATCH 0508/1247] Create new SW channel ID (retjio) . Changes: Create new SW channel ID (retjio) to support https://idart.mot.com/browse/FEATURE-7403 "retin" remains unchanged. It is up to India team to decide which SW channel ID they would l(CR) to launch for India market. Change-Id: If6d0dfa398fa9106518dd2693917be916a9fc610 Signed-off-by: zhengyd2 Reviewed-on: https://gerrit.mot.com/2109585 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jinxuan Cui Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index d31a642a84be..1caec41a3b9b 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -229,7 +229,7 @@ "softbank", /* 212 */ "optus", /* 213 */ "retkr", /* 214 */ - "undefined", /* 215 */ + "retjio", /* 215 */ "undefined", /* 216 */ "undefined", /* 217 */ "undefined", /* 218 */ From f11fa73bbbfc8c238e7fd6b687dbacd561c87d69 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 11 Nov 2021 14:13:19 +0800 Subject: [PATCH 0509/1247] arm64/dts: milanf: delete gpio 58 from audio smart pa HW gpio is not enough. AW smart pa don't need reset pin. remove gpio58 from audio side. move to cc_logic. Change-Id: I44c8189d1051b7ef1b260cade3ba4ce50eb0d630 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2113028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 2 +- qcom/holi-audio-milanf-overlay.dtsi | 378 ++++++++++++++++++++++++++ 2 files changed, 379 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-audio-milanf-overlay.dtsi diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index ce34819999b5..11c66201f785 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "holi-audio-milanf-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" diff --git a/qcom/holi-audio-milanf-overlay.dtsi b/qcom/holi-audio-milanf-overlay.dtsi new file mode 100644 index 000000000000..3c9258540c4c --- /dev/null +++ b/qcom/holi-audio-milanf-overlay.dtsi @@ -0,0 +1,378 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s1 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <2>; +}; + +&dai_mi2s2 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s3 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xx_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From 5eea59dec2049f4c4ac17026545ac19b914a9a98 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 11 Nov 2021 16:37:30 +0800 Subject: [PATCH 0510/1247] rhodep: sar sensor bringup 1.add sx937x dts for rhpdep 2.blari-rhodep-common-overlay.dtsi Change-Id: I6196a0c7c64c912a41ade18ec91fbeee45f1270d Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2113370 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 3 +- qcom/blair-rhodep-common-overlay.dtsi | 104 ++++++++++++++++++++++ 2 files changed, 106 insertions(+), 1 deletion(-) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 9b4cb06824f1..3022de2c40b0 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -102,7 +102,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <73>; + Semtech,reg-num = <75>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 @@ -179,6 +179,7 @@ 0x814C 0x60200018 0x816C 0x60200018 0x8024 0x7F7F + 0x4280 0xF >; status = "ok"; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 17a861bb17bc..9178a1bcec41 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -254,6 +254,10 @@ }; }; +&sx937x { + status = "disabled"; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; @@ -275,6 +279,106 @@ pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; }; + + sx937x_se7:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x8A6 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x866 /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ + 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0x7A36 + 0x80B8 0x9536 + 0x80D8 0x5959 + 0x80F8 0x3F3F + 0x8118 0x2C2C + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x5A40 + 0x80A0 0x1E1E00E1 + 0x80C0 0x404000E2 + 0x80E0 0x222200E1 + 0x8100 0x161600E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x40CF3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68B03000 + 0x8110 0x30273000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300005 + 0x80A8 0x300005 + 0x80C8 0x300005 + 0x80E8 0x300005 + 0x8108 0x300005 + 0x8128 0x3600000 + 0x8148 0x3600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xF + >; + + status = "ok"; + }; }; &thermal_zones { From e30efff98360a7b8441b9d3c6ed7846264503c57 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 11 Nov 2021 16:55:13 +0800 Subject: [PATCH 0511/1247] arm/dts: config GPIO58 input and pull down As DVT1 HW design, milanf GPIO58 load to electric leakage. So need to config GPIO58 to input and pull down. Don't need to use GPIO58 to control sgm7220 CC_EN pin. Change-Id: I87c3e216630c7b928a48d96915c74df70be8dabf Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2113378 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt1-overlay.dts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts index e32d40932a41..1ae9e3a73a90 100644 --- a/qcom/blair-milanf-dvt1-overlay.dts +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -78,6 +78,25 @@ pins = "gpio48"; }; }; + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + }; +}; + +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; }; &et528 { From c65fff2448a1d412e45c0627ef2eaca9308e1d21 Mon Sep 17 00:00:00 2001 From: jixj Date: Thu, 11 Nov 2021 15:31:38 +0800 Subject: [PATCH 0512/1247] Add "mmi_annotate" node for 4350 pro and 6375 Add "mmi_annotate" node to driver work well and annotate info can be appended into last kmsg. Change-Id: Iced0f40fb1f87cb3bfe42bdb58e6c7b09df9525a Reviewed-on: https://gerrit.mot.com/2113207 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 8 ++++++++ qcom/blair-pm6125-moto-common-overlay.dtsi | 8 ++++++++ qcom/holi-pm6125-moto-common-overlay.dtsi | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 3022de2c40b0..c3a760510372 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -54,6 +54,14 @@ }; }; +&soc { + mmi_annotate { + compatible = "mmi,annotate"; + memory-region = <&mmi_annotate_mem>; + mem-size = <0x20000>; + }; +}; + &tlmm { sar_int_default: sar_int_default { mux { diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index dd5b2daa5da3..182565d4cbb9 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -56,6 +56,14 @@ }; }; +&soc { + mmi_annotate { + compatible = "mmi,annotate"; + memory-region = <&mmi_annotate_mem>; + mem-size = <0x20000>; + }; +}; + &tlmm { sar_int_default: sar_int_default { mux { diff --git a/qcom/holi-pm6125-moto-common-overlay.dtsi b/qcom/holi-pm6125-moto-common-overlay.dtsi index 803c21d68e03..336adba8a0ea 100644 --- a/qcom/holi-pm6125-moto-common-overlay.dtsi +++ b/qcom/holi-pm6125-moto-common-overlay.dtsi @@ -58,6 +58,14 @@ }; }; +&soc { + mmi_annotate { + compatible = "mmi,annotate"; + memory-region = <&mmi_annotate_mem>; + mem-size = <0x20000>; + }; +}; + &mdss_dsi_phy0 { qcom,platform-strength-ctrl = [55 03 00 00 55 03 00 00 From cbd196ddd515782d20e0d98cad596fe1c620f4fb Mon Sep 17 00:00:00 2001 From: louhs1 Date: Wed, 3 Nov 2021 21:35:12 +0800 Subject: [PATCH 0513/1247] arm/dts: rhodec: init the dts file remove the dvt and pvt dts file add evb dts file Change-Id: I52da0aff75740b2ff510210a03945b28f31946f6 Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2106633 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Xiaojun Ji Submit-Approved: Jira Key --- qcom/Makefile | 8 +- qcom/discrete_charging_holi.dtsi | 189 ++++++++++++++++++ qcom/holi-nopmi-moto-common-overlay.dtsi | 103 ++++++++++ qcom/holi-rhodec-common-overlay.dtsi | 136 +------------ qcom/holi-rhodec-dvt2-overlay.dts | 24 --- ...verlay.dts => holi-rhodec-evb-overlay.dts} | 2 +- qcom/holi-rhodec-pvt-overlay.dts | 24 --- 7 files changed, 300 insertions(+), 186 deletions(-) create mode 100644 qcom/discrete_charging_holi.dtsi create mode 100644 qcom/holi-nopmi-moto-common-overlay.dtsi delete mode 100644 qcom/holi-rhodec-dvt2-overlay.dts rename qcom/{holi-rhodec-dvt1-overlay.dts => holi-rhodec-evb-overlay.dts} (95%) delete mode 100644 qcom/holi-rhodec-pvt-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 303a87bf2203..a57e25a7f94b 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -76,13 +76,9 @@ holi-cypfq-dvt2-overlay.dtbo-base := holi-moto-base.dtb holi-cypfq-pvt-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_RHODEC_DTB) += \ - holi-rhodec-dvt1-overlay.dtbo \ - holi-rhodec-dvt2-overlay.dtbo \ - holi-rhodec-pvt-overlay.dtbo + holi-rhodec-evb-overlay.dtbo -holi-rhodec-dvt1-overlay.dtbo-base := holi-moto-base.dtb -holi-rhodec-dvt2-overlay.dtbo-base := holi-moto-base.dtb -holi-rhodec-pvt-overlay.dtbo-base := holi-moto-base.dtb +holi-rhodec-evb-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ blair-cypfr-evb-overlay.dtbo \ diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi new file mode 100644 index 000000000000..f099ceeff5ec --- /dev/null +++ b/qcom/discrete_charging_holi.dtsi @@ -0,0 +1,189 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; + + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&qusb_phy0>; + mmi,qc3-support; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq>; + bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&qusb_phy0>; + + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4350>; + ti,bq2589x,charge-current = <3250>; + ti,bq2589x,term-current = <256>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; +}; + +&tlmm { + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <100000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,df-serialnum = "SB18D33989"; + mmi,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 2500 0>; + mmi,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + diff --git a/qcom/holi-nopmi-moto-common-overlay.dtsi b/qcom/holi-nopmi-moto-common-overlay.dtsi new file mode 100644 index 000000000000..93a78b39d082 --- /dev/null +++ b/qcom/holi-nopmi-moto-common-overlay.dtsi @@ -0,0 +1,103 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-pm6125-overlay.dtsi" +#include "holi-regulators-pm6125.dtsi" +#include "carrier-channel-ids.dtsi" +#include + +&utags { + compatible = "mmi,utags"; + mmi,main-utags = "/dev/block/bootdevice/by-name/utags"; + mmi,backup-utags = "/dev/block/bootdevice/by-name/utagsBackup"; +}; + +&hw { + compatible = "mmi,utags"; + mmi,dir-name = "hw"; + mmi,main-utags = "/dev/block/bootdevice/by-name/hw"; +}; + +&reserved_memory { + ramoops_mem { + compatible = "ramoops"; + no-map; + reg = <0x0 RAMOOPS_BASE_ADDR 0x0 RAMOOPS_SIZE>; + console-size = ; + pmsg-size = ; + record-size = ; + no-dump-oops; + }; + + wdog_cpuctx_mem: wdog_cpuctx_region { + no-map; + reg = <0x0 WDOG_CPUCTX_BASE + 0x0 WDOG_CPUCTX_SIZE>; + }; + + tzlog_dump_mem: tzlog_dump_mem_region { + no-map; + reg = <0x0 TZLOG_BCK_BASE + 0x0 TZLOG_BCK_SIZE>; + }; + + mmi_annotate_mem: mmi_annotate_mem_region { + no-map; + reg = <0x0 MMI_ANNOTATE_BASE + 0x0 MMI_ANNOTATE_SIZE>; + }; +}; + +&soc { + mmi_annotate { + compatible = "mmi,annotate"; + memory-region = <&mmi_annotate_mem>; + mem-size = <0x20000>; + }; +}; + +&tlmm { + sar_int_default: sar_int_default { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_sleep: sar_int_sleep { + mux { + pins = "gpio24"; + function = "gpio"; + }; + config { + pins = "gpio24"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&ufshc_mem { + spm-level = <3>; +}; + +&qupv3_se8_i2c_sleep { + config { + input-enable; + }; +}; diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index c751b15a307b..a124a9f0af5f 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-pm6125-moto-common-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" #include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include @@ -18,14 +18,12 @@ #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include "camera/holi-camera-sensor-mot-rhodec-overlay.dtsi" #include "rhodec-display.dtsi" #include "rhodec-touchscreen.dtsi" #include "rhodec-fmr-overlay.dtsi" - -&smb1394 { - status = "disabled"; -}; +#include "tcpc_config.dtsi" +#include "sgm7220.dtsi" +#include "discrete_charging_holi.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -107,19 +105,6 @@ }; &tlmm { - google_key_default: google_key_default { - mux { - pins = "gpio11"; - function = "gpio"; - }; - - config { - pins = "gpio11"; - drive-strength = <2>; - bias-pull-up; - }; - }; - cam_pmic_en_default: cam_pmic_en_default { mux { pins = "gpio38"; @@ -250,65 +235,7 @@ }; }; -&qupv3_se10_i2c { - status = "ok"; - cam_pmic: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - - semi,cs-gpios = <&tlmm 38 0>; - - pinctrl-names = "default"; - pinctrl-0 = <&cam_pmic_en_default>; - - vin1-supply = <&S6A>; - - regulators { - cam_ldo1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_ldo3: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo4: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo5: ldo5 { - regulator-name = "ldo5"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo6: ldo6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_ldo7: ldo7 { - regulator-name = "ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - }; - }; -}; &pm8008_8 { status = "disabled"; @@ -324,7 +251,7 @@ label = "gpio-keys"; pinctrl-names = "default"; - pinctrl-0 = <&key_vol_up_default &google_key_default>; + pinctrl-0 = <&key_vol_up_default>; vol_up { label = "volume_up"; @@ -335,16 +262,6 @@ debounce-interval = <15>; linux,can-disable; }; - - google_key { - label = "google_key"; - gpios = <&tlmm 11 GPIO_ACTIVE_LOW>; - linux,input-type = <1>; - linux,code = ; - gpio-key,wakeup; - debounce-interval = <15>; - linux,can-disable; - }; }; }; @@ -362,13 +279,6 @@ }; }; -&pm7250b_vib { - qcom,vib-ldo-volt-uv = <3000000>; - qcom,vib-dis-short-long; - qcom,vib-dis-short-long-val = <70>; - qcom,vib-ldo-volt-uv-long = <2600000>; -}; - &mot_batterydata { df-serialnum = "SB18C77591"; qcom,batt-id-range-pct = <15>; @@ -376,14 +286,6 @@ #include "qg-batterydata-jk50-scud-5000mah.dtsi" }; -&pm7250b_mmi { - qcom,mmi-temp-zones = <0 4200 1000 0>, - <15 0 1000 1000>, - <45 0 3000 3000>, - <60 4200 2500 0>; - qcom,iterm-ma = <150>; -}; - &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -406,20 +308,6 @@ xo-therm-usr { status = "disabled"; }; - chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; pa_therm1 { polling-delay-passive = <0>; @@ -527,20 +415,6 @@ }; }; -&pm7250b_charger { - qcom,otg-cl-ua = <1500000>; - qcom,dcp-curr-max = <2000000>; - qcom,fcc-max-ua = <2900000>; - qcom,fv-max-uv = <4400000>; - qcom,thermal-mitigation = <2900000 2600000 - 2000000 1500000 - 1200000 900000 - 600000 300000>; -}; - -&pm7250b_qg { - qcom,qg-iterm-ma = <500>; -}; &pm6125_gpios { indicator_led { diff --git a/qcom/holi-rhodec-dvt2-overlay.dts b/qcom/holi-rhodec-dvt2-overlay.dts deleted file mode 100644 index 2475e2b87a76..000000000000 --- a/qcom/holi-rhodec-dvt2-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-rhodec-common-overlay.dtsi" - -/ { - model = "rhodec"; - compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xB200>; -}; - diff --git a/qcom/holi-rhodec-dvt1-overlay.dts b/qcom/holi-rhodec-evb-overlay.dts similarity index 95% rename from qcom/holi-rhodec-dvt1-overlay.dts rename to qcom/holi-rhodec-evb-overlay.dts index dfa9ebc54d84..cf0cc46f16ae 100644 --- a/qcom/holi-rhodec-dvt1-overlay.dts +++ b/qcom/holi-rhodec-evb-overlay.dts @@ -19,6 +19,6 @@ model = "rhodec"; compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xB100>; + qcom,board-id = <0x47 0x9000>; }; diff --git a/qcom/holi-rhodec-pvt-overlay.dts b/qcom/holi-rhodec-pvt-overlay.dts deleted file mode 100644 index 438898fee2d4..000000000000 --- a/qcom/holi-rhodec-pvt-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "holi-rhodec-common-overlay.dtsi" - -/ { - model = "rhodec"; - compatible = "qcom,holi-rhodec", "qcom,holi-moto", "qcom,holi"; - qcom,msm-id = <454 0x10000>, <472 0x10000>; - qcom,board-id = <0x47 0xC000>, <0x48 0xC000>; -}; - From 32f9ccca4bcd5d45d3da3eb1083cda72bef35369 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 12 Nov 2021 10:08:26 +0800 Subject: [PATCH 0514/1247] arm/dts: milanf update usb phy parameter override_x1 from 0x85 to 0x25, set pre-emphasis level to HIGHEST & Hs transmitter pre-emphasis duration control to short pre-emphasis, the test report is better. Change-Id: Ia21cd07fc1ca0783f33d00e3c615957a9fb2daac Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2114240 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index 11c66201f785..a8899d6ec552 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -448,3 +448,11 @@ }; }; +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + From c9a5fee048b6513e3e9198674fda793b01fcfea9 Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 12 Nov 2021 16:25:59 +0800 Subject: [PATCH 0515/1247] arm64/dts:Rhodep:bringup audio Rhode5G+ use 6375+ two aw88261 smart pa. config related dts. Change-Id: Icd0e23e50324e9dc69e8490fa1111f86241dd5a4 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2114842 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...udio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 408 ++++++++++++++++++ qcom/blair-rhodep-common-overlay.dtsi | 2 +- 2 files changed, 409 insertions(+), 1 deletion(-) create mode 100644 qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi diff --git a/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi new file mode 100644 index 000000000000..9edfd2115569 --- /dev/null +++ b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -0,0 +1,408 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s1 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <2>; +}; + +&dai_mi2s2 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&dai_mi2s3 { + status = "okay"; + qcom,msm-mi2s-rx-lines = <1>; + qcom,msm-mi2s-tx-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_recv_irq_default>; + irq-gpio = <&tlmm 60 0x2008>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-tx-port-id = <0x1001>; + aw-rx-port-id = <0x1000>; + aw-re-min = <4000>; + aw-re-max= <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 9178a1bcec41..a5835e1d5d25 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" +#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" From 67c1733dfe971a660fff1ee8cbe95e014484a066 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 12 Nov 2021 14:19:29 +0800 Subject: [PATCH 0516/1247] arm/dts: set otg current limit 2A config otg current limit 2A for all charging ic Change-Id: Id03223d0a0eb26ec0c9623195fcd3a1ec6d01d50 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2114469 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index ff261a06e76c..61a09ac2ac1b 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -177,6 +177,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <3000>; mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <2000000>; mmi,df-serialnum = "SB18D33989"; mmi,mmi-temp-zones = <0 4200 970 0>, <10 4200 2500 970>, From 8f0dd142dde29ddbc5119586eb204f7fce0b9c45 Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Thu, 11 Nov 2021 09:40:54 +0800 Subject: [PATCH 0517/1247] Thermal: bring up thermal ntc for Rhode 5G Plus Config the thermal NTC for Rhode5G Plus. According to the GPIO mapping table. Change-Id: I46334dba664d47620636f1495a198f579422d3d4 Reviewed-on: https://gerrit.mot.com/2115820 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 168 +++++++++++--------------- 1 file changed, 70 insertions(+), 98 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index a5835e1d5d25..b96c22364681 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -220,44 +220,6 @@ status = "ok"; }; -&pmk8350_vadc { - pmk8350_qtm_n_therm { - reg = ; - label = "pmk8350_qtm_n_therm"; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - qcom,pre-scaling = <1 1>; - }; - pmk8350_qtm_e_therm { - reg = ; - label = "pmk8350_qtm_e_therm"; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - qcom,pre-scaling = <1 1>; - }; -}; - -&pmk8350_adc_tm { - io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, - <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, - <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; - - qtm_n__therm { - reg = ; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - }; - qtm_e_therm { - reg = ; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - }; -}; - -&sx937x { - status = "disabled"; -}; - &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; @@ -381,34 +343,93 @@ }; }; +&pmk8350_vadc { + pmk8350_chg_therm { + reg = ; + label = "pmk8350_chg_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pmk8350_usb_conn_therm { + reg = ; + label = "pmk8350_ufs_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + usb_conn_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; }; - rear-cam-therm-usr { status = "disabled"; }; - camera-therm-usr { status = "disabled"; }; - quiet-therm-usr { status = "disabled"; }; - pa-therm0-usr { status = "disabled"; }; - pa-therm1-usr { status = "disabled"; }; - xo-therm-usr { status = "disabled"; }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_conn_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -424,7 +445,8 @@ }; }; - chg_therm { + + rfc_camera_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -439,7 +461,7 @@ }; }; - cam_flash_therm { + camera_flash_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -454,7 +476,7 @@ }; }; - pa_therm2 { + pa_therm1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -469,7 +491,7 @@ }; }; - pa_therm1 { + pa_therm2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -490,56 +512,6 @@ thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - - active-config1 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - qtm_n_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - qtm_e_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; - wake-capable-sensor; trips { active-config0 { temperature = <125000>; From 6428a5058cd96e7d560c7bf3c70b9bcbe033f5f4 Mon Sep 17 00:00:00 2001 From: wutao Date: Sun, 14 Nov 2021 14:36:41 +0800 Subject: [PATCH 0518/1247] arm/dts: add charger and fg and tcpc dts add charger and fgauge and cc logic and qc logic dts for charging bring up Change-Id: I5cfeed25f05d03b134408db924cb070a9e6f26be Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2114586 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- qcom/discrete_charging_rhodep.dtsi | 323 ++++++++++++++++++++++++++ 2 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 qcom/discrete_charging_rhodep.dtsi diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index b96c22364681..d5b0902d0fc8 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -26,7 +26,7 @@ #include "rhodep-wl286xx.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" -#include "discrete_charging.dtsi" +#include "discrete_charging_rhodep.dtsi" #include "discrete-rt-pd-manger.dtsi" diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi new file mode 100644 index 000000000000..a5e29d50ea33 --- /dev/null +++ b/qcom/discrete_charging_rhodep.dtsi @@ -0,0 +1,323 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; + + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; + +&qupv3_se10_i2c { + status = "okay"; + bq2597x-charger@65 { + compatible = "ti,bq25970-charger"; + reg = <0x65>; + //ti,bq2597x,interrupt_gpios = <&pio 30 0>; + //interrupt-parent = <&pio>; + //interrupts = <2 IRQ_TYPE_EDGE_FALLING 2 0>; + //interrupt-names = "bq2597x_irq"; + + //pinctrl-names = "default_slave"; + //pinctrl-0 = <&bq2597x_int_default_slave>; + interrupt-parent = <&tlmm>; + interrupts = <84 0>; //irq num base on hardware design + bq2597x,irq-gpio = <&tlmm 84 0>; //irq num base on hardware design + + ti,bq2597x,bat-ovp-disable = <0>; + ti,bq2597x,bat-ocp_disable = <0>; + ti,bq2597x,bat-ovp-alarm-disable = <0>; + ti,bq2597x,bus-ocp-disable = <0>; + ti,bq2597x,bus-ovp-alarm-disable = <0>; + ti,bq2597x,bus-ocp-alarm-disable = <0>; + ti,bq2597x,bat-ucp-alarm-disable = <0>; + ti,bq2597x,bat-therm-disable = <0>; + ti,bq2597x,bus-therm-disable = <0>; + + ti,bq2597x,bat-ovp-threshold = <4500>; + ti,bq2597x,bat-ovp-alarm-threshold = <4450>; + ti,bq2597x,bat-ocp-threshold = <8000>; + ti,bq2597x,bat-ocp-alarm-threshold = <7500>; + + ti,bq2597x,bus-ovp-threshold = <12000>; + ti,bq2597x,bus-ovp-alarm-threshold = <11000>; + ti,bq2597x,bus-ocp-threshold = <3750>; + ti,bq2597x,bus-ocp-alarm-threshold = <3500>; + + ti,bq2597x,bat-ucp-alarm-threshold = <2000>; + + ti,bq2597x,bat-therm-threshold = <0x15>; + ti,bq2597x,bus-therm-threshold = <0x15>; + ti,bq2597x,die-therm-threshold = <125>; + + ti,bq2597x,ac-ovp-threshold = <17>; + ti,bq2597x,sense-resistor-mohm = <5>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + //sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890@62 { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x62>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + //bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&usb2_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; + + wt6670f@35 { + status = "okay"; + compatible = "mediatek,wt6670f_qc3p"; + reg = <0x35>; + wt6670f-reset-gpio = <&tlmm 56 0x0>; + wt6670f-int-gpio = <&tlmm 85 0x0>; + //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; + //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; + + //pinctrl-names = "default", + //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", + //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", + //"wt6670_i2c"; + + //pinctrl-0 = <&wt6670_pins_default>; + //pinctrl-1 = <&wt6670_pins_scl_low>; + //pinctrl-2 = <&wt6670_pins_scl_high>; + //pinctrl-3 = <&wt6670_pins_sda_low>; + //pinctrl-4 = <&wt6670_pins_sda_high>; + //pinctrl-5 = <&wt6670_pins_i2c>; + }; +}; + +&tlmm { + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + //add wt6670 pins + wt6670_pins_default: wt6670_default_mode { + }; + wt6670_pins_scl_low: wt6670_scl_low { + mux { + pins = "gpio1"; + function = "gpio"; + }; + + config { + pins = "gpio1"; + drive-strength = <2>; + bias-pull-down; + }; + }; + wt6670_pins_scl_high: wt6670_scl_high { + mux { + pins = "gpio1"; + function = "gpio"; + }; + + config { + pins = "gpio1"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; + wt6670_pins_sda_low: wt6670_sda_low { + mux { + pins = "gpio0"; + function = "gpio"; + }; + + config { + pins = "gpio0"; + drive-strength = <2>; + bias-pull-down; + }; + }; + wt6670_pins_sda_high: wt6670_sda_high { + mux { + pins = "gpio0"; + function = "gpio"; + }; + + config { + pins = "gpio0"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; +/* + wt6670_pins_i2c: wt6670_i2c_mode { + pins_cmd_dat { + pinmux = , + ; + }; + }; +*/ +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <100000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <3000>; + mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <2000000>; + mmi,df-serialnum = "SB18D33989"; + mmi,mmi-temp-zones = <0 4200 970 0>, + <10 4200 2500 970>, + <15 0 2500 2500>, + <45 0 3000 3000>, + <60 4200 2500 0>; + mmi,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + From 0aa21ab84420462fea7a3e5e93ed70777e58d280 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 16 Nov 2021 10:41:07 +0800 Subject: [PATCH 0519/1247] arm/dts: disable ico feature TI ico feature will limit input current, so disable it for better charging performance Change-Id: Ibd5c834970bfefc3d11a15dba74cf2c04ce895c5 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2116815 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 61a09ac2ac1b..a6817d7bed8b 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -132,7 +132,6 @@ ti,bq2589x,term-current = <128>; ti,bq2589x,enable-auto-dpdm; ti,bq2589x,enable-termination; - ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; }; }; From 2b66450334627888d9ca0a11bc0965e884f42ffb Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Tue, 16 Nov 2021 13:48:53 +0800 Subject: [PATCH 0520/1247] fixup! (CR): Thermal: bring up thermal ntc for Rhode 5G Plus Add the missing change to disable sx937x. Try to fixup the previous commit Change-Id: I7ee9a38f77b04bf45bed972a880b83f6a843bd1b Mot-CRs-fixed: (CR) Reviewed-on: https://gerrit.mot.com/2117036 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Xiaojun Ji Reviewed-by: Minghui Wei Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index d5b0902d0fc8..bba7ad8505dc 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -220,6 +220,10 @@ status = "ok"; }; +&sx937x { + status = "disabled"; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; From 2bb7e5bdc5ae612ea636f3919e0e3d01032ddb04 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 17 Nov 2021 17:33:18 +0800 Subject: [PATCH 0521/1247] arm64/dt: rhodep: config ets fps node Config ets528 device node Disable nfc to avoid gpio request fail issue. Change-Id: I897504c2e97b76099bec3d29f58f5b426a95fe97 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2119067 Reviewed-by: Huosheng Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- qcom/rhodep-fps-overlay.dtsi | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index bba7ad8505dc..f2996051cf34 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -231,7 +231,7 @@ st21nfc@8 { compatible = "st,st21nfc"; mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; + status = "disable"; reg = <0x08>; st,irq_gpio = <&tlmm 9 0x00>; st,reset_gpio = <&tlmm 6 0x00>; diff --git a/qcom/rhodep-fps-overlay.dtsi b/qcom/rhodep-fps-overlay.dtsi index 364d5a440a08..3d520dc22193 100644 --- a/qcom/rhodep-fps-overlay.dtsi +++ b/qcom/rhodep-fps-overlay.dtsi @@ -44,12 +44,12 @@ ets_vcc_high: ets_vcc_high { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ output-high; }; @@ -58,12 +58,12 @@ ets_vcc_low: ets_vcc_low { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ output-low; }; @@ -136,7 +136,7 @@ interrupts = <17 0x0>; fp-ctrl-power; fp-gpio-vcc-enable; - egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_vcc_en = <&tlmm 6 0x0>; egistec,gpio_irq = <&tlmm 17 0x0>; egistec,gpio_reset = <&tlmm 18 0x0>; pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", From eb43ccdf8aec07e4a52cb57d78db69fbe0da4282 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 17 Nov 2021 16:38:32 +0800 Subject: [PATCH 0522/1247] Rhodep: dts/panel: add csot panel Rhodep: csot + nt37701 + dsc + 10bits Change-Id: Ia2485132ec71d694872ba3f06f6cc51e7d0eafca Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2119028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 506 ++++++++++++++++++ 1 file changed, 506 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi new file mode 100644 index 000000000000..16b0e576f2e1 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -0,0 +1,506 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_csot_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { + compatible = "qcom,mdss-dsi-panel"; + qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_655"; + qcom,mdss-dsi-panel-supplier = "csot"; + qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <152>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-panel-param-verision = <121201>; + qcom,mdss-dsi-panel-param-num = <5>; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-te-pin-select = <1>; + qcom,mdss-dsi-te-dcs-command = <1>; + + qcom,mdss-dsi-te-using-te-pin; + + qcom,bklt-dcs-2bytes-enabled; + qcom,mdss-dsi-bl-min-level = <3>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <4200000>; + + qcom,mdss-dsi-panel-blackness-level = <3230>; + + qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 07 FF]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + + //qcom,mdss-dsi-acl-on-command = [ + // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + // 15 00 00 00 00 00 02 B0 0C + // 15 01 00 00 00 00 02 55 05]; + //qcom,mdss-dsi-acl-off-command = [ + // 15 01 00 00 00 00 02 55 00]; + + qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 98 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 01]; + qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 3B 00 1A 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 3B 00 1A 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 6e 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 3B 00 1A 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 3B 00 1A 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 3B 00 1A 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + }; + }; +}; From bcb11f5e92fd01367c2f11b20a1a45d160e3897d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 17 Nov 2021 16:46:27 +0800 Subject: [PATCH 0523/1247] Rhodep: dts/panel: Support for csot and tianma panel csot + nt37701 + dsc + 10bits tianma + nt37701 + dsc + 10bits Change-Id: If61a47d5e3ce6e05adb662455d47a346b1981236 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2119030 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-display.dtsi | 333 +++++++++++++++++++++------------------ 1 file changed, 180 insertions(+), 153 deletions(-) diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi index f0fe93701d03..b3c7a677cab0 100644 --- a/qcom/rhodep-display.dtsi +++ b/qcom/rhodep-display.dtsi @@ -1,35 +1,37 @@ +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" &display_panel_avdd { /delete-property/ gpio; /delete-property/ pinctrl-0; }; +&display_panel_avdd { + status = "disabled"; +}; + +&display_panel_ibb { + status = "disabled"; +}; + +&qupv3_se2_spi { + status = "disabled"; +}; + +&qupv3_se2_i2c { + status = "disabled"; +}; &tlmm { - lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + panel_vci_en_default: panel_vci_en_default { mux { - pins = "gpio85"; + pins = "gpio46"; function = "gpio"; }; config { - pins = "gpio85"; - drive-strength = <8>; - bias-disable = <0>; - output-high; - }; - }; - - lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { - mux { - pins = "gpio86"; - function = "gpio"; - }; - - config { - pins = "gpio86"; + pins = "gpio46"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -38,66 +40,57 @@ }; &soc { - lcd_panel_avdd: lcd_gpio_regulator@1 { - compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avdd"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 85 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&lcd_panel_avdd>; - pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsp_en_default>; + dsi_panel_pwr_supply_amoled: dsi_panel_pwr_supply_amoled { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <0>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <10>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <30000>; + qcom,supply-disable-load = <0>; + qcom,supply-post-on-sleep = <0>; + qcom,supply-post-off-sleep = <2>; + }; }; - lcd_panel_avee: lcd_gpio_regulator@2 { + panel_vci: panel_gpio_regulator@1 { compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avee"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; + regulator-name = "panel_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 86 0>; + gpio = <&tlmm 46 0>; enable-active-high; regulator-boot-on; - proxy-supply = <&lcd_panel_avee>; + proxy-supply = <&panel_vci>; pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsn_en_default>; + pinctrl-0 = <&panel_vci_en_default>; }; - - dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { - #address-cells = <1>; - #size-cells = <0>; - - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <62000>; - qcom,supply-disable-load = <80>; - }; - - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - }; - - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-post-on-sleep = <10>; - }; - }; }; &sde_dsi { @@ -107,55 +100,141 @@ /delete-property/ qcom,dsi-default-panel; /delete-property/ avdd-supply; + vci-supply = <&panel_vci>; vddio-supply = <&L13A>; - lab-supply = <&lcd_panel_avdd>; - ibb-supply = <&lcd_panel_avee>; - - qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; + dvdd-supply = <&L3A>; + qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; }; -&dsi_tm_nt36672e_678_fhdp_120_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,tp_state_check_enable; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-clockrate = <900000000>; - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; + //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + }; + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; }; }; }; @@ -178,55 +257,3 @@ }; }; - -&qupv3_se10_i2c { - status = "ok"; - - lcd_backlight@36 { - compatible = "awinic,aw99703-bl","ti,lm3697"; - reg = <0x36>; - - /* Awinic, aw99703 */ - aw99703,hwen-gpio = <&tlmm 13 0>; - aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ - aw99703,using-lsb; - aw99703,ovp-level = <2>; /* 31V */ - aw99703,ocp-level = <1>; /* 1.8A */ - aw99703,switch-freq = <1>; /* 1000kHz(default) */ - aw99703,auto-freq-high = <0x10>; - aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <3>; - aw99703,turn-on-ramp = <0x09>; /* 256ms */ - aw99703,turn-off-ramp = <0x04>; /* 8ms */ - aw99703,pwm-trans-dim = <0>; /* 2ms */ - aw99703,i2c-trans-dim = <0x07>; /* 512ms */ - aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ - aw99703,map-type = <1>; /* linear */ - aw99703,work-mode = <1>; /* backlight */ - - /* TI, lm3697*/ - enable-gpios = <&tlmm 13 0>; - backlight { - compatible = "ti,lm3697-backlight"; - lcd { - led-sources = <0 1 2>; - ramp-up-msec = <200>; - ramp-down-msec = <200>; - pwm-period = <0>; - current-mode = <2>; /*2: 25mA*/ - boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/ - boost-freq = <1>; /*0:500Khz 1:1Mhz*/ - default-brightness-level = <255>; - }; - }; - }; -}; - -&qupv3_se10_i2c_sleep { - config { - /delete-property/ bias-disable; - bias-pull-up; - input-enable; - }; -}; From 7b402dec1a7579962c7db5b15f4ca95abba80e9c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 17 Nov 2021 16:38:46 +0800 Subject: [PATCH 0524/1247] Rhodep: dts/panel: add tianma panel Rhodep: tianma + nt37701 + dsc + 10bits Change-Id: Ib564480fadef66e7e863bf9aa026ce28a6716f4a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2119029 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 428 ++++++++++++++++++ 1 file changed, 428 insertions(+) create mode 100644 qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi new file mode 100644 index 000000000000..7f33882410f9 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -0,0 +1,428 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_tm_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { + compatible = "qcom,mdss-dsi-panel"; + qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; + qcom,mdss-dsi-panel-supplier = "tianma"; + qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <152>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-panel-param-verision = <121201>; + qcom,mdss-dsi-panel-param-num = <5>; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-te-pin-select = <1>; + qcom,mdss-dsi-te-dcs-command = <1>; + + qcom,mdss-dsi-te-using-te-pin; + + qcom,bklt-dcs-2bytes-enabled; + qcom,mdss-dsi-bl-min-level = <3>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <4200000>; + + qcom,mdss-dsi-panel-blackness-level = <3230>; + + qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 07 FF]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + + //qcom,mdss-dsi-acl-on-command = [ + // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + // 15 00 00 00 00 00 02 B0 0C + // 15 01 00 00 00 00 02 55 05]; + //qcom,mdss-dsi-acl-off-command = [ + // 15 01 00 00 00 00 02 55 00]; + + + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + 39 01 00 00 00 00 05 3B 00 10 00 04 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + 39 01 00 00 00 00 05 3B 00 10 00 04 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + }; + }; +}; + + From fceaf387c8191f3c52a7f20c11f63a6a20baa3d4 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 5 Nov 2021 16:19:16 +0800 Subject: [PATCH 0525/1247] rhodep: arm64/dts: gt9916s bringup - Add initial gt9916a dts config. - Compitable with csot and tianma panel. Change-Id: I7277dc8ad67a8c9eea6264983f015fbf302e4153 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2108639 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 36 ++++++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 14 deletions(-) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index b384e8cb0171..18b0b3da96e9 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -73,19 +73,27 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - novatek@0{ - compatible = "novatek,NVT-ts-spi"; - reg = <0x0>; - spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ - novatek,reset-gpio = <&tlmm 21 0x00>; - novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2460>; - novatek,swrst-n8-addr = <0x03F0FE>; - novatek,spi-rd-fast-addr = <0x03F310>; - novatek,report_gesture_key; - novatek,usb_charger; - panel = <&dsi_tm_nt36672e_678_fhdp_120_video>; - status = "ok"; - }; + goodix_ts_spi@0 { + status = "ok"; + compatible = "goodix,gt9916S"; + reg = <0x0>; + mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x2002>; + goodix,avdd-gpio = <&tlmm 92 0x0>; + goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-id = <10>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + }; }; From 2b9f45170bab29b4bb8e4d87bec955a29181047a Mon Sep 17 00:00:00 2001 From: wutao Date: Fri, 19 Nov 2021 11:06:47 +0800 Subject: [PATCH 0526/1247] arm/dts: rhpdep: remove unused hall sensor's dts for rhode 5G+: - remove unused hall sensor's dts config; - rhodep-sensors.dtsi only for hall sensor,so delete it - fixed the gpio confilict by hall's irq_pin for wt6670f reset pin. Change-Id: I9ea436d62a88b142880004d1878269067ba8eaf8 Reviewed-on: https://gerrit.mot.com/2119043 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jianqiu Huang Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 1 - qcom/rhodep-sensors.dtsi | 51 --------------------------- 2 files changed, 52 deletions(-) delete mode 100755 qcom/rhodep-sensors.dtsi diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index f2996051cf34..870aa1610573 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -21,7 +21,6 @@ #include "rhodep-fps-overlay.dtsi" #include "rhodep-display.dtsi" #include "rhodep-touchscreen.dtsi" -#include "rhodep-sensors.dtsi" #include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" #include "rhodep-wl286xx.dtsi" #include "tcpc_config.dtsi" diff --git a/qcom/rhodep-sensors.dtsi b/qcom/rhodep-sensors.dtsi deleted file mode 100755 index f3426b6eb2ab..000000000000 --- a/qcom/rhodep-sensors.dtsi +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright (c) 2019, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -&tlmm { - pen_int_default: pen_int_default { - mux { - pins = "gpio84"; - function = "gpio"; - }; - config { - pins = "gpio84"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-no-pull; - }; - }; - - pen_int_sleep: pen_int_sleep { - mux { - pins = "gpio84"; - function = "gpio"; - }; - config { - pins = "gpio84"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-no-pull; - }; - }; -}; - -&soc { - pen_detect{ - compatible = "rohm,bu520xx_pen_detect"; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&pen_int_default>; - pinctrl-1 = <&pen_int_sleep>; - rohm,nirq-gpio=<&tlmm 84 0x02>; - }; -}; - From a2b45df0cf04ff655580dc196985d59c3f25d09a Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 24 Nov 2021 15:26:13 +0800 Subject: [PATCH 0527/1247] arm64/dts: adjust dai_mis2 config base on the latest qcom release base on qc/LA.UM.9.16.r1-08300-MANNAR.QSSI12.0 qcom modify the dai_mis2 config. Change-Id: I915525761a0a4d272475de339444bfb28c95a3f8 Signed-off-by: liaohj --- ...udio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 40 +++++++++++++------ qcom/holi-audio-milanf-overlay.dtsi | 40 +++++++++++++------ ...oli-audio-wcd9370-aw882xx-acf-overlay.dtsi | 40 +++++++++++++------ qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi | 40 +++++++++++++------ 4 files changed, 112 insertions(+), 48 deletions(-) diff --git a/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index 9edfd2115569..eba8c5051ce3 100644 --- a/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi +++ b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -42,28 +42,44 @@ status = "okay"; }; -&dai_mi2s0 { +&dai_mi2s0_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s1 { +&dai_mi2s0_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <2>; + qcom,msm-mi2s-lines = <0>; }; -&dai_mi2s2 { +&dai_mi2s1_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s3 { +&dai_mi2s1_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; }; &q6core { diff --git a/qcom/holi-audio-milanf-overlay.dtsi b/qcom/holi-audio-milanf-overlay.dtsi index 3c9258540c4c..d1412105625e 100644 --- a/qcom/holi-audio-milanf-overlay.dtsi +++ b/qcom/holi-audio-milanf-overlay.dtsi @@ -30,28 +30,44 @@ status = "okay"; }; -&dai_mi2s0 { +&dai_mi2s0_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s1 { +&dai_mi2s0_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <2>; + qcom,msm-mi2s-lines = <0>; }; -&dai_mi2s2 { +&dai_mi2s1_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s3 { +&dai_mi2s1_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; }; &q6core { diff --git a/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi index 59fcf37301a8..2f7bb22e3270 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-acf-overlay.dtsi @@ -43,28 +43,44 @@ status = "okay"; }; -&dai_mi2s0 { +&dai_mi2s0_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s1 { +&dai_mi2s0_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <2>; + qcom,msm-mi2s-lines = <0>; }; -&dai_mi2s2 { +&dai_mi2s1_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s3 { +&dai_mi2s1_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; }; &q6core { diff --git a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi index f647466c3251..4f992dbf6f29 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-overlay.dtsi @@ -43,28 +43,44 @@ status = "okay"; }; -&dai_mi2s0 { +&dai_mi2s0_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s1 { +&dai_mi2s0_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <2>; + qcom,msm-mi2s-lines = <0>; }; -&dai_mi2s2 { +&dai_mi2s1_rx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <1>; }; -&dai_mi2s3 { +&dai_mi2s1_tx { status = "okay"; - qcom,msm-mi2s-rx-lines = <1>; - qcom,msm-mi2s-tx-lines = <0>; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; }; &q6core { From a48e9239051ea0f6f8e4049e0307066cb8005223 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 19 Nov 2021 09:45:43 +0800 Subject: [PATCH 0528/1247] arm/dts: update rt9426a battery parameter for milanf As moto standary,the vbatt-cutoff modify to 3400mv and the ui_soc 100% should be 97% of full capacity, refs to battery soc data, when charger current is 400mA show the ui_soc 100% Change-Id: Icca0a96d6a3556b4e046a323ecaa095a79b6d066 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2121340 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-amperex-5000mah.dtsi | 128 ++++++++--------- qcom/bat_setting/RT_md50-scud-5000mah.dtsi | 129 +++++++++--------- 2 files changed, 129 insertions(+), 128 deletions(-) diff --git a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi index b522cf0641b3..7db25f1ad923 100644 --- a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi @@ -13,71 +13,71 @@ md50-amperex-5000mah { serialnum = "SB18D33989"; /* add for aging cv */ - rt,fcc = <4895 4895 4895 4895 4895>; + rt,fcc = <4654 4654 4654 4654 4654>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 - 80 34 00 00 FB 3E 00 20 FF 08 1D 32 12 05 5A 5A - 00 82 00 02 00 02 00 40 00 40 1F 13 1F 13 04 24 - 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 - 15 0E 48 44 9E 4C 05 41 19 05 8D 12 23 32 1F 00 - 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F - 20 16 03 04 04 04 00 00 00 00 02 02 02 00 00 FD - FC FA FA FA F9 F9 EE E5 9B 9B 9B EB EB C0 AD 00 - 76 02 E0 48 14 09 00 00 00 00 00 00 00 00 37 73 - 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; - rt,fg_ocv_table0 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table1 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table2 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table3 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table4 = <0x0013 0x49C0 0x5000 0x57C1 0x5B7E 0x5C32 0x5CE3 0x5E1B - 0x5F9C 0x6089 0x6162 0x6277 0x6356 0x65CA 0x6820 0x6985 - 0x6AB7 0x6BFF 0x6D46 0x706D 0x1900 0x07C1 0x02E0 0x00BE - 0x002D 0x0041 0x002F 0x0038 0x0050 0x0096 0x007F 0x007C - 0x0092 0x0092 0x0092 0x0092 0x005F 0x0143 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000A 0x0021 0x0059 0x0159 0x05A7 0x03EE - 0x0564 0x0498 0x0330 0x01B5 0x0203 0x020F 0x01C2 0x01C2 - 0x01C2 0x01C2 0x02B3 0x00CB 0x6684 0x0000 0x0000 0x0000 >; + 80 34 00 00 FB 3E 00 20 FB 0A 1D 32 12 05 5A 5A + 00 82 00 02 00 02 00 40 00 40 2E 12 2E 12 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 + 15 0E 48 44 9E 64 05 41 19 07 B6 12 23 32 03 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 0B 0B 0B 0A 0A 01 FE 07 07 07 07 07 F5 + EB F6 F6 F6 F7 F7 B9 98 80 80 80 A9 A9 80 80 00 + 76 02 C0 48 14 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 06 05 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88]; + rt,fg_ocv_table0 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table1 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table2 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table3 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table4 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; }; diff --git a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi index e08fd2f38610..28930826a74e 100644 --- a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi @@ -13,71 +13,72 @@ md50-scud-5000mah { serialnum = "SB18D01192"; /* add for aging cv */ - rt,fcc = <4815 4815 4815 4815 4815>; + rt,fcc = <4540 4540 4540 4540 4540>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 - 80 34 00 00 FB 3E 00 20 FF 08 1D 32 12 05 5A 5A - 00 82 00 02 00 02 00 40 00 40 CF 12 CF 12 04 24 - 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 14 B7 - 15 0E 48 44 9E 4C 05 41 19 05 8E 12 23 32 1A 00 - 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F - 20 16 03 08 08 08 03 03 03 02 03 03 03 00 00 FC - F9 F2 F2 F2 F0 F0 D7 CA F2 F2 F2 CE CE 9C 81 00 - 76 02 C0 48 14 09 00 00 00 00 00 00 00 00 37 73 - 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 - 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 ]; - rt,fg_ocv_table0 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 - 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 - 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C - 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C - 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB - 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC - 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table1 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 - 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 - 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C - 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C - 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB - 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC - 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table2 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 - 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 - 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C - 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C - 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB - 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC - 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table3 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 - 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 - 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C - 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C - 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB - 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC - 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; - rt,fg_ocv_table4 = <0x0013 0x4A40 0x5000 0x5796 0x5B50 0x5BE3 0x5CD7 0x5E10 - 0x5FC6 0x60DB 0x619C 0x6292 0x6381 0x6643 0x688B 0x69E8 - 0x6B12 0x6BE2 0x6D20 0x706D 0x1700 0x0796 0x02DE 0x009C - 0x003E 0x0041 0x0036 0x0041 0x0048 0x0085 0x0088 0x008C - 0x008E 0x008E 0x008E 0x005C 0x005C 0x0152 0x0013 0xFF80 - 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A - 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A - 0x6400 0x6900 0x000B 0x0022 0x0059 0x01A5 0x041B 0x03EB - 0x04BD 0x03EE 0x0394 0x01EC 0x01E1 0x01D5 0x01CC 0x01CC - 0x01CE 0x02C6 0x02C6 0x00C2 0xE7EC 0x0000 0x0000 0x0000 >; + 80 34 00 00 FB 3E 00 20 FB 0A 1D 32 12 05 5A 5A + 00 82 00 02 00 02 00 40 00 40 BC 11 BC 11 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 + 15 0E 48 44 9E 64 05 41 19 07 B6 12 23 32 08 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 0D 0D 0D 0C 0C 05 01 07 07 07 07 07 F4 + E9 F5 F5 F5 F4 F4 B8 98 80 80 80 93 93 80 80 00 + 76 02 C0 48 14 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 00 00 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88]; + rt,fg_ocv_table0 = <0x0013 0x4A40 0x5500 0x592F 0x5BEF 0x5C19 0x5CD4 0x5E1D + 0x5FC2 0x60C2 0x61C3 0x6264 0x6350 0x6601 0x688B 0x6982 + 0x6AA2 0x6BD6 0x6CA0 0x706D 0x2B00 0x042F 0x021E 0x002C + 0x0030 0x0045 0x0034 0x003C 0x005F 0x0057 0x0087 0x0088 + 0x009F 0x0065 0x0089 0x0089 0x003B 0x0185 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003D 0x0079 0x05C9 0x055D 0x03BC + 0x04EB 0x0442 0x02B0 0x02F2 0x01E7 0x01E0 0x019D 0x028A + 0x01DE 0x01DE 0x045F 0x00A8 0x9FD7 0x0000 0x0000 0x0000>; + rt,fg_ocv_table1 = <0x0013 0x4A40 0x5500 0x592F 0x5BEF 0x5C19 0x5CD4 0x5E1D + 0x5FC2 0x60C2 0x61C3 0x6264 0x6350 0x6601 0x688B 0x6982 + 0x6AA2 0x6BD6 0x6CA0 0x706D 0x2B00 0x042F 0x021E 0x002C + 0x0030 0x0045 0x0034 0x003C 0x005F 0x0057 0x0087 0x0088 + 0x009F 0x0065 0x0089 0x0089 0x003B 0x0185 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003D 0x0079 0x05C9 0x055D 0x03BC + 0x04EB 0x0442 0x02B0 0x02F2 0x01E7 0x01E0 0x019D 0x028A + 0x01DE 0x01DE 0x045F 0x00A8 0x9FD7 0x0000 0x0000 0x0000>; + rt,fg_ocv_table2 = <0x0013 0x4A40 0x5500 0x592F 0x5BEF 0x5C19 0x5CD4 0x5E1D + 0x5FC2 0x60C2 0x61C3 0x6264 0x6350 0x6601 0x688B 0x6982 + 0x6AA2 0x6BD6 0x6CA0 0x706D 0x2B00 0x042F 0x021E 0x002C + 0x0030 0x0045 0x0034 0x003C 0x005F 0x0057 0x0087 0x0088 + 0x009F 0x0065 0x0089 0x0089 0x003B 0x0185 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003D 0x0079 0x05C9 0x055D 0x03BC + 0x04EB 0x0442 0x02B0 0x02F2 0x01E7 0x01E0 0x019D 0x028A + 0x01DE 0x01DE 0x045F 0x00A8 0x9FD7 0x0000 0x0000 0x0000>; + rt,fg_ocv_table3 = <0x0013 0x4A40 0x5500 0x592F 0x5BEF 0x5C19 0x5CD4 0x5E1D + 0x5FC2 0x60C2 0x61C3 0x6264 0x6350 0x6601 0x688B 0x6982 + 0x6AA2 0x6BD6 0x6CA0 0x706D 0x2B00 0x042F 0x021E 0x002C + 0x0030 0x0045 0x0034 0x003C 0x005F 0x0057 0x0087 0x0088 + 0x009F 0x0065 0x0089 0x0089 0x003B 0x0185 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003D 0x0079 0x05C9 0x055D 0x03BC + 0x04EB 0x0442 0x02B0 0x02F2 0x01E7 0x01E0 0x019D 0x028A + 0x01DE 0x01DE 0x045F 0x00A8 0x9FD7 0x0000 0x0000 0x0000>; + rt,fg_ocv_table4 = <0x0013 0x4A40 0x5500 0x592F 0x5BEF 0x5C19 0x5CD4 0x5E1D + 0x5FC2 0x60C2 0x61C3 0x6264 0x6350 0x6601 0x688B 0x6982 + 0x6AA2 0x6BD6 0x6CA0 0x706D 0x2B00 0x042F 0x021E 0x002C + 0x0030 0x0045 0x0034 0x003C 0x005F 0x0057 0x0087 0x0088 + 0x009F 0x0065 0x0089 0x0089 0x003B 0x0185 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003D 0x0079 0x05C9 0x055D 0x03BC + 0x04EB 0x0442 0x02B0 0x02F2 0x01E7 0x01E0 0x019D 0x028A + 0x01DE 0x01DE 0x045F 0x00A8 0x9FD7 0x0000 0x0000 0x0000>; + }; From d8e71e5ee6cd4a57014d62a0e54d084977c7523a Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Fri, 19 Nov 2021 18:11:02 +0800 Subject: [PATCH 0529/1247] arm64/dt: Add Milan 5G DVT2 dts configuration According to the change of hardware design, update the device tree for DVT2 Change-Id: I9a9eee45313c36e755b8350d2bc767f5a40d1a9b Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2121910 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +- qcom/blair-milanf-dvt2-overlay.dts | 132 +++++++++++++++++++++++++++++ 2 files changed, 135 insertions(+), 1 deletion(-) create mode 100644 qcom/blair-milanf-dvt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index a57e25a7f94b..4b4460aa0824 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -90,11 +90,13 @@ blair-cypfr-evt-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_MILANF_DTB) += \ blair-milanf-evb1-overlay.dtbo \ blair-milanf-evb2-overlay.dtbo \ - blair-milanf-dvt1-overlay.dtbo + blair-milanf-dvt1-overlay.dtbo \ + blair-milanf-dvt2-overlay.dtbo blair-milanf-evb1-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb blair-milanf-dvt1-overlay.dtbo-base := blair-moto-base.dtb +blair-milanf-dvt2-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evb-overlay.dtbo \ diff --git a/qcom/blair-milanf-dvt2-overlay.dts b/qcom/blair-milanf-dvt2-overlay.dts new file mode 100644 index 000000000000..649925705985 --- /dev/null +++ b/qcom/blair-milanf-dvt2-overlay.dts @@ -0,0 +1,132 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-milanf-common-overlay.dtsi" + +/ { + model = "milanf"; + compatible = "qcom,blair-milanf", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xB200>; +}; + +&rt9426a { + interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; +}; +&rt9426a_alert { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&tlmm { + ets_vcc_high { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + ets_vcc_low { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + nfc_enable_active { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + nfc_enable_suspend { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + }; +}; + +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; +}; + +&et528 { + egistec,gpio_vcc_en = <&tlmm 6 0x0>; +}; + +&silead { + avdd-gpios = <&tlmm 6 0x0>; +}; + +&qupv3_se7_i2c { + st21nfc@8 { + status = "diabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; From 67302b888cbee74f1f4ab4ac85cb1a55afbbea4c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 19 Nov 2021 10:41:20 +0800 Subject: [PATCH 0530/1247] dts/panel: rhodep: update csot nt37701 6.55 inch panel code 1. add csot nt37701 6.55 inch v1 panel code 2. modify csot nt37701 6.55 inch v0 panel code Change-Id: I6437bb566ebc75724bfa3a22927726f30e180e45 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2121393 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 529 ++++++++++ ...-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 981 +++++++++--------- ...-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 22 +- qcom/rhodep-display.dtsi | 84 +- 4 files changed, 1128 insertions(+), 488 deletions(-) create mode 100644 qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi new file mode 100644 index 000000000000..32f00604dba0 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -0,0 +1,529 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { +mot_csot_nt37701_655_1080x2400_dsc_cmd_v1: qcom,mdss_dsi_mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_655"; +qcom,mdss-dsi-panel-supplier = "csot"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <68>; +qcom,mdss-pan-physical-height-dimension = <152>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; + +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; + +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; + +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; + +qcom,mdss-dsi-te-using-te-pin; + +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; + +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 07 FF]; + +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; + +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 98 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 6e 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; //90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + +}; + +}; + +}; diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi index 16b0e576f2e1..bde58f8a7f29 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -10,497 +10,542 @@ * GNU General Public License for more details. */ &mdss_mdp { - mot_csot_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { - compatible = "qcom,mdss-dsi-panel"; - qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_655"; - qcom,mdss-dsi-panel-supplier = "csot"; - qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; - qcom,mdss-dsi-virtual-channel-id = <0>; - qcom,mdss-dsi-stream = <0>; - qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <152>; - qcom,mdss-dsi-bpp = <30>; - qcom,mdss-dsi-underflow-color = <0xff>; - qcom,mdss-dsi-border-color = <0>; - qcom,mdss-dsi-panel-param-verision = <121201>; - qcom,mdss-dsi-panel-param-num = <5>; +mot_csot_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_655"; +qcom,mdss-dsi-panel-supplier = "csot"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <68>; +qcom,mdss-pan-physical-height-dimension = <152>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; - qcom,dsi-ctrl-num = <0>; - qcom,dsi-phy-num = <0>; +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; - qcom,mdss-dsi-traffic-mode = "burst_mode"; - qcom,mdss-dsi-bllp-eof-power-mode; - qcom,mdss-dsi-bllp-power-mode; - qcom,mdss-dsi-lane-0-state; - qcom,mdss-dsi-lane-1-state; - qcom,mdss-dsi-lane-2-state; - qcom,mdss-dsi-lane-3-state; +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; - qcom,mdss-dsi-dma-trigger = "trigger_sw"; - qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; - qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-tx-eot-append; - qcom,mdss-dsi-te-pin-select = <1>; - qcom,mdss-dsi-te-dcs-command = <1>; +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; - qcom,mdss-dsi-te-using-te-pin; +qcom,mdss-dsi-te-using-te-pin; - qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <3>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 - 17000 15500 30000 8000 3000>; - qcom,mdss-dsi-panel-peak-brightness = <4200000>; +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; - qcom,mdss-dsi-panel-blackness-level = <3230>; +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ - qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; - qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 07 FF]; +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-fod; - qcom,mdss-dsi-hbm-fod-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; - //qcom,mdss-dsi-acl-on-command = [ - // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - // 15 00 00 00 00 00 02 B0 0C - // 15 01 00 00 00 00 02 55 05]; - //qcom,mdss-dsi-acl-off-command = [ - // 15 01 00 00 00 00 02 55 00]; +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; - qcom,mdss-dsi-dc-off-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00]; - qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-dc-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 98 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF - 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 01]; - qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 98 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-display-timings { - timing@0{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <48>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 06 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 71 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code - 39 01 00 00 00 00 05 3B 00 1A 00 20 + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable + 39 01 00 00 00 00 05 3B 00 10 00 20 - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@1{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <60>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; + 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 06 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 71 - - 39 01 00 00 00 00 05 3B 00 1A 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 6e 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@2{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <90>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code - - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 06 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 71 - - 39 01 00 00 00 00 05 3B 00 1A 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 56 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@3{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <120>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code - - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 06 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 71 - - 39 01 00 00 00 00 05 3B 00 1A 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 56 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@4{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <144>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 18 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF - 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code - - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 06 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 71 - - 39 01 00 00 00 00 05 3B 00 1A 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 56 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - }; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 6e 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; +/* + timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 06 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 71 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 39 01 00 00 00 00 05 3B 00 10 00 20 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 56 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + +}; + +}; + }; diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi index 7f33882410f9..51817a7c3ebf 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -51,12 +51,12 @@ qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-panel-hdr-enabled; + /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 17000 15500 30000 8000 3000>; qcom,mdss-dsi-panel-peak-brightness = <4200000>; - qcom,mdss-dsi-panel-blackness-level = <3230>; + qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ 39 01 00 00 00 00 03 51 0F FF]; @@ -352,7 +352,7 @@ qcom,mdss-dsc-bit-per-pixel = <8>; qcom,mdss-dsc-block-prediction-enable; }; - timing@4{ + /*timing@4{ qcom,mdss-dsi-cmd-mode; qcom,mdss-dsi-panel-framerate = <144>; qcom,mdss-dsi-panel-width = <1080>; @@ -369,7 +369,7 @@ qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 06 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz ]; @@ -400,19 +400,19 @@ 15 01 00 00 00 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ + 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-timing-switch-command-state = "dsi_lp_mode"; qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; qcom,mdss-dsc-version = <0x11>; qcom,mdss-dsc-slice-height = <12>; qcom,mdss-dsc-slice-width = <1080>; @@ -420,7 +420,7 @@ qcom,mdss-dsc-bit-per-component = <10>; qcom,mdss-dsc-bit-per-pixel = <8>; qcom,mdss-dsc-block-prediction-enable; - }; + };*/ }; }; }; diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi index b3c7a677cab0..92573ea67adb 100644 --- a/qcom/rhodep-display.dtsi +++ b/qcom/rhodep-display.dtsi @@ -1,4 +1,5 @@ #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -106,7 +107,7 @@ qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; }; -&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; @@ -123,14 +124,13 @@ qcom,mdss-brightness-max-level = <3514>; qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-hdr-enabled; + /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 16000 13000 35500 7000 2500>; qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; @@ -163,13 +163,79 @@ qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; - timing@4 { + /*timing@4 { //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ }; }; @@ -192,11 +258,11 @@ qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-hdr-enabled; + /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 16000 13000 35500 7000 2500>; qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; @@ -229,13 +295,13 @@ qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; - timing@4 { + /*timing@4 { //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; - }; + };*/ }; }; From e0590e31a0ca2a7a6b7350cd7134599a252d0274 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 19 Nov 2021 14:57:38 +0800 Subject: [PATCH 0531/1247] dts/panel: rhodep: update csot nt37701 6.55 inch for touch - Add csot nt37701 6.55 inch v1 panel code. - Touch will support for 3rd panel. Change-Id: I416f95737f5117466614cd3f4c40f32c94451197 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2121700 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index 18b0b3da96e9..eb487a92d458 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -90,6 +90,7 @@ goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; From 5d588cb2c5777ae3b3e93327b0ae5b03daf9fa27 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Tue, 16 Nov 2021 10:45:51 +0800 Subject: [PATCH 0532/1247] arm64/dts: rhodep: camera power IC et5907 config rhodep camera use new power IC et5907, add et5907 config files. Change-Id: I79f4b386c6031b251ad60dbe3651527cdef644b6 Signed-off-by: Xiaofeng Wang Reviewed-on: https://gerrit.mot.com/2116822 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Long Cheng Reviewed-by: Xingyun Fu Reviewed-by: Shuo Wang Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- ...rhodep-wl286xx.dtsi => rhodep-et5907.dtsi} | 31 ++++++++++--------- 2 files changed, 17 insertions(+), 16 deletions(-) rename qcom/{rhodep-wl286xx.dtsi => rhodep-et5907.dtsi} (70%) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 870aa1610573..c590ee2d1735 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -22,7 +22,7 @@ #include "rhodep-display.dtsi" #include "rhodep-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" -#include "rhodep-wl286xx.dtsi" +#include "rhodep-et5907.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "discrete_charging_rhodep.dtsi" diff --git a/qcom/rhodep-wl286xx.dtsi b/qcom/rhodep-et5907.dtsi similarity index 70% rename from qcom/rhodep-wl286xx.dtsi rename to qcom/rhodep-et5907.dtsi index 4327781f6b12..df80419901ef 100644 --- a/qcom/rhodep-wl286xx.dtsi +++ b/qcom/rhodep-et5907.dtsi @@ -1,5 +1,5 @@ &tlmm{ - pmic1_en_default: pmic1_en_default { + pmic_en_default: pmic_en_default { mux { pins = "gpio33"; function = "gpio"; @@ -7,60 +7,61 @@ config { pins = "gpio33"; drive-strength = <2>; - bias-pull-down; + bias-pull-up; + output-high; }; }; }; -&qupv3_se10_i2c { +&qupv3_se7_i2c { status = "ok"; - cam_pmic1: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - semi,cs-gpios = <&tlmm 33 0>; + cam_pmic: et5907@35{ + compatible = "semi,et5907"; + reg = <0x35>; + semi,cs-gpios = <&tlmm 33 1>; pinctrl-names = "default"; - pinctrl-0 = <&pmic1_en_default>; + pinctrl-0 = <&pmic_en_default>; vin1-supply = <&S6A>; regulators { - cam_pmic1_ldo1_dvdd1: ldo1 { + cam_pmic_ldo1: ldo1 { regulator-name = "ldo1"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_pmic1_ldo2_dvdd2: ldo2 { + cam_pmic_ldo2: ldo2 { regulator-name = "ldo2"; regulator-min-microvolt = <600000>; regulator-max-microvolt = <1800000>; }; - cam_pmic1_ldo3_avdd1: ldo3 { + cam_pmic_ldo3: ldo3 { regulator-name = "ldo3"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo4_avdd2: ldo4 { + cam_pmic_ldo4: ldo4 { regulator-name = "ldo4"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo5_vddaf: ldo5 { + cam_pmic_ldo5: ldo5 { regulator-name = "ldo5"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo6_vddois: ldo6 { + cam_pmic_ldo6: ldo6 { regulator-name = "ldo6"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; }; - cam_pmic1_ldo7_vddio: ldo7 { + cam_pmic_ldo7: ldo7 { regulator-name = "ldo7"; regulator-min-microvolt = <1200000>; regulator-max-microvolt = <4300000>; From f792522c800760f9cd4b5c25b1aa9f017075380a Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 23 Nov 2021 13:59:46 +0800 Subject: [PATCH 0533/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: I4d953571aac0ebe3e42b68d453b87e24a19a40a8 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2124527 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 2544d79d7a7e..07e6d7d373f6 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -687,7 +687,7 @@ Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ - 0x4008 0x8 + 0x4008 0xB 0x42C0 0x40800 0x42C4 0xFF 0x8010 0x0 @@ -728,17 +728,17 @@ 0x8138 0x5A40 0x8158 0x5A40 0x8178 0x5A40 - 0x80A0 0x1F1F0001 - 0x80C0 0x25250002 - 0x80E0 0x20200001 - 0x8100 0x15150000 - 0x8120 0x1C1C0002 + 0x80A0 0x1F1F00E1 + 0x80C0 0x252500E2 + 0x80E0 0x202000E1 + 0x8100 0xD0D00E2 + 0x8120 0x1C1C00E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 - 0x8188 0x8000016 - 0x818C 0x8000015 - 0x8190 0x8000016 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 0x8194 0x0 0x819C 0x0 0x81AC 0x0 @@ -752,11 +752,11 @@ 0x81E4 0x0 0x81E8 0x0 0x81EC 0x0 - 0x8090 0x1EE87000 - 0x80B0 0x14F07000 - 0x80D0 0x24E37000 - 0x80F0 0x32CE7000 - 0x8110 0x1EE87000 + 0x8090 0x1EE57000 + 0x80B0 0x14F17000 + 0x80D0 0x24E07000 + 0x80F0 0x32D87000 + 0x8110 0x1EE67000 0x8130 0x1EE86000 0x8150 0x1EE86000 0x8170 0x2AD67000 From 34daaedc158c86620a6c95b867807513bd4df905 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 19 Nov 2021 18:24:26 +0800 Subject: [PATCH 0534/1247] arm/dts: update battery fcc_design value for fuel gauge as battery show typical capacity is 5000mAh config fcc_design to 5000. Change-Id: I912ecb206ea9dc1694f3ae555b4d1bbaee2c33ea Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2121921 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 2 +- qcom/bat_setting/CW_jd50-scud-5000mah.dtsi | 2 +- qcom/bat_setting/CW_md50-amperex-5000mah.dtsi | 2 +- qcom/bat_setting/CW_md50-scud-5000mah.dtsi | 2 +- qcom/bat_setting/RT_md50-amperex-5000mah.dtsi | 1 + qcom/bat_setting/RT_md50-scud-5000mah.dtsi | 1 + 6 files changed, 6 insertions(+), 4 deletions(-) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi index 7781533401ec..b2a9c929780a 100644 --- a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi @@ -12,7 +12,7 @@ */ jd50-atl-5000mah { serialnum = "SB18C77591"; - fcc_design = <4850>; + fcc_design = <5000>; config_profile_info = [5A 00 00 00 00 00 00 00 A0 B2 BF CB C3 C2 96 59 2F FF FF DB A6 8D 74 60 diff --git a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi index 3695aed76735..2850ac2a4e65 100644 --- a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi @@ -12,7 +12,7 @@ */ jd50-scud-5000mah { serialnum = "SB18C77226"; - fcc_design = <4850>; + fcc_design = <5000>; config_profile_info = [5A 00 00 00 00 00 00 00 A5 B1 B5 CE C3 C2 97 58 31 FF FF E3 92 80 63 58 diff --git a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi index e31fdb606254..17d6566a27cb 100644 --- a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi @@ -12,7 +12,7 @@ */ md50-amperex-5000mah { serialnum = "SB18D33989"; - fcc_design = <4700>; + fcc_design = <5000>; config_profile_info = [5A 00 00 00 00 00 00 00 A6 B1 B2 CE C1 C1 9E 5F 36 FF FF F9 BA 92 7F 6B diff --git a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi index 3c2ba5088fa5..44d2fe7dd5ff 100644 --- a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi @@ -12,7 +12,7 @@ */ md50-scud-5000mah { serialnum = "SB18D01192"; - fcc_design = <4700>; + fcc_design = <5000>; config_profile_info = [5A 00 00 00 00 00 00 00 A1 AE AA CB C1 C4 92 4F 2D FF FF FF C6 9C 83 6C diff --git a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi index 7db25f1ad923..ed36f0660625 100644 --- a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi @@ -13,6 +13,7 @@ md50-amperex-5000mah { serialnum = "SB18D33989"; /* add for aging cv */ + rt,fcc_design = <5000>; rt,fcc = <4654 4654 4654 4654 4654>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 diff --git a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi index 28930826a74e..48e56691db57 100644 --- a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi @@ -13,6 +13,7 @@ md50-scud-5000mah { serialnum = "SB18D01192"; /* add for aging cv */ + rt,fcc_design = <5000>; rt,fcc = <4540 4540 4540 4540 4540>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 From 33472a4891b3ee6a0977e4849791b5da2d13d37c Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 22 Nov 2021 14:00:03 +0800 Subject: [PATCH 0535/1247] arm/dts: update cw2217 battery parameter for milanf project as moto stander. set vbatt-offcut to 4.4v, and show battery capacity 100% to 400mA Change-Id: I3824fb19bcb683deafa4170c88799f5c040b03b5 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2123163 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_md50-amperex-5000mah.dtsi | 8 ++++---- qcom/bat_setting/CW_md50-scud-5000mah.dtsi | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi index 17d6566a27cb..b4603d373d74 100644 --- a/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-amperex-5000mah.dtsi @@ -13,14 +13,14 @@ md50-amperex-5000mah { serialnum = "SB18D33989"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [50 00 00 00 00 00 00 00 A6 B1 B2 CE C1 C1 9E 5F 36 FF FF F9 BA 92 7F 6B 60 5D 58 94 E7 DE 9A DC C2 CA D2 D7 D6 D3 D1 CC CA C9 CE B8 9C 92 88 81 - 75 71 7F 91 AB 83 71 70 + 75 71 7F 91 AB 83 71 89 20 00 57 10 02 B0 5D 00 - 00 00 64 26 D3 51 00 00 - 00 00 00 00 00 00 00 94 ]; + 00 00 64 1C D3 51 00 00 + 00 00 00 00 00 00 00 34 ]; }; diff --git a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi index 44d2fe7dd5ff..2359545a274e 100644 --- a/qcom/bat_setting/CW_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_md50-scud-5000mah.dtsi @@ -13,14 +13,14 @@ md50-scud-5000mah { serialnum = "SB18D01192"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [50 00 00 00 00 00 00 00 A1 AE AA CB C1 C4 92 4F 2D FF FF FF C6 9C 83 6C 5B 56 4E 9B E5 DE 59 CC C6 C9 D1 D5 D5 D4 D0 CE CB C9 CC BB A0 92 8A 82 - 76 71 81 95 AB 7B 7B 75 + 76 71 81 95 AB 7B 7B 8C 20 00 57 10 02 B0 5B 00 - 00 00 64 26 D3 4F 00 00 - 00 00 00 00 00 00 00 54 ]; + 00 00 64 1D D3 4F 00 00 + 00 00 00 00 00 00 00 A9 ]; }; From b59d1635bdb3b4bef72eb11492dbde3d3ca2c648 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 23 Nov 2021 16:05:47 +0800 Subject: [PATCH 0536/1247] arm/dts: config otg current 1.2A As HW require, config otg current 1.2A for milanf and cypfr Change-Id: I6c83f340cee8a5c9098ad8477be69b8ac2bda008 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2124690 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index a6817d7bed8b..e5c6e5a9044e 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -176,7 +176,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <3000>; mmi,demo-fv-mv = <4000>; - mmi,otg-cl-ua = <2000000>; + mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18D33989"; mmi,mmi-temp-zones = <0 4200 970 0>, <10 4200 2500 970>, From 2d2b5c81fdf09697eed6bbc90fdf80cca2b7ba0f Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 23 Nov 2021 16:19:45 +0800 Subject: [PATCH 0537/1247] milan5G: sar sensor params 1.update params for channels from dvt2 2.blair-milanf-dvt2-overlay.dtsi Change-Id: I0834bfd02711fa890cda331bf3177821c039a486 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2124715 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt2-overlay.dts | 88 ++++++++++++++++++++++++++++++ 1 file changed, 88 insertions(+) diff --git a/qcom/blair-milanf-dvt2-overlay.dts b/qcom/blair-milanf-dvt2-overlay.dts index 649925705985..93eebecee353 100644 --- a/qcom/blair-milanf-dvt2-overlay.dts +++ b/qcom/blair-milanf-dvt2-overlay.dts @@ -130,3 +130,91 @@ &nfc_clk_req_suspend>; }; }; + +&sx937x { + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <2>; + Semtech,button-flag = <0x1B>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x8A6 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x866 /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ + 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0x7A36 + 0x80B8 0x9536 + 0x80D8 0x5959 + 0x80F8 0x3F3F + 0x8118 0x2C2C + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x5A40 + 0x80A0 0x1E1E00E1 + 0x80C0 0x404000E2 + 0x80E0 0x222200E1 + 0x8100 0x161600E2 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x40CF3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68B03000 + 0x8110 0x30273000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300005 + 0x80A8 0x300005 + 0x80C8 0x300005 + 0x80E8 0x300005 + 0x8108 0x300005 + 0x8128 0x3600000 + 0x8148 0x3600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xF + >; + + status = "ok"; +}; From 7c3d6c957ff0f53c098f849be2f1cd3b2b74fa14 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 23 Nov 2021 09:38:48 +0800 Subject: [PATCH 0538/1247] arm/dts: bringup bq2589x for rhodep 1.As ic spec, the bq2589x i2c addr should be 0x6A. 2.there is no pull-up resistor to the board. pull-up this gpio12 by dts config. Change-Id: I0b850f6166d2b2966480dc3bc3266ffa03b0ef38 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2124249 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index a5e29d50ea33..8bfa48db0797 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -156,10 +156,10 @@ temp_neg_10_thres = <0>; }; - bq25890@62 { + bq25890@6A { status = "okay"; compatible = "ti,bq2589x-1"; - reg = <0x62>; + reg = <0x6A>; pinctrl-names = "default"; pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; @@ -216,7 +216,7 @@ config { pins = "gpio12"; drive-strength = <2>; - bias-disable; + bias-pull-up; input-enable; }; }; From a601ce9260111c324a5d01970aaced21c4c2400b Mon Sep 17 00:00:00 2001 From: chailu1 Date: Thu, 18 Nov 2021 13:40:23 +0800 Subject: [PATCH 0539/1247] arm/dts: config chage&PD policy 1.add pd active iio channel. 2.modify heart time to 5s while charging. Change-Id: I638bdbc438a90e236194f5ffb3734bc8d8577163 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2119910 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete-rt-pd-manger.dtsi | 7 ++++--- qcom/discrete_charging.dtsi | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qcom/discrete-rt-pd-manger.dtsi b/qcom/discrete-rt-pd-manger.dtsi index ee76a5310744..15a3f91189be 100644 --- a/qcom/discrete-rt-pd-manger.dtsi +++ b/qcom/discrete-rt-pd-manger.dtsi @@ -17,11 +17,12 @@ #io-channel-cells = <1>; io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>, - <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>; + <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, + <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>; io-channel-names = "usb_real_type", "otg_enable", - "typec_mode"; - + "typec_mode", + "pd_active"; }; }; diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index e5c6e5a9044e..d2cfbb44f474 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -159,7 +159,7 @@ mmi,enable-charging-limit; mmi,upper-limit-capacity = <65>; mmi,lower-limit-capacity = <60>; - mmi,heartbeat-interval = <100000>; + mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; }; From d3acbba0dff619ecd015f42d7c3be3a73314e23b Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 23 Nov 2021 16:18:38 +0800 Subject: [PATCH 0540/1247] arm/dts: config gpio8 power source to VDD_MSM_IO The output voltage(3V8) of gpio8 power by VPH_PWR to control LED is different from that of cypfq(1V8) power by VDD_MSM_IO. So change power source to VDD_MSM_IO. Change-Id: Ibde8ee7af30a3f80499ef71309e1cd62b1d2e577 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2124713 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index d2cfbb44f474..646a0b733366 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -33,6 +33,7 @@ pins = "gpio8"; function = "func1"; output-low; + power-source = <1>; }; }; }; From 43d57ed37261eb30f0d13892f3494007a972c862 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 24 Nov 2021 15:06:43 +0800 Subject: [PATCH 0541/1247] arm/dts: config hvdcp max power 18W As HW require, config HVDCP max power 18W for cypfr Change-Id: I12327311f867490ca6f0a8a2797b28c91c7c4842 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2125919 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 07e6d7d373f6..62c1e2e89057 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -209,6 +209,10 @@ pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; }; +&mmi_charger { + mmi,hvdcp-power-max = <18000>; +}; + &mmi_discrete_charger { mmi,max-fv-mv = <4400>; mmi,chrg-iterm-ma = <150>; From b9d491b0e8530cd1b5c4b025f7a401da2bc54856 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Wed, 24 Nov 2021 10:26:36 +0800 Subject: [PATCH 0542/1247] arm64/dts: rhodep: Implement different ldo compatibility Below it is the compatible ldo information. a.wl2868c. b.et5907. c.fan53870. Change-Id: Ie0eef5019d3a4582d36e821c0071f1d438f8f210 Signed-off-by: Xiaofeng Wang Reviewed-on: https://gerrit.mot.com/2125584 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Long Cheng Reviewed-by: Shuo Wang Reviewed-by: Xingyun Fu Reviewed-by: Reviewed-by: Zhichao Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- qcom/{rhodep-et5907.dtsi => rhodep-wl2868c.dtsi} | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) rename qcom/{rhodep-et5907.dtsi => rhodep-wl2868c.dtsi} (95%) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index c590ee2d1735..01748834b066 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -22,7 +22,7 @@ #include "rhodep-display.dtsi" #include "rhodep-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" -#include "rhodep-et5907.dtsi" +#include "rhodep-wl2868c.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "discrete_charging_rhodep.dtsi" diff --git a/qcom/rhodep-et5907.dtsi b/qcom/rhodep-wl2868c.dtsi similarity index 95% rename from qcom/rhodep-et5907.dtsi rename to qcom/rhodep-wl2868c.dtsi index df80419901ef..c2ed59b88da4 100644 --- a/qcom/rhodep-et5907.dtsi +++ b/qcom/rhodep-wl2868c.dtsi @@ -16,9 +16,9 @@ &qupv3_se7_i2c { status = "ok"; - cam_pmic: et5907@35{ - compatible = "semi,et5907"; - reg = <0x35>; + cam_pmic: wl2868c@2F{ + compatible = "semi,wl2868c"; + reg = <0x2F>; semi,cs-gpios = <&tlmm 33 1>; pinctrl-names = "default"; pinctrl-0 = <&pmic_en_default>; From f0f875d88878324327bb75faf9cbcd52f383c1e5 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 23 Nov 2021 11:08:04 +0800 Subject: [PATCH 0543/1247] dts/panel: rhodep: add tianma nt37701 6.55 inch panel code add tianma nt37701 6.55 inch panel code for rhodep Change-Id: I947b1ba67122cc15584d3614e8a35dd42d7edd4d Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2124404 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 526 ++++++++++++++++++ qcom/rhodep-display.dtsi | 67 +++ 2 files changed, 593 insertions(+) create mode 100644 qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi new file mode 100644 index 000000000000..b712b39b3e05 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -0,0 +1,526 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_tm_nt37701_655_1080x2400_dsc_cmd_v1: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { + compatible = "qcom,mdss-dsi-panel"; + qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; + qcom,mdss-dsi-panel-supplier = "tianma"; + qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <152>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-panel-param-verision = <121201>; + qcom,mdss-dsi-panel-param-num = <5>; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-te-pin-select = <1>; + qcom,mdss-dsi-te-dcs-command = <1>; + + qcom,mdss-dsi-te-using-te-pin; + + qcom,bklt-dcs-2bytes-enabled; + qcom,mdss-dsi-bl-min-level = <3>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <4200000>; + + qcom,mdss-dsi-panel-blackness-level = <3230>;*/ + + qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 0D BA]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + + //qcom,mdss-dsi-acl-on-command = [ + // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + // 15 00 00 00 00 00 02 B0 0C + // 15 01 00 00 00 00 02 55 05]; + //qcom,mdss-dsi-acl-off-command = [ + // 15 01 00 00 00 00 02 55 00]; + + qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 81 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 01]; + qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + 39 00 00 00 00 00 05 3B 00 10 00 20 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 00 00 00 00 00 03 6F 01 01 + 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + 39 00 00 00 00 00 05 3B 00 10 00 20 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 00 00 00 00 00 03 6F 01 01 + 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + 39 00 00 00 00 00 05 3B 00 10 00 20 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 00 00 00 00 00 03 6F 01 01 + 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + 39 00 00 00 00 00 05 3B 00 10 00 04 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 00 00 00 00 00 03 6F 01 01 + 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + 39 00 00 00 00 00 05 3B 00 10 00 04 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 00 00 00 00 00 03 6F 01 01 + 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + + }; + + }; + +}; diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi index 92573ea67adb..d6650a6aa152 100644 --- a/qcom/rhodep-display.dtsi +++ b/qcom/rhodep-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" &display_panel_avdd { @@ -173,6 +174,72 @@ }; }; +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; From e94a91e88f1b550b21a9c13bb05f020f89ab3f2d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 23 Nov 2021 11:19:19 +0800 Subject: [PATCH 0544/1247] dts/panel: rhodep: update tianma nt37701 6.55 inch for touch - Add tianma nt37701 6.55 inch v1 panel code. - Touch will support for 4th panel. Change-Id: I3db4048fd1ee80adddb75ec4008fb0f45a2769ed Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2124414 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index eb487a92d458..24ddf1f53527 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -91,6 +91,7 @@ goodix,panel-max-p = <4096>; panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; From 4e0416919ede12e02dbe202573839e9f1fc78f95 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 19 Nov 2021 14:17:17 +0800 Subject: [PATCH 0545/1247] arm64/dt: rhodep: bring up ft9362 fps FT9362 FPS sensor is the second source fps Add device node for it. Change-Id: I24217ddd14ed0161c24dae53c646fc3347320438 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2121643 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-fps-overlay.dtsi | 94 +++++++++++++++++++++--------------- 1 file changed, 56 insertions(+), 38 deletions(-) diff --git a/qcom/rhodep-fps-overlay.dtsi b/qcom/rhodep-fps-overlay.dtsi index 3d520dc22193..a6d68b415f87 100644 --- a/qcom/rhodep-fps-overlay.dtsi +++ b/qcom/rhodep-fps-overlay.dtsi @@ -69,22 +69,49 @@ }; }; - fps_rst_active: fps_rst_active { - /* active state */ + ft_power_high: ft_power_high { mux { - pins = "gpio18"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_power_low: ft_power_low { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; output-low; }; }; - fps_rst_suspend: fps_rst_suspend { - /* sleep state */ + ft_eint_as_int: ft_eint_as_int { + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + + ft_reset_high: ft_reset_high { mux { pins = "gpio18"; function = "gpio"; @@ -92,37 +119,23 @@ config { pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ + drive-strength = <2>; + bias-disable; + output-high; }; }; - fps_int_active: fps_int_active { - /* active state */ + ft_reset_low: ft_reset_low { mux { - pins = "gpio17"; + pins = "gpio18"; function = "gpio"; }; config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ + pins = "gpio18"; + drive-strength = <2>; bias-disable; - input-enable; - }; - }; - - fps_int_suspend: fps_int_suspend { - /* sleep state */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; + output-low; }; }; }; @@ -148,17 +161,22 @@ pinctrl-4 = <&ets_vcc_low>; }; - silead: silead { - compatible = "sil,silead_fp"; + ft9362: ft9362 { status = "ok"; - reg = <0>; + compatible = "focaltech,fingerprint"; interrupt-parent = <&tlmm>; interrupts = <17 0x0>; - avdd-gpios = <&tlmm 38 0x0>; - irq-gpios = <&tlmm 17 0x0>; - rst-gpios = <&tlmm 18 0x0>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&fps_rst_active &fps_int_active>; - pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + fp,reset_gpio = <&tlmm 18 0>; + fp,irq_gpio = <&tlmm 17 0>; + fp,vdd_gpio = <&tlmm 6 0>; + + pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", + "fpsensor_finger_rst_low","fpsensor_finger_rst_high", + "fpsensor_eint_as_int"; + pinctrl-0 = <&ft_power_high>; + pinctrl-1 = <&ft_power_low>; + pinctrl-2 = <&ft_reset_low>; + pinctrl-3 = <&ft_reset_high>; + pinctrl-4 = <&ft_eint_as_int>; }; }; From 7c0315392191f1fade3ee59a14505553e07b6efe Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 25 Nov 2021 15:30:24 +0800 Subject: [PATCH 0546/1247] arm64/dts:Rhodep:correct reciver smart pa port id. rhodep use two aw88261 on same i2s. correct top smart pa port id. Change-Id: Iabf0cfc214919b1ba9fa31ee9680b8267cd9a98c Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2127353 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...r-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index eba8c5051ce3..bf676bea08ea 100644 --- a/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi +++ b/qcom/blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -344,14 +344,14 @@ dc-flag = <0>; sync-flag = <0>; sound-channel = <1>; - aw-tx-topo-id = <0x1000ff00>; - aw-rx-topo-id = <0x1000ff01>; - aw-tx-port-id = <0x1001>; - aw-rx-port-id = <0x1000>; - aw-re-min = <4000>; - aw-re-max= <30000>; - aw-cali-mode = "aw_attr"; - status = "okay"; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; }; }; From e856031fcaceec311ed2617dd8dbfdb7d1aab406 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 26 Nov 2021 10:17:14 +0800 Subject: [PATCH 0547/1247] rhodec: add phy strength-ctrl configs for 4350pro chip set it to 20byte, not default 10bytes. Holi default uses 20bytes setting. Change-Id: Iddc1e2f774082c63904b1916584d2782a5e11d5f Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2128213 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 46747bed804f..550c5ec60a60 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -7,6 +7,14 @@ /delete-property/ pinctrl-0; }; +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 00 30 30]; +}; + &tlmm { lcd_panel_avdd_default: lcd_panel_avdd_default { mux { From 0a704dd9e6f5d02cf4a780885a3f4880f733ef38 Mon Sep 17 00:00:00 2001 From: linyx10 Date: Sat, 27 Nov 2021 19:34:17 +0800 Subject: [PATCH 0548/1247] blair.dtsi: Tbase MobiCore Driver(mcd) configuration. - Set the IRQ for mcd with ID 472 to request interrupt. - Use RPM_SMD_CE1_CLK as system clock. Change-Id: I03dc6fa7ac1a47aad6a6fa9ca09d14838edcd56c Signed-off-by: linyx10 Reviewed-on: https://gerrit.mot.com/2129253 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Binsheng Que Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/blair.dtsi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index 6c951ebcb552..da54e77871b2 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -3124,6 +3124,21 @@ compatible = "qcom,smcinvoke"; }; + mcd { + compatible = "qcom,mcd"; + qcom,ce-hw-instance = <0>; + qcom,ce-device = <0>; + interrupts = <0 472 0>; + interrupt-names = "mcd_irq"; + clock-names = "core_clk_src", "core_clk", "iface_clk", "bus_clk"; + clocks = + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>, + <&rpmcc RPM_SMD_CE1_CLK>; + qcom,ce-opp-freq = <192000000>; + }; + eud: qcom,msm-eud@1628000 { compatible = "qcom,msm-eud"; interrupt-names = "eud_irq"; From 2f04ea3b0909d8c8ef386a73daa32d242519934b Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 26 Nov 2021 15:04:01 +0800 Subject: [PATCH 0549/1247] arm/dts: rhodec add more dts config for discrete charger 1. remove bq2589x dts config, rhodec will no use this ic 2. add sgm41542 irq config 3. add cw2217 fg dts config Change-Id: I690aabe02f0163e025e1651d5ffd7eaa728736e8 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2128539 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 87 ++++++++++++---------------- qcom/holi-rhodec-common-overlay.dtsi | 2 - 2 files changed, 37 insertions(+), 52 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index f099ceeff5ec..e2f5b81df41b 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -9,7 +9,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ - +#include +#include "sgm7220.dtsi" +#include "discrete-rt-pd-manger.dtsi" &pm6125_vadc { gpio6_div3{ @@ -62,6 +64,14 @@ &qupv3_se8_i2c { status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D33989"; + #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + }; sgm4154x: sgm4154x@3B { status = "okay"; @@ -69,7 +79,7 @@ reg = <0x3B>; pinctrl-names = "default"; - pinctrl-0 = <&gpio6_adc_default>; + pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; io-channel-names = "gpio3_div3"; @@ -108,45 +118,6 @@ temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; }; - - bq25890@6A { - status = "okay"; - compatible = "ti,bq2589x-1"; - reg = <0x6A>; - - pinctrl-names = "default"; - pinctrl-0 = <&bq2589x_irq>; - bq2589x_irq-gpio = <&tlmm 12 0>; - bq2589x_en-gpio = <&tlmm 92 0>; - dpdm-supply = <&qusb_phy0>; - - ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ - ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ - ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; - ti,bq2589x,charge-voltage = <4350>; - ti,bq2589x,charge-current = <3250>; - ti,bq2589x,term-current = <256>; - ti,bq2589x,enable-auto-dpdm; - ti,bq2589x,enable-termination; - ti,bq2589x,enable-ico; - ti,bq2589x,use-absolute-vindpm; - }; -}; - -&tlmm { - bq2589x_irq: bq2589x_irq { - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - drive-strength = <2>; - bias-disable; - input-enable; - }; - }; }; &soc { @@ -173,17 +144,33 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; - mmi,df-serialnum = "SB18D33989"; - mmi,mmi-temp-zones = <0 4200 970 0>, - <10 4200 2500 970>, - <15 0 2500 2500>, - <45 0 4000 4000>, - <60 4200 2500 0>; - mmi,thermal-mitigation = <4000000 3500000 - 3000000 2500000 + mmi,df-serialnum = "SB18C77591"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 4000 0>; + + mmi,thermal-mitigation = <4000000 3000000 2500000 2000000 1500000 1200000 900000 600000 300000>; - }; + }; }; +&tlmm { + chg_irq_default: chg_irq_default { + /* IRQ */ + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + bias-pull-up; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; +}; diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index a124a9f0af5f..6602168e2239 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -21,8 +21,6 @@ #include "rhodec-display.dtsi" #include "rhodec-touchscreen.dtsi" #include "rhodec-fmr-overlay.dtsi" -#include "tcpc_config.dtsi" -#include "sgm7220.dtsi" #include "discrete_charging_holi.dtsi" &wcd937x_codec { From bddb304ae87827eff7b945103978778ab5df98b7 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 29 Nov 2021 14:40:20 +0800 Subject: [PATCH 0550/1247] arm/dts: rhodec config GPIO_58 to sgm7220 enable pin 1.As for rhodec spec, gpio58 is for sgm7220 enable pin. 2. remove audio dts. audio use gpio58 that is conflict with sgm7220 config Change-Id: If605e8ee9bd24ff5fe50b37f521636a0a05be36e Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2129674 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 19 +++++++++++++++++++ qcom/holi-rhodec-common-overlay.dtsi | 1 - 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index e2f5b81df41b..cc2f14b24fd2 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -158,7 +158,26 @@ }; }; +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_en_n>; +}; + &tlmm { + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-low; + }; + }; + chg_irq_default: chg_irq_default { /* IRQ */ mux { diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 6602168e2239..7e84f9fac461 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -11,7 +11,6 @@ */ #include "holi-nopmi-moto-common-overlay.dtsi" -#include "holi-audio-wcd9370-aw882xx-acf-overlay.dtsi" #include #include #include "rhodec-fps-overlay.dtsi" From 1b3268cd39045d4e75bbcdaa4ee4e53828782ce6 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 30 Nov 2021 13:39:26 +0800 Subject: [PATCH 0551/1247] arm/dts: rhodec remove wcd937x_codec config build failed. https://gerrit.mot.com/#/c/2129674/ have removed holi-audio-wcd9370-aw882xx-acf-overlay.dtsi. audio will bringup later. remove all audio dtsi. Change-Id: I967fb1b58691c8c48e733940893c8ee54a94fef6 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2130602 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 7e84f9fac461..332b233d3047 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -22,18 +22,6 @@ #include "rhodec-fmr-overlay.dtsi" #include "discrete_charging_holi.dtsi" -&wcd937x_codec { - cdc-vdd-rxtx-supply = <&L9A>; - cdc-vddpx-supply = <&L9A>; - qcom,cdc-static-supplies = "cdc-vdd-rxtx", - "cdc-vddpx"; - /* - * Overriding cdc-vdd-mic-bias-supply to dummy value - * to avoid compilation errors as BOB is not definied - * for pm6125 - */ - cdc-vdd-mic-bias-supply = <>; -}; /* Dummy LDO reference */ &sdhc_1 { From de935b51a6944a215902091f3f94f09273b5718c Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 16 Nov 2021 15:07:44 +0800 Subject: [PATCH 0552/1247] arm/dts: cw2217 vbatt-cutoff modify to 3340mv As moto standard,the vbatt-cutoff should be 3400mv, But the cw2217 fg's algorithm,it will retain up to 1% of capacity, and if a case of long-term heavy load discharge, the shutdown voltage will also be increased. the current parameter of vbatt-cutoff is 3400mv, but From the past test data. the minimun vbatt-cutoff is 3460. so we have to discrease the vbatt-curoff voltage. Change-Id: I5c28c50565d215cb5984f1976e139c13b9458f11 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2117156 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi index b2a9c929780a..0625194f1509 100644 --- a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi @@ -13,7 +13,7 @@ jd50-atl-5000mah { serialnum = "SB18C77591"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [52 00 00 00 00 00 00 00 A0 B2 BF CB C3 C2 96 59 2F FF FF DB A6 8D 74 60 55 52 4D 8D FD DC 02 CF @@ -22,5 +22,5 @@ jd50-atl-5000mah { 62 62 73 8F A7 87 5F 62 20 00 57 10 02 B0 76 00 00 00 64 28 D3 7C 00 00 - 00 00 00 00 00 00 00 44 ]; + 00 00 00 00 00 00 00 45 ]; }; From 14f84c8a6fd8faf2771d4e1435b81a6606db3e91 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 1 Dec 2021 09:09:52 +0800 Subject: [PATCH 0553/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: I039fd0396eaf4dbfa10ad791dd9976d5d2bd5978 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2131482 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 62c1e2e89057..676d10a98fc0 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -691,7 +691,7 @@ Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ - 0x4008 0xB + 0x4008 0x8 0x42C0 0x40800 0x42C4 0xFF 0x8010 0x0 From 1778466ecd9b3dede05ce012092b6336d97fc2ef Mon Sep 17 00:00:00 2001 From: xuyanan Date: Tue, 30 Nov 2021 20:04:55 +0800 Subject: [PATCH 0554/1247] A+G&&PL&M sensor 1st bringup(2/2) Modify: Psensor LEDA power on Change-Id: I3517893a626a7b9ca38a967933d6cdd3e0681f26 Reviewed-on: https://gerrit.mot.com/2130968 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 332b233d3047..ed241c3c35c6 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -89,6 +89,12 @@ status = "ok"; }; +&pm6125_l21 { + regulator-always-on; //LEDA power + regulator-min-microvolt = <3300000>; + qcom,init-voltage = <3300000>; +}; + &tlmm { cam_pmic_en_default: cam_pmic_en_default { mux { From 733b663b42ec61613c9738a7fbfd8759528a968a Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 30 Nov 2021 20:49:31 +0800 Subject: [PATCH 0555/1247] arm/dt: corfur: add rm692c9 visionox panel initial configs arm/dt: Add rm692c9 visionox panel initial configs for corfur. Change-Id: I6058517c9f8a805f6e6db2ad20f2910459f26dba Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2131017 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 35 +++++++++ ...-panel-mot-visionox-rm692c9-fhd-video.dtsi | 78 +++++++++++++++++++ 2 files changed, 113 insertions(+) create mode 100644 qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 679a1b9713fc..11a3d1978f61 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" +#include "dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -67,6 +68,40 @@ }; }; +&dsi_rm692c9_visionox_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_visionox>; + + qcom,mdss-dsi-bl-min-level = <16>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1023>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + qcom,keep-regulators-on; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x1D>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 22 09 09 19 23 09 + 09 09 02 04 00 1D 0E]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi new file mode 100644 index 000000000000..637d378e2f43 --- /dev/null +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -0,0 +1,78 @@ +&mdss_mdp { + dsi_rm692c9_visionox_video: qcom,mdss_dsi_rm692c9_visionox_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_visionoxrm_1080p_647"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-pan-physical-width-dimension = <67>; + qcom,mdss-pan-physical-height-dimension = <149>; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <40>; + qcom,mdss-dsi-h-back-porch = <40>; + qcom,mdss-dsi-h-pulse-width = <2>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <12>; + qcom,mdss-dsi-v-front-porch = <16>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FE 00 + 15 00 00 00 00 00 02 5E 01 + 15 00 00 00 00 00 02 C2 03 + 15 00 00 00 00 00 02 35 00 + 39 00 00 00 00 00 03 51 00 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 15 00 00 00 00 00 02 FE 00 + 05 01 00 00 23 00 01 28 + 05 01 00 00 00 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; From fa0db887ae591a5f0d94e500cd86ed5ce0aebaa1 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 30 Nov 2021 21:15:13 +0800 Subject: [PATCH 0556/1247] arm/dt: corfur: add goodix gt9885 touch configs - Add goodix gt9885 touch configs - Enable focal dynamic load feature, if panel don't match, don't enter probe process Change-Id: I44c0e35463197066446384ea2d8697f3a8f08b13 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2131081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfuq-touchscreen.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi index c0f52887f4d9..61454fc17fee 100755 --- a/qcom/corfuq-touchscreen.dtsi +++ b/qcom/corfuq-touchscreen.dtsi @@ -34,6 +34,7 @@ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; panel = <&dsi_vtdr6110c_visionox_video>; + mmi,status = "/chosen","mmi,panel_name","contains","vtdr6110c"; /* touchscreen_mmi class entries*/ mmi,enable-gestures; @@ -41,4 +42,23 @@ mmi,class-entry-name = "ft3519"; mmi,reset-on-resume = <0x01>; }; + + goodix-gtx8@5d { + compatible = "goodix,gt9885"; + + goodix,avdd-name = "avdd"; + avdd-supply = <&L22A>; + goodix,iovdd-name = "iovdd"; + iovdd-supply = <&L13A>; + + reg = <0x5d>; + mmi,status = "/chosen","mmi,panel_name","contains","rm692c9"; + goodix,reset-gpio = <&tlmm 21 0x00>; + goodix,irq-gpio = <&tlmm 22 0x2008>; + goodix,irq-flags = <2>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + panel = <&dsi_rm692c9_visionox_video>; + }; }; From 2f1372450509182fa4322bf72fffa4a01d6437d1 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 1 Dec 2021 16:09:32 +0800 Subject: [PATCH 0557/1247] rhodep: sar sensor params 1.update params for sx9375 2.blari-rhodep-common-overlay.dtsi Change-Id: If4591ea30efac164409973443965267056e8fe09 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2131897 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 115 +++++++++++--------------- 1 file changed, 47 insertions(+), 68 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 01748834b066..db3019612861 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -262,82 +262,61 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; + Semtech,reg-num = <54>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 - 0x8008 0x0 - 0x4280 0x0 + 0x4008 0x8 0x8020 0x32 - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x8A6 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x866 /*AFE_PARAM_PH5*/ - 0x8070 0x86E /*AFE_PARAM_PH6*/ - 0x807C 0x85E /*AFE_PARAM_PH7*/ + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + 0x807C 0x85C /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ - 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ - 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ - 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ - 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ + 0x803C 0xFFF9FD /*REG_AFEPH_PH1, CS0, ANT1/6, Top right*/ + 0x8048 0xFFD9FF /*REG_AFEPH_PH2, CS4, ANT2, Top center*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT5, Bottom Right*/ + 0x8060 0xBFF9FF /*REG_AFEPH_PH4, CS7, ANT8, Top Left*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 - 0x8098 0x7A36 - 0x80B8 0x9536 - 0x80D8 0x5959 - 0x80F8 0x3F3F - 0x8118 0x2C2C - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0x5A40 - 0x80A0 0x1E1E00E1 - 0x80C0 0x404000E2 - 0x80E0 0x222200E1 - 0x8100 0x161600E2 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 + 0x8098 0x6942 + 0x80B8 0x3E3E + 0x80D8 0x3B3B + 0x80F8 0x5A39 + 0x8118 0x6942 + 0x8138 0x8E + 0x8158 0x8E 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x40CF3000 - 0x80B0 0x7FB33000 - 0x80D0 0x40CD3000 - 0x80F0 0x68B03000 - 0x8110 0x30273000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300005 - 0x80A8 0x300005 - 0x80C8 0x300005 - 0x80E8 0x300005 - 0x8108 0x300005 - 0x8128 0x3600000 - 0x8148 0x3600000 - 0x8168 0x300000 - 0x808C 0x60200060 - 0x80AC 0x60200060 - 0x80CC 0x60200060 - 0x80EC 0x60200060 - 0x810C 0x60200060 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD47000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 0x8024 0x7F7F 0x4280 0xF >; From 5e21f34aa50c39254c302dc33469289bb13b1b76 Mon Sep 17 00:00:00 2001 From: xuyanan Date: Wed, 1 Dec 2021 16:01:56 +0800 Subject: [PATCH 0558/1247] arm64/dts:add sx9375 dts for rhodec Modify:SAR sensor interrupt power on and register configuration Change-Id: Ic0c8c86acde7c62c9ca835628b49efb2c4b87a6e Reviewed-on: https://gerrit.mot.com/2131892 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Lijun Chen Reviewed-by: Huosheng Liao Reviewed-by: Jiacheng Ou Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 110 +++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index ed241c3c35c6..00a5e76d0b09 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -95,6 +95,11 @@ qcom,init-voltage = <3300000>; }; +&pm6125_l9 { + regulator-always-on; //SAR interrupt power + qcom,init-voltage = <1800000>; +}; + &tlmm { cam_pmic_en_default: cam_pmic_en_default { mux { @@ -440,6 +445,111 @@ }; }; +&qupv3_se10_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <75>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x8008 0x0 + 0x4280 0x0 + 0x8020 0x32 + 0x8028 0x876 /*AFE_PARAM_PH0*/ + 0x8034 0x876 /*AFE_PARAM_PH1*/ + 0x8040 0x876 /*AFE_PARAM_PH2*/ + 0x804C 0x876 /*AFE_PARAM_PH3*/ + 0x8058 0x876 /*AFE_PARAM_PH4*/ + 0x8064 0x876 /*AFE_PARAM_PH5*/ + 0x8070 0x876 /*AFE_PARAM_PH6*/ + 0x807C 0x876 /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT0, Bottom Left*/ + 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT1, Bottom right*/ + 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT4, Top Left*/ + 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT5, Top Middle*/ + 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT6, Top Right*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/1_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS1, ANT4 REF, Top_Left*/ + 0x8084 0xFFF9EF /*REG_AFEPH_PH7, NOT USE*/ + 0x802C 0x0 + 0x8038 0x0 + 0x8044 0x0 + 0x8050 0x0 + 0x805C 0x0 + 0x8068 0x0 + 0x8074 0x0 + 0x8080 0x0 + 0x8098 0x6942 + 0x80B8 0x6942 + 0x80D8 0x5A39 + 0x80F8 0x3F3F + 0x8118 0x3F3F + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x0 + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x40CF3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68B03000 + 0x8110 0x30273000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xF + >; + status = "ok"; + }; +}; + &qusb_phy0 { qcom,qusb-phy-init-seq = /* */ From d84b841caed0edb8d2ce634fbf4d14ed5c8b8392 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Wed, 1 Dec 2021 16:13:14 +0800 Subject: [PATCH 0559/1247] arm64/dts: Rhodec audio bringup Rhode5g audio bringup, dual aw88261 chip, use GPIO84 and GPIO59. Change-Id: I17340f5fc54ae4d5c254e967a2f2ffc42a287524 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2131909 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...udio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 424 ++++++++++++++++++ qcom/holi-rhodec-common-overlay.dtsi | 13 + 2 files changed, 437 insertions(+) create mode 100644 qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi diff --git a/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi new file mode 100644 index 000000000000..6dee5f31fc7c --- /dev/null +++ b/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -0,0 +1,424 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 84 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_recv_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 00a5e76d0b09..95bc680e20e4 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -11,6 +11,7 @@ */ #include "holi-nopmi-moto-common-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include #include #include "rhodec-fps-overlay.dtsi" @@ -22,6 +23,18 @@ #include "rhodec-fmr-overlay.dtsi" #include "discrete_charging_holi.dtsi" +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; /* Dummy LDO reference */ &sdhc_1 { From bbf5f74e993d75eb4dae364b3096aba07f55fce2 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 29 Nov 2021 17:55:47 +0800 Subject: [PATCH 0560/1247] arm/dts: cw2217 batt_parameter set ui_full 98 for cypfr cypfr project request show battery capactiy 100% is that the charge current is 400mA, but now curretn is about 280mA, we can set ui_full=98 to reach the moto standard. Change-Id: I74257857a89074ed844c07e0a8aa2dc29f850e3a Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2129880 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi index 0625194f1509..bc94213522fd 100644 --- a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi @@ -13,6 +13,7 @@ jd50-atl-5000mah { serialnum = "SB18C77591"; fcc_design = <5000>; + ui_full = <98>; config_profile_info = [52 00 00 00 00 00 00 00 A0 B2 BF CB C3 C2 96 59 2F FF FF DB A6 8D 74 60 From 5dfc7bb125c82b6976d13fd52d7712af79b0e032 Mon Sep 17 00:00:00 2001 From: Yuecai Liu Date: Wed, 1 Dec 2021 02:08:54 -0600 Subject: [PATCH 0561/1247] Revert "(CR): milanf: remove sd77426 dts config" add sd77426 fg dts project need this fg This reverts commit f3406fb82f973d124e4389d66323f7bbea2565e7. Change-Id: Ie363f411bde795d1a412d136ae3d81ea254d7736 Reviewed-on: https://gerrit.mot.com/2131896 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-milanf-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-nopmi-milanf-common-overlay.dtsi b/qcom/blair-nopmi-milanf-common-overlay.dtsi index aa110e29bc6a..f2d67bf958af 100644 --- a/qcom/blair-nopmi-milanf-common-overlay.dtsi +++ b/qcom/blair-nopmi-milanf-common-overlay.dtsi @@ -19,6 +19,12 @@ &qupv3_se8_i2c { status = "okay"; + oz8806@2f { + compatible = "o2micro,oz8806"; + reg = <0x2f>; + status = "okay"; + }; + cw2217@64 { compatible = "cellwise,cw2217"; reg = <0x64>; From 32ce5e303b69d49bc82c7fb3cbe60970902f3805 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 1 Dec 2021 15:04:06 +0800 Subject: [PATCH 0562/1247] arm64/dt: rhodep: add nfc device node 1. config i2c_7 sheep pin 2. Add device node for samsung nfc Change-Id: Id077848b76c70dc14506ff98bad9ff83b9e3318d Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2131787 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ningkai Zhuang Reviewed-by: Xu Du Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 38 ++++++++++++++++----------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index db3019612861..caccd3423cb0 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -94,12 +94,12 @@ nfc_enable_active: nfc_enable_active { mux { - pins = "gpio6"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -107,12 +107,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio6"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -223,26 +223,32 @@ status = "disabled"; }; +&qupv3_se7_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "disable"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 6 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + mmi,status = "/chosen", "mmi,nfc", "samsung"; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 8 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 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>; + pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; }; sx937x_se7:sx937x@2c { From 5be92801d4991baeac6affb7f526b7886259a045 Mon Sep 17 00:00:00 2001 From: liyiying Date: Wed, 1 Dec 2021 22:31:43 +0800 Subject: [PATCH 0563/1247] vib bring up(2/2) Modify:add ldo_vib node to compatible vibration module to make the vibration can normal woking Change-Id: I240c1a33c262068a7a0188c729877b5e408834ef Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2132307 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 95bc680e20e4..c6538d723d0a 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -272,6 +272,12 @@ linux,can-disable; }; }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; }; &soc { From 38fe1f6be1b2bba9219d26f3f4a02a54f75c1693 Mon Sep 17 00:00:00 2001 From: yangpingao Date: Thu, 2 Dec 2021 13:38:18 +0800 Subject: [PATCH 0564/1247] rhodec add sgm7220 irq dts config Modify: add cc logic sgm7220 interrupt default config test usb and otg function Change-Id: I33baebeff1539c59b5f14e227c56f2d30a506f28 Signed-off-by: yangpingao Reviewed-on: https://gerrit.mot.com/2132856 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index cc2f14b24fd2..21b067a3c09d 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -160,7 +160,7 @@ &sgm7220 { pinctrl-names = "default"; - pinctrl-0 = <&sgm7220_en_n>; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; }; &tlmm { From 50b8592a9022aa32b19b852810868b60da5718c6 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 3 Dec 2021 14:34:10 +0800 Subject: [PATCH 0565/1247] milan5G: sar sensor params 1.update params for sx937x. 2.blair-nopmi-moto-common-overlay.dtsi 3.blair-milanf-dvt2-overlay.dts Change-Id: Ic996d6579640b169af6e84822280a610bcb24b3d Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2134294 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt2-overlay.dts | 27 +++++------------------ qcom/blair-nopmi-moto-common-overlay.dtsi | 27 +++++------------------ 2 files changed, 10 insertions(+), 44 deletions(-) diff --git a/qcom/blair-milanf-dvt2-overlay.dts b/qcom/blair-milanf-dvt2-overlay.dts index 93eebecee353..be77a00152f6 100644 --- a/qcom/blair-milanf-dvt2-overlay.dts +++ b/qcom/blair-milanf-dvt2-overlay.dts @@ -136,12 +136,11 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <2>; Semtech,button-flag = <0x1B>; - Semtech,reg-num = <75>; + Semtech,reg-num = <58>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 - 0x8008 0x0 - 0x4280 0x0 + 0x4008 0x8 0x8020 0x32 0x8028 0x886 /*AFE_PARAM_PH0*/ 0x8034 0x886 /*AFE_PARAM_PH1*/ @@ -160,14 +159,6 @@ 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 0x8098 0x7A36 0x80B8 0x9536 0x80D8 0x5959 @@ -180,19 +171,13 @@ 0x80C0 0x404000E2 0x80E0 0x222200E1 0x8100 0x161600E2 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x40CF3000 + 0x8090 0x40D53000 0x80B0 0x7FB33000 0x80D0 0x40CD3000 - 0x80F0 0x68B03000 - 0x8110 0x30273000 + 0x80F0 0x68B43000 + 0x8110 0x30DB3000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD67000 @@ -212,8 +197,6 @@ 0x812C 0x60200018 0x814C 0x60200018 0x816C 0x60200018 - 0x8024 0x7F7F - 0x4280 0xF >; status = "ok"; diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index c3a760510372..0ac9e1ce1755 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -110,12 +110,11 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; + Semtech,reg-num = <58>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 - 0x8008 0x0 - 0x4280 0x0 + 0x4008 0x8 0x8020 0x32 0x8028 0x886 /*AFE_PARAM_PH0*/ 0x8034 0x886 /*AFE_PARAM_PH1*/ @@ -134,14 +133,6 @@ 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 0x8098 0x7A36 0x80B8 0x9536 0x80D8 0x5959 @@ -154,19 +145,13 @@ 0x80C0 0x404000E2 0x80E0 0x222200E1 0x8100 0x161600E2 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x40CF3000 + 0x8090 0x40D53000 0x80B0 0x7FB33000 0x80D0 0x40CD3000 - 0x80F0 0x68B03000 - 0x8110 0x30273000 + 0x80F0 0x68B43000 + 0x8110 0x30DB3000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD67000 @@ -186,8 +171,6 @@ 0x812C 0x60200018 0x814C 0x60200018 0x816C 0x60200018 - 0x8024 0x7F7F - 0x4280 0xF >; status = "ok"; From 16e0affc4c2134b6d5c609f09f428331fc92a03c Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Thu, 2 Dec 2021 14:54:45 +0800 Subject: [PATCH 0566/1247] arm64/dts: rhodec: add UW sensor s5k4h7 details: add UW sensor s5k4h7 dtsi config Change-Id: I6006865e4869c1019ed913685f85016d561a4e75 Signed-off-by: Xiaofeng Wang Reviewed-on: https://gerrit.mot.com/2132947 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Shuo Wang Reviewed-by: Reviewed-by: Zhenxin Xi Reviewed-by: Long Cheng Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index c6538d723d0a..e2f58b37735a 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -21,6 +21,7 @@ #include "rhodec-display.dtsi" #include "rhodec-touchscreen.dtsi" #include "rhodec-fmr-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-rhodec-overlay.dtsi" #include "discrete_charging_holi.dtsi" &wcd937x_codec { From 0c591cf93a0e99d43f9607957d17e31ec3b4ed38 Mon Sep 17 00:00:00 2001 From: huaqin90 Date: Fri, 3 Dec 2021 11:37:13 +0800 Subject: [PATCH 0567/1247] arm64/dts: rhodep: change pm6375 camera flash gpio details: flash bring up change pm6125 dtsi Change-Id: I78a2719c1bedebe499a36183e1932b8b8a0f4c6c Signed-off-by: huaqin90 Reviewed-on: https://gerrit.mot.com/2134121 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Long Cheng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index 8bfa48db0797..fe86231e8f73 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -30,7 +30,7 @@ indicator_led { indicator_led_default: indicator_led_default { - pins = "gpio8"; + pins = "gpio9"; function = "func1"; output-low; }; From f4e2bf8b83b55a26d6d872c294a8a02fc38772af Mon Sep 17 00:00:00 2001 From: sheqihao Date: Sat, 4 Dec 2021 17:45:24 +0800 Subject: [PATCH 0568/1247] dts/panel: bringup the tianma-nt36672c panel Modify: Bringup tianma-nt36672c panel Change-Id: I39098c6d60a63fe30a86fe604bf986a051970b68 Reviewed-on: https://gerrit.mot.com/2135201 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-nt36672c-645-1080x2400-video.dtsi | 91 ++++++++++++++ qcom/rhodec-display.dtsi | 113 ++++++++++-------- 2 files changed, 155 insertions(+), 49 deletions(-) create mode 100644 qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi new file mode 100644 index 000000000000..9944e86345b6 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -0,0 +1,91 @@ +&mdss_mdp { + dsi_nt36672c_fhd_plus_120_video: qcom,mdss_dsi_tm_nt36672c_645_fhd_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_nt36672c_fhdp_645_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + //qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15000 16000 33750 + // 15800 13250 34450 7500 3000>; + //qcom,mdss-dsi-panel-peak-brightness = <6450000>; + //qcom,mdss-dsi-panel-blackness-level = <4961>; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <100>; + qcom,mdss-dsi-h-back-porch = <40>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <54>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <150>; + qcom,mdss-dsi-on-command = [ + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 39 01 00 00 00 00 06 3B 03 14 36 04 04 + 15 01 00 00 00 00 02 B0 00 + 39 01 00 00 00 00 03 C2 1B A0 + + 15 01 00 00 00 00 02 FF F0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 1C 01 + 15 01 00 00 00 00 02 33 01 + 15 01 00 00 00 00 02 5A 00 + 15 01 00 00 00 00 02 FF D0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 53 22 + 15 01 00 00 00 00 02 54 02 + 15 01 00 00 00 00 02 FF C0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 9C 11 + 15 01 00 00 00 00 02 9D 11 + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 C0 03 + 39 01 00 00 00 00 02 51 FF + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 64 00 01 11 + 05 01 00 00 48 00 01 29 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 32 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + }; + }; +}; diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 550c5ec60a60..c3306f5c4920 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -18,12 +19,12 @@ &tlmm { lcd_panel_avdd_default: lcd_panel_avdd_default { mux { - pins = "gpio84"; + pins = "gpio85"; function = "gpio"; }; config { - pins = "gpio84"; + pins = "gpio85"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -32,12 +33,12 @@ lcd_panel_avee_default: lcd_panel_avee_default { mux { - pins = "gpio85"; + pins = "gpio86"; function = "gpio"; }; config { - pins = "gpio85"; + pins = "gpio86"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -52,7 +53,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 84 0>; + gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; proxy-supply = <&lcd_panel_avdd>; @@ -66,7 +67,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 85 0>; + gpio = <&tlmm 86 0>; enable-active-high; regulator-boot-on; proxy-supply = <&lcd_panel_avee>; @@ -86,7 +87,7 @@ ibb-supply = <&lcd_panel_avee>; vddio-supply = <&L13A>; - qcom,dsi-default-panel = <&dsi_tm_ili7807s_678_fhd_video>; + qcom,dsi-default-panel = <&dsi_nt36672c_fhd_plus_120_video>; }; &soc { @@ -101,7 +102,7 @@ qcom,supply-max-voltage = <1904000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; - qcom,supply-pre-off-sleep = <2>; + qcom,supply-pre-off-sleep = <20>; }; qcom,panel-supply-entry@1 { @@ -129,57 +130,24 @@ }; -&dsi_tm_ili7807s_678_fhd_video { +&dsi_nt36672c_fhd_plus_120_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,bklt-dcs-2bytes-enabled; - + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; qcom,mdss-dsi-bl-min-level = <8>; - qcom,mdss-dsi-bl-max-level = <1023>; - qcom,mdss-dsi-bl-default-level = <512>; - qcom,mdss-brightness-max-level = <1023>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-on-check-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,suspend-ulps-enabled; - qcom,tp_state_check_enable; - qcom,platform-need-execute-shutdown; - - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90 120>; - - //qcom,mdss-dsi-panel-hdr-enabled; - //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 - // 16770 15010 32385 7770 1830>; - //qcom,mdss-dsi-panel-peak-brightness = <4500000>; - //qcom,mdss-dsi-panel-blackness-level = <3000>; - - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0C>; - qcom,mdss-dsi-t-clk-pre = <0x30>; + qcom,mdss-dsi-t-clk-post = <0x0D>; + qcom,mdss-dsi-t-clk-pre = <0x34>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 - 07 07 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 0E 08 08 24 22 08 08 08 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; @@ -257,3 +225,50 @@ }; }; }; +&qupv3_se10_i2c { + status = "ok"; + + aw99703_backlight: sprd_backlight@36{ + compatible = "awinic,aw99703-bl"; + reg = <0x36>; + hwen-gpio = <&tlmm 60 1>; + /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,bl-map = <3>; + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 31V */ + aw99703,ocp-level = <1>; /* 1.8A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x15>; /* 21.6mA */ + aw99703,bl-channel = <2>; + aw99703,turn-on-ramp = <0x04>; + aw99703,turn-off-ramp = <0x04>; + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <0x00>; + aw99703,pwm-mode = <0>; /* 0 pwm disble,1 PWM enable */ + aw99703,map-type = <1>; /* linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,flash-timeout-time = <0x05>; /* 500ms(default) */ + aw99703,flash-current = <0x08>; /* 59.2mA(default) */ + aw99703,efuse-config = <0x1C 0x61 0x61 0x4C 0x2C 0xC0 0x08 0x00 0x01 0x80 0x00 0x00 0x00>; + + status = "okay"; + }; + + ocp2138@3e { + compatible = "ocp,i2c_lcd_bias"; + reg = <0x3e>; + i2c-pull-up; + ocp,lcd-bias-enn-gpio = <&tlmm 85 0>; + ocp,lcd-bias-enp-gpio = <&tlmm 86 0>; + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From a6addb25c90cc480ba7f824aa15c45fea5c8d704 Mon Sep 17 00:00:00 2001 From: sheqihao Date: Sat, 4 Dec 2021 17:43:32 +0800 Subject: [PATCH 0569/1247] arm/dt: add nt36672c touch config Modify: Add nt36672c touch config for rhodec Change-Id: I4b0b1e78ab213dae488909cf9a0c11edf55cc20b Reviewed-on: https://gerrit.mot.com/2135199 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 164 ++++++++++++++--------------------- 1 file changed, 65 insertions(+), 99 deletions(-) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index bfe7714dd000..6165d4b22f14 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -11,115 +11,81 @@ * GNU General Public License for more details. */ -&tlmm { - touch_int_mux { - touch_int_active: active { - mux { - pins = "gpio22"; - function = "gpio"; - }; - config { - pins = "gpio22"; - drive-strength = <8>; - bias-pull-up; - }; - }; - - touch_int_suspend: default { - mux { - pins = "gpio22"; - function = "gpio"; - }; - config { - pins = "gpio22"; - drive-strength = <2>; - bias-disable; - }; - }; - }; - - pmx_ts_int_suspend_high { - ts_int_suspend_high: ts_int_suspend_high { - mux { - pins = "gpio22"; - function = "gpio"; - }; - config { - pins = "gpio22"; - drive-strength = <2>; - bias-pull-down; - }; - }; - }; - - touch_reset_mux { - touch_reset_active: active { - mux { - pins = "gpio21"; - function = "gpio"; - }; - config { - pins = "gpio21"; - drive-strength = <8>; - bias-disable; - }; - }; - - touch_reset_suspend: default { - mux { - pins = "gpio21"; - function = "gpio"; - }; - config { - pins = "gpio21"; - drive-strength = <2>; - bias-pull-down; - output-low; - }; - }; - }; - - ts_release_mux { - ts_release: ts_release { - mux { - pins = "gpio21", "gpio22"; - function = "gpio"; - }; - - config { - pins = "gpio21", "gpio22"; - drive-strength = <2>; - bias-disable; - }; - }; - }; -}; - &qupv3_se0_i2c { status = "disabled"; }; -&qupv3_se8_i2c { - synaptics_tcm@20 { - status = "disabled"; +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; }; }; &qupv3_se0_spi { status = "ok"; - ilitek@0 { - compatible = "tchip,ilitek"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; reg = <0x0>; - spi-max-frequency = <6000000>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - panel = <&dsi_tm_ili7807s_678_fhd_video &dsi_csot_ili7807s_678_fhd_video>; - touch,reset-gpio = <&tlmm 21 0x00>; - touch,irq-gpio = <&tlmm 22 0x2008>; - pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; - pinctrl-0 = <&touch_int_active>; - pinctrl-1 = <&ts_int_suspend_high>; - ilitek,report_gesture_key; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,panel-supplier = "tm"; + panel = <&dsi_nt36672c_fhd_plus_120_video>; status = "ok"; }; }; From d6c9e0f12c0e3ba30c3d331f621bc084b9553b4b Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 3 Dec 2021 11:16:42 +0800 Subject: [PATCH 0570/1247] arm64/dts:bring up fps for Rhodec fps chip:FT9391&ET528 Add device node for them. Change-Id: Id9aa2c1a1449ba220d3376c6d32a86f11b3263ae Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2134110 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yan Zhang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-fps-overlay.dtsi | 104 +++++++++++++++++++++-------------- 1 file changed, 62 insertions(+), 42 deletions(-) diff --git a/qcom/rhodec-fps-overlay.dtsi b/qcom/rhodec-fps-overlay.dtsi index 40fa18745865..9755149ad77b 100644 --- a/qcom/rhodec-fps-overlay.dtsi +++ b/qcom/rhodec-fps-overlay.dtsi @@ -44,12 +44,12 @@ ets_vcc_high: ets_vcc_high { /* INTERRUPT */ mux { - pins = "gpio87"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio87"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ output-high; }; @@ -58,33 +58,60 @@ ets_vcc_low: ets_vcc_low { /* INTERRUPT */ mux { - pins = "gpio87"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio87"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ output-low; }; }; - fps_rst_active: fps_rst_active { - /* active state */ + ft_power_high: ft_power_high { mux { - pins = "gpio18"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_power_low: ft_power_low { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; output-low; }; }; - fps_rst_suspend: fps_rst_suspend { - /* sleep state */ + ft_eint_as_int: ft_eint_as_int { + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + + ft_reset_high: ft_reset_high { mux { pins = "gpio18"; function = "gpio"; @@ -92,37 +119,23 @@ config { pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ + drive-strength = <2>; + bias-disable; + output-high; }; }; - fps_int_active: fps_int_active { - /* active state */ + ft_reset_low: ft_reset_low { mux { - pins = "gpio17"; + pins = "gpio18"; function = "gpio"; }; config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ + pins = "gpio18"; + drive-strength = <2>; bias-disable; - input-enable; - }; - }; - - fps_int_suspend: fps_int_suspend { - /* sleep state */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; + output-low; }; }; }; @@ -137,9 +150,9 @@ interrupts = <17 0x0>; fp-ctrl-power; fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 6 0x0>; egistec,gpio_irq = <&tlmm 17 0x0>; egistec,gpio_reset = <&tlmm 18 0x0>; - egistec,gpio_vcc_en = <&tlmm 87 0x0>; pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", "egis_vcc_high", "egis_vcc_low"; pinctrl-0 = <&ets_rst_high>; @@ -149,15 +162,22 @@ pinctrl-4 = <&ets_vcc_low>; }; - fpc: fpc_fpc1020 { - compatible = "fpc,fpc1020"; + ft9362: ft9362 { status = "ok"; - irq = <&tlmm 17 0>; - rst = <&tlmm 18 0>; + compatible = "focaltech,fingerprint"; interrupt-parent = <&tlmm>; - interrupts = <17 0>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&fps_rst_active &fps_int_active>; - pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + interrupts = <17 0x0>; + fp,reset_gpio = <&tlmm 18 0>; + fp,irq_gpio = <&tlmm 17 0>; + fp,vdd_gpio = <&tlmm 6 0>; + + pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", + "fpsensor_finger_rst_low","fpsensor_finger_rst_high", + "fpsensor_eint_as_int"; + pinctrl-0 = <&ft_power_high>; + pinctrl-1 = <&ft_power_low>; + pinctrl-2 = <&ft_reset_low>; + pinctrl-3 = <&ft_reset_high>; + pinctrl-4 = <&ft_eint_as_int>; }; }; From 2848f055a0fee5c19306921f6dec15ce9f225c3b Mon Sep 17 00:00:00 2001 From: liuzy55 Date: Fri, 3 Dec 2021 19:56:20 +0800 Subject: [PATCH 0571/1247] arm64/dts: rhodec: fmr gpio47 conflict to camera details: delete fmr Change-Id: I89e9a666defda606df755e9776825a93e8f9971e Signed-off-by: liuzy55 Reviewed-on: https://gerrit.mot.com/2134725 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Reviewed-by: Reviewed-by: Xingyun Fu Reviewed-by: XiaoFeng Wang Reviewed-by: Zhuoran Xu Reviewed-by: Zhichao Chen Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/rhodec-fmr-overlay.dtsi | 43 ------------------------------------ 1 file changed, 43 deletions(-) diff --git a/qcom/rhodec-fmr-overlay.dtsi b/qcom/rhodec-fmr-overlay.dtsi index 8ce398dbec2e..7c8b3bb156eb 100644 --- a/qcom/rhodec-fmr-overlay.dtsi +++ b/qcom/rhodec-fmr-overlay.dtsi @@ -1,48 +1,5 @@ &tlmm { - fm_elna_default: fm_elna_default { - mux { - pins = "gpio47"; - function = "gpio"; - }; - config { - pins = "gpio47"; - drive_strength = <16>; - output-low; - }; - }; - - fm_elna_active: fm_elna_active { - mux { - pins = "gpio47"; - function = "gpio"; - }; - config { - pins = "gpio47"; - drive_strength = <16>; - output-high; - }; - }; - - fm_elna_suspend: fm_elna_suspend { - mux { - pins = "gpio47"; - function = "gpio"; - }; - config { - pins = "gpio47"; - drive_strength = <16>; - output-low; - }; - }; }; &soc { - fmradio: fm_wcn39x0 { - status = "ok"; - compatible = "moto,fmctrl"; - pinctrl-names = "default", "elna_active", "elna_suspend"; - pinctrl-0 = <&fm_elna_default>; - pinctrl-1 = <&fm_elna_active>; - pinctrl-2 = <&fm_elna_suspend>; - }; }; From 294e088d054d842976e8d0716cbf327853162511 Mon Sep 17 00:00:00 2001 From: wingte51 Date: Mon, 6 Dec 2021 16:30:54 +0800 Subject: [PATCH 0572/1247] Rhodec: NFC Bringup. Modify rhodec dtsi, disable st21nfc@8, add nq@28 to enable nxp NFC and mke it works. Change-Id: I48dd857ed160738f70b450d32cc7858127ee9642 Reviewed-on: https://gerrit.mot.com/2136086 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: huanghe Reviewed-by: Guobin Zhang Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index e2f58b37735a..97ad8f3f1903 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -227,13 +227,17 @@ #address-cells = <1>; #size-cells = <0>; st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 48 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + status = "disabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; From 21f2d49c8b4d527f8d7c48064612ac6be373aa6b Mon Sep 17 00:00:00 2001 From: huaqin86 Date: Mon, 6 Dec 2021 14:57:30 +0800 Subject: [PATCH 0573/1247] dtsi:thermal: change camera_flash_therm name Node name and tcmd do not match Change camera_flash_therm to cam_flash_therm Change-Id: I22b3169c913a0c640cb42b9bcd79322f2049fc5e Signed-off-by: huaqin86 Reviewed-on: https://gerrit.mot.com/2135952 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Yongbin Chen Reviewed-by: zhaozhenfei Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index caccd3423cb0..830fc22714ae 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -449,7 +449,7 @@ }; }; - camera_flash_therm { + cam_flash_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; From 5417c8aea816d6ef31b9804a955a904fde8a66cf Mon Sep 17 00:00:00 2001 From: sheqihao Date: Tue, 7 Dec 2021 11:34:44 +0800 Subject: [PATCH 0574/1247] dts/panel:modify aw99703 led baclight configuration Modify: Enable aw99703 backliht pwm mode Change-Id: I70274c1653bb84c27b8b1ee2a4c3d61e6f8357c1 Reviewed-on: https://gerrit.mot.com/2136837 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index c3306f5c4920..0882dc343a66 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -246,7 +246,7 @@ aw99703,turn-off-ramp = <0x04>; aw99703,pwm-trans-dim = <0>; /* 2ms */ aw99703,i2c-trans-dim = <0x00>; - aw99703,pwm-mode = <0>; /* 0 pwm disble,1 PWM enable */ + aw99703,pwm-mode = <1>; /* 0 pwm disble,1 PWM enable */ aw99703,map-type = <1>; /* linear */ aw99703,work-mode = <1>; /* backlight */ aw99703,flash-timeout-time = <0x05>; /* 500ms(default) */ From 241aaa870ae2bb9cf7da1109abd84b5258bd7ad2 Mon Sep 17 00:00:00 2001 From: liubaolin Date: Tue, 7 Dec 2021 16:04:17 +0800 Subject: [PATCH 0575/1247] rhodec: pull down GPIO58 for sgm7220 EN_pin For rhodec phone,when set console false,the cc logic sgm7220 in probe function read chipID fail,the reason is the en pull down fail. so modify deivce tree to solve Change-Id: I7793172f66a52033c4d4fd015119c32b27e640a8 Signed-off-by: liubaolin Reviewed-on: https://gerrit.mot.com/2137074 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Submit-Approved: panyq6 --- qcom/discrete_charging_holi.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 21b067a3c09d..b8140389c01d 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -173,8 +173,8 @@ config { pins = "gpio58"; drive-strength = <2>; /* 2 MA */ - bias-disable; - output-low; + bias-pull-down; + input-enable; }; }; From 8308101a764777170a812744d566d0ecdacb191f Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Tue, 12 Oct 2021 09:21:12 +0800 Subject: [PATCH 0576/1247] Thermal: Enable NTC on PMR735A The NTC cam_flash_therm is on PMR735A which should include ADC and IIO configuration. Change-Id: I0e30217a8aa740dcf8bfaa7cbf8e3fbc7770fbc3 Reviewed-on: https://gerrit.mot.com/2087676 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 43 ++++++++++++++++++++++++++- 1 file changed, 42 insertions(+), 1 deletion(-) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index a8899d6ec552..bb874e3efcd2 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -230,6 +230,47 @@ }; }; +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; @@ -315,7 +356,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { From 38a997e19ca80cf897ab648aad7fb4b3940c5e3c Mon Sep 17 00:00:00 2001 From: Yuecai Liu Date: Tue, 7 Dec 2021 23:48:29 -0600 Subject: [PATCH 0577/1247] Revert "(CR): arm/dts: add adb force eanble configuration" rhodep charger/fg/typec ic already bringup. adb is ok, remove force-adb-enable This reverts commit 07b5e9d42dfb51db77e8350de394045674de7cfe. Change-Id: Ia06dcf3c97db48956a9222400fee132fdcc15f68 Reviewed-on: https://gerrit.mot.com/2138321 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 830fc22714ae..b3c3ae9a48e0 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -28,11 +28,6 @@ #include "discrete_charging_rhodep.dtsi" #include "discrete-rt-pd-manger.dtsi" - -&usb0 { - qcom,force-adb-enable; -}; - &qupv3_se8_i2c { status = "okay"; cw2217@64 { From fdc653163c91da353d37ae7ff6266ac49e25a00d Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Wed, 8 Dec 2021 15:28:29 +0800 Subject: [PATCH 0578/1247] devicetree: qcom: update DT for the change of hwid in rhodep update DT for rhodep according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm4350 Change-Id: Ia0a5f223c75cc2e047c3829192b7d9dfc5064f9a Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2138510 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 10 ++++++-- qcom/blair-rhodep-dvt1-overlay.dts | 24 +++++++++++++++++++ qcom/blair-rhodep-dvt2-overlay.dts | 24 +++++++++++++++++++ qcom/blair-rhodep-evb-overlay.dts | 2 +- qcom/blair-rhodep-evt1-overlay.dts | 24 +++++++++++++++++++ ...rlay.dts => blair-rhodep-evt2-overlay.dts} | 0 6 files changed, 81 insertions(+), 3 deletions(-) create mode 100644 qcom/blair-rhodep-dvt1-overlay.dts create mode 100644 qcom/blair-rhodep-dvt2-overlay.dts create mode 100644 qcom/blair-rhodep-evt1-overlay.dts rename qcom/{blair-rhodep-evt-overlay.dts => blair-rhodep-evt2-overlay.dts} (100%) diff --git a/qcom/Makefile b/qcom/Makefile index 4b4460aa0824..e45510531a4e 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -100,10 +100,16 @@ blair-milanf-dvt2-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evb-overlay.dtbo \ - blair-rhodep-evt-overlay.dtbo \ + blair-rhodep-evt1-overlay.dtbo \ + blair-rhodep-evt2-overlay.dtbo \ + blair-rhodep-dvt1-overlay.dtbo \ + blair-rhodep-dvt2-overlay.dtbo blair-rhodep-evb-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-evt-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evt1-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evt2-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-dvt2-overlay.dtbo-base := blair-moto-base.dtb else diff --git a/qcom/blair-rhodep-dvt1-overlay.dts b/qcom/blair-rhodep-dvt1-overlay.dts new file mode 100644 index 000000000000..08323e0cffa1 --- /dev/null +++ b/qcom/blair-rhodep-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB100>; +}; + diff --git a/qcom/blair-rhodep-dvt2-overlay.dts b/qcom/blair-rhodep-dvt2-overlay.dts new file mode 100644 index 000000000000..ec9e49366f44 --- /dev/null +++ b/qcom/blair-rhodep-dvt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB200>; +}; + diff --git a/qcom/blair-rhodep-evb-overlay.dts b/qcom/blair-rhodep-evb-overlay.dts index 17c4ec8f41fc..72d89ed4ae49 100644 --- a/qcom/blair-rhodep-evb-overlay.dts +++ b/qcom/blair-rhodep-evb-overlay.dts @@ -19,6 +19,6 @@ model = "rhodep"; compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x4D 0xA100>; + qcom,board-id = <0x4D 0x9000>; }; diff --git a/qcom/blair-rhodep-evt1-overlay.dts b/qcom/blair-rhodep-evt1-overlay.dts new file mode 100644 index 000000000000..17c4ec8f41fc --- /dev/null +++ b/qcom/blair-rhodep-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodep-common-overlay.dtsi" + +/ { + model = "rhodep"; + compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xA100>; +}; + diff --git a/qcom/blair-rhodep-evt-overlay.dts b/qcom/blair-rhodep-evt2-overlay.dts similarity index 100% rename from qcom/blair-rhodep-evt-overlay.dts rename to qcom/blair-rhodep-evt2-overlay.dts From 2c18ddc0a1b32a278bfbdff6aff7aad8f965bb3a Mon Sep 17 00:00:00 2001 From: liyiying Date: Tue, 7 Dec 2021 17:32:57 +0800 Subject: [PATCH 0579/1247] rhodec add thermal node Modify: add thermal node to fix tcmd test error problem Change-Id: I0418d3fdc0c0076cb7e10bfdeeb72a67c4a32b38 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2137203 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 183 +++++++++++++++++---------- 1 file changed, 116 insertions(+), 67 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 97ad8f3f1903..3b69fbfa1e15 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -222,6 +222,40 @@ }; }; +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; @@ -329,9 +363,54 @@ status = "disabled"; }; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -345,8 +424,8 @@ }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -359,69 +438,9 @@ }; }; - msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - ufs_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - camera_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -433,8 +452,38 @@ }; }; }; -}; + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; &pm6125_gpios { indicator_led { From 07e4406411f25ea055fb5127528f76ee14f6ffd8 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 9 Dec 2021 11:55:47 +0800 Subject: [PATCH 0580/1247] rhodep: sar sensor params 1.update params for sx9375 2.blari-rhodep-common-overlay.dtsi Change-Id: I61230c17571e0f650528db25219c41a033339b7d Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2139323 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index b3c3ae9a48e0..3337fb681cb4 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -269,13 +269,13 @@ 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x886 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x886 /*AFE_PARAM_PH5*/ + 0x8070 0x886 /*AFE_PARAM_PH6*/ 0x807C 0x85C /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ @@ -286,13 +286,13 @@ 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8098 0x6942 - 0x80B8 0x3E3E - 0x80D8 0x3B3B - 0x80F8 0x5A39 - 0x8118 0x6942 - 0x8138 0x8E - 0x8158 0x8E + 0x8098 0x693F + 0x80B8 0x6932 + 0x80D8 0x3737 + 0x80F8 0x3C3C + 0x8118 0x4242 + 0x8138 0xFE + 0x8158 0xFE 0x8188 0x8000015 0x818C 0x8000016 0x8090 0x64B45000 From 7af7eea4caa10a26fdb8c0d2aefe8f1e372d4b6d Mon Sep 17 00:00:00 2001 From: sheqihao Date: Wed, 8 Dec 2021 17:23:34 +0800 Subject: [PATCH 0581/1247] dts/panel: rhodec: Enable dynamic fps for nt36672c panel Modfiy: Enable dfps for nt36672c. set dsi-supported-dfps-list support 60fps,90fps,120fps. Change-Id: I6223a7Montanaec1f29544896fa05c42da57d0b4a7c4 Reviewed-on: https://gerrit.mot.com/2138666 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 0882dc343a66..d4e24f8ebf3c 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -142,6 +142,11 @@ qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-no-panel-on-read-support; qcom,tp_state_check_enable; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0D>; qcom,mdss-dsi-t-clk-pre = <0x34>; From be1d153f4c9bc6c2924175f28ddc38f154713fd0 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Tue, 7 Dec 2021 15:30:50 +0800 Subject: [PATCH 0582/1247] dts/panel: Panel: add esd check for nt36672c panel Modify: add esd check for nt36672c panel Change-Id: I04593359ec480b30b8ca9913203b8773c4b79c8e Reviewed-on: https://gerrit.mot.com/2138115 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index d4e24f8ebf3c..98ccb465ed6f 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -141,6 +141,15 @@ qcom,mdss-dsi-bl-default-level = <1024>; qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-no-panel-on-read-support; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,tp_state_check_enable; qcom,dsi-supported-dfps-list = <120 90 60>; From 4374dff6b20e28e6fe5a0d7280b5c1d254ee89bc Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 9 Dec 2021 16:56:18 +0800 Subject: [PATCH 0583/1247] arm/dts: remove charging led dtsi config As rhodec and rhodep hw don't have charging led, so remove charging led dtsi config Change-Id: I6d63ae1fdd735c03c13d051fa9884bffd2bcf2f1 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2139690 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 31 ------------------------------ qcom/discrete_charging_rhodep.dtsi | 31 ------------------------------ 2 files changed, 62 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index b8140389c01d..4c74f78af041 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -29,37 +29,6 @@ bias-high-impedance; }; }; - - indicator_led { - indicator_led_default: indicator_led_default { - pins = "gpio8"; - function = "func1"; - output-low; - }; - }; -}; - -&soc { - indicator_led { - compatible = "qcom,indicator-pwm-led"; - pinctrl-names = "default"; - pinctrl-0 = <&indicator_led_default>; - indicator_led { - label = "charging"; - led-sources = <0>; - pwms = <&pm6125_pwm 0 1000000>; - linux,default-trigger = "timer"; - }; - }; -}; - -&spmi_bus { - qcom,pm6125@1 { - #address-cells = <1>; - qcom,pwms@b300 { - status = "ok"; - }; - }; }; &qupv3_se8_i2c { diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index fe86231e8f73..075f89110d0c 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -27,37 +27,6 @@ bias-high-impedance; }; }; - - indicator_led { - indicator_led_default: indicator_led_default { - pins = "gpio9"; - function = "func1"; - output-low; - }; - }; -}; - -&soc { - indicator_led { - compatible = "qcom,indicator-pwm-led"; - pinctrl-names = "default"; - pinctrl-0 = <&indicator_led_default>; - indicator_led { - label = "charging"; - led-sources = <0>; - pwms = <&pm6125_pwm 0 1000000>; - linux,default-trigger = "timer"; - }; - }; -}; - -&spmi_bus { - qcom,pm6125@1 { - #address-cells = <1>; - qcom,pwms@b300 { - status = "ok"; - }; - }; }; &qupv3_se10_i2c { From 67555f22af35731fa1e3493e4176ee4196b6b221 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 10 Dec 2021 08:53:58 +0800 Subject: [PATCH 0584/1247] dts/panel: cypfq_2nd-panel: change mipi clock to from 741M to 754M For csot panel: To fix the issue of CSOT ILI7807S LCD MiPi clock conflict with the RF, change mipi clock to from 741M to 754M. Change-Id: If672c5dc5dd7776e89573b6cac555a3e24f3b00d Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2140504 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi index 7db5ccdd7962..bd7a72f93bda 100644 --- a/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi @@ -41,13 +41,13 @@ qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2460>; qcom,mdss-dsi-h-front-porch = <20>; - qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-back-porch = <24>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <48>; + qcom,mdss-dsi-v-back-porch = <84>; qcom,mdss-dsi-v-front-porch = <2588>; - qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; From fca286291823a6c8af2a9896cb928402772e8ff5 Mon Sep 17 00:00:00 2001 From: sheqihao Date: Thu, 9 Dec 2021 15:55:53 +0800 Subject: [PATCH 0585/1247] dts/panel: rhodec: Enable Display hbm Modfiy: Enable hbm for nt36672c panel. Change-Id: Ib92169dd4d3b7e89728765451d33e01776fc01a3 Reviewed-on: https://gerrit.mot.com/2139620 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 98ccb465ed6f..ba24048dcd41 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -156,6 +156,12 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0D>; qcom,mdss-dsi-t-clk-pre = <0x34>; @@ -254,7 +260,7 @@ aw99703,switch-freq = <1>; /* 1000kHz(default) */ aw99703,auto-freq-high = <0x10>; aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x15>; /* 21.6mA */ + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ aw99703,bl-channel = <2>; aw99703,turn-on-ramp = <0x04>; aw99703,turn-off-ramp = <0x04>; From ed3b2e3f83332457d85d95b58515b3fc46227054 Mon Sep 17 00:00:00 2001 From: sheqihao Date: Thu, 9 Dec 2021 16:00:35 +0800 Subject: [PATCH 0586/1247] dts/panel: rhodec: Enable Display cabc mode Modfiy: Enable cabc mode for nt36672c panel. Change-Id: I3356ad56863820dc6fcbcabe6f7a4345c7ae9d36 Reviewed-on: https://gerrit.mot.com/2139622 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...si-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi index 9944e86345b6..019c6cef6db4 100644 --- a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -29,6 +29,13 @@ //qcom,mdss-dsi-panel-peak-brightness = <6450000>; //qcom,mdss-dsi-panel-blackness-level = <4961>; + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; @@ -66,7 +73,7 @@ 15 01 00 00 00 00 02 FF 10 15 01 00 00 00 00 02 FB 01 15 01 00 00 00 00 02 C0 03 - 39 01 00 00 00 00 02 51 FF + 15 01 00 00 00 00 02 51 CC 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 From 47a11afd60dc1f41b27ffe1256c6189fb9f16881 Mon Sep 17 00:00:00 2001 From: wutao Date: Wed, 8 Dec 2021 21:40:11 +0800 Subject: [PATCH 0587/1247] dtsi: config sencond fgauge ic sm5602 dtsi qcom/devicetree config sm5602 device tree for rhode product i2c address is 0x71 and include battery table remove irq in dtsi Change-Id: I0397fa7734041edfaee26a0362c3a989b1417c4c Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2138878 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 105 ++++++++++++++++++++++++++ 1 file changed, 105 insertions(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 3337fb681cb4..452be7879ec0 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -39,6 +39,111 @@ #include "bat_setting/CW_md50-scud-5000mah.dtsi" #include "bat_setting/CW_md50-amperex-5000mah.dtsi" }; + + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + //sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0125>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <0>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <1>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + battery_params { + //battery,id = <0>; + //NE50(SWD) + battery0,param_version = <1>; + battery0,max_voltage_uv = <4450000>; + battery0,battery_type = <4450 0x0 0x2600>; + battery0,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B + 0x1DD6 0x1E0A 0x1E39 0x1E77 0x1ECB 0x1F2B 0x1F59 0x1FE1 + 0x200E 0x20E1 0x2195 0x2214 0x226A 0x230B 0x234E 0x2733>; + battery0,battery_table1 = <0x0 0x85 0x193 0x2A0 0x327 0x435 0x650 0xA86 0xEBC 0x13FF + 0x1942 0x2127 0x2BAE 0x3393 0x3635 0x3B78 0x3E1A 0x48A1 + 0x5086 0x55C9 0x5979 0x60D7 0x6400 0x64E6>; + battery0,battery_table2 = <0x1C28 0x1618 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; + battery0,alpha = <0x00CC>; + battery0,beta = <0x0025>; + battery0,rs = <0x805F>; + battery0,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery0,vit_period = <0x325A>; + battery0,volt_cal = <0x8000>; + battery0,mix_value = <0x0003>; + battery0,curr_offset = <0x000>; + battery0,curr_slope = <0x8080>; + battery0,topoff_soc = <7 343>; + battery0,temp_std = <25>; + battery0,temp_offset = <0 11 1 0 8 (-1)>; + battery0,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery0,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; + battery0,tem_poff = <3400 100>; + battery0,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 + //NE50(ATL) + battery1,param_version = <1>; + battery1,max_voltage_uv = <4450000>; + battery1,battery_type = <4450 0x0 0x2666>; + battery1,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 + 0x1DE7 0x1E11 0x1E44 0x1E78 0x1F09 0x1F62 0x1FB2 0x1FE2 + 0x200E 0x20DC 0x218F 0x220C 0x2261 0x2301 0x2344 0x2733>; + battery1,battery_table1 = <0x0 0x84 0x18F 0x31F 0x42A 0x534 0x74A 0xB74 0xF9F 0x14D4 + 0x1A0A 0x21DA 0x317A 0x36AF 0x394A 0x3BE5 0x3E7F 0x48EA + 0x50BA 0x55EF 0x5995 0x60DF 0x6400 0x64E6>; + battery1,battery_table2 = <0x1F2D 0x181A 0x1516 0x1213 0x1111 0x1010 0x0F0F 0x0F0F>; + battery1,alpha = <0x00CC>; + battery1,beta = <0x0025>; + battery1,rs = <0x805F>; + battery1,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery1,vit_period = <0x325A>; + battery1,volt_cal = <0x8000>; + battery1,mix_value = <0x0003>; + battery1,curr_offset = <0x000>; + battery1,curr_slope = <0x8080>; + battery1,topoff_soc = <7 343>; + battery1,temp_std = <25>; + battery1,temp_offset = <0 11 1 0 8 (-1)>; + battery1,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery1,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; + battery1,tem_poff = <3400 100>; + battery1,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 + }; + }; }; &wcd937x_codec { From 1cc719f4d6124cb94a3960e0c5dc11135997c9ab Mon Sep 17 00:00:00 2001 From: bchhq23 Date: Mon, 13 Dec 2021 17:03:29 +0800 Subject: [PATCH 0588/1247] rhodep:modify timing of tp; tp/dts: 1.modify vci and rset is low when suspend; 2.opend gesture mode function 3.opend charger mode function Change-Id: I23962799e9fb4337e9038bc27328b0ce9f2ffc5c Signed-off-by: bchhq23 Reviewed-on: https://gerrit.mot.com/2142599 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index 24ddf1f53527..fa682829092e 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -97,5 +97,8 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; + mmi,power-off-suspend; + mmi,enable-gestures; + mmi,usb-charger-detection; }; }; From 53ee2c650cbea49190cd90f46f53f93dfcd2f4d0 Mon Sep 17 00:00:00 2001 From: liubaolin Date: Fri, 10 Dec 2021 17:56:17 +0800 Subject: [PATCH 0589/1247] rhodec: modify sgm7220 en pin config in evb dts For rhodec phone,evb the sgm7220 en pin is control by gpio58, after evb,the sgm7220 en pin is connected to ground,so no need to config gpio58 to pull down the sgm7220 en pin.so modify the sgm7220 en pin config in evb dts Change-Id: Ie351d675272d6cc7c2fe1d6a3719deab39f1b9bf Signed-off-by: liubaolin Reviewed-on: https://gerrit.mot.com/2141090 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: panyq6 --- qcom/discrete_charging_holi.dtsi | 17 ----------------- qcom/holi-rhodec-evb-overlay.dts | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 4c74f78af041..0b826b59d70e 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -127,26 +127,9 @@ }; }; -&sgm7220 { - pinctrl-names = "default"; - pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; -}; &tlmm { - sgm7220_en_n: sgm7220_en_n { - mux { - pins = "gpio58"; - function = "gpio"; - }; - config { - pins = "gpio58"; - drive-strength = <2>; /* 2 MA */ - bias-pull-down; - input-enable; - }; - }; - chg_irq_default: chg_irq_default { /* IRQ */ mux { diff --git a/qcom/holi-rhodec-evb-overlay.dts b/qcom/holi-rhodec-evb-overlay.dts index cf0cc46f16ae..ea9ee8b86c98 100644 --- a/qcom/holi-rhodec-evb-overlay.dts +++ b/qcom/holi-rhodec-evb-overlay.dts @@ -22,3 +22,24 @@ qcom,board-id = <0x47 0x9000>; }; + +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; +}; + +&tlmm { + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + input-enable; + }; + }; +}; From c22f90adba7e9d1a6560c693a4ac39503a6a2dfc Mon Sep 17 00:00:00 2001 From: weimh1 Date: Tue, 14 Dec 2021 11:36:32 +0800 Subject: [PATCH 0590/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: Iead9bfb02174ce8077ade733f5309087dadaa163 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2143512 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 676d10a98fc0..eef125d18680 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -725,9 +725,9 @@ 0x8074 0x0 0x8080 0x0 0x8098 0x8446 - 0x80B8 0x3030 + 0x80B8 0x3737 0x80D8 0x5A31 - 0x80F8 0x8A4E + 0x80F8 0x8348 0x8118 0x3E31 0x8138 0x5A40 0x8158 0x5A40 @@ -735,8 +735,8 @@ 0x80A0 0x1F1F00E1 0x80C0 0x252500E2 0x80E0 0x202000E1 - 0x8100 0xD0D00E2 - 0x8120 0x1C1C00E2 + 0x8100 0x171700E2 + 0x8120 0x232300E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -757,10 +757,10 @@ 0x81E8 0x0 0x81EC 0x0 0x8090 0x1EE57000 - 0x80B0 0x14F17000 - 0x80D0 0x24E07000 - 0x80F0 0x32D87000 - 0x8110 0x1EE67000 + 0x80B0 0x14F07000 + 0x80D0 0x14F07000 + 0x80F0 0x22E57000 + 0x8110 0x18E97000 0x8130 0x1EE86000 0x8150 0x1EE86000 0x8170 0x2AD67000 @@ -775,7 +775,7 @@ 0x8088 0x200000 0x80A8 0x100000 0x80C8 0x300000 - 0x80E8 0x300000 + 0x80E8 0x300001 0x8108 0x200000 0x8128 0x300000 0x8148 0x300000 From 80f370aa6112f446bb32c89c4b9c310c636c9304 Mon Sep 17 00:00:00 2001 From: wutao Date: Tue, 14 Dec 2021 20:28:29 +0800 Subject: [PATCH 0591/1247] dtsi:fg/sm5602: update dtsi version to fix SOC zero issue sm5602 save dtsi version into FG_PARAM_VERION register when sm5602 dtsi update ,need to increase param_version Change-Id: Ibbe116717849eee13b071c0eb3732c7747f06935 Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2144145 Reviewed-by: Huosheng Liao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 452be7879ec0..3322c6b24604 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -61,7 +61,7 @@ sm,v_l_alarm = <3400>; sm,v_h_alarm = <4450>; sm,battery_table_num = <0>; - sm,param_version = <1>; + sm,param_version = <2>; sm,t_l_alarm_in = <54>; sm,t_h_alarm_in = <1>; sm,t_l_alarm_ex = <0xD3D8>; @@ -69,7 +69,7 @@ battery_params { //battery,id = <0>; //NE50(SWD) - battery0,param_version = <1>; + battery0,param_version = <2>; battery0,max_voltage_uv = <4450000>; battery0,battery_type = <4450 0x0 0x2600>; battery0,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B @@ -106,7 +106,7 @@ 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D 0x8F85>; //NTC value(DEC) table -20~80 //NE50(ATL) - battery1,param_version = <1>; + battery1,param_version = <2>; battery1,max_voltage_uv = <4450000>; battery1,battery_type = <4450 0x0 0x2666>; battery1,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 From f768a6da6b22385a666d34ea1df40344a7be3355 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Wed, 15 Dec 2021 14:37:37 +0800 Subject: [PATCH 0592/1247] dts:fuelgauge cw2217 battery param Modify fuelgauge cw2217 battery param make it by 5mohm and ntc 100k. Change-Id: Id27bd25acf4d8275515ebc21c6e9f1799727861c Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2142440 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- .../CW_ng50-ATL-5000mah-rhodep.dtsi | 26 +++++++++++++++++++ .../CW_ng50-SWD-5000mah-rhodep.dtsi | 26 +++++++++++++++++++ qcom/blair-rhodep-common-overlay.dtsi | 6 ++--- 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi create mode 100644 qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi diff --git a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi new file mode 100644 index 000000000000..43795e0414c9 --- /dev/null +++ b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +ng50-ATL-5000mah-rhodep { + serialnum = "SB18D38324"; + fcc_design = <5000>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A6 C1 C0 C7 B9 B8 A4 69 + 3F FF DE A7 89 76 65 59 + 53 51 4E 84 DE E0 68 EA + D0 C8 D0 D6 D6 D5 D3 CD + CA C8 D5 C4 A0 94 8C 84 + 78 7B 83 92 A9 85 80 AE + 20 00 57 10 02 A0 57 00 + 00 00 64 23 C3 48 00 00 + 00 00 00 00 00 00 00 F9]; +}; diff --git a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi new file mode 100644 index 000000000000..0cf9e80a3075 --- /dev/null +++ b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi @@ -0,0 +1,26 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +ng50-SWD-5000mah-rhodep { + serialnum = "SB18D38323"; + fcc_design = <5000>; + config_profile_info = [5A 00 00 00 00 00 00 00 + AD C7 C2 C1 B1 AE B3 7D + 55 D4 C1 9B 82 6C 5D 55 + 51 51 51 7F D8 E0 31 DC + C8 C6 CE D5 D7 D6 D3 CF + CB CD D4 C3 A5 97 8E 86 + 80 7F 86 98 AA 82 7E B8 + 20 00 57 10 02 A0 5C 00 + 00 00 64 21 C3 50 00 00 + 00 00 00 00 00 00 00 9F]; +}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 3322c6b24604..e06ab537b377 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -35,9 +35,9 @@ reg = <0x64>; status = "okay"; - df-serialnum = "SB18D33989"; - #include "bat_setting/CW_md50-scud-5000mah.dtsi" - #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + df-serialnum = "SB18D38323"; + #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" + #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" }; sm5602@71 { From e3670e0092d944aa4962f68ab5cfadd7de9caf2d Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Wed, 15 Dec 2021 16:46:56 +0800 Subject: [PATCH 0593/1247] dts:remove CDRVH for rhodep,modify the i2c address to 0x66 remove CDRVH for rhodep, because factory rework all evt1 and evt2 board, we can ignore evb stage. Change-Id: I15021a409bb063b4a519ed8da53a89ca004884c5 Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2144232 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index 075f89110d0c..4df3e481eb12 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -31,9 +31,9 @@ &qupv3_se10_i2c { status = "okay"; - bq2597x-charger@65 { + bq2597x-charger@66 { compatible = "ti,bq25970-charger"; - reg = <0x65>; + reg = <0x66>; //ti,bq2597x,interrupt_gpios = <&pio 30 0>; //interrupt-parent = <&pio>; //interrupts = <2 IRQ_TYPE_EDGE_FALLING 2 0>; From 51f22221d4ba4c63c0829f6a13e78b007323f486 Mon Sep 17 00:00:00 2001 From: liyiying Date: Wed, 15 Dec 2021 14:02:01 +0800 Subject: [PATCH 0594/1247] dtsi: config sencond fgauge ic sm5602 dtsi qcom/devicetree config sm5602 device tree for rhodec i2c address is 0x71 and include battery table remove irq in dtsi Change-Id: I8e102b56463f1908dd26a7aac1d73ce9c98b7269 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2144893 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 106 +++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 0b826b59d70e..3a051a2478c4 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -42,6 +42,111 @@ #include "bat_setting/CW_md50-amperex-5000mah.dtsi" }; + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + //sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0125>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <0>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <2>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + battery_params { + //battery,id = <0>; + //NE50(SWD) + battery0,param_version = <2>; + battery0,max_voltage_uv = <4450000>; + battery0,battery_type = <4450 0x0 0x2600>; + battery0,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B + 0x1DD6 0x1E0A 0x1E39 0x1E77 0x1ECB 0x1F2B 0x1F59 0x1FE1 + 0x200E 0x20E1 0x2195 0x2214 0x226A 0x230B 0x234E 0x2733>; + battery0,battery_table1 = <0x0 0x85 0x193 0x2A0 0x327 0x435 0x650 0xA86 0xEBC 0x13FF + 0x1942 0x2127 0x2BAE 0x3393 0x3635 0x3B78 0x3E1A 0x48A1 + 0x5086 0x55C9 0x5979 0x60D7 0x6400 0x64E6>; + battery0,battery_table2 = <0x1C28 0x1618 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; + battery0,alpha = <0x00CC>; + battery0,beta = <0x0025>; + battery0,rs = <0x805F>; + battery0,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery0,vit_period = <0x325A>; + battery0,volt_cal = <0x8000>; + battery0,mix_value = <0x0003>; + battery0,curr_offset = <0x000>; + battery0,curr_slope = <0x8080>; + battery0,topoff_soc = <7 343>; + battery0,temp_std = <25>; + battery0,temp_offset = <0 11 1 0 8 (-1)>; + battery0,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery0,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; + battery0,tem_poff = <3400 100>; + battery0,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 + //NE50(ATL) + battery1,param_version = <2>; + battery1,max_voltage_uv = <4450000>; + battery1,battery_type = <4450 0x0 0x2666>; + battery1,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 + 0x1DE7 0x1E11 0x1E44 0x1E78 0x1F09 0x1F62 0x1FB2 0x1FE2 + 0x200E 0x20DC 0x218F 0x220C 0x2261 0x2301 0x2344 0x2733>; + battery1,battery_table1 = <0x0 0x84 0x18F 0x31F 0x42A 0x534 0x74A 0xB74 0xF9F 0x14D4 + 0x1A0A 0x21DA 0x317A 0x36AF 0x394A 0x3BE5 0x3E7F 0x48EA + 0x50BA 0x55EF 0x5995 0x60DF 0x6400 0x64E6>; + battery1,battery_table2 = <0x1F2D 0x181A 0x1516 0x1213 0x1111 0x1010 0x0F0F 0x0F0F>; + battery1,alpha = <0x00CC>; + battery1,beta = <0x0025>; + battery1,rs = <0x805F>; + battery1,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery1,vit_period = <0x325A>; + battery1,volt_cal = <0x8000>; + battery1,mix_value = <0x0003>; + battery1,curr_offset = <0x000>; + battery1,curr_slope = <0x8080>; + battery1,topoff_soc = <7 343>; + battery1,temp_std = <25>; + battery1,temp_offset = <0 11 1 0 8 (-1)>; + battery1,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery1,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; + battery1,tem_poff = <3400 100>; + battery1,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 + }; + }; + sgm4154x: sgm4154x@3B { status = "okay"; compatible = "sgm,sgm41542"; @@ -87,6 +192,7 @@ temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; }; + }; &soc { From e03a504524e36a6729d7d198f2a745f832d418c9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 15 Dec 2021 14:24:48 +0800 Subject: [PATCH 0595/1247] xbl/StraitPkg/panel: Optimize the power on and power off timing After power off panel, we must wait 30ms ,then power up panel. 2.Add post delay time after panel power off. Change-Id: I4c4641d492381546314a708f54540f76058df6ec Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2144919 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index ca6f7beb81f2..3cd398edf578 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -80,6 +80,7 @@ qcom,supply-disable-load = <80>; qcom,supply-post-on-sleep = <2>; qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <30>; }; qcom,panel-supply-entry@1 { From 707440239995f18dec49e8f9567954e9b4207e70 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Wed, 15 Dec 2021 17:13:56 +0800 Subject: [PATCH 0596/1247] FG:Rhodep project modify cw2217b rsens resistance to 5mohm by Dynamic Rhodep project modify rsens resistance to 5mohm for cw2217 FG. Change-Id: I121c6ebc6ad0783b652bbc8f1db66556df7695ba Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2145172 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index e06ab537b377..9c68e00f41b1 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -35,6 +35,7 @@ reg = <0x64>; status = "okay"; + sense_r_mohm = <5>; df-serialnum = "SB18D38323"; #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" From 82a63f180e3f165fdde00a0045cc42d2856652bd Mon Sep 17 00:00:00 2001 From: liyiying Date: Thu, 16 Dec 2021 15:25:44 +0800 Subject: [PATCH 0597/1247] dtsi:config cw2217 fgauge battery param qcom/proprietary/devicetree config cw2217 fgauge battery param for rhodec add atl and jiade battery param Change-Id: I3149c73c493c311a8da02931fcfa73743310dc8a Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2146459 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-5000mah.dtsi | 27 +++++++++++++++++++++ qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi | 27 +++++++++++++++++++++ qcom/discrete_charging_holi.dtsi | 7 +++--- 3 files changed, 58 insertions(+), 3 deletions(-) create mode 100644 qcom/bat_setting/CW_nd50-atl-5000mah.dtsi create mode 100644 qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi new file mode 100644 index 000000000000..65632045a554 --- /dev/null +++ b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-atl-5000mah { + serialnum = "SB18D24973"; + fcc_design = <5000>; + ui_full = <98>; + config_profile_info = [5A 00 00 00 00 00 00 00 + B2 BB C3 C7 B9 B4 AC 72 + 4A FF F3 B7 8E 81 69 5B + 53 50 4C 80 D9 DE B8 DD + D4 CF D3 D6 D5 D2 CF CB + C6 C5 CF BF 9C 91 86 7D + 6D 6B 79 90 A8 90 5C 69 + 20 00 57 10 00 B0 61 00 + 00 00 64 22 D3 58 00 00 + 00 00 00 00 00 00 00 8B ]; +}; \ No newline at end of file diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi new file mode 100644 index 000000000000..c2f232db0f75 --- /dev/null +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-jiade-5000mah { + serialnum = "SB18D25053"; + fcc_design = <5000>; + ui_full = <98>; + config_profile_info = [5A 00 00 00 00 00 00 00 + 9E BE B7 CF C2 C1 91 4F + 31 FF FF FF C3 A3 8B 75 + 61 57 4C 8E E6 DE 83 D0 + CC C8 D1 D5 D6 D4 D1 CD + CC CA CB C1 A0 94 8A 81 + 76 6D 7A 91 A7 86 5F 72 + 20 00 57 10 00 B0 5A 00 + 00 00 64 26 D3 4D 00 00 + 00 00 00 00 00 00 00 AF ]; +}; \ No newline at end of file diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 3a051a2478c4..2fc97608b946 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -38,8 +38,9 @@ reg = <0x64>; status = "okay"; - df-serialnum = "SB18D33989"; - #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + df-serialnum = "SB18D24973"; + #include "bat_setting/CW_nd50-atl-5000mah.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" }; sm5602@71 { @@ -219,7 +220,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; - mmi,df-serialnum = "SB18C77591"; + mmi,df-serialnum = "SB18D24973"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, <15 0 2500 2500>, From a1f0636fff4d8cb42f6427c7f3dd9bd696f36fcd Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 15 Dec 2021 16:56:13 +0800 Subject: [PATCH 0598/1247] arm/dts: config max otg current limit 2.4A As bq25890H HW limit, config max otg current limit 2.4A and config batt OCP threshold 3.5A. Change-Id: Ib3eb461a933eecca3d84b16c6028a1e433f7ab7c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2145151 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 ++ qcom/discrete_charging.dtsi | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index eef125d18680..9d21eba7eda5 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -214,9 +214,11 @@ }; &mmi_discrete_charger { + /delete-property/ mmi,bat-ocp-ua; mmi,max-fv-mv = <4400>; mmi,chrg-iterm-ma = <150>; mmi,max-fcc-ma = <3000>; + mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18C77591"; mmi,mmi-temp-zones = <0 4200 1000 0>, <15 0 1000 1000>, diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index 646a0b733366..ed2428b30dbb 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -177,7 +177,8 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <3000>; mmi,demo-fv-mv = <4000>; - mmi,otg-cl-ua = <1200000>; + mmi,otg-cl-ua = <2400000>; + mmi,bat-ocp-ua = <3500000>; mmi,df-serialnum = "SB18D33989"; mmi,mmi-temp-zones = <0 4200 970 0>, <10 4200 2500 970>, From fdfff8bd0de9e47f64fbe0a3e220715183e83d24 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Mon, 20 Dec 2021 18:06:28 +0800 Subject: [PATCH 0599/1247] fix build error Duplicate property name cpu-idle-states in /cpus/cpu@400 Duplicate property name cpu-idle-states in /cpus/cpu@500 Change-Id: I4fa5afa33be8e45be7f1de101155bcb8176f5b1f --- qcom/.blair.dtsi.swp | Bin 0 -> 16384 bytes qcom/blair.dtsi | 2 -- 2 files changed, 2 deletions(-) create mode 100644 qcom/.blair.dtsi.swp diff --git a/qcom/.blair.dtsi.swp b/qcom/.blair.dtsi.swp new file mode 100644 index 0000000000000000000000000000000000000000..d179567667d11a72d02c4215f3762b6dd9bb9012 GIT binary patch literal 16384 zcmeI3d5k1g9mg9Gp}|E10ZkNn^y;v?PEB`p&$(AvhS{Bw8FqGNb~!wX>Z;e>m91;4 zs;7H)b|J805Wxh(A~8k-nBWD8E{PEYj}Q-zK>Wv;=pRJoSOgXk5V`!mqo%uhXVxJY zNjBA+&vbSDe!qA8-tWD7zt_Fx!mhCiGT2kd;PsJA=HQb**X=Kpa~{4Xld0<7d~=8i zj{XX3jj(?OdRK}9^8qdEAaY%Lc{vZ%FyQQoiN{aS_Y^E#)^!`JX!EuS@v>DR(}QwEvfs?~(H3 zPfW^Rlk$C1zPCgEs+8}S^4B}$uSoeqZ2!Sz`Ty*w|FsVJ%This?PpI)+W$k!n^JzL zL;jMKe?!X4CnxO>OZnHN{LK#eiyie}pH14oAmx#?KjD<5{CO$APRbh{^1n;@jZ*$j zhx|Dyzgo&~I5k=Rp^oxbeJCk^R?6>?_6IuT&q(<}DIZvsw0~O4zb)m5I^<7Dc}>c{ za$3?}-cH|A52PMQJ&<}J^+4)@)B~vpQV*maNImerc|bQs?%%`mZG8V9=l_p?IFq>@ z%z|y;4Dc7^H1~ol!A{TvP6dx47kU(24~D=X=mjT&XOU+;0`38KgImEh;A+qST_6X} z1s?@(A+I|Go&tXZ4}u54J>aY0Qcwb?fj5vNz6M?e&w=~Fec%>gfs23w&IYSM7Mu(Y zBX@lfJPjTP_ko{+?}3{@1g-!Da3**Kx$xuQE^r;tz*bNMr+^obYyS@X790fE0|!*V z72tE=axe-C;0*8<^83fYkHO8r1{Z=)gEw(@@C^6`_zt)V%!3GoKnG)>8=M86!db>6 z;0NGZ@CC3LoC%Htf5chH1K>7rGq@4l0QP_~7y)_k4r1W1;34oWFb6IHJT`cQX0uuL z_YjTCG6}q<`~<3>013j1-&BQCl%|qei*ncu^|}F-(+z z+7!P8QFPM`n7Gg^kV3PsAYMYxoOgA{G8Ery&_FRfTB%ruMcs%QsD*+oP4{)fislv5 zvHVbRYI}sZ*em4J)ypEnjYUZrA-bKaWS=J zY+T#Eb*m^UpjDV1vsv4UqNP%nXqg^3-Fjfu#F&WYVNiN!?7{U#rHVOa4#EX6!ZQLv-&?DW>wC=V`4V9mXpMsS@CR!d)Y9fm?MW- zPVMZH6IQN?u`p5lQZqI?js*Z?Sz4U3Y|e_J|33=`t39z`tTsH)w%n>>P}}CKs9XWw z^GXsg@yA4n#hpnE@rnZsUS|O&!)tYD?V&Ayi=tPvhbaxi)_pz>FbjE5R;<8j=mA|% z;w!R%=S@b$XV?f-JVCnHJ9`x2y&yjq*ymbU*Mo@PnyveDB`u_?*30g3Z5mj*osbS` z#YL%EGeqII(25&KejS;iS1klW2J61&Z|@~AF!>!Ao2N-EC}k%WU*Xkf~{5OCIVejWJ&B{ z-S&}>CPtbDbJS#A_k#KLB));I4!c1XNNaH8oeTD8_{SISj-81xk`;0DI55hdho9nB zSx0iVSJle(ie^)HQ?alAA`%#N-^Avr2NxP``qZ={YHm`QKyy8#9BwKo17x=!S)0%q zR=!d5LhAB9bc8Voyb}GDD4;>!GI>4ZF#hYxIx{*sqQW)bp&_t4&(L@RAEI z(Y8-cY9klVOkK7H`_69CSW7(L=X=lvcER_e`LY#-dD7oYHcpIQuFY)MCN7wqjtw?% z*tb~V5@NE3DUx-BcLqZT%1K+7(=PmDvO=H+o+q{f*)wjGn`?I`C=ozAD%QuV_sF{YL%@vndYz?yE zxl!QRHVyK43@TOYD8+Lt7`W7kWOI(znj_U~cz*qtMkR{Jl4|&hU0UA8usvhi6dI@k|vPy-a0U>Xd7esCT*2^>bQ&hq%X!4JV5;2KZ` zJHQ6e2YSKj;8o=5e+It+zXU%6_k-_)+rVBh4vL@~dA1Q~~9`8i>8m;i7vZ#iA8J;hEUxLFP@mk!o7){0UslHpmCQ4^pmoB5J@jIIB z@bk1T)S}Hp*J^W34fQyl zD{}bReg(G_G{!&~MOG7%N>K;4rXss*E8W4S$H$BR6)xXyAJ6)HsL!`C7vYMUP_*WEY_q@J@F{?1L&N zfsg$pJEy>oU!P}lL9{P%8`%Z-Arq@yE`7l2;vT^NNwjH16&I5rAA5*NH)OhG6SO^^ zE3!>CKzxwc5i{~|G#dLbb|P)EQ8JpA&*$9vC2C@Tcm-UaXEfzVnKMnL8KK|UfL1Ji z{;Ur0a3-n>8ueTY zO>Ew`EAtK~)TQ>+)-6YBqp$6{Lrj;QVvH@(4BpK)?diT)dwODWI$3tuP>d)*R3pt| zA=eezNJ0CD$hOI`?b?>%nXz3X+UVG}Q9i;;B(e>|Ee#D7STL3CI*pL5*VdDAq)9<5 zqU2hEvqJGD1)5p(6{-jJykZ1;SW}QTvU0L*xi-Fm;YS$lCKWF*s8YcL%T|z*dqIw! zVBjTAAvbpMlC=i@kFTa`_?{>Z&{nyjg0G11zkhL1!#dq*z|JUGnS8v25G!9>i3_oi zO^;F!4nu2&w#e!T_}1)bsjDkh$3xM@`!Spu zu{E)&v!3B4j!+g)QN(Bn1Jlv@S9kbs&SR%1M_BO!TGg;vP@GU#Dpr%4>}!+W5$>k#RoL*t8xVQB_P-!doQby3K6xC}wP> dAv}1GFdJCjY-o9_{^hL(m$&L$-fBQv{RfzFnTG%X literal 0 HcmV?d00001 diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index da54e77871b2..226af70439b8 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -143,7 +143,6 @@ reg = <0x0 0x400>; cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; enable-method = "psci"; - cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <100>; cpu-release-addr = <0x0 0x50000000>; @@ -162,7 +161,6 @@ reg = <0x0 0x500>; cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; enable-method = "psci"; - cpu-idle-states = <&SLVR_PC &SLVR_RAIL_OFF>; capacity-dmips-mhz = <1024>; dynamic-power-coefficient = <100>; cpu-release-addr = <0x0 0x50000000>; From b4064d6dea7acdd922bd7405be05ef3340f93e26 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 16 Dec 2021 15:55:37 +0800 Subject: [PATCH 0600/1247] dts/base: milanf: disable ssc on dsi0 Some projects need to disable "pll ssc", while others do not. For milanf, we must disable "pll ssc", so we create a new dts/base file for milanf, to distinguish it from other projects. Change-Id: I6259575faefd9fa10c172bfd1ce1a11e6eb50c9a Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2146504 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/Makefile | 8 +++--- qcom/blair-moto-milanf-base.dts | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 4 deletions(-) create mode 100644 qcom/blair-moto-milanf-base.dts diff --git a/qcom/Makefile b/qcom/Makefile index e45510531a4e..28b78b34b39a 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -93,10 +93,10 @@ dtbo-$(CONFIG_MILANF_DTB) += \ blair-milanf-dvt1-overlay.dtbo \ blair-milanf-dvt2-overlay.dtbo -blair-milanf-evb1-overlay.dtbo-base := blair-moto-base.dtb -blair-milanf-evb2-overlay.dtbo-base := blair-moto-base.dtb -blair-milanf-dvt1-overlay.dtbo-base := blair-moto-base.dtb -blair-milanf-dvt2-overlay.dtbo-base := blair-moto-base.dtb +blair-milanf-evb1-overlay.dtbo-base := blair-moto-milanf-base.dtb +blair-milanf-evb2-overlay.dtbo-base := blair-moto-milanf-base.dtb +blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb +blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evb-overlay.dtbo \ diff --git a/qcom/blair-moto-milanf-base.dts b/qcom/blair-moto-milanf-base.dts new file mode 100644 index 000000000000..e9b5f91a2ff2 --- /dev/null +++ b/qcom/blair-moto-milanf-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; From f7f97e980bd05a1f8c42104d8dc706ff462c3809 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 17 Dec 2021 10:54:13 +0800 Subject: [PATCH 0601/1247] dts/base: Rhodep: disable ssc on dsi0 Some projects need to disable "pll ssc", while others do not. For rhodep, we must disable "pll ssc", so we create a new dts/base file for rhodep, to distinguish it from other projects. Change-Id: I1a42b18a3d54fb951a60cc242190caeb4b07b077 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2147466 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/Makefile | 10 ++++---- qcom/blair-moto-rhodep-base.dts | 45 +++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 qcom/blair-moto-rhodep-base.dts diff --git a/qcom/Makefile b/qcom/Makefile index 28b78b34b39a..6b082075f560 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -105,11 +105,11 @@ dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-dvt1-overlay.dtbo \ blair-rhodep-dvt2-overlay.dtbo -blair-rhodep-evb-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-evt1-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-evt2-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-base.dtb -blair-rhodep-dvt2-overlay.dtbo-base := blair-moto-base.dtb +blair-rhodep-evb-overlay.dtbo-base := blair-moto-rhodep-base.dtb +blair-rhodep-evt1-overlay.dtbo-base := blair-moto-rhodep-base.dtb +blair-rhodep-evt2-overlay.dtbo-base := blair-moto-rhodep-base.dtb +blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-rhodep-base.dtb +blair-rhodep-dvt2-overlay.dtbo-base := blair-moto-rhodep-base.dtb else diff --git a/qcom/blair-moto-rhodep-base.dts b/qcom/blair-moto-rhodep-base.dts new file mode 100644 index 000000000000..e9b5f91a2ff2 --- /dev/null +++ b/qcom/blair-moto-rhodep-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; From d77531b0af454e66d46617e8635cebc4d48b3b3e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 17 Dec 2021 15:31:23 +0800 Subject: [PATCH 0602/1247] dts/panel: milanf: change the mipi clock from 450M to 456Th Through the hardware test, the actual refresh rate did not reach the expected value(60/120). 450M is not enough. So we do no fix the clock value. Let code to calc the clock rate with refresh rate and porch value. Change-Id: Iba784c2c374122ba95d593f19933be988e673bb8 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2147742 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 3cd398edf578..fb11cb98cf82 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -156,7 +156,6 @@ qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-clockrate = <900000000>; qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 07 07 02 04 00 1A 0C]; qcom,display-topology = <1 1 1>; @@ -220,7 +219,6 @@ qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-clockrate = <900000000>; qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 07 07 02 04 00 1A 0C]; qcom,display-topology = <1 1 1>; From 71d121eb8013bd46e4514f56d883d6c6352536cd Mon Sep 17 00:00:00 2001 From: bchhq23 Date: Fri, 17 Dec 2021 14:51:59 +0800 Subject: [PATCH 0603/1247] rhodep:close charger mode; kernel/dts: close charger mode func because there is a possibility that TP fail on power on; Change-Id: I40ece4eb3faf14d717b3d9a352ae39f5a071e28f Signed-off-by: bchhq23 Reviewed-on: https://gerrit.mot.com/2147703 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index fa682829092e..f9bc581c83e1 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -99,6 +99,5 @@ pinctrl-2 = <&pmx_ts_release>; mmi,power-off-suspend; mmi,enable-gestures; - mmi,usb-charger-detection; }; }; From 7b756e6b97a58d51858c1a1a42a34c6c1dc358c9 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Sat, 18 Dec 2021 12:13:49 +0800 Subject: [PATCH 0604/1247] QC3P:turbo charger module devicetree QC3P turbo charger discrete module devicetree init. Change-Id: I5b4b32b72507175ecf26b2b96b94f9cc6e43008a Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2140632 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 149 ++++++++++++++++++++++++----- 1 file changed, 126 insertions(+), 23 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index 4df3e481eb12..c1dbac26ddb8 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -10,6 +10,7 @@ * GNU General Public License for more details. */ +#include &pm6125_vadc { gpio6_div3{ @@ -31,9 +32,10 @@ &qupv3_se10_i2c { status = "okay"; - bq2597x-charger@66 { + bq2597x: bq2597x-charger@66 { compatible = "ti,bq25970-charger"; reg = <0x66>; + #io-channel-cells = <1>; //ti,bq2597x,interrupt_gpios = <&pio 30 0>; //interrupt-parent = <&pio>; //interrupts = <2 IRQ_TYPE_EDGE_FALLING 2 0>; @@ -85,9 +87,21 @@ reg = <0x3B>; pinctrl-names = "default"; - pinctrl-0 = <&gpio6_adc_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&wt6670 PSY_IIO_DETECTION_READY>, + <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; + io-channel-names = "gpio3_div3", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_start_detection", + "wt6670_detection_ready", + "qc3p_start_policy"; + interrupt-parent = <&tlmm>; interrupts = <12 0>; //irq num base on hardware design @@ -152,30 +166,44 @@ ti,bq2589x,use-absolute-vindpm; }; - wt6670f@35 { - status = "okay"; - compatible = "mediatek,wt6670f_qc3p"; - reg = <0x35>; - wt6670f-reset-gpio = <&tlmm 56 0x0>; - wt6670f-int-gpio = <&tlmm 85 0x0>; - //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; - //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; + wt6670: wt6670f@35 { + status = "okay"; + compatible = "mediatek,wt6670f_qc3p"; + reg = <0x35>; + #io-channel-cells = <1>; + wt6670f-reset-gpio = <&tlmm 56 0x0>; + wt6670f-int-gpio = <&tlmm 85 0x0>; + //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; + //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; - //pinctrl-names = "default", - //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", - //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", - //"wt6670_i2c"; + //pinctrl-names = "default", + //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", + //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", + //"wt6670_i2c"; - //pinctrl-0 = <&wt6670_pins_default>; - //pinctrl-1 = <&wt6670_pins_scl_low>; - //pinctrl-2 = <&wt6670_pins_scl_high>; - //pinctrl-3 = <&wt6670_pins_sda_low>; - //pinctrl-4 = <&wt6670_pins_sda_high>; - //pinctrl-5 = <&wt6670_pins_i2c>; - }; + //pinctrl-0 = <&wt6670_pins_default>; + //pinctrl-1 = <&wt6670_pins_scl_low>; + //pinctrl-2 = <&wt6670_pins_scl_high>; + //pinctrl-3 = <&wt6670_pins_sda_low>; + //pinctrl-4 = <&wt6670_pins_sda_high>; + //pinctrl-5 = <&wt6670_pins_i2c>; + }; }; &tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; bq2589x_irq: bq2589x_irq { mux { pins = "gpio12"; @@ -288,5 +316,80 @@ 1200000 900000 600000 300000>; }; + + mmi_chrg: mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_HW_CURRENT_MAX>, + <&mmi_discrete_charger PSY_IIO_USB_CHARGING_ENABLED>, + <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, + <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, + <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_BATTERY_DP_DM>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&bq2597x PSY_IIO_CP_ENABLE>, + <&bq2597x PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq2597x PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq2597x PSY_IIO_CP_STATUS1>, + <&bq2597x PSY_IIO_CP_CLEAR_ERROR>; + + io-channel-names = "hw_current_max", + "charging_enabled", + "typec_mode", + "input_current_settled", + "pd_active", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_battery_dp_dm", + "wt6670_start_detection", + "bq2597x_cp_enabled", + "bq2597x_input_current_now", + "bq2597x_input_voltage_settled", + "bq2597x_cp_status1", + "bq2597x_cp_clear_error"; + + // qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <10000000>; + mmi,pd-curr-max = <3000000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4550000>; + mmi,pl-chrg-vbatt-min = <3600000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 1000 0 0>, + <10 4250 3000 4450 1000>, + <15 4450 5000 0 0>, + <45 4450 5800 4480 4000>, + <60 4200 4000 0 0>; + mmi,thermal-mitigation = + <5800000>, + <5000000>, + <4000000>, + <3500000>, + <3000000>, + <2000000>, + <1000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "mmi_battery"; + charging-curr-limited = <500000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "cp-standalone"; + charging-curr-min = <2000000>; + }; + }; }; From 735ed37757a00d49f3908c348a13e68fac28f365 Mon Sep 17 00:00:00 2001 From: wutao Date: Sat, 18 Dec 2021 21:01:26 +0800 Subject: [PATCH 0605/1247] dtsi:QC3P: 2nd turbo charger module devicetree QC3P turbo charger discrete module bq2589x devicetree init. Change-Id: Ia0d8befee02a1d83c362ee885e5683ed1bbc062c Reviewed-on: https://gerrit.mot.com/2148673 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index c1dbac26ddb8..e054d533c34a 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -139,15 +139,26 @@ temp_neg_10_thres = <0>; }; - bq25890@6A { + bq25890: bq25890@6A { status = "okay"; compatible = "ti,bq2589x-1"; reg = <0x6A>; pinctrl-names = "default"; pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&wt6670 PSY_IIO_DETECTION_READY>, + <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; + io-channel-names = "gpio3_div3", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_start_detection", + "wt6670_detection_ready", + "qc3p_start_policy"; bq2589x_irq-gpio = <&tlmm 12 0>; //bq2589x_en-gpio = <&tlmm 92 0>; From 2306481c592db97a268918c2e99ad2e34711e147 Mon Sep 17 00:00:00 2001 From: liyiying Date: Sun, 19 Dec 2021 14:14:10 +0800 Subject: [PATCH 0606/1247] dtsi: modify cw2217 fg para of NTC from 10k to 100k for rhodec rhodec project use 100k battery NTC, but now profile parameter define 10k ntc, that cause getting the negavite temperature. here correct the NTC parameter. Change-Id: I101debc03e0ebf51a6e89ba255c907cf67dc3271 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2148726 Reviewed-by: Huosheng Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-5000mah.dtsi | 4 ++-- qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi index 65632045a554..a5bd275d9b00 100644 --- a/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi @@ -21,7 +21,7 @@ nd50-atl-5000mah { D4 CF D3 D6 D5 D2 CF CB C6 C5 CF BF 9C 91 86 7D 6D 6B 79 90 A8 90 5C 69 - 20 00 57 10 00 B0 61 00 + 20 00 57 10 02 B0 61 00 00 00 64 22 D3 58 00 00 - 00 00 00 00 00 00 00 8B ]; + 00 00 00 00 00 00 00 20 ]; }; \ No newline at end of file diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi index c2f232db0f75..9f548633197b 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi @@ -21,7 +21,7 @@ nd50-jiade-5000mah { CC C8 D1 D5 D6 D4 D1 CD CC CA CB C1 A0 94 8A 81 76 6D 7A 91 A7 86 5F 72 - 20 00 57 10 00 B0 5A 00 + 20 00 57 10 02 B0 5A 00 00 00 64 26 D3 4D 00 00 - 00 00 00 00 00 00 00 AF ]; + 00 00 00 00 00 00 00 04 ]; }; \ No newline at end of file From 7b2149ed77e681b7ef69ca2e1df347bf2a333a24 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Mon, 20 Dec 2021 16:43:23 +0800 Subject: [PATCH 0607/1247] dts:charging parameter per battery spec Charging parameter per battery spec of rhodep. follow rhode gerrit: https://gerrit.mot.com/#/c/2148109/ Change-Id: Ia5f772d573df2d22bde82175fdac5e54262df47d Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2149396 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Xu Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index e054d533c34a..dc6dd1317531 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -317,11 +317,11 @@ mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <2000000>; mmi,df-serialnum = "SB18D33989"; - mmi,mmi-temp-zones = <0 4200 970 0>, - <10 4200 2500 970>, - <15 0 2500 2500>, - <45 0 3000 3000>, - <60 4200 2500 0>; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <45 0 4000 4000>, + <60 4200 3000 0>; mmi,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 @@ -336,6 +336,7 @@ <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, + <&mmi_discrete_charger PSY_IIO_USB_TERMINATION_ENABLED>, <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, <&wt6670 PSY_IIO_QC3P_POWER>, <&wt6670 PSY_IIO_BATTERY_DP_DM>, @@ -351,6 +352,7 @@ "typec_mode", "input_current_settled", "pd_active", + "termination_enabled", "wt6670_usb_real_type", "wt6670_usb_qc3p_power", "wt6670_battery_dp_dm", @@ -380,8 +382,8 @@ mmi,mmi-chrg-temp-zones = <0 4200 1000 0 0>, <10 4250 3000 4450 1000>, - <15 4450 5000 0 0>, - <45 4450 5800 4480 4000>, + <15 4450 3000 0 0>, + <45 4350 6000 4480 4000>, <60 4200 4000 0 0>; mmi,thermal-mitigation = <5800000>, From be20b9fb896acf09077a90d163ec492d2e92674e Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 17 Dec 2021 17:22:57 +0800 Subject: [PATCH 0608/1247] arm/dt: corfur: enable single tap for goodix touch arm/dt: Enable single tap for goodix touch. Change-Id: I19829e0df8cd27a16a4c8491168509ca72731f9f Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2147892 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfuq-touchscreen.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/corfuq-touchscreen.dtsi b/qcom/corfuq-touchscreen.dtsi index 61454fc17fee..f487c1983e43 100755 --- a/qcom/corfuq-touchscreen.dtsi +++ b/qcom/corfuq-touchscreen.dtsi @@ -60,5 +60,10 @@ goodix,panel-max-y = <2400>; goodix,panel-max-w = <255>; panel = <&dsi_rm692c9_visionox_video>; + + /* touchscreen_mmi class entries*/ + mmi,enable-gestures; + mmi,usb-charger-detection; + mmi,class-entry-name = "gt9885"; }; }; From f79fd0db2856803125c5015ee22187064d6cb5cd Mon Sep 17 00:00:00 2001 From: liyiying Date: Tue, 21 Dec 2021 11:57:03 +0800 Subject: [PATCH 0609/1247] dtsi:config sm5602 fgauge official battery param qcom/proprietary/devicetree config sm5602 fgauge official battery param for rhodec add atl and jiade official battery param Change-Id: Ib2c53be742ff54578243c64eab730998fcdb1e13 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2150465 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 92 ++++++++++++++++---------------- 1 file changed, 46 insertions(+), 46 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 2fc97608b946..91778cfddfd0 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -57,31 +57,31 @@ sm,misc = <0x0800>; sm,aging_ctrl = <0x0125>; sm,cycle_cfg = <0x7000>; - sm,rsns = <0>; + sm,rsns = <1>; sm,fg_irq_set = <0x07FF>; sm,low_soc1 = <1>; sm,low_soc2 = <15>; sm,v_l_alarm = <3400>; sm,v_h_alarm = <4450>; sm,battery_table_num = <0>; - sm,param_version = <2>; + sm,param_version = <3>; sm,t_l_alarm_in = <54>; sm,t_h_alarm_in = <1>; sm,t_l_alarm_ex = <0xD3D8>; sm,t_h_alarm_ex = <0x9245>; battery_params { //battery,id = <0>; - //NE50(SWD) - battery0,param_version = <2>; - battery0,max_voltage_uv = <4450000>; - battery0,battery_type = <4450 0x0 0x2600>; - battery0,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B - 0x1DD6 0x1E0A 0x1E39 0x1E77 0x1ECB 0x1F2B 0x1F59 0x1FE1 - 0x200E 0x20E1 0x2195 0x2214 0x226A 0x230B 0x234E 0x2733>; - battery0,battery_table1 = <0x0 0x85 0x193 0x2A0 0x327 0x435 0x650 0xA86 0xEBC 0x13FF - 0x1942 0x2127 0x2BAE 0x3393 0x3635 0x3B78 0x3E1A 0x48A1 - 0x5086 0x55C9 0x5979 0x60D7 0x6400 0x64E6>; - battery0,battery_table2 = <0x1C28 0x1618 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; + //ND50(ATL) + battery0,param_version = <3>; + battery0,max_voltage_uv = <4450000>; + battery0,battery_type = <4450 0x0 0x26CC>; + battery0,battery_table0 = <0x1400 0x1CA1 0x1D13 0x1D75 0x1D8B 0x1D8E 0x1D97 0x1DC4 + 0x1DF4 0x1E1B 0x1E4A 0x1E78 0x1EC8 0x1F28 0x1F6E 0x1FAB + 0x1FFE 0x20C8 0x2174 0x21F0 0x2247 0x22EE 0x2340 0x2733>; + battery0,battery_table1 = <0x0 0x83 0x18B 0x316 0x526 0x62E 0x946 0xC5E 0x107E 0x15A5 + 0x1ACD 0x2288 0x2CD8 0x3493 0x3727 0x39BB 0x3EE2 0x4931 + 0x50ED 0x5614 0x59B0 0x60E8 0x6400 0x64E6>; + battery0,battery_table2 = <0x1E2E 0x1719 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; battery0,alpha = <0x00CC>; battery0,beta = <0x0025>; battery0,rs = <0x805F>; @@ -97,28 +97,28 @@ battery0,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; battery0,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; battery0,tem_poff = <3400 100>; - battery0,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C - 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E - 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD - 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E - 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 - 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 - 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 - 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 - 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF - 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D - 0x8F85>; //NTC value(DEC) table -20~80 - //NE50(ATL) - battery1,param_version = <2>; - battery1,max_voltage_uv = <4450000>; - battery1,battery_type = <4450 0x0 0x2666>; - battery1,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 - 0x1DE7 0x1E11 0x1E44 0x1E78 0x1F09 0x1F62 0x1FB2 0x1FE2 - 0x200E 0x20DC 0x218F 0x220C 0x2261 0x2301 0x2344 0x2733>; - battery1,battery_table1 = <0x0 0x84 0x18F 0x31F 0x42A 0x534 0x74A 0xB74 0xF9F 0x14D4 - 0x1A0A 0x21DA 0x317A 0x36AF 0x394A 0x3BE5 0x3E7F 0x48EA - 0x50BA 0x55EF 0x5995 0x60DF 0x6400 0x64E6>; - battery1,battery_table2 = <0x1F2D 0x181A 0x1516 0x1213 0x1111 0x1010 0x0F0F 0x0F0F>; + battery0,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 + 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 + 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 + 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 + 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 + 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B + 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 + 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B + 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 + 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F + 0x8F89>; //NTC value(DEC) table -20~80 + //ND50(JIADE) + battery1,param_version = <3>; + battery1,max_voltage_uv = <4450000>; + battery1,battery_type = <4450 0x0 0x2699>; + battery1,battery_table0 = <0x1400 0x1C5F 0x1CE0 0x1D63 0x1D87 0x1D90 0x1D95 0x1DB6 + 0x1DE9 0x1E13 0x1E43 0x1E77 0x1EC9 0x1F24 0x1F54 0x1FA3 + 0x2000 0x20C9 0x2178 0x21F3 0x2247 0x22EA 0x2331 0x2733>; + battery1,battery_table1 = <0x0 0x83 0x18D 0x31B 0x4A9 0x6BB 0x8CE 0xBEA 0x100F 0x153D + 0x1A6C 0x2231 0x2C8E 0x3454 0x36EB 0x3983 0x3EB1 0x490E + 0x50D4 0x5602 0x59A3 0x60E4 0x6400 0x64E6>; + battery1,battery_table2 = <0x2537 0x1C1F 0x1819 0x1415 0x1213 0x1011 0x1010 0x0F0F>; battery1,alpha = <0x00CC>; battery1,beta = <0x0025>; battery1,rs = <0x805F>; @@ -134,17 +134,17 @@ battery1,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; battery1,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; battery1,tem_poff = <3400 100>; - battery1,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C - 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E - 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD - 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E - 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 - 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 - 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 - 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 - 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF - 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D - 0x8F85>; //NTC value(DEC) table -20~80 + battery1,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 + 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 + 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 + 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 + 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 + 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B + 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 + 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B + 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 + 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F + 0x8F89>; //NTC value(DEC) table -20~80 }; }; From 8dc478a37c1312726bdea13ae1c2459c429c1252 Mon Sep 17 00:00:00 2001 From: liyiying Date: Fri, 17 Dec 2021 20:14:25 +0800 Subject: [PATCH 0610/1247] add charger ic - sc89890h config qcom/proprietary/devicetree config sc89890 charger ic param for rhodec Change-Id: Ie45949656f25ba5629e22d9c44e3d294e73ec6e5 Signed-off-by: liyiying Reviewed-on: https://gerrit.mot.com/2148038 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 40 ++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 91778cfddfd0..807ab0c5b359 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -194,6 +194,32 @@ temp_neg_10_thres = <0>; }; + bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&qusb_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; }; &soc { @@ -251,4 +277,18 @@ input-enable; }; }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; }; From 94a40c2fb35e2a8830d745066af2b5f60778c415 Mon Sep 17 00:00:00 2001 From: huaqin86 Date: Tue, 21 Dec 2021 17:46:17 +0800 Subject: [PATCH 0611/1247] dts:config slave to main current threshold Change the slave charger to main charger switch current threshlod for discrete charger architecture Change-Id: I03561feebd64b5530a436b8821580c3781eaaf48 Signed-off-by: huaqin86 Reviewed-on: https://gerrit.mot.com/2150799 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Ying Xu Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index dc6dd1317531..46cff0d2ab90 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -401,7 +401,7 @@ charger_device_1 { chrg-name = "cp-master"; psy-name = "cp-standalone"; - charging-curr-min = <2000000>; + charging-curr-min = <1500000>; }; }; }; From 9708f863967a25027776c15b07d2982e8009e546 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 22 Dec 2021 13:46:59 +0800 Subject: [PATCH 0612/1247] milan5G: sar sensor params 1.update params for sx937x. 2.blair-nopmi-moto-common-overlay.dtsi 3.blair-milanf-dvt2-overlay.dts Change-Id: I91e7292615151caf2bb021a7cb55f64f6476898e Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2151621 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt2-overlay.dts | 18 +++++++++--------- qcom/blair-nopmi-moto-common-overlay.dtsi | 16 ++++++++-------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/qcom/blair-milanf-dvt2-overlay.dts b/qcom/blair-milanf-dvt2-overlay.dts index be77a00152f6..761dd4efa7fa 100644 --- a/qcom/blair-milanf-dvt2-overlay.dts +++ b/qcom/blair-milanf-dvt2-overlay.dts @@ -145,9 +145,9 @@ 0x8028 0x886 /*AFE_PARAM_PH0*/ 0x8034 0x886 /*AFE_PARAM_PH1*/ 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x8A6 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x866 /*AFE_PARAM_PH5*/ + 0x804C 0x8BE /*AFE_PARAM_PH3*/ + 0x8058 0x866 /*AFE_PARAM_PH4*/ + 0x8064 0x86E /*AFE_PARAM_PH5*/ 0x8070 0x86E /*AFE_PARAM_PH6*/ 0x807C 0x85E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ @@ -160,8 +160,8 @@ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x8098 0x7A36 - 0x80B8 0x9536 - 0x80D8 0x5959 + 0x80B8 0x8E36 + 0x80D8 0xFF 0x80F8 0x3F3F 0x8118 0x2C2C 0x8138 0xFF @@ -173,17 +173,17 @@ 0x8100 0x161600E2 0x8188 0x8000015 0x818C 0x8000016 - 0x8090 0x40D53000 + 0x8090 0x41DB3000 0x80B0 0x7FB33000 0x80D0 0x40CD3000 - 0x80F0 0x68B43000 - 0x8110 0x30DB3000 + 0x80F0 0x68BD3000 + 0x8110 0x30DD3000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD67000 0x8088 0x300005 0x80A8 0x300005 - 0x80C8 0x300005 + 0x80C8 0x2300005 0x80E8 0x300005 0x8108 0x300005 0x8128 0x3600000 diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index 0ac9e1ce1755..e3819bbf959f 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -119,9 +119,9 @@ 0x8028 0x886 /*AFE_PARAM_PH0*/ 0x8034 0x886 /*AFE_PARAM_PH1*/ 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x8A6 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x866 /*AFE_PARAM_PH5*/ + 0x804C 0x8BE /*AFE_PARAM_PH3*/ + 0x8058 0x866 /*AFE_PARAM_PH4*/ + 0x8064 0x86E /*AFE_PARAM_PH5*/ 0x8070 0x86E /*AFE_PARAM_PH6*/ 0x807C 0x85E /*AFE_PARAM_PH7*/ /*set CS3 to hiz, because it used as IRQ pin*/ @@ -134,7 +134,7 @@ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x8098 0x7A36 - 0x80B8 0x9536 + 0x80B8 0x8E36 0x80D8 0x5959 0x80F8 0x3F3F 0x8118 0x2C2C @@ -147,17 +147,17 @@ 0x8100 0x161600E2 0x8188 0x8000015 0x818C 0x8000016 - 0x8090 0x40D53000 + 0x8090 0x41DB3000 0x80B0 0x7FB33000 0x80D0 0x40CD3000 - 0x80F0 0x68B43000 - 0x8110 0x30DB3000 + 0x80F0 0x68BD3000 + 0x8110 0x30DD3000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD67000 0x8088 0x300005 0x80A8 0x300005 - 0x80C8 0x300005 + 0x80C8 0x2300005 0x80E8 0x300005 0x8108 0x300005 0x8128 0x3600000 From b3367c2992b8f3389476bc87348b784b1f709534 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 21 Dec 2021 20:20:35 +0800 Subject: [PATCH 0613/1247] arm/dt: corfur: change init codes to avoid flicker arm/dt: Change init codes to avoid flicker when esd check. Change-Id: Ide4b6ebb7ccd7cf4416e135d2775f433770cecde Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2150902 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi index 637d378e2f43..5cbdc2ae33f2 100644 --- a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -56,6 +56,13 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ + 15 00 00 00 00 00 02 FE 60 + 15 00 00 00 00 00 02 09 E0 + 15 00 00 00 00 00 02 0E 08 + 15 00 00 00 00 00 02 12 E0 + 15 00 00 00 00 00 02 17 07 + 15 00 00 00 00 00 02 20 10 + 15 00 00 00 00 00 02 29 0E 15 00 00 00 00 00 02 FE 00 15 00 00 00 00 00 02 5E 01 15 00 00 00 00 00 02 C2 03 From 5d02e865195c87351815a7bec0228045d9fd6285 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 22 Dec 2021 22:12:50 +0800 Subject: [PATCH 0614/1247] arm/dt: corfur: add demura command according to brightness arm/dt: Add demura commands according to brightness values for rm692c9 panel ic. Change-Id: Ic28eb85812fbb0ffdcc910fa58fdf522d480673e Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2152169 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-panel-mot-visionox-rm692c9-fhd-video.dtsi | 76 ++++++++++++++++++- 1 file changed, 74 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi index 5cbdc2ae33f2..a639525aefe2 100644 --- a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -32,11 +32,83 @@ qcom,mdss-pan-physical-width-dimension = <67>; qcom,mdss-pan-physical-height-dimension = <149>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command = [ + 15 00 00 00 00 00 02 FE 00 + 39 00 00 00 00 00 03 51 0F FF + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 08 + 15 00 00 00 00 00 02 B9 09 + 15 00 00 00 00 00 02 BA 09 + 15 01 00 00 00 00 02 FE 00]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command = [ + 15 00 00 00 00 00 02 FE 00 + 39 00 00 00 00 00 03 51 07 FF + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 08 + 15 00 00 00 00 00 02 B9 09 + 15 00 00 00 00 00 02 BA 09 + 15 01 00 00 00 00 02 FE 00]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-brightness-1e-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 1D + 15 00 00 00 00 00 02 B9 1D + 15 00 00 00 00 00 02 BA 1D + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-1e-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-1fd-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 12 + 15 00 00 00 00 00 02 B9 12 + 15 00 00 00 00 00 02 BA 12 + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-1fd-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-2ff-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 0D + 15 00 00 00 00 00 02 B9 0D + 15 00 00 00 00 00 02 BA 0D + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-2ff-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-3ff-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 0B + 15 00 00 00 00 00 02 B9 0B + 15 00 00 00 00 00 02 BA 0B + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-3ff-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-4ff-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 0A + 15 00 00 00 00 00 02 B9 0A + 15 00 00 00 00 00 02 BA 0A + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-4ff-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-5ff-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 09 + 15 00 00 00 00 00 02 B9 09 + 15 00 00 00 00 00 02 BA 09 + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-5ff-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-brightness-fff-command = [ + 15 00 00 00 00 00 02 FE 20 + 15 00 00 00 00 00 02 B8 08 + 15 00 00 00 00 00 02 B9 09 + 15 00 00 00 00 00 02 BA 09 + 15 01 00 00 00 00 02 FE 00]; + qcom,mdss-dsi-brightness-fff-command-state = "dsi_lp_mode"; + + qcom,brightness-demura-command; + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <1080>; From 31ec7af1a73166e289b987fae7ee65651e52c064 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 23 Dec 2021 14:05:30 +0800 Subject: [PATCH 0615/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: I126f3b616341e30e50b657ff80b7bf7842d2c95f Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2152793 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 9d21eba7eda5..e1b28be37a8f 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -689,7 +689,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; + Semtech,reg-num = <100>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ From 354dbfd3d1cd00c4c6b23c8bf188d1f012ab8103 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 21 Dec 2021 16:00:51 +0800 Subject: [PATCH 0616/1247] arm/dts: cypfr add dvt2 dts add blair-cypfr-dvt2-overlay.dts for dvt2 device Change-Id: Ifa9ff260e809c9730f8be40f065cec9f3c5228ab Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2150712 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/blair-cypfr-dvt2-overlay.dts | 27 +++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 qcom/blair-cypfr-dvt2-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 6b082075f560..22f9f6be56a6 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -82,10 +82,12 @@ holi-rhodec-evb-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_CYPFR_DTB) += \ blair-cypfr-evb-overlay.dtbo \ - blair-cypfr-evt-overlay.dtbo + blair-cypfr-evt-overlay.dtbo \ + blair-cypfr-dvt2-overlay.dtbo blair-cypfr-evb-overlay.dtbo-base := blair-moto-base.dtb blair-cypfr-evt-overlay.dtbo-base := blair-moto-base.dtb +blair-cypfr-dvt2-overlay.dtbo-base := blair-moto-base.dtb dtbo-$(CONFIG_MILANF_DTB) += \ blair-milanf-evb1-overlay.dtbo \ diff --git a/qcom/blair-cypfr-dvt2-overlay.dts b/qcom/blair-cypfr-dvt2-overlay.dts new file mode 100644 index 000000000000..4edfb293619c --- /dev/null +++ b/qcom/blair-cypfr-dvt2-overlay.dts @@ -0,0 +1,27 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-cypfr-common-overlay.dtsi" + +/ { + model = "cypfr"; + compatible = "qcom,blair-cypfr", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4B 0xB200>; +}; + +&sgm7220 { + sgm7220,pwr_gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; +}; From 15517dcbfc86939010e70635224eda5ccd52c44a Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 21 Dec 2021 16:40:42 +0800 Subject: [PATCH 0617/1247] arm/dts: cypfr add 5mohm battery parameter for DVT2 device 1.after DVT2 devices, board will use 5mohm resistance for FG 2.be compatible with DVT1/EVT device 3.reomve SCUD battery parameter, Change-Id: I1b99eb2c53d512d81a271eea4c881782e4c2825a Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2150743 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ... => CW_jd50-atl-5000mah-10mohm-cypfr.dtsi} | 0 ...i => CW_jd50-atl-5000mah-5mohm-cypfr.dtsi} | 25 ++++++++++--------- qcom/blair-cypfr-common-overlay.dtsi | 4 +-- qcom/blair-cypfr-dvt2-overlay.dts | 5 ++++ qcom/blair-cypfr-evb-overlay.dts | 3 +++ qcom/blair-cypfr-evt-overlay.dts | 4 +++ 6 files changed, 26 insertions(+), 15 deletions(-) rename qcom/bat_setting/{CW_jd50-atl-5000mah.dtsi => CW_jd50-atl-5000mah-10mohm-cypfr.dtsi} (100%) rename qcom/bat_setting/{CW_jd50-scud-5000mah.dtsi => CW_jd50-atl-5000mah-5mohm-cypfr.dtsi} (57%) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah-10mohm-cypfr.dtsi similarity index 100% rename from qcom/bat_setting/CW_jd50-atl-5000mah.dtsi rename to qcom/bat_setting/CW_jd50-atl-5000mah-10mohm-cypfr.dtsi diff --git a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi similarity index 57% rename from qcom/bat_setting/CW_jd50-scud-5000mah.dtsi rename to qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi index 2850ac2a4e65..f5b7981f7582 100644 --- a/qcom/bat_setting/CW_jd50-scud-5000mah.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi @@ -10,17 +10,18 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -jd50-scud-5000mah { - serialnum = "SB18C77226"; +jd50-atl-5000mah { + serialnum = "SB18C77591"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 - A5 B1 B5 CE C3 C2 97 58 - 31 FF FF E3 92 80 63 58 - 4F 4D 4A 86 F0 DC 0D D2 - D2 D1 D1 D1 CF CC BC DC - B0 C3 C8 AA 96 89 80 71 - 68 64 73 8F A3 86 65 60 - 20 00 57 10 02 B0 74 00 - 00 00 64 24 D3 79 00 00 - 00 00 00 00 00 00 00 5F ]; + ui_full = <99>; + config_profile_info = [52 00 00 00 00 00 00 00 + A0 B2 BF CB C3 C2 96 59 + 2F FF FF DB A6 8D 74 60 + 55 52 4D 8D FD DC 02 CF + CF D2 D1 D1 D0 CD C8 CD + C1 C0 C5 AD 95 8A 81 74 + 62 62 73 8F A7 87 5F 8D + 20 00 AB 10 02 A0 76 00 + 00 00 64 20 C3 7C 00 00 + 00 00 00 00 00 00 00 1C]; }; diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index e1b28be37a8f..79a9a4b92390 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -516,14 +516,12 @@ &qupv3_se8_i2c { status = "okay"; - cw2217@64 { + cw2217: cw2217@64 { compatible = "cellwise,cw2217"; reg = <0x64>; status = "okay"; df-serialnum = "SB18C77591"; - #include "bat_setting/CW_jd50-scud-5000mah.dtsi" - #include "bat_setting/CW_jd50-atl-5000mah.dtsi" }; }; diff --git a/qcom/blair-cypfr-dvt2-overlay.dts b/qcom/blair-cypfr-dvt2-overlay.dts index 4edfb293619c..3459d046517f 100644 --- a/qcom/blair-cypfr-dvt2-overlay.dts +++ b/qcom/blair-cypfr-dvt2-overlay.dts @@ -25,3 +25,8 @@ &sgm7220 { sgm7220,pwr_gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; }; + +&cw2217 { + sense_r_mohm = <5>; + #include "bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi" +}; diff --git a/qcom/blair-cypfr-evb-overlay.dts b/qcom/blair-cypfr-evb-overlay.dts index 2139c2e2c73f..9fc8108b92c1 100644 --- a/qcom/blair-cypfr-evb-overlay.dts +++ b/qcom/blair-cypfr-evb-overlay.dts @@ -22,3 +22,6 @@ qcom,board-id = <0x4B 0xA100>; }; +&cw2217 { + #include "bat_setting/CW_jd50-atl-5000mah-10mohm-cypfr.dtsi" +}; diff --git a/qcom/blair-cypfr-evt-overlay.dts b/qcom/blair-cypfr-evt-overlay.dts index 6eb3a60a95e7..7f3b0629c6b4 100644 --- a/qcom/blair-cypfr-evt-overlay.dts +++ b/qcom/blair-cypfr-evt-overlay.dts @@ -25,3 +25,7 @@ &sgm7220 { sgm7220,pwr_gpio = <&tlmm 86 GPIO_ACTIVE_HIGH>; }; + +&cw2217 { + #include "bat_setting/CW_jd50-atl-5000mah-10mohm-cypfr.dtsi" +}; From e4d2553fa5d449e9fc1ee2d2c29f0c8c9738c168 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 23 Dec 2021 16:37:38 +0800 Subject: [PATCH 0618/1247] milan5G: sar sensor params 1.update params for DVT1 sx937x. 2.blair-nopmi-moto-common-overlay.dtsi Change-Id: I6adac17d34d62fd7b5e264247ff223f76559334e Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2152981 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-nopmi-moto-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index e3819bbf959f..f2f382e4cf91 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -157,7 +157,7 @@ 0x8170 0x2AD67000 0x8088 0x300005 0x80A8 0x300005 - 0x80C8 0x2300005 + 0x80C8 0x300005 0x80E8 0x300005 0x8108 0x300005 0x8128 0x3600000 From 5829ab8d62308a3d73896e27e860bc8d9794b7bf Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 23 Dec 2021 21:05:50 +0800 Subject: [PATCH 0619/1247] arm/dt: corfur: add delay after panel disabled arm/dt: Add delay after panel is disabled, make delay between avdd which is controlled by panel and reset low time meets rm692c9 spec, bigger than 16.68ms. Change-Id: Iaa61f63a91f6b49542f02d05c73b294a2553c24d Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2153266 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi index a639525aefe2..363c88aedbe1 100644 --- a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -146,7 +146,7 @@ qcom,mdss-dsi-off-command = [ 15 00 00 00 00 00 02 FE 00 05 01 00 00 23 00 01 28 - 05 01 00 00 00 00 01 10 + 05 01 00 00 11 00 01 10 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; From 5711489cda23bb921a8e1ae2efbffa1c012077ce Mon Sep 17 00:00:00 2001 From: wingte49 Date: Thu, 23 Dec 2021 17:43:24 +0800 Subject: [PATCH 0620/1247] dts/panel:modify sm5350 backlight configuration Modify: Enable sm5350 backlight mode, update the compatible. Change-Id: I4a3e073b851b24befb388cb18913731667584aa5 Reviewed-on: https://gerrit.mot.com/2153119 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: gaoyx9 Submit-Approved: gaoyx9 Tested-by: gaoyx9 Reviewed-by: Hujun Liao --- qcom/rhodec-display.dtsi | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index ba24048dcd41..df0f43b987ff 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -249,7 +249,7 @@ status = "ok"; aw99703_backlight: sprd_backlight@36{ - compatible = "awinic,aw99703-bl"; + compatible = "awinic,aw99703-bl","sm-sm5350"; reg = <0x36>; hwen-gpio = <&tlmm 60 1>; /* brightness map level 1:256,2:1024,3:2048 */ @@ -274,6 +274,10 @@ aw99703,efuse-config = <0x1C 0x61 0x61 0x4C 0x2C 0xC0 0x08 0x00 0x01 0x80 0x00 0x00 0x00>; status = "okay"; + pwm-cfg = <0x0C>; + boost-ctl = <0x03>; + ctl-bank-en = <0x02>; + full-scale-current = <0x0A>; }; ocp2138@3e { From fdce9e8fb6402f78d0be1b427ae16a544aaf89ee Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 23 Dec 2021 17:04:07 +0800 Subject: [PATCH 0621/1247] arm/dts: cypfr remove rt9426a dts cypfr project didn't use rt9426a device so remove it's dts config Change-Id: Ib59ca8ffdf878dc216f0116f701f1d01f468950c Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2153022 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 79a9a4b92390..31f12c377656 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -22,7 +22,6 @@ #include "cypfr-display.dtsi" #include "cypfr-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-cypfr-overlay.dtsi" -#include "rt9426a.dtsi" #include "discrete_charging.dtsi" #include "sgm7220.dtsi" #include "blair-cypfr-fmr-overlay.dtsi" From ca60a07857fd9c83aaca47c9fa5479e48f7bb3c4 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Mon, 27 Dec 2021 14:28:11 +0800 Subject: [PATCH 0622/1247] arm64/dt: cypfr: change vibrator voltage Change vibrator voltage as 3.2v that HW suggest. The actually voltage is 3.0v output on vibrator. Change-Id: Ibd6f952581625103e5376ec7f4b0de55f00a50d2 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2154755 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 31f12c377656..78b978756b67 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -639,7 +639,7 @@ ext_vib { compatible = "ext-vibrator-ldo"; vib_vcc-supply = <&L21A>; - vib,vcc-voltage = <3000000 3000000>; + vib,vcc-voltage = <3200000 3200000>; vib,vcc-current = <300000>; }; }; From 3bd144d9f9dff5b5850f3747593f20394fd080c9 Mon Sep 17 00:00:00 2001 From: bchhq23 Date: Thu, 23 Dec 2021 18:12:42 +0800 Subject: [PATCH 0623/1247] rhodep:open charger mode; kernel/dts: open charger mode; wait probe is ok that send cmd; Change-Id: If7794ea0a2e3ca96c0cff5dc8162db3b76e8d259 Signed-off-by: bchhq23 Reviewed-on: https://gerrit.mot.com/2153157 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index f9bc581c83e1..fa682829092e 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -99,5 +99,6 @@ pinctrl-2 = <&pmx_ts_release>; mmi,power-off-suspend; mmi,enable-gestures; + mmi,usb-charger-detection; }; }; From 878d494a686aa90300acd47425cb169603853b25 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 28 Dec 2021 16:52:34 +0800 Subject: [PATCH 0624/1247] arm/dtsi: panel: update tianma nt37701 v1 panel dc code update tianma nt37701 v1 panel dc code for Rhodep. Get these changes from kp team. Change-Id: If76dcd77d2a9611085ecc3f52bd62bef14513fcb Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2155916 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...anma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index b712b39b3e05..26ffaa726ca8 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -78,7 +78,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 @@ -131,7 +131,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 @@ -214,7 +214,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 @@ -297,7 +297,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 @@ -380,7 +380,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 @@ -463,7 +463,7 @@ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 36 91 86 91 + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 From 5642f002e7161a0493dfc97cfc5898ff3ddc2bae Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 29 Dec 2021 15:52:28 +0800 Subject: [PATCH 0625/1247] arm/dts: update usb20 phy param update param_ovrd2 value from 0x16 to 0x2e to fix the offset of the center point of the usb eye diagram Change-Id: I3c90b12f6dcdfcc7b7af3b9f06c2617b732a2928 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2156943 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 78b978756b67..e58de0bdb27b 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -28,6 +28,14 @@ #include #include "discrete-rt-pd-manger.dtsi" +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x85 0x70 /* override_x1 */ + 0x0e 0x74>; /* override x2 */ +}; + &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; From ed9ea500a6ec52cb7c5e7772b0d3e09f4358d97a Mon Sep 17 00:00:00 2001 From: wingte49 Date: Tue, 28 Dec 2021 14:00:34 +0800 Subject: [PATCH 0626/1247] dts/panel:Enable the three way blcklight Modify: Set the backlight channel to 3,turn on the third backlight. Change-Id: Ifbcac0f980ae34fee1faf74fdaa3596ec00b0cd8 Reviewed-on: https://gerrit.mot.com/2155755 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index df0f43b987ff..ae06e7304a00 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -261,7 +261,7 @@ aw99703,auto-freq-high = <0x10>; aw99703,auto-freq-low = <0x05>; aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <2>; + aw99703,bl-channel = <3>; aw99703,turn-on-ramp = <0x04>; aw99703,turn-off-ramp = <0x04>; aw99703,pwm-trans-dim = <0>; /* 2ms */ From 88beb632c825e5248802c3220cad4e6c6198061a Mon Sep 17 00:00:00 2001 From: wingte48 Date: Wed, 29 Dec 2021 20:02:06 +0800 Subject: [PATCH 0627/1247] dts/panel: Panel: Change display power off timing Modify: add display power off timing avdd and avee Change-Id: I0f94e8372277834285596e0b08e56009f4086bb9 Reviewed-on: https://gerrit.mot.com/2157275 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index ae06e7304a00..bf952ed0b302 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -53,6 +53,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; + qcom,supply-post-off-sleep = <5>; gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; From f77bf9841126d4e3ae1f9cfed728947c98988732 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Mon, 27 Dec 2021 14:17:27 +0800 Subject: [PATCH 0628/1247] dts/touchscreen: rhodec:change spi csn pin status for display Modfiy: Change spi csn pin status for display timing Change-Id: Ia731cf37884be324eb08764c99cbdc23422f25ef Reviewed-on: https://gerrit.mot.com/2154741 Reviewed-by: Yeqing Wang SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index 6165d4b22f14..eefce25d3c43 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -64,7 +64,7 @@ config { pins = "gpio3"; drive-strength = <6>; - bias-pull-up; + bias-bus-hold; }; }; }; From 86e0d4081df2aaa5cfb1392de232e6ef962ea136 Mon Sep 17 00:00:00 2001 From: huaqin86 Date: Thu, 30 Dec 2021 15:33:38 +0800 Subject: [PATCH 0629/1247] qc3:set qc3p charging voltage threshold 3.4V Set QC3P begin charging voltage threshold to 3.4V for optimization. Change-Id: I169d7b8082bc7722d8e5f9833981bd18f68669d0 Signed-off-by: huaqin86 Reviewed-on: https://gerrit.mot.com/2158366 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index 46cff0d2ab90..bd699339efff 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -370,7 +370,7 @@ mmi,pd-curr-max = <3000000>; mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; - mmi,pl-chrg-vbatt-min = <3600000>; + mmi,pl-chrg-vbatt-min = <3400000>; mmi,typec-middle-current = <2000000>; mmi,pd-allow-min-current = <1000000>; mmi,step-first-current-comp = <0>; From 16c1e9598492d2d6019c4830c667af13c108d8c8 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Wed, 29 Dec 2021 20:05:05 +0800 Subject: [PATCH 0630/1247] dts/panel: add MIPI HS Tclk-post time for display Modify: add display HS timing required Tclk-prepare + Tclk-zero must greater than 300 nsec. Change-Id: I74c1acce4c931a5b89e7d82d12c27a4131a6f0d6 Reviewed-on: https://gerrit.mot.com/2157281 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index bf952ed0b302..77fa370439d5 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -168,7 +168,7 @@ qcom,mdss-dsi-t-clk-pre = <0x34>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 0E 08 08 24 22 08 08 08 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 08 24 22 08 08 08 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; From 41c637af9efde738c3702690d0394e3c7169b80c Mon Sep 17 00:00:00 2001 From: wingte49 Date: Thu, 30 Dec 2021 20:36:27 +0800 Subject: [PATCH 0631/1247] dts/backlight:change the backlight map-mode to linear Modify: Change the map-mode to linear enable the correct backlight. Change-Id: Ie7cf0f24bb9dd5faaa1858cc5ccfc918329dbe18 Reviewed-on: https://gerrit.mot.com/2158777 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 77fa370439d5..09d2976e6941 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -268,7 +268,7 @@ aw99703,pwm-trans-dim = <0>; /* 2ms */ aw99703,i2c-trans-dim = <0x00>; aw99703,pwm-mode = <1>; /* 0 pwm disble,1 PWM enable */ - aw99703,map-type = <1>; /* linear */ + aw99703,map-type = <4>; /* linear */ aw99703,work-mode = <1>; /* backlight */ aw99703,flash-timeout-time = <0x05>; /* 500ms(default) */ aw99703,flash-current = <0x08>; /* 59.2mA(default) */ From 4c3bdeb7ff636ddf994bdcf50bba03566e6e10f3 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 30 Dec 2021 18:24:59 +0800 Subject: [PATCH 0632/1247] arm64/dts: cypfq/panel: set the strength of dsi phy to 0x8C The mipi signal of 2nd panel is not OK. So we change the strength to improve the signal quality. Change-Id: Id5930ff8cb2361c06521eb08e43c7ff75a750a7b Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2158674 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: panyq6 --- qcom/cypfq-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/cypfq-display.dtsi b/qcom/cypfq-display.dtsi index 998dff0c5eed..d0fe81646e63 100644 --- a/qcom/cypfq-display.dtsi +++ b/qcom/cypfq-display.dtsi @@ -221,6 +221,7 @@ qcom,mdss-dsi-t-clk-pre = <0x30>; qcom,mdss-dsi-display-timings { timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 07 07 02 04 00]; qcom,display-topology = <1 1 1>; From e1252ea4b948f91d21f18bec66a60aaa5f480cd7 Mon Sep 17 00:00:00 2001 From: huaqin86 Date: Thu, 23 Dec 2021 19:45:29 +0800 Subject: [PATCH 0633/1247] Fuel gauge battery curve parameter modification Fuel gauge battery parameter upgrade moto need 3.4V to shutdown, so tuning shutdown param to 3.4V, real result as below: Line 6984: 01-05 06:41:33.397 0 0 W healthd : battery l=1 v=3387 t=25.0 h=2 st=3 c=-688000 fc=5000000 cc=1 chg= Line 6991: 01-05 06:41:33.425 0 0 W healthd : battery l=0 v=3387 t=25.0 h=2 st=3 c=-688000 fc=5000000 cc=1 chg= Line 6995: 01-05 06:41:33.445 0 0 W healthd : battery l=0 v=3387 t=25.0 h=2 st=3 c=-688000 fc=5000000 cc=1 ch Change-Id: I677f00482bd964889fd07c54a923ecb78e18630e Reviewed-on: https://gerrit.mot.com/2153210 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Ying Xu Reviewed-by: Huosheng Liao Submit-Approved: gaoyx9 --- qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi | 4 ++-- qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi index 43795e0414c9..2661c53e5618 100644 --- a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi +++ b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi @@ -13,7 +13,7 @@ ng50-ATL-5000mah-rhodep { serialnum = "SB18D38324"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [49 00 00 00 00 00 00 00 A6 C1 C0 C7 B9 B8 A4 69 3F FF DE A7 89 76 65 59 53 51 4E 84 DE E0 68 EA @@ -22,5 +22,5 @@ ng50-ATL-5000mah-rhodep { 78 7B 83 92 A9 85 80 AE 20 00 57 10 02 A0 57 00 00 00 64 23 C3 48 00 00 - 00 00 00 00 00 00 00 F9]; + 00 00 00 00 00 00 00 58]; }; diff --git a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi index 0cf9e80a3075..ceeeb271d890 100644 --- a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi +++ b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi @@ -13,7 +13,7 @@ ng50-SWD-5000mah-rhodep { serialnum = "SB18D38323"; fcc_design = <5000>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [49 00 00 00 00 00 00 00 AD C7 C2 C1 B1 AE B3 7D 55 D4 C1 9B 82 6C 5D 55 51 51 51 7F D8 E0 31 DC @@ -22,5 +22,5 @@ ng50-SWD-5000mah-rhodep { 80 7F 86 98 AA 82 7E B8 20 00 57 10 02 A0 5C 00 00 00 64 21 C3 50 00 00 - 00 00 00 00 00 00 00 9F]; + 00 00 00 00 00 00 00 3E]; }; From ef3f48ff9c2db9b134ac5a985c9806f3eab09456 Mon Sep 17 00:00:00 2001 From: liaohj Date: Wed, 5 Jan 2022 16:41:09 +0800 Subject: [PATCH 0634/1247] dts:cypfr:config vibrator long short voltage avoid vib noise. config vibrator long short voltage. cypfr use regulator control vibrator. Change-Id: I79e423ade7bd3c5473a1ff9553808016bd4026f2 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2162241 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index e58de0bdb27b..328bed171196 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -647,8 +647,11 @@ ext_vib { compatible = "ext-vibrator-ldo"; vib_vcc-supply = <&L21A>; - vib,vcc-voltage = <3200000 3200000>; - vib,vcc-current = <300000>; + vib,pwr-by-regulator-enable; + vib,short-vcc-voltage = <3200000>; + vib,long-vcc-voltage = <2800000>; + vib,long-play-threshold = <70>; + vib,vcc-current = <600000>; }; }; From 67af48ce6abc3fb224c192481329e77f758b2004 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 5 Jan 2022 16:37:59 +0800 Subject: [PATCH 0635/1247] arm/dts: Rhodep/panel: update tianma nt37701 6.55 inch panel code 1. update tianma nt37701 v1 panel dc code 2. add SOE code for tianma nt37701 6.55 inch v1 panel 3.add tianma nt37701 6.55 inch v2 panel code Change-Id: If3a5d9778a557dfe058f6d6a33ebdf26750ed2e1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2162253 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 1086 +++++++++-------- ...37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 793 ++++++++++++ ...-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 783 ++++++------ qcom/rhodep-display.dtsi | 67 + 4 files changed, 1825 insertions(+), 904 deletions(-) create mode 100644 qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 26ffaa726ca8..ae43571132eb 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -10,517 +10,581 @@ * GNU General Public License for more details. */ &mdss_mdp { - mot_tm_nt37701_655_1080x2400_dsc_cmd_v1: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { - compatible = "qcom,mdss-dsi-panel"; - qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; - qcom,mdss-dsi-panel-supplier = "tianma"; - qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; - qcom,mdss-dsi-virtual-channel-id = <0>; - qcom,mdss-dsi-stream = <0>; - qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <152>; - qcom,mdss-dsi-bpp = <30>; - qcom,mdss-dsi-underflow-color = <0xff>; - qcom,mdss-dsi-border-color = <0>; - qcom,mdss-dsi-panel-param-verision = <121201>; - qcom,mdss-dsi-panel-param-num = <5>; - - qcom,dsi-ctrl-num = <0>; - qcom,dsi-phy-num = <0>; - - qcom,mdss-dsi-traffic-mode = "burst_mode"; - qcom,mdss-dsi-bllp-eof-power-mode; - qcom,mdss-dsi-bllp-power-mode; - qcom,mdss-dsi-lane-0-state; - qcom,mdss-dsi-lane-1-state; - qcom,mdss-dsi-lane-2-state; - qcom,mdss-dsi-lane-3-state; - - qcom,mdss-dsi-dma-trigger = "trigger_sw"; - qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; - qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-tx-eot-append; - qcom,mdss-dsi-te-pin-select = <1>; - qcom,mdss-dsi-te-dcs-command = <1>; - - qcom,mdss-dsi-te-using-te-pin; - - qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <3>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 - 17000 15500 30000 8000 3000>; - qcom,mdss-dsi-panel-peak-brightness = <4200000>; - - qcom,mdss-dsi-panel-blackness-level = <3230>;*/ - - qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; - qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 0D BA]; - - qcom,mdss-dsi-hbm-fod; - qcom,mdss-dsi-hbm-fod-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; - - //qcom,mdss-dsi-acl-on-command = [ - // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - // 15 00 00 00 00 00 02 B0 0C - // 15 01 00 00 00 00 02 55 05]; - //qcom,mdss-dsi-acl-off-command = [ - // 15 01 00 00 00 00 02 55 00]; - - qcom,mdss-dsi-dc-off-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00]; - qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; - - qcom,mdss-dsi-dc-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 81 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 - 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 01]; - qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; - - qcom,mdss-dsi-display-timings { - timing@0{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <48>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00 //DC off - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 1C - 39 00 00 00 00 00 06 C0 15 0A 38 27 49 - 39 00 00 00 00 00 05 3B 00 10 00 20 - - 15 00 00 00 00 00 02 03 01 - 15 00 00 00 00 00 02 90 01 - 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 00 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 00 00 00 00 00 03 6F 01 01 - 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 78 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@1{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <60>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00 //DC off - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 1C - 39 00 00 00 00 00 06 C0 15 0A 38 27 49 - 39 00 00 00 00 00 05 3B 00 10 00 20 - - 15 00 00 00 00 00 02 03 01 - 15 00 00 00 00 00 02 90 01 - 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 00 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 00 00 00 00 00 03 6F 01 01 - 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 78 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@2{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <90>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00 //DC off - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 1C - 39 00 00 00 00 00 06 C0 15 0A 38 27 49 - 39 00 00 00 00 00 05 3B 00 10 00 20 - - 15 00 00 00 00 00 02 03 01 - 15 00 00 00 00 00 02 90 01 - 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 00 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 00 00 00 00 00 03 6F 01 01 - 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 78 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@3{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <120>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00 //DC off - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 1C - 39 00 00 00 00 00 06 C0 15 0A 38 27 49 - 39 00 00 00 00 00 05 3B 00 10 00 04 - - 15 00 00 00 00 00 02 03 01 - 15 00 00 00 00 00 02 90 01 - 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 00 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 00 00 00 00 00 03 6F 01 01 - 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 78 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - /*timing@4{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <144>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 - 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 - 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB - 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 - 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF - 15 01 00 00 00 00 02 58 00 //DC off - - - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 1C - 39 00 00 00 00 00 06 C0 15 0A 38 27 49 - 39 00 00 00 00 00 05 3B 00 10 00 04 - - 15 00 00 00 00 00 02 03 01 - 15 00 00 00 00 00 02 90 01 - 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 00 00 00 00 00 02 2C 00 //dsc config 10bit - - 39 00 00 00 00 00 03 6F 01 01 - 39 01 00 00 00 00 06 88 04 02 1C 08 73 //Local HBM X/Y - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 78 00 01 11 - 05 01 00 00 00 00 01 29]; // display on - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 // display_off - 05 01 00 00 78 00 01 10]; // enter sleep mode - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - // Why QCOM doesn't use this, even it used 2 encoder - // as for that dsi_sw43404_amoled_cmd, for ex - // qcom,mdss-dsc-encoders = <2>; - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - };*/ - - - }; - +mot_tm_nt37701_655_1080x2400_dsc_cmd_v1: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; +qcom,mdss-dsi-panel-supplier = "tianma"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <68>; +qcom,mdss-pan-physical-height-dimension = <152>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; + +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; + +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; + +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; + +qcom,mdss-dsi-te-using-te-pin; + +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; + +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ + +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 0D BA]; + +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; + +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 81 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + +}; + +}; }; diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi new file mode 100644 index 000000000000..201535e5b927 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -0,0 +1,793 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { +mot_tm_nt37701_655_1080x2400_dsc_cmd_v2: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; +qcom,mdss-dsi-panel-supplier = "tianma"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <68>; +qcom,mdss-pan-physical-height-dimension = <152>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; + +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; + +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; + +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; + +qcom,mdss-dsi-te-using-te-pin; + +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; + +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ + +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 0D BA]; + +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; + +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 81 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 A1 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 A1 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 A1 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 06 00 02 6F 04 + 15 00 00 00 06 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 06 00 02 6F 03 + 15 00 00 00 06 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 06 00 02 6F 04 + 15 00 00 00 06 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 06 00 02 6F 03 + 15 00 00 00 06 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 A1 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 06 00 02 6F 04 + 15 00 00 00 06 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 06 00 02 6F 03 + 15 00 00 00 06 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 + 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 BB 05 2F 05 2F 06 91 06 91 06 92 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 92 0A 2F 0A 2F 0D B9 0D B9 0F FF + 15 01 00 00 00 00 02 58 00 //DC off + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 02 + 39 01 00 00 00 00 03 C1 00 60 + 15 00 00 00 00 00 02 6F 08 + 15 00 00 00 00 00 02 C3 04 + 39 00 00 00 00 00 06 F0 55 AA 52 08 03 + 39 00 00 00 00 00 05 BC 11 00 09 51 + 15 00 00 00 00 00 02 6F 04 + 39 00 00 00 00 00 0A BC 00 09 51 00 09 51 00 0B 41 + 15 00 00 00 00 00 02 6F 0D + 39 01 00 00 00 00 04 BC 00 11 51 + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 0D C6 66 66 66 66 66 66 66 66 66 66 66 66 + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 6F 1C + 39 00 00 00 00 00 06 C0 15 0A 38 27 49 + + 15 00 00 00 00 00 02 03 01 + 15 00 00 00 00 00 02 90 01 + 39 00 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 00 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 73 //Local HBM X/Y + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 06 00 02 6F 04 + 15 00 00 00 06 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 20 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 06 00 02 6F 03 + 15 00 00 00 06 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + + 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 A1 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + +}; + +}; + +}; diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi index 51817a7c3ebf..83b0b23537e0 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -10,419 +10,416 @@ * GNU General Public License for more details. */ &mdss_mdp { - mot_tm_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { - compatible = "qcom,mdss-dsi-panel"; - qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; - qcom,mdss-dsi-panel-supplier = "tianma"; - qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; - qcom,mdss-dsi-virtual-channel-id = <0>; - qcom,mdss-dsi-stream = <0>; - qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <152>; - qcom,mdss-dsi-bpp = <30>; - qcom,mdss-dsi-underflow-color = <0xff>; - qcom,mdss-dsi-border-color = <0>; - qcom,mdss-dsi-panel-param-verision = <121201>; - qcom,mdss-dsi-panel-param-num = <5>; +mot_tm_nt37701_655_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_tm_1080p_dsc_655"; +qcom,mdss-dsi-panel-supplier = "tianma"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <68>; +qcom,mdss-pan-physical-height-dimension = <152>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; - qcom,dsi-ctrl-num = <0>; - qcom,dsi-phy-num = <0>; +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; - qcom,mdss-dsi-traffic-mode = "burst_mode"; - qcom,mdss-dsi-bllp-eof-power-mode; - qcom,mdss-dsi-bllp-power-mode; - qcom,mdss-dsi-lane-0-state; - qcom,mdss-dsi-lane-1-state; - qcom,mdss-dsi-lane-2-state; - qcom,mdss-dsi-lane-3-state; +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; - qcom,mdss-dsi-dma-trigger = "trigger_sw"; - qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; - qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-tx-eot-append; - qcom,mdss-dsi-te-pin-select = <1>; - qcom,mdss-dsi-te-dcs-command = <1>; +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; - qcom,mdss-dsi-te-using-te-pin; +qcom,mdss-dsi-te-using-te-pin; - qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <3>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 - 17000 15500 30000 8000 3000>; - qcom,mdss-dsi-panel-peak-brightness = <4200000>; +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; - qcom,mdss-dsi-panel-blackness-level = <3230>;*/ +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ - qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; - qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 07 FF]; +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-fod; - qcom,mdss-dsi-hbm-fod-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; - //qcom,mdss-dsi-acl-on-command = [ - // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - // 15 00 00 00 00 00 02 B0 0C - // 15 01 00 00 00 00 02 55 05]; - //qcom,mdss-dsi-acl-off-command = [ - // 15 01 00 00 00 00 02 55 00]; +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; - qcom,mdss-dsi-display-timings { - timing@0{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <48>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 14 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - ]; +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 86 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 62 - 39 01 00 00 00 00 05 3B 00 10 00 20 + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F - 15 01 00 00 00 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + 15 01 00 00 00 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@1{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <60>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 10 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 86 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 62 - 39 01 00 00 00 00 05 3B 00 10 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@2{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <90>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 0b 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 86 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 62 - 39 01 00 00 00 00 05 3B 00 10 00 20 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - timing@3{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <120>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 08 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 86 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 62 - 39 01 00 00 00 00 05 3B 00 10 00 04 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; /* display on */ - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 /* display_off */ - 05 01 00 00 78 00 01 10]; /* enter sleep mode */ - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - /* Why QCOM doesn't use this, even it used 2 encoder - * as for that dsi_sw43404_amoled_cmd, for ex */ - /* qcom,mdss-dsc-encoders = <2>; */ - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - }; - /*timing@4{ - qcom,mdss-dsi-cmd-mode; - qcom,mdss-dsi-panel-framerate = <144>; - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <16>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <4>; - qcom,mdss-dsi-v-front-porch = <12>; - qcom,mdss-dsi-v-pulse-width = <4>; - qcom,mdss-dsi-h-left-border = <0>; - qcom,mdss-dsi-h-right-border = <0>; - qcom,mdss-dsi-v-top-border = <0>; - qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 - qcom,mdss-dsi-timing-switch-command = [ - 15 01 00 00 06 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - ]; - - qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 15 01 00 00 00 00 02 6F 1C - 39 01 00 00 00 00 06 C0 15 27 38 49 00 - 39 01 00 00 00 00 06 F0 55 AA 52 08 04 - 15 01 00 00 00 00 02 CB 86 - 39 01 00 00 00 00 06 F0 55 AA 52 08 01 - 39 01 00 00 00 00 03 CD 05 62 - 39 01 00 00 00 00 05 3B 00 10 00 04 - - 15 01 00 00 00 00 02 03 01 - 15 01 00 00 00 00 02 90 01 - 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 - 15 01 00 00 00 00 02 2C 00 //dsc config 10bit - - 15 01 00 00 00 00 02 5F 00 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 20 - 15 01 00 00 00 00 02 35 00 //te enable - - 39 01 00 00 00 00 05 2A 00 00 04 37 - 39 01 00 00 00 00 05 2B 00 00 09 5F - - 15 01 00 00 00 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - - 05 01 00 00 C8 00 01 11 - 05 01 00 00 00 00 01 29]; // display on - qcom,mdss-dsi-off-command = [ - 05 01 00 00 00 00 01 28 // display_off - 05 01 00 00 78 00 01 10]; // enter sleep mode - - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-timing-switch-command-state = - "dsi_lp_mode"; - qcom,compression-mode = "dsc"; - // Why QCOM doesn't use this, even it used 2 encoder - // as for that dsi_sw43404_amoled_cmd, for ex - // qcom,mdss-dsc-encoders = <2>; - qcom,mdss-dsc-version = <0x11>; - qcom,mdss-dsc-slice-height = <12>; - qcom,mdss-dsc-slice-width = <1080>; - qcom,mdss-dsc-slice-per-pkt = <1>; - qcom,mdss-dsc-bit-per-component = <10>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - };*/ - }; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 15 27 38 49 00 + 39 01 00 00 00 00 06 F0 55 AA 52 08 04 + 15 01 00 00 00 00 02 CB 86 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 03 CD 05 62 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 01 00 00 00 00 02 5F 00 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 C8 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + }; +}; +}; diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi index d6650a6aa152..5ea4391ee0ca 100644 --- a/qcom/rhodep-display.dtsi +++ b/qcom/rhodep-display.dtsi @@ -2,6 +2,7 @@ #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" &display_panel_avdd { @@ -174,6 +175,72 @@ }; }; +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; From 0c992224e83d9442c2fb44c52dbd0734113e7091 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 6 Jan 2022 11:24:22 +0800 Subject: [PATCH 0636/1247] arm/dt: corfur: enter panel deep sleep when suspend - send panel deep sleep command when suspend - keep reset high when suspend, in order to keep deep sleep effective Change-Id: I033f562f3e0bb998957eea90d0708bcc2d3baecd Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2163089 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 1 + qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 11a3d1978f61..87039f2c3128 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -81,6 +81,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; qcom,keep-regulators-on; + qcom,platform-reset-gpio-always-on; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi index 363c88aedbe1..2e8c082a99bf 100644 --- a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -147,6 +147,7 @@ 15 00 00 00 00 00 02 FE 00 05 01 00 00 23 00 01 28 05 01 00 00 11 00 01 10 + 15 01 00 00 00 00 02 4F 01 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; From 5c317c5dd540818d38205e4594e6167d77bd6a48 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 6 Jan 2022 14:00:12 +0800 Subject: [PATCH 0637/1247] arm/dts: cypfr update battery parameter vbatt-off voltage modify to 3.4v show capacity=100% current to 150mA,when use ui_full to set ui_soc 100 when soc=98 Change-Id: I82a2a270fedaab0b35253b7c18af4a5ff6b5d10d Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2163194 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi b/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi index f5b7981f7582..b9e07b2af8fc 100644 --- a/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi +++ b/qcom/bat_setting/CW_jd50-atl-5000mah-5mohm-cypfr.dtsi @@ -13,15 +13,15 @@ jd50-atl-5000mah { serialnum = "SB18C77591"; fcc_design = <5000>; - ui_full = <99>; - config_profile_info = [52 00 00 00 00 00 00 00 + ui_full = <98>; + config_profile_info = [5A 00 00 00 00 00 00 00 A0 B2 BF CB C3 C2 96 59 2F FF FF DB A6 8D 74 60 55 52 4D 8D FD DC 02 CF CF D2 D1 D1 D0 CD C8 CD C1 C0 C5 AD 95 8A 81 74 - 62 62 73 8F A7 87 5F 8D + 62 62 73 8F A7 87 5F 52 20 00 AB 10 02 A0 76 00 - 00 00 64 20 C3 7C 00 00 - 00 00 00 00 00 00 00 1C]; + 00 00 64 27 C3 7C 00 00 + 00 00 00 00 00 00 00 E4]; }; From 60886e7a081ed0bb5efff841e5d78b775cb437b7 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 6 Jan 2022 19:07:09 +0800 Subject: [PATCH 0638/1247] dts:cypfr:set pm6125_l21 min-microvolt set pm6125_l21 min-microvolt & init-voltage. Change-Id: Ic378dab370a4f4ff19b75bffc21a0892b10873bf Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2163691 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 328bed171196..dc20d8c82a35 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -631,6 +631,11 @@ }; }; +&pm6125_l21 { + regulator-min-microvolt = <1800000>; + qcom,init-voltage = <3200000>; +}; + &soc { touch_avdd: touch_avdd_stub { /* From 5e67df540a91c237938e6564d4eabe125b959541 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Sat, 1 Jan 2022 21:22:58 +0800 Subject: [PATCH 0639/1247] arm/dts: config main charger IIO api channel config main charger IIO api channel for rhodep Change-Id: I74bb3795a4f11e71d5e46f26c9312ba934b32beb Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2159648 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index bd699339efff..b782d402c7a0 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -337,10 +337,9 @@ <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, <&mmi_discrete_charger PSY_IIO_USB_TERMINATION_ENABLED>, - <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, - <&wt6670 PSY_IIO_QC3P_POWER>, - <&wt6670 PSY_IIO_BATTERY_DP_DM>, - <&wt6670 PSY_IIO_START_DETECTION>, + <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_DP_DM>, + <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, <&bq2597x PSY_IIO_CP_ENABLE>, <&bq2597x PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, <&bq2597x PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, @@ -353,10 +352,9 @@ "input_current_settled", "pd_active", "termination_enabled", - "wt6670_usb_real_type", - "wt6670_usb_qc3p_power", - "wt6670_battery_dp_dm", - "wt6670_start_detection", + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", "bq2597x_cp_enabled", "bq2597x_input_current_now", "bq2597x_input_voltage_settled", From 27e8d7e79269b20590787cbebff38d100c6f12cc Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 6 Jan 2022 14:15:27 +0800 Subject: [PATCH 0640/1247] dts/panel: milanf: remove the code for 2nd backlight driver ic(TI). For Milanf. we do not import the 2nd backlight driver ic. So remove the code for 2nd backlight driver ic(TI). Change-Id: I4d8457375098c56df58d7fa4d47e8edee539e0e3 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2163185 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/milanf-display.dtsi | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index fb11cb98cf82..706dcebe9b0a 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -255,29 +255,6 @@ aw99703,default-brightness = <1810>; }; - - lm3697@35 { - compatible = "ti,lm3697"; - reg = <0x35>; - - /* TI, lm3697*/ - enable-gpios = <&tlmm 60 0>; - backlight { - compatible = "ti,lm3697-backlight"; - lcd { - led-sources = <0 1 2>; - ramp-up-msec = <200>; - ramp-down-msec = <200>; - pwm-period = <0>; - current-mode = <2>; /*2: 25mA*/ - boost-ovp = <2>; /*0:16v 1:24v 2:32v 3:40v*/ - boost-freq = <1>; /*0:500Khz 1:1Mhz*/ - map-type = <0>; /* 0 exponential, 1 linear */ - current-align-type = <1>;/* 0 none, 1 aw99703, for exp mode current align*/ - default-brightness-level = <1810>; - }; - }; - }; }; &qupv3_se10_i2c_sleep { From f6f9f44781864b4fbdde10c8121ad06c6e97a46f Mon Sep 17 00:00:00 2001 From: weimh1 Date: Mon, 10 Jan 2022 17:03:15 +0800 Subject: [PATCH 0641/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: Iaf87d56eee34f62316a57c146cc2b347e8106b4c Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2166093 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 72 +++++++++------------------- 1 file changed, 22 insertions(+), 50 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index dc20d8c82a35..7626ef876c44 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -702,7 +702,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <100>; + Semtech,reg-num = <72>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ @@ -730,28 +730,20 @@ 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT5, Top center*/ 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, REF*/ 0x8078 0xFEF9FF /*REG_AFEPH_PH6, CS5, REF*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 - 0x8098 0x8446 - 0x80B8 0x3737 + 0x8084 0xFFFFFF /*REG_AFEPH_PH7, NOT USE*/ + 0x8098 0x8440 + 0x80B8 0x372D 0x80D8 0x5A31 0x80F8 0x8348 0x8118 0x3E31 - 0x8138 0x5A40 - 0x8158 0x5A40 - 0x8178 0x5A40 - 0x80A0 0x1F1F00E1 - 0x80C0 0x252500E2 + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x202000E1 + 0x80C0 0x232300E2 0x80E0 0x202000E1 - 0x8100 0x171700E2 - 0x8120 0x232300E2 + 0x8100 0x141400E2 + 0x8120 0x1F1F00E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -759,39 +751,19 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x819C 0x0 - 0x81AC 0x0 - 0x81A0 0x0 - 0x81B0 0x0 - 0x81A4 0x0 - 0x81B4 0x0 - 0x81A8 0x0 - 0x81B8 0x0 - 0x81E0 0x0 - 0x81E4 0x0 - 0x81E8 0x0 - 0x81EC 0x0 - 0x8090 0x1EE57000 - 0x80B0 0x14F07000 - 0x80D0 0x14F07000 - 0x80F0 0x22E57000 - 0x8110 0x18E97000 - 0x8130 0x1EE86000 - 0x8150 0x1EE86000 + 0x8090 0x3CC47000 + 0x80B0 0x14EC7000 + 0x80D0 0x3CC47000 + 0x80F0 0x28D87000 + 0x8110 0x18E87000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 0x8170 0x2AD67000 - 0x8094 0x0 - 0x80B4 0x0 - 0x80D4 0x0 - 0x80F4 0x0 - 0x8114 0x0 - 0x8134 0x0 - 0x8154 0x0 - 0x8174 0x0 - 0x8088 0x200000 - 0x80A8 0x100000 + 0x8088 0x300000 + 0x80A8 0x300000 0x80C8 0x300000 - 0x80E8 0x300001 - 0x8108 0x200000 + 0x80E8 0x300000 + 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 From 5ca018a929647239762c50e77be17e0a2334d117 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Tue, 11 Jan 2022 11:11:57 +0800 Subject: [PATCH 0642/1247] arm64/dts:update sx9375 paras for Rhodec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 1、According to the requirements, the trigger threshold under the iron plate is adjusted for each antenna 2. Adjust the parameters of the internal digital filter USefilter 3, adjust the scanning frequency, so that the bottom noise of each antenna is as small as possible Change-Id: Iec6a078e27d6abd8683300a5aa9b842748ad81be Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2166869 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 132 +++++++++++---------------- 1 file changed, 55 insertions(+), 77 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 3b69fbfa1e15..d9f84b2b73b9 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -540,84 +540,62 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <75>; + Semtech,reg-num = <54>; Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x8008 0x0 - 0x4280 0x0 - 0x8020 0x32 - 0x8028 0x876 /*AFE_PARAM_PH0*/ - 0x8034 0x876 /*AFE_PARAM_PH1*/ - 0x8040 0x876 /*AFE_PARAM_PH2*/ - 0x804C 0x876 /*AFE_PARAM_PH3*/ - 0x8058 0x876 /*AFE_PARAM_PH4*/ - 0x8064 0x876 /*AFE_PARAM_PH5*/ - 0x8070 0x876 /*AFE_PARAM_PH6*/ - 0x807C 0x876 /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFD9FF /*REG_AFEPH_PH0, CS4, ANT0, Bottom Left*/ - 0x803C 0xBFF9FF /*REG_AFEPH_PH1, CS7, ANT1, Bottom right*/ - 0x8048 0xFFF9FD /*REG_AFEPH_PH2, CS0, ANT4, Top Left*/ - 0x8054 0xFEF9FF /*REG_AFEPH_PH3, CS5, ANT5, Top Middle*/ - 0x8060 0xF7F9FF /*REG_AFEPH_PH4, CS6, ANT6, Top Right*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/1_REF, Bottom_Ref*/ - 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS1, ANT4 REF, Top_Left*/ - 0x8084 0xFFF9EF /*REG_AFEPH_PH7, NOT USE*/ - 0x802C 0x0 - 0x8038 0x0 - 0x8044 0x0 - 0x8050 0x0 - 0x805C 0x0 - 0x8068 0x0 - 0x8074 0x0 - 0x8080 0x0 - 0x8098 0x6942 - 0x80B8 0x6942 - 0x80D8 0x5A39 - 0x80F8 0x3F3F - 0x8118 0x3F3F - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0x0 - 0x80A0 0x0 - 0x80C0 0x0 - 0x80E0 0x0 - 0x8100 0x0 - 0x8120 0x0 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x40CF3000 - 0x80B0 0x7FB33000 - 0x80D0 0x40CD3000 - 0x80F0 0x68B03000 - 0x8110 0x30273000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x600000 - 0x8148 0x600000 - 0x8168 0x300000 - 0x808C 0x60200060 - 0x80AC 0x60200060 - 0x80CC 0x60200060 - 0x80EC 0x60200060 - 0x810C 0x60200060 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - 0x8024 0x7F7F - 0x4280 0xF + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x85E + 0x8034 0x85E + 0x8040 0x85E + 0x804C 0x85E + 0x8058 0x85E + 0x8064 0x85E + 0x8070 0x85E + 0x807C 0x85C + 0x8030 0xFFD9FF + 0x803C 0xBFF9FF + 0x8048 0xFFF9FD + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF97F + 0x8078 0xFFF9EF + 0x8084 0xBFF9FF + 0x8098 0x6942 + 0x80B8 0x3E3E + 0x80D8 0x5A39 + 0x80F8 0x2C2C + 0x8118 0x4C4C + 0x8138 0x8E + 0x8158 0x8E + 0x8178 0x5A40 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD47000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 >; status = "ok"; }; From 4caccaf2ce83547ef76dd65e865fec8e5915683f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 11 Jan 2022 11:21:01 +0800 Subject: [PATCH 0643/1247] dts/panel: Milanf: add a new tianma panel(3rd) The old tianma panel with 11 mask has some issues. So rework a new panel(3rd panel) with 10 mask. Change-Id: I1ac85854470126767d4d6945aaafdbe4b8cb3386 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2166841 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...ot-tm-nt36672e-678-1080x2460-video-v1.dtsi | 113 ++++++++++++++++++ qcom/milanf-display.dtsi | 47 ++++++++ 2 files changed, 160 insertions(+) create mode 100644 qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi new file mode 100644 index 000000000000..1428f791e616 --- /dev/null +++ b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi @@ -0,0 +1,113 @@ +&mdss_mdp { + dsi_tm_nt36672e_678_fhdp_120_video_v1: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video_v1 { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 2>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <110>; + qcom,mdss-dsi-h-back-porch = <18>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <54>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 29 01 00 00 00 00 02 FF 10 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 36 00 + 29 01 00 00 00 00 06 3B 03 14 36 04 04 + 29 01 00 00 00 00 02 B0 00 + 29 01 00 00 00 00 02 C0 03 + 29 01 00 00 00 00 03 C2 1B A0 + 29 01 00 00 00 00 02 E9 01 + + 29 01 00 00 00 00 02 FF E0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 35 82 + 29 01 00 00 00 00 02 85 32 + + 29 01 00 00 00 00 02 FF F0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 1C 01 + 29 01 00 00 00 00 02 33 01 + 29 01 00 00 00 00 02 5A 00 + 29 01 00 00 00 00 02 9F 19 + + 29 01 00 00 00 00 02 FF D0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 53 22 + 29 01 00 00 00 00 02 54 02 + + 29 01 00 00 00 00 02 FF C0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 9C 11 + 29 01 00 00 00 00 02 9D 11 + + 29 01 00 00 00 00 02 FF 25 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 0F 1B + 29 01 00 00 00 00 02 18 20 + + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 C0 03 + 39 01 00 00 00 00 02 51 CC + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 01 + + 05 01 00 00 65 00 01 11 + 05 01 00 00 29 00 01 29 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 46 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + }; +}; diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 706dcebe9b0a..164abe2303b3 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -227,6 +228,52 @@ }; }; + +&dsi_tm_nt36672e_678_fhdp_120_video_v1 { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &qupv3_se10_i2c { status = "ok"; From 93b146501a7ae771243de5baf32ce74b26d9217a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 11 Jan 2022 15:04:39 +0800 Subject: [PATCH 0644/1247] dts/panel: Milanf: change the lable name of the 3rd panel Touch will use this name to find the right FW. The lable name of the 1st panel is "dsi_tm_nt36672e_678_fhdp_120_video". It is similar to "dsi_tm_nt36672e_678_fhdp_120_video_v1". So touch can not distinguish the 1st panel and 3rd panel. Change-Id: I6396cf465e0157f6c0a799a739feea63c2512b95 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2167018 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi | 2 +- qcom/milanf-display.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi index 1428f791e616..108a65db7797 100644 --- a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi +++ b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi @@ -1,5 +1,5 @@ &mdss_mdp { - dsi_tm_nt36672e_678_fhdp_120_video_v1: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video_v1 { + dsi_tianma_nt36672e_678_fhdp_120_video_v1: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video_v1 { qcom,mdss-dsi-panel-name = "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 164abe2303b3..554c87e6aeaf 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -229,7 +229,7 @@ }; -&dsi_tm_nt36672e_678_fhdp_120_video_v1 { +&dsi_tianma_nt36672e_678_fhdp_120_video_v1 { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 0c44ec29e6645b56efd73e4fe64a84c1c9ac27ce Mon Sep 17 00:00:00 2001 From: wutao Date: Tue, 11 Jan 2022 15:17:13 +0800 Subject: [PATCH 0645/1247] dtsi:add factory_mode_ntc_exist property in dtsi battery ntc is on the board,so battery temp is error in factorymode testing it doesnot test quick charger in moto-factory mode when battery is error set battery temp to 25 in moto-factory mode add factory_mode_ntc_exist property discriminate other project Change-Id: If45f5faf9fc9fe78ba26ad99647c7e164cff70f9 Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2167039 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 9c68e00f41b1..38096517f1ad 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -36,6 +36,7 @@ status = "okay"; sense_r_mohm = <5>; + factory_mode_ntc_exist = <0>; df-serialnum = "SB18D38323"; #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" @@ -56,6 +57,7 @@ sm,aging_ctrl = <0x0125>; sm,cycle_cfg = <0x7000>; sm,rsns = <0>; + factory_mode_ntc_exist = <0>; sm,fg_irq_set = <0x07FF>; sm,low_soc1 = <1>; sm,low_soc2 = <15>; From cf62dcb23f817e18dcf703152ae96e069b990947 Mon Sep 17 00:00:00 2001 From: huaqin85 Date: Thu, 6 Jan 2022 19:29:59 +0800 Subject: [PATCH 0646/1247] Fuel gauge battery full capacity setting to 97% Fuel gauge battery full capacity setting to 97% reduce battery full time less than 80Min Change-Id: Ia1fec623f76f1e77c2d4f85a82cc5c2461a1e130 Signed-off-by: huaqin85 Reviewed-on: https://gerrit.mot.com/2163705 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi | 1 + qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi index 2661c53e5618..997417964dd2 100644 --- a/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi +++ b/qcom/bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi @@ -13,6 +13,7 @@ ng50-ATL-5000mah-rhodep { serialnum = "SB18D38324"; fcc_design = <5000>; + ui_full = <97>; config_profile_info = [49 00 00 00 00 00 00 00 A6 C1 C0 C7 B9 B8 A4 69 3F FF DE A7 89 76 65 59 diff --git a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi index ceeeb271d890..ba5943e13444 100644 --- a/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi +++ b/qcom/bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi @@ -13,6 +13,7 @@ ng50-SWD-5000mah-rhodep { serialnum = "SB18D38323"; fcc_design = <5000>; + ui_full = <97>; config_profile_info = [49 00 00 00 00 00 00 00 AD C7 C2 C1 B1 AE B3 7D 55 D4 C1 9B 82 6C 5D 55 From a1b1ca6b6caeb1376ca1bf9046e4b237ff3654a7 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 11 Jan 2022 16:12:46 +0800 Subject: [PATCH 0647/1247] dts/panel: Milanf: change the lable name of the 3rd panel Touch will use this name to find the right FW. The lable name of the 1st panel is "dsi_tm_nt36672e_678_fhdp_120_video". It is similar to "dsi_tm_nt36672e_678_fhdp_120_video_v1". So touch can not distinguish the 1st panel and 3rd panel. Change-Id: Ib0f4e2f9687cc5e6f164a321124e6c36856085dc Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2167112 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi index 108a65db7797..e32fefb29038 100644 --- a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi +++ b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi @@ -1,5 +1,5 @@ &mdss_mdp { - dsi_tianma_nt36672e_678_fhdp_120_video_v1: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video_v1 { + dsi_tianma_nt36672e_678_fhdp_120_video_v1: qcom,mdss_dsi_tianma_nt36672e_678_fhdp_120_video_v1 { qcom,mdss-dsi-panel-name = "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; From 5eb51722466d992f71994b9ff6606ccb47796403 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Tue, 11 Jan 2022 17:42:28 +0800 Subject: [PATCH 0648/1247] milanf: arn64/dts: Add support for 3rd tianma panel - Add tianma panel as 3rd module name. - Add 3rd display panel name. Change-Id: I73f2f68480a3ea66266a40be0df57bd7c36a69b0 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2167251 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index d58b6e625138..a1a4aa1d59d5 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -84,8 +84,8 @@ novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; novatek,usb_charger; - novatek,panel-supplier = "tm","csot"; - panel = <&dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; + novatek,panel-supplier = "tianma","tm","csot"; + panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; status = "ok"; }; From d96d5aa4811a97abfc61cc86dbd2491b0127de53 Mon Sep 17 00:00:00 2001 From: wangxf14 Date: Fri, 14 Jan 2022 10:24:31 +0800 Subject: [PATCH 0649/1247] devicetree: qcom: remove evb dts configuration change the evb configuration as evt1 configuration for rhodep so that we can roll back the new hwid strategy to legacy strategy because the new hwid strategy have issue in matching the latest hwid. Change-Id: Icc1da0271040d79bf475238c476d14eb61affe5d Signed-off-by: wangxf14 Reviewed-on: https://gerrit.mot.com/2170359 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 2 -- qcom/blair-rhodep-evb-overlay.dts | 24 ------------------------ 2 files changed, 26 deletions(-) delete mode 100644 qcom/blair-rhodep-evb-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 22f9f6be56a6..0dfa6dfe34ae 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -101,13 +101,11 @@ blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ - blair-rhodep-evb-overlay.dtbo \ blair-rhodep-evt1-overlay.dtbo \ blair-rhodep-evt2-overlay.dtbo \ blair-rhodep-dvt1-overlay.dtbo \ blair-rhodep-dvt2-overlay.dtbo -blair-rhodep-evb-overlay.dtbo-base := blair-moto-rhodep-base.dtb blair-rhodep-evt1-overlay.dtbo-base := blair-moto-rhodep-base.dtb blair-rhodep-evt2-overlay.dtbo-base := blair-moto-rhodep-base.dtb blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-rhodep-base.dtb diff --git a/qcom/blair-rhodep-evb-overlay.dts b/qcom/blair-rhodep-evb-overlay.dts deleted file mode 100644 index 72d89ed4ae49..000000000000 --- a/qcom/blair-rhodep-evb-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "blair-rhodep-common-overlay.dtsi" - -/ { - model = "rhodep"; - compatible = "qcom,blair-rhodep", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x4D 0x9000>; -}; - From 089da18074d9bb30622bd6b8c0892467b2ee5e00 Mon Sep 17 00:00:00 2001 From: huaqin90 Date: Fri, 7 Jan 2022 14:59:51 +0800 Subject: [PATCH 0650/1247] rhodep: dvt2 the front camera dvdd modify[2/3] details: add dtsi in dts Change-Id: Ieac476323d56936194090cedb08591b23f48c405 Signed-off-by: huaqin90 Reviewed-on: https://gerrit.mot.com/2164683 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/blair-rhodep-dvt2-overlay.dts | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-rhodep-dvt2-overlay.dts b/qcom/blair-rhodep-dvt2-overlay.dts index ec9e49366f44..808c8c77054d 100644 --- a/qcom/blair-rhodep-dvt2-overlay.dts +++ b/qcom/blair-rhodep-dvt2-overlay.dts @@ -14,6 +14,7 @@ /plugin/; #include "blair-rhodep-common-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-rhodep-dvt2-overlay.dtsi" / { model = "rhodep"; From cb55f5dc6bc9da3388ccdb5db9bebbc0321aa88d Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Thu, 6 Jan 2022 15:23:30 +0800 Subject: [PATCH 0651/1247] arm64/dts:add panel node in focal fps -add panel node in focal fps -screen status interface for focal Change-Id: Id973b61c2221a4ad1ca5f512e8790a4dd8168e2a Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2163379 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yan Zhang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-fps-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-fps-overlay.dtsi b/qcom/rhodec-fps-overlay.dtsi index 9755149ad77b..85397f189233 100644 --- a/qcom/rhodec-fps-overlay.dtsi +++ b/qcom/rhodec-fps-overlay.dtsi @@ -170,6 +170,7 @@ fp,reset_gpio = <&tlmm 18 0>; fp,irq_gpio = <&tlmm 17 0>; fp,vdd_gpio = <&tlmm 6 0>; + panel = <&dsi_nt36672c_fhd_plus_120_video>; pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", "fpsensor_finger_rst_low","fpsensor_finger_rst_high", From 0dfdc1ee91a2f1efd938084ed580ab9224544ac7 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Wed, 12 Jan 2022 09:29:23 +0800 Subject: [PATCH 0652/1247] dts/panel: Panel: add panel-supply for nt36672c Modify: add panel-supply for nt36672c and change timing for cs ld13a avdd avee Change-Id: I2faa21f9ca80de91d2c2d85f3028c2f8c6975739 Reviewed-on: https://gerrit.mot.com/2167848 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 41 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 40 insertions(+), 1 deletion(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 09d2976e6941..2e4691033d37 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -130,12 +130,51 @@ }; }; +&soc { + dsi_panel_pwr_supply_nt36672c_rhodec: dsi_panel_pwr_supply_nt36672c_rhodec{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <150>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <5>; + }; + + }; +}; &dsi_nt36672c_fhd_plus_120_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_nt36672c_rhodec>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; qcom,mdss-dsi-bl-min-level = <8>; qcom,mdss-dsi-bl-max-level = <2047>; From 54dc324a816cdf3c2af854fda99751d9bb2f46de Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 14 Jan 2022 17:13:05 +0800 Subject: [PATCH 0653/1247] dts/panel: Rhodep: update the tm panel code Update the tm panel code. To enable Fast discharge. Change-Id: I044ae1d47dfa7f906a4c1323a7e10e71882aa4b1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2170511 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 10 +++++----- ...tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index ae43571132eb..79bf50750c23 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -126,7 +126,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -222,7 +222,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -318,7 +318,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -414,7 +414,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -510,7 +510,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 201535e5b927..0b61a18fab68 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -145,7 +145,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -282,7 +282,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -418,7 +418,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -554,7 +554,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 @@ -691,7 +691,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 04 B5 00 18 50 //swire pulse + 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 51 From 0d1d66cd919349d88d7dabf28b3be45760020923 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 14 Jan 2022 17:25:10 +0800 Subject: [PATCH 0654/1247] dts/panel: Rhodep: fix tianma nt37701 panel dc flicker issue fix tianma nt37701 panel dc flicker issue at refresh rate 48hz for Rhodep Change-Id: I918cfce8d511300b425b3e5715ba9cc23aafb6ed Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2170521 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Hujun Liao Reviewed-by: Yeqing Wang Submit-Approved: Jira Key --- ...el-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 4 ++-- ...el-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 79bf50750c23..9584bdb9328f 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -89,9 +89,9 @@ qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-dc-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 81 + 15 00 00 00 00 00 02 B2 91 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 + 39 00 00 00 00 00 07 B2 60 50 60 00 80 00 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 0b61a18fab68..500a25d70ec7 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -89,9 +89,9 @@ qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-dc-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 81 + 15 00 00 00 00 00 02 B2 91 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 07 B2 00 00 06 91 06 91 + 39 00 00 00 00 00 07 B2 60 50 60 00 80 00 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 From f36db8c8ccd06aa10dca098c015d0819151c4635 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 17 Jan 2022 15:05:16 +0800 Subject: [PATCH 0655/1247] dts/panel: Rhodep: update the csot panel init code 1.remove the unused code. 2,corret the backlight setting. Change-Id: I8c39a8c15a79bbe626dc06f510faf309b1d8bf68 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2171591 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...sot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 12 +----------- ...t-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 13 +------------ 2 files changed, 2 insertions(+), 23 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 32f00604dba0..7d3d55eee06d 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -60,7 +60,7 @@ qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ 39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 07 FF]; + 39 01 00 00 00 00 03 51 0D BA]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ @@ -146,8 +146,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -230,8 +228,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -314,8 +310,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -398,8 +392,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -482,8 +474,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi index bde58f8a7f29..af793b3a4f36 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -61,7 +61,7 @@ qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ 39 01 00 00 00 00 03 51 0F FF]; qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 07 FF]; + 39 01 00 00 00 00 03 51 0D BA]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ @@ -151,8 +151,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -239,9 +237,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -328,8 +323,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -416,8 +409,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -505,8 +496,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 - 39 01 00 00 00 00 05 3B 00 10 00 20 - 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 From 6cfd6a9b2611cbae4f6c3eba19e52848b12c7ac0 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 18 Jan 2022 16:06:11 +0800 Subject: [PATCH 0656/1247] arm/dts: As HW require, config charging current 2.9A As HW require for battery spec, config charging current 2.9A for real charging current <= 3A. Change-Id: I47c04dd99499db61382af22e0f610876bcba2518 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2172945 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 7626ef876c44..10990be0f602 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -224,14 +224,14 @@ /delete-property/ mmi,bat-ocp-ua; mmi,max-fv-mv = <4400>; mmi,chrg-iterm-ma = <150>; - mmi,max-fcc-ma = <3000>; + mmi,max-fcc-ma = <2900>; mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18C77591"; mmi,mmi-temp-zones = <0 4200 1000 0>, <15 0 1000 1000>, - <45 0 3000 3000>, + <45 0 2900 2900>, <60 4200 2500 0>; - mmi,thermal-mitigation = <3000000 2500000 + mmi,thermal-mitigation = <2900000 2500000 2000000 1500000 1200000 900000 600000 300000>; From 7ea03451f2bb7bc84ee670300d16ef2170602289 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 19 Jan 2022 10:42:20 +0800 Subject: [PATCH 0657/1247] arm/dts: config mmi,usb-pd-supported config mmi,usb-pd-supported for milanf Change-Id: I57a28fb5cb947eb8a4e414fe9625d69d4ce775b9 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2174033 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Wei Xu Reviewed-by: Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + qcom/discrete_charging.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 10990be0f602..615724b665cf 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -222,6 +222,7 @@ &mmi_discrete_charger { /delete-property/ mmi,bat-ocp-ua; + /delete-property/ mmi,usb-pd-supported; mmi,max-fv-mv = <4400>; mmi,chrg-iterm-ma = <150>; mmi,max-fcc-ma = <2900>; diff --git a/qcom/discrete_charging.dtsi b/qcom/discrete_charging.dtsi index ed2428b30dbb..7f31b2b7be03 100644 --- a/qcom/discrete_charging.dtsi +++ b/qcom/discrete_charging.dtsi @@ -189,6 +189,7 @@ 2000000 1500000 1200000 900000 600000 300000>; + mmi,usb-pd-supported; }; }; From eb1ccde200af411505d9a076244e1af19d64f67f Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 18 Jan 2022 14:16:00 +0800 Subject: [PATCH 0658/1247] arm/dts: sm5602 fg support muti-battery parameter for rhodep via serialnum & df-serialnum battery id to search different battery parameter. Change-Id: I720b699f215cca417d3ec098bac3c987d51dc8cd Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2172524 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Wei Xu Submit-Approved: Jira Key --- qcom/bat_setting/SM5602_NE50_ATL_Rhodep.dtsi | 52 +++++++++++++ qcom/bat_setting/SM5602_NE50_SWD_Rhodep.dtsi | 52 +++++++++++++ qcom/blair-rhodep-common-overlay.dtsi | 81 +------------------- 3 files changed, 108 insertions(+), 77 deletions(-) create mode 100644 qcom/bat_setting/SM5602_NE50_ATL_Rhodep.dtsi create mode 100644 qcom/bat_setting/SM5602_NE50_SWD_Rhodep.dtsi diff --git a/qcom/bat_setting/SM5602_NE50_ATL_Rhodep.dtsi b/qcom/bat_setting/SM5602_NE50_ATL_Rhodep.dtsi new file mode 100644 index 000000000000..2fede77d11aa --- /dev/null +++ b/qcom/bat_setting/SM5602_NE50_ATL_Rhodep.dtsi @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2022 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +SM5602_NE50_ATL { + serialnum = "SB18D38324"; + + battery,param_version = <2>; + battery,max_voltage_uv = <4450000>; + battery,battery_type = <4450 0x0 0x2666>; + battery,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 + 0x1DE7 0x1E11 0x1E44 0x1E78 0x1F09 0x1F62 0x1FB2 0x1FE2 + 0x200E 0x20DC 0x218F 0x220C 0x2261 0x2301 0x2344 0x2733>; + battery,battery_table1 = <0x0 0x84 0x18F 0x31F 0x42A 0x534 0x74A 0xB74 0xF9F 0x14D4 + 0x1A0A 0x21DA 0x317A 0x36AF 0x394A 0x3BE5 0x3E7F 0x48EA + 0x50BA 0x55EF 0x5995 0x60DF 0x6400 0x64E6>; + battery,battery_table2 = <0x1F2D 0x181A 0x1516 0x1213 0x1111 0x1010 0x0F0F 0x0F0F>; + battery,alpha = <0x00CC>; + battery,beta = <0x0025>; + battery,rs = <0x805F>; + battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery,vit_period = <0x325A>; + battery,volt_cal = <0x8000>; + battery,mix_value = <0x0003>; + battery,curr_offset = <0x000>; + battery,curr_slope = <0x8080>; + battery,topoff_soc = <7 343>; + battery,temp_std = <25>; + battery,temp_offset = <0 11 1 0 8 (-1)>; + battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; + battery,tem_poff = <3400 100>; + battery,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 +}; diff --git a/qcom/bat_setting/SM5602_NE50_SWD_Rhodep.dtsi b/qcom/bat_setting/SM5602_NE50_SWD_Rhodep.dtsi new file mode 100644 index 000000000000..c82c5c961a06 --- /dev/null +++ b/qcom/bat_setting/SM5602_NE50_SWD_Rhodep.dtsi @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2022 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +SM5602_NE50_SWD { + serialnum = "SB18D38323"; + + battery,param_version = <2>; + battery,max_voltage_uv = <4450000>; + battery,battery_type = <4450 0x0 0x2600>; + battery,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B + 0x1DD6 0x1E0A 0x1E39 0x1E77 0x1ECB 0x1F2B 0x1F59 0x1FE1 + 0x200E 0x20E1 0x2195 0x2214 0x226A 0x230B 0x234E 0x2733>; + battery,battery_table1 = <0x0 0x85 0x193 0x2A0 0x327 0x435 0x650 0xA86 0xEBC 0x13FF + 0x1942 0x2127 0x2BAE 0x3393 0x3635 0x3B78 0x3E1A 0x48A1 + 0x5086 0x55C9 0x5979 0x60D7 0x6400 0x64E6>; + battery,battery_table2 = <0x1C28 0x1618 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; + battery,alpha = <0x00CC>; + battery,beta = <0x0025>; + battery,rs = <0x805F>; + battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery,vit_period = <0x325A>; + battery,volt_cal = <0x8000>; + battery,mix_value = <0x0003>; + battery,curr_offset = <0x000>; + battery,curr_slope = <0x8080>; + battery,topoff_soc = <7 343>; + battery,temp_std = <25>; + battery,temp_offset = <0 11 1 0 8 (-1)>; + battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; + battery,tem_poff = <3400 100>; + battery,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C + 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E + 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD + 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E + 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 + 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 + 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 + 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 + 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF + 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D + 0x8F85>; //NTC value(DEC) table -20~80 +}; diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 38096517f1ad..1bfa330306b2 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -69,83 +69,10 @@ sm,t_h_alarm_in = <1>; sm,t_l_alarm_ex = <0xD3D8>; sm,t_h_alarm_ex = <0x9245>; - battery_params { - //battery,id = <0>; - //NE50(SWD) - battery0,param_version = <2>; - battery0,max_voltage_uv = <4450000>; - battery0,battery_type = <4450 0x0 0x2600>; - battery0,battery_table0 = <0x1400 0x1C6C 0x1CE7 0x1D42 0x1D64 0x1D84 0x1D91 0x1D9B - 0x1DD6 0x1E0A 0x1E39 0x1E77 0x1ECB 0x1F2B 0x1F59 0x1FE1 - 0x200E 0x20E1 0x2195 0x2214 0x226A 0x230B 0x234E 0x2733>; - battery0,battery_table1 = <0x0 0x85 0x193 0x2A0 0x327 0x435 0x650 0xA86 0xEBC 0x13FF - 0x1942 0x2127 0x2BAE 0x3393 0x3635 0x3B78 0x3E1A 0x48A1 - 0x5086 0x55C9 0x5979 0x60D7 0x6400 0x64E6>; - battery0,battery_table2 = <0x1C28 0x1618 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; - battery0,alpha = <0x00CC>; - battery0,beta = <0x0025>; - battery0,rs = <0x805F>; - battery0,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery0,vit_period = <0x325A>; - battery0,volt_cal = <0x8000>; - battery0,mix_value = <0x0003>; - battery0,curr_offset = <0x000>; - battery0,curr_slope = <0x8080>; - battery0,topoff_soc = <7 343>; - battery0,temp_std = <25>; - battery0,temp_offset = <0 11 1 0 8 (-1)>; - battery0,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery0,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; - battery0,tem_poff = <3400 100>; - battery0,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C - 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E - 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD - 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E - 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 - 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 - 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 - 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 - 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF - 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D - 0x8F85>; //NTC value(DEC) table -20~80 - //NE50(ATL) - battery1,param_version = <2>; - battery1,max_voltage_uv = <4450000>; - battery1,battery_type = <4450 0x0 0x2666>; - battery1,battery_table0 = <0x1400 0x1C9E 0x1D11 0x1D72 0x1D83 0x1D88 0x1D90 0x1DB5 - 0x1DE7 0x1E11 0x1E44 0x1E78 0x1F09 0x1F62 0x1FB2 0x1FE2 - 0x200E 0x20DC 0x218F 0x220C 0x2261 0x2301 0x2344 0x2733>; - battery1,battery_table1 = <0x0 0x84 0x18F 0x31F 0x42A 0x534 0x74A 0xB74 0xF9F 0x14D4 - 0x1A0A 0x21DA 0x317A 0x36AF 0x394A 0x3BE5 0x3E7F 0x48EA - 0x50BA 0x55EF 0x5995 0x60DF 0x6400 0x64E6>; - battery1,battery_table2 = <0x1F2D 0x181A 0x1516 0x1213 0x1111 0x1010 0x0F0F 0x0F0F>; - battery1,alpha = <0x00CC>; - battery1,beta = <0x0025>; - battery1,rs = <0x805F>; - battery1,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery1,vit_period = <0x325A>; - battery1,volt_cal = <0x8000>; - battery1,mix_value = <0x0003>; - battery1,curr_offset = <0x000>; - battery1,curr_slope = <0x8080>; - battery1,topoff_soc = <7 343>; - battery1,temp_std = <25>; - battery1,temp_offset = <0 11 1 0 8 (-1)>; - battery1,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery1,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; - battery1,tem_poff = <3400 100>; - battery1,thermal_table = <0x3EEF 0x3957 0x3234 0x2C25 0x2654 0x2089 0x1B71 0x1574 0x1068 0x0B3C - 0x0640 0x0181 0xF4FA 0xF09D 0xEC1E 0xE82D 0xE3B3 0xDFE0 0xDC28 0xD88E - 0xD580 0xD22A 0xCF03 0xCC0B 0xC944 0xC68E 0xC405 0xC169 0xBF0F 0xBCFD - 0xBABE 0xB889 0xB692 0xB4AB 0xB2E5 0xB127 0xAF8E 0xAE0F 0xAC8A 0xAB1E - 0xA9E9 0xA888 0xA742 0xA620 0xA4A5 0xA39C 0xA2A5 0xA1BE 0xA0CF 0x9FF9 - 0x9F2C 0x9E67 0x9DA0 0x9CEC 0x9C43 0x9BA1 0x9AFF 0x9A6F 0x99D9 0x9950 - 0x98D0 0x9857 0x97E8 0x9776 0x96FD 0x9695 0x9632 0x95D5 0x9579 0x9522 - 0x94CF 0x9480 0x9434 0x93EB 0x93A4 0x9361 0x9322 0x92E7 0x92AF 0x9278 - 0x9242 0x920E 0x91DD 0x91AF 0x9181 0x9156 0x912E 0x9107 0x90E2 0x90BF - 0x909C 0x907A 0x905A 0x903B 0x901E 0x9003 0x8FE7 0x8FCE 0x8FB4 0x8F9D - 0x8F85>; //NTC value(DEC) table -20~80 - }; + + df-serialnum = "SB18D38324"; + #include "bat_setting/SM5602_NE50_ATL_Rhodep.dtsi" + #include "bat_setting/SM5602_NE50_SWD_Rhodep.dtsi" }; }; From 4f8e563c8e29b3a21745967dd75a01335856d7c5 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 18 Jan 2022 14:40:28 +0800 Subject: [PATCH 0659/1247] arm/dts: sm5602 fg support muti-battery parameter for RhodeC via serialnum & df-serialnum battery id to search different battery parameter. Change-Id: Ie3b3b70acdb94b78502f9f7761a1d35c83d85899 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2172546 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi | 52 ++++++++++++ .../bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi | 52 ++++++++++++ qcom/discrete_charging_holi.dtsi | 81 +------------------ 3 files changed, 108 insertions(+), 77 deletions(-) create mode 100644 qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi create mode 100644 qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi diff --git a/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi b/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi new file mode 100644 index 000000000000..d6ae5922e98d --- /dev/null +++ b/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2022 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +SM5602_ND50_ATL { + serialnum = "SB18D24973"; + + battery,param_version = <3>; + battery,max_voltage_uv = <4450000>; + battery,battery_type = <4450 0x0 0x26CC>; + battery,battery_table0 = <0x1400 0x1CA1 0x1D13 0x1D75 0x1D8B 0x1D8E 0x1D97 0x1DC4 + 0x1DF4 0x1E1B 0x1E4A 0x1E78 0x1EC8 0x1F28 0x1F6E 0x1FAB + 0x1FFE 0x20C8 0x2174 0x21F0 0x2247 0x22EE 0x2340 0x2733>; + battery,battery_table1 = <0x0 0x83 0x18B 0x316 0x526 0x62E 0x946 0xC5E 0x107E 0x15A5 + 0x1ACD 0x2288 0x2CD8 0x3493 0x3727 0x39BB 0x3EE2 0x4931 + 0x50ED 0x5614 0x59B0 0x60E8 0x6400 0x64E6>; + battery,battery_table2 = <0x1E2E 0x1719 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; + battery,alpha = <0x00CC>; + battery,beta = <0x0025>; + battery,rs = <0x805F>; + battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery,vit_period = <0x325A>; + battery,volt_cal = <0x8000>; + battery,mix_value = <0x0003>; + battery,curr_offset = <0x000>; + battery,curr_slope = <0x8080>; + battery,topoff_soc = <7 343>; + battery,temp_std = <25>; + battery,temp_offset = <0 11 1 0 8 (-1)>; + battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; + battery,tem_poff = <3400 100>; + battery,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 + 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 + 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 + 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 + 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 + 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B + 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 + 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B + 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 + 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F + 0x8F89>; //NTC value(DEC) table -20~80 +}; diff --git a/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi b/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi new file mode 100644 index 000000000000..59f1c89b68f6 --- /dev/null +++ b/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2022 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +SM5602_ND50_JIADE { + serialnum = "SB18D25053"; + + battery,param_version = <3>; + battery,max_voltage_uv = <4450000>; + battery,battery_type = <4450 0x0 0x2699>; + battery,battery_table0 = <0x1400 0x1C5F 0x1CE0 0x1D63 0x1D87 0x1D90 0x1D95 0x1DB6 + 0x1DE9 0x1E13 0x1E43 0x1E77 0x1EC9 0x1F24 0x1F54 0x1FA3 + 0x2000 0x20C9 0x2178 0x21F3 0x2247 0x22EA 0x2331 0x2733>; + battery,battery_table1 = <0x0 0x83 0x18D 0x31B 0x4A9 0x6BB 0x8CE 0xBEA 0x100F 0x153D + 0x1A6C 0x2231 0x2C8E 0x3454 0x36EB 0x3983 0x3EB1 0x490E + 0x50D4 0x5602 0x59A3 0x60E4 0x6400 0x64E6>; + battery,battery_table2 = <0x2537 0x1C1F 0x1819 0x1415 0x1213 0x1011 0x1010 0x0F0F>; + battery,alpha = <0x00CC>; + battery,beta = <0x0025>; + battery,rs = <0x805F>; + battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; + battery,vit_period = <0x325A>; + battery,volt_cal = <0x8000>; + battery,mix_value = <0x0003>; + battery,curr_offset = <0x000>; + battery,curr_slope = <0x8080>; + battery,topoff_soc = <7 343>; + battery,temp_std = <25>; + battery,temp_offset = <0 11 1 0 8 (-1)>; + battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; + battery,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; + battery,tem_poff = <3400 100>; + battery,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 + 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 + 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 + 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 + 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 + 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B + 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 + 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B + 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 + 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F + 0x8F89>; //NTC value(DEC) table -20~80 +}; diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 807ab0c5b359..ddb0911bbeee 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -69,83 +69,10 @@ sm,t_h_alarm_in = <1>; sm,t_l_alarm_ex = <0xD3D8>; sm,t_h_alarm_ex = <0x9245>; - battery_params { - //battery,id = <0>; - //ND50(ATL) - battery0,param_version = <3>; - battery0,max_voltage_uv = <4450000>; - battery0,battery_type = <4450 0x0 0x26CC>; - battery0,battery_table0 = <0x1400 0x1CA1 0x1D13 0x1D75 0x1D8B 0x1D8E 0x1D97 0x1DC4 - 0x1DF4 0x1E1B 0x1E4A 0x1E78 0x1EC8 0x1F28 0x1F6E 0x1FAB - 0x1FFE 0x20C8 0x2174 0x21F0 0x2247 0x22EE 0x2340 0x2733>; - battery0,battery_table1 = <0x0 0x83 0x18B 0x316 0x526 0x62E 0x946 0xC5E 0x107E 0x15A5 - 0x1ACD 0x2288 0x2CD8 0x3493 0x3727 0x39BB 0x3EE2 0x4931 - 0x50ED 0x5614 0x59B0 0x60E8 0x6400 0x64E6>; - battery0,battery_table2 = <0x1E2E 0x1719 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; - battery0,alpha = <0x00CC>; - battery0,beta = <0x0025>; - battery0,rs = <0x805F>; - battery0,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery0,vit_period = <0x325A>; - battery0,volt_cal = <0x8000>; - battery0,mix_value = <0x0003>; - battery0,curr_offset = <0x000>; - battery0,curr_slope = <0x8080>; - battery0,topoff_soc = <7 343>; - battery0,temp_std = <25>; - battery0,temp_offset = <0 11 1 0 8 (-1)>; - battery0,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery0,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; - battery0,tem_poff = <3400 100>; - battery0,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 - 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 - 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 - 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 - 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 - 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B - 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 - 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B - 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 - 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F - 0x8F89>; //NTC value(DEC) table -20~80 - //ND50(JIADE) - battery1,param_version = <3>; - battery1,max_voltage_uv = <4450000>; - battery1,battery_type = <4450 0x0 0x2699>; - battery1,battery_table0 = <0x1400 0x1C5F 0x1CE0 0x1D63 0x1D87 0x1D90 0x1D95 0x1DB6 - 0x1DE9 0x1E13 0x1E43 0x1E77 0x1EC9 0x1F24 0x1F54 0x1FA3 - 0x2000 0x20C9 0x2178 0x21F3 0x2247 0x22EA 0x2331 0x2733>; - battery1,battery_table1 = <0x0 0x83 0x18D 0x31B 0x4A9 0x6BB 0x8CE 0xBEA 0x100F 0x153D - 0x1A6C 0x2231 0x2C8E 0x3454 0x36EB 0x3983 0x3EB1 0x490E - 0x50D4 0x5602 0x59A3 0x60E4 0x6400 0x64E6>; - battery1,battery_table2 = <0x2537 0x1C1F 0x1819 0x1415 0x1213 0x1011 0x1010 0x0F0F>; - battery1,alpha = <0x00CC>; - battery1,beta = <0x0025>; - battery1,rs = <0x805F>; - battery1,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery1,vit_period = <0x325A>; - battery1,volt_cal = <0x8000>; - battery1,mix_value = <0x0003>; - battery1,curr_offset = <0x000>; - battery1,curr_slope = <0x8080>; - battery1,topoff_soc = <7 343>; - battery1,temp_std = <25>; - battery1,temp_offset = <0 11 1 0 8 (-1)>; - battery1,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery1,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; - battery1,tem_poff = <3400 100>; - battery1,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 - 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 - 0xD414 0xD0E7 0xCDDA 0xCAEF 0xC827 0xC57C 0xC2EE 0xC07F 0xBE2D 0xBBF2 - 0xB9D5 0xB7CE 0xB5E1 0xB409 0xB248 0xB09A 0xAF03 0xAD7D 0xAC08 0xAAA8 - 0xA957 0xA818 0xA6DD 0xA5BD 0xA4A7 0xA39C 0xA2A1 0xA1B1 0xA0CA 0x9FF3 - 0x9F22 0x9E58 0x9D99 0x9CE6 0x9C3B 0x9B94 0x9AF6 0x9A61 0x99D2 0x994B - 0x98CB 0x984E 0x97D6 0x9765 0x96FA 0x9693 0x9632 0x95D4 0x9579 0x9522 - 0x94D0 0x9481 0x9435 0x93EC 0x93A6 0x9364 0x9325 0x92EA 0x92B1 0x927B - 0x9246 0x9212 0x91E1 0x91B2 0x9185 0x915A 0x9132 0x910B 0x90E6 0x90C2 - 0x90A0 0x907F 0x905E 0x903F 0x9022 0x9005 0x8FEA 0x8FD0 0x8FB7 0x8F9F - 0x8F89>; //NTC value(DEC) table -20~80 - }; + + df-serialnum = "SB18D24973"; + #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" + #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi.dtsi" }; sgm4154x: sgm4154x@3B { From 19f8f49e6c76a85240cef044c1238334719685fd Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 19 Jan 2022 14:06:27 +0800 Subject: [PATCH 0660/1247] dts/panel: rhodep: modify tianma nt37701 v2 panel od code modify tianma nt37701 v2 panel od code for rhodep Change-Id: I95b9e353d127dfd2b44ddf5c10104baf3035c5d4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2174161 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 62 ++++++++----------- 1 file changed, 26 insertions(+), 36 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 500a25d70ec7..7bda9ae23ec6 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -123,7 +123,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -195,7 +194,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -215,8 +213,8 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 E1 A1 + 39 01 00 00 00 00 06 F0 55 AA 52 08 08 + 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -260,7 +258,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -332,7 +329,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -352,8 +348,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 E1 A1 + 39 01 00 00 00 00 06 F0 55 AA 52 08 08 + 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -396,7 +392,6 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -467,7 +462,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -487,8 +481,8 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 E1 A1 + 39 01 00 00 00 00 06 F0 55 AA 52 08 08 + 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -532,7 +526,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -540,15 +533,15 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //FFD SPR Pixel Type Setting - 15 00 00 00 06 00 02 6F 04 - 15 00 00 00 06 00 02 C1 00 + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 //FFD RAM Setting, RAMOFF_IDLE_DMR 39 00 00 00 00 00 06 F0 55 AA 52 08 00 39 00 00 00 00 00 04 C0 0E B3 20 //ODS part 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 06 00 02 6F 03 - 15 00 00 00 06 00 02 C1 03 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; qcom,mdss-dsi-on-command = [ @@ -604,7 +597,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 @@ -612,20 +604,20 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //FFD SPR Pixel Type Setting - 15 00 00 00 06 00 02 6F 04 - 15 00 00 00 06 00 02 C1 00 + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 //FFD RAM Setting, RAMOFF_IDLE_DMR 39 00 00 00 00 00 06 F0 55 AA 52 08 00 39 00 00 00 00 00 04 C0 0E B3 20 //ODS part 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 06 00 02 6F 03 - 15 00 00 00 06 00 02 C1 03 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 E1 A1 + 39 01 00 00 00 00 06 F0 55 AA 52 08 08 + 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -669,7 +661,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 @@ -677,15 +668,15 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //FFD SPR Pixel Type Setting - 15 00 00 00 06 00 02 6F 04 - 15 00 00 00 06 00 02 C1 00 + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 //FFD RAM Setting, RAMOFF_IDLE_DMR 39 00 00 00 00 00 06 F0 55 AA 52 08 00 39 00 00 00 00 00 04 C0 0E B3 20 //ODS part 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 06 00 02 6F 03 - 15 00 00 00 06 00 02 C1 03 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; qcom,mdss-dsi-on-command = [ @@ -741,7 +732,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz // FFD2.0 RGB OFS CTRL 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 06 E1 00 03 03 03 00 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 @@ -749,20 +739,20 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 //FFD SPR Pixel Type Setting - 15 00 00 00 06 00 02 6F 04 - 15 00 00 00 06 00 02 C1 00 + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 //FFD RAM Setting, RAMOFF_IDLE_DMR 39 00 00 00 00 00 06 F0 55 AA 52 08 00 39 00 00 00 00 00 04 C0 0E B3 20 //ODS part 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 06 00 02 6F 03 - 15 00 00 00 06 00 02 C1 03 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 E1 A1 + 39 01 00 00 00 00 06 F0 55 AA 52 08 08 + 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off From 6425281c886fe43d04a4b9c6340e5ecd4c3ede33 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 20 Jan 2022 09:51:09 +0800 Subject: [PATCH 0661/1247] arm/dts: fix build err as include wrong dts name fix inlucde the wrong dts file name result in build error. Change-Id: I86872a38955e4ed1aa9c9254aed9b331e56a136e Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2175021 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index ddb0911bbeee..207071fe8e98 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -72,7 +72,7 @@ df-serialnum = "SB18D24973"; #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" - #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi.dtsi" + #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" }; sgm4154x: sgm4154x@3B { From 5cfb493e09cd30a3d4289b5a2b83793ff9026c3b Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 19 Jan 2022 20:20:30 +0800 Subject: [PATCH 0662/1247] arm/dts: rt9426a add init_ocv_table add this ocv_tabel for getting real capacity when inserting the battery Change-Id: I578246e616e015991a2a76a402e66379a2ede3d5 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2174555 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-amperex-5000mah.dtsi | 10 ++++++++++ qcom/bat_setting/RT_md50-scud-5000mah.dtsi | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi index ed36f0660625..b49897ca04bd 100644 --- a/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-amperex-5000mah.dtsi @@ -16,6 +16,16 @@ md50-amperex-5000mah { rt,fcc_design = <5000>; rt,fcc = <4654 4654 4654 4654 4654>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; + rt,init_ocv_table = <3400 3485 3571 3614 3657 3683 3683 3686 3690 3695 + 3699 3704 3708 3712 3717 3721 3726 3731 3736 3740 + 3745 3750 3754 3759 3764 3767 3771 3775 3778 3782 + 3786 3789 3793 3797 3800 3804 3808 3811 3815 3819 + 3822 3827 3831 3835 3840 3844 3849 3853 3857 3863 + 3869 3875 3882 3888 3895 3905 3915 3925 3935 3946 + 3956 3966 3976 3985 3995 4005 4014 4024 4033 4043 + 4053 4062 4073 4083 4094 4105 4116 4127 4138 4149 + 4160 4171 4182 4193 4204 4215 4227 4238 4249 4260 + 4271 4283 4294 4305 4312 4318 4325 4331 4338 4344 4351>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 80 34 00 00 FB 3E 00 20 FB 0A 1D 32 12 05 5A 5A 00 82 00 02 00 02 00 40 00 40 2E 12 2E 12 04 24 diff --git a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi index 48e56691db57..aec4edd1833d 100644 --- a/qcom/bat_setting/RT_md50-scud-5000mah.dtsi +++ b/qcom/bat_setting/RT_md50-scud-5000mah.dtsi @@ -16,6 +16,16 @@ md50-scud-5000mah { rt,fcc_design = <5000>; rt,fcc = <4540 4540 4540 4540 4540>; rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; + rt,init_ocv_table = <3400 3483 3567 3609 3651 3678 3682 3685 3689 3693 + 3697 3700 3704 3708 3711 3716 3722 3727 3732 3738 + 3743 3748 3754 3759 3764 3768 3773 3777 3781 3785 + 3789 3793 3797 3801 3805 3809 3813 3817 3821 3825 + 3829 3834 3839 3844 3848 3853 3858 3862 3867 3873 + 3880 3888 3895 3903 3910 3917 3924 3930 3938 3949 + 3959 3970 3980 3991 4002 4012 4023 4034 4044 4055 + 4066 4076 4088 4101 4113 4125 4138 4150 4163 4175 + 4185 4193 4201 4209 4217 4226 4237 4248 4258 4269 + 4280 4290 4301 4312 4317 4322 4326 4331 4335 4340 4345>; rt,fg_extreg_table = [80 80 33 6E B7 E4 58 02 CF 98 61 3A 88 81 00 00 80 34 00 00 FB 3E 00 20 FB 0A 1D 32 12 05 5A 5A 00 82 00 02 00 02 00 40 00 40 BC 11 BC 11 04 24 From 6b3975290710b8f3626d08b4fd601cfbd29d99ba Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 19 Jan 2022 15:38:18 +0800 Subject: [PATCH 0663/1247] dtsi/panel: The second panel tianma-ili7807s bringup Modify: Bringup second panel tianma-ili7807s panel,add the new panel devicetree and moto definition. Change-Id: Ie67882cdc1e53ba5247c0cb70c595ae2cbabb00c Reviewed-on: https://gerrit.mot.com/2174302 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-mot-txd-ili7807s-645-1080x2400-video.dtsi | 107 ++++++++++++++++++ qcom/rhodec-display.dtsi | 63 +++++++++++ 2 files changed, 170 insertions(+) create mode 100644 qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi new file mode 100644 index 000000000000..37e104b05a50 --- /dev/null +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -0,0 +1,107 @@ +&mdss_mdp { + dsi_ili7807s_fhd_plus_120_video: qcom,mdss_dsi_txd_ili7807s_645_fhd_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_txd_ili7807s_fhdp_645_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xfff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 12>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <24>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <12>; + qcom,mdss-dsi-v-front-porch = <2565>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + + qcom,mdss-dsi-on-command = + [ + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 39 01 00 00 00 00 06 3B 03 14 36 04 04 + 15 01 00 00 00 00 02 B0 00 + 39 01 00 00 00 00 03 C2 1B A0 + + 15 01 00 00 00 00 02 FF F0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 1C 01 + 15 01 00 00 00 00 02 33 01 + 15 01 00 00 00 00 02 5A 00 + 15 01 00 00 00 00 02 FF D0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 53 22 + 15 01 00 00 00 00 02 54 02 + 15 01 00 00 00 00 02 FF C0 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 9C 11 + 15 01 00 00 00 00 02 9D 11 + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 15 01 00 00 00 00 02 C0 03 + 15 01 00 00 00 00 02 51 CC + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 64 00 01 11 + 05 01 00 00 48 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 32 00 01 28 + 05 01 00 00 96 00 01 10 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <10>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + + }; +}; diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 2e4691033d37..f3c929b275d6 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -2,6 +2,7 @@ #include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" +#include "dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -214,6 +215,68 @@ }; }; +&dsi_ili7807s_fhd_plus_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + //qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + //qcom,mdss-dsi-panel-hdr-enabled; + //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 + // 16770 15010 32385 7770 1830>; + //qcom,mdss-dsi-panel-peak-brightness = <4500000>; + //qcom,mdss-dsi-panel-blackness-level = <3000>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x2F>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 06 06 22 20 07 + 06 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &dsi_csot_ili7807s_678_fhd_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From cd834bf9d1936cbd4c9455af1e257e2ebf8d1368 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Fri, 21 Jan 2022 21:42:18 +0800 Subject: [PATCH 0664/1247] dts/rhodec: Bringup touch TXD ILI7807S - Add panel name dsi_txd_ili7807s_678_fhd_video for compatible with tongxingda panel. Change-Id: I5e44c474bf7d71bda7f55797f85479d9c234a6d0 Reviewed-on: https://gerrit.mot.com/2176649 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 54 ++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index eefce25d3c43..61202dfb3c67 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -67,6 +67,45 @@ bias-bus-hold; }; }; + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; }; &qupv3_se0_spi { @@ -88,4 +127,19 @@ panel = <&dsi_nt36672c_fhd_plus_120_video>; status = "ok"; }; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili7807s_fhd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili7807s"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + status = "ok"; + }; }; From f8f0b241a3dc7bfafa18bf098125882e41b8ea65 Mon Sep 17 00:00:00 2001 From: huaqin70 Date: Fri, 21 Jan 2022 18:54:01 +0800 Subject: [PATCH 0665/1247] rhodep:The mosi pin timing test of spi appears back hook The mosi pin timing test of spi appears back hook Look good Change-Id: I31d7e1b805556631b3c506aff5a60c9d74b96715 Signed-off-by: huaqin70 Reviewed-on: https://gerrit.mot.com/2176581 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index fa682829092e..adabc15c907d 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -24,7 +24,7 @@ config { pins = "gpio0", "gpio1", "gpio2"; - drive-strength = <6>; + drive-strength = <10>; bias-disable; }; }; @@ -37,7 +37,7 @@ config { pins = "gpio0", "gpio1", "gpio2"; - drive-strength = <6>; + drive-strength = <10>; bias-disable; }; }; @@ -50,7 +50,7 @@ config { pins = "gpio3"; - drive-strength = <6>; + drive-strength = <10>; bias-disable; }; }; @@ -63,7 +63,7 @@ config { pins = "gpio3"; - drive-strength = <6>; + drive-strength = <10>; bias-pull-up; }; }; From b00b5c467ca1a21bd786127c7af4320deb6c6008 Mon Sep 17 00:00:00 2001 From: huaqin72 Date: Mon, 24 Jan 2022 18:08:18 +0800 Subject: [PATCH 0666/1247] arm/dtsi: rhodep: Enhanced mipi drive capability MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Enhanced mipi drive capability: 1.Because the mipi driving ability is insufficient, the mipi driving ability is enhanced by increasing the dtsi customization parameters Change-Id: I8ac14ef1034d375db9a8bf0806a54dcbf89f6daa Signed-off-by: huaqin72 Reviewed-on: https://gerrit.mot.com/2177639 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/rhodep-display.dtsi | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/qcom/rhodep-display.dtsi b/qcom/rhodep-display.dtsi index 5ea4391ee0ca..2353bc044c90 100644 --- a/qcom/rhodep-display.dtsi +++ b/qcom/rhodep-display.dtsi @@ -141,6 +141,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -148,6 +149,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -155,6 +157,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -162,6 +165,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -169,6 +173,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -207,6 +212,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -214,6 +220,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -221,6 +228,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -228,6 +236,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -235,6 +244,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -273,6 +283,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -280,6 +291,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -287,6 +299,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + vqcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -294,6 +307,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -301,6 +315,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -339,6 +354,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -346,6 +362,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -353,6 +370,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -360,6 +378,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -367,6 +386,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -405,6 +425,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -412,6 +433,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -419,6 +441,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -426,6 +449,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -433,6 +457,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ From e54c72a046b234f848173d7c6addc792efd9bbce Mon Sep 17 00:00:00 2001 From: huaqin72 Date: Tue, 18 Jan 2022 18:11:53 +0800 Subject: [PATCH 0667/1247] arm/dtsi: Rhodep:/panel: update the panel timing Update the panel timing: 1.Fix the problem that the T5 timing wake-up delay is not enough to 120ms. Change-Id: Ie55404e9c5b552a84ea5a8a1c1daf12632fb27fa Signed-off-by: huaqin72 Reviewed-on: https://gerrit.mot.com/2173279 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- ...t-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 8 ++++---- ...-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 8 ++++---- ...ot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi | 10 +++++----- 3 files changed, 13 insertions(+), 13 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 7d3d55eee06d..2592fad262d1 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -242,7 +242,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 6e 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -324,7 +324,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -406,7 +406,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -488,7 +488,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off diff --git a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi index af793b3a4f36..7f446d1159af 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -251,7 +251,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 6e 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -337,7 +337,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -423,7 +423,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -510,7 +510,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 05 01 00 00 56 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi index 83b0b23537e0..278d825c84e2 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi @@ -122,7 +122,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 08 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -190,7 +190,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 01 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -258,7 +258,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 03 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -326,7 +326,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 02 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -394,7 +394,7 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 04 //08:49Hz 01:60Hz 03:90Hz 02:120Hz 04:144Hz - 05 01 00 00 C8 00 01 11 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off From 3f6cbd9dcfe2c919d60f9fa9dfc5427357e85acc Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 26 Jan 2022 11:39:43 +0800 Subject: [PATCH 0668/1247] milan5G: sar sensor params 1.update params for sx937x. 2.blair-nopmi-moto-common-overlay.dtsi 3.blair-milanf-dvt1-overlay.dts Change-Id: Id81e68f8e55e9504196516045cdb1c0a50716d73 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2179214 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-milanf-dvt1-overlay.dts | 71 +++++++++++++++++++++++ qcom/blair-milanf-dvt2-overlay.dts | 70 ---------------------- qcom/blair-nopmi-moto-common-overlay.dtsi | 12 ++-- 3 files changed, 77 insertions(+), 76 deletions(-) diff --git a/qcom/blair-milanf-dvt1-overlay.dts b/qcom/blair-milanf-dvt1-overlay.dts index 1ae9e3a73a90..9d6d4d834300 100644 --- a/qcom/blair-milanf-dvt1-overlay.dts +++ b/qcom/blair-milanf-dvt1-overlay.dts @@ -130,3 +130,74 @@ &nfc_clk_req_suspend>; }; }; + +&sx937x { + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <58>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x8BE /*AFE_PARAM_PH3*/ + 0x8058 0x866 /*AFE_PARAM_PH4*/ + 0x8064 0x86E /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ + 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8098 0x7A36 + 0x80B8 0x7636 + 0x80D8 0x5959 + 0x80F8 0x3939 + 0x8118 0x2C2C + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x5A40 + 0x80A0 0x1E1E00E1 + 0x80C0 0x404000E2 + 0x80E0 0x222200E1 + 0x8100 0x161600E2 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x41DB3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68BD3000 + 0x8110 0x30DD3000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300005 + 0x80A8 0x300005 + 0x80C8 0x300005 + 0x80E8 0x300005 + 0x8108 0x300005 + 0x8128 0x3600000 + 0x8148 0x3600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + >; + + status = "ok"; +}; diff --git a/qcom/blair-milanf-dvt2-overlay.dts b/qcom/blair-milanf-dvt2-overlay.dts index 761dd4efa7fa..10ff8f40f238 100644 --- a/qcom/blair-milanf-dvt2-overlay.dts +++ b/qcom/blair-milanf-dvt2-overlay.dts @@ -131,73 +131,3 @@ }; }; -&sx937x { - Semtech,ref-phases-a = <5>; - Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <2>; - Semtech,button-flag = <0x1B>; - Semtech,reg-num = <58>; - Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x8BE /*AFE_PARAM_PH3*/ - 0x8058 0x866 /*AFE_PARAM_PH4*/ - 0x8064 0x86E /*AFE_PARAM_PH5*/ - 0x8070 0x86E /*AFE_PARAM_PH6*/ - 0x807C 0x85E /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ - 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ - 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ - 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ - 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8098 0x7A36 - 0x80B8 0x8E36 - 0x80D8 0xFF - 0x80F8 0x3F3F - 0x8118 0x2C2C - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0x5A40 - 0x80A0 0x1E1E00E1 - 0x80C0 0x404000E2 - 0x80E0 0x222200E1 - 0x8100 0x161600E2 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8090 0x41DB3000 - 0x80B0 0x7FB33000 - 0x80D0 0x40CD3000 - 0x80F0 0x68BD3000 - 0x8110 0x30DD3000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300005 - 0x80A8 0x300005 - 0x80C8 0x2300005 - 0x80E8 0x300005 - 0x8108 0x300005 - 0x8128 0x3600000 - 0x8148 0x3600000 - 0x8168 0x300000 - 0x808C 0x60200060 - 0x80AC 0x60200060 - 0x80CC 0x60200060 - 0x80EC 0x60200060 - 0x810C 0x60200060 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - >; - - status = "ok"; -}; diff --git a/qcom/blair-nopmi-moto-common-overlay.dtsi b/qcom/blair-nopmi-moto-common-overlay.dtsi index f2f382e4cf91..76d5cad3e8e7 100644 --- a/qcom/blair-nopmi-moto-common-overlay.dtsi +++ b/qcom/blair-nopmi-moto-common-overlay.dtsi @@ -108,8 +108,8 @@ set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <0xff>; - Semtech,button-flag = <0x1f>; + Semtech,ref-phases-c = <2>; + Semtech,button-flag = <0x1B>; Semtech,reg-num = <58>; Semtech,reg-init = < 0x8024 0x7F00 @@ -134,9 +134,9 @@ 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ 0x8098 0x7A36 - 0x80B8 0x8E36 - 0x80D8 0x5959 - 0x80F8 0x3F3F + 0x80B8 0x7636 + 0x80D8 0xFF + 0x80F8 0x3939 0x8118 0x2C2C 0x8138 0xFF 0x8158 0xFF @@ -157,7 +157,7 @@ 0x8170 0x2AD67000 0x8088 0x300005 0x80A8 0x300005 - 0x80C8 0x300005 + 0x80C8 0x2300005 0x80E8 0x300005 0x8108 0x300005 0x8128 0x3600000 From 3f7dce0acbb5315e907cdfa054aee5d95343af3a Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 25 Jan 2022 15:05:46 +0800 Subject: [PATCH 0669/1247] dts/panel: Rhodep: modify tianma nt37701 6.55 dc code for flicker issue modify tianma nt37701 6.55 dc code for flicker issue for Rhodep Change-Id: I2e5fabc9a84acb19a2Montanace613843e20174b6d91 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2178447 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...anma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 12 ++++++------ ...anma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 9584bdb9328f..78ba2aa5836d 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -76,7 +76,7 @@ qcom,mdss-dsi-hbm-fod-on-command = [ qcom,mdss-dsi-dc-off-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -129,7 +129,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -225,7 +225,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -321,7 +321,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -417,7 +417,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -513,7 +513,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 7bda9ae23ec6..01870d09aca4 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -76,7 +76,7 @@ qcom,mdss-dsi-hbm-fod-on-command = [ qcom,mdss-dsi-dc-off-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -147,7 +147,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -282,7 +282,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -416,7 +416,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -550,7 +550,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB @@ -685,7 +685,7 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 04 B5 00 18 4F //swire pulse 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 B2 51 + 15 00 00 00 00 00 02 B2 11 15 00 00 00 00 00 02 6F 0F 39 00 00 00 00 00 07 B2 60 50 66 91 86 91 39 00 00 00 00 00 0D B3 00 08 01 5F 01 5F 02 A4 02 A4 03 BB From 021b038b201f8c72ceefa12a00b0221cc22bc7eb Mon Sep 17 00:00:00 2001 From: houdz1 Date: Tue, 25 Jan 2022 15:17:58 +0800 Subject: [PATCH 0670/1247] dts/panel: Rhodep: remove tianma nt37701 v2 panel od code As the request of KP, OD fuction with the side effect, remove tianma nt37701 v2 panel OD code for Rhodep Change-Id: I527e5fb8b51b3c3c373a6126704b47b824427d53 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2178448 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 203 +----------------- 1 file changed, 5 insertions(+), 198 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 01870d09aca4..186fa258c2e2 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -121,25 +121,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + ]; qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 @@ -192,29 +174,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 01 00 00 00 00 06 F0 55 AA 52 08 08 - 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -256,25 +217,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + ]; qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 @@ -327,29 +270,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 01 00 00 00 00 06 F0 55 AA 52 08 08 - 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -391,24 +313,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + ]; qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 @@ -461,28 +366,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 00 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 01 00 00 00 00 06 F0 55 AA 52 08 08 - 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -524,25 +409,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + ]; qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 @@ -595,29 +462,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 C0 6B 03 A8 33 33 32 02 10 00 40 00 00 04 00 04 00 00 B8 - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 01 00 00 00 00 06 F0 55 AA 52 08 08 - 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -659,25 +505,7 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00]; + ]; qcom,mdss-dsi-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 @@ -730,29 +558,8 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz - // FFD2.0 RGB OFS CTRL - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 14 E3 86 86 06 F8 54 34 33 12 01 11 51 00 00 03 00 04 40 00 BC - 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 05 00 00 00 00 00 - 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 - //FFD SPR Pixel Type Setting - 15 00 00 00 00 00 02 6F 04 - 15 00 00 00 00 00 02 C1 00 - //FFD RAM Setting, RAMOFF_IDLE_DMR - 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 39 00 00 00 00 00 04 C0 0E B3 20 - //ODS part - 39 00 00 00 00 00 06 F0 55 AA 52 08 08 - 15 00 00 00 00 00 02 6F 03 - 15 00 00 00 00 00 02 C1 03 - 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 - 39 01 00 00 00 00 06 F0 55 AA 52 08 08 - 39 01 00 00 00 00 02 E1 A1 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off From db5dc8ea8682a378a71eb66d585f59022336e3cc Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 28 Jan 2022 17:17:33 +0800 Subject: [PATCH 0671/1247] arm64/dts:update sx9375 paras for Rhode_5GC -On the basis of version 03, adjust the scanning frequency of all channels to minimize the bottom noise -Adjust the threshold of ANT4 to make the antenna meet the requirement of trigger distance Change-Id: I5ee1f04bca28b692568afdc77d945af77098be9d Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2181282 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index d9f84b2b73b9..c62dcfd05134 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -546,14 +546,14 @@ 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x85E - 0x8034 0x85E - 0x8040 0x85E - 0x804C 0x85E - 0x8058 0x85E - 0x8064 0x85E - 0x8070 0x85E - 0x807C 0x85C + 0x8028 0x88E + 0x8034 0x88E + 0x8040 0x88E + 0x804C 0x88E + 0x8058 0x88E + 0x8064 0x88E + 0x8070 0x88E + 0x807C 0x88E 0x8030 0xFFD9FF 0x803C 0xBFF9FF 0x8048 0xFFF9FD @@ -564,7 +564,7 @@ 0x8084 0xBFF9FF 0x8098 0x6942 0x80B8 0x3E3E - 0x80D8 0x5A39 + 0x80D8 0x6833 0x80F8 0x2C2C 0x8118 0x4C4C 0x8138 0x8E From 083516d470da7512830262dc2bda03116a7b8c51 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 9 Feb 2022 11:01:36 +0800 Subject: [PATCH 0672/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 ch4 2.blari-cypfr-common-overlay.dtsi Change-Id: Ie8a12530b504e9a32a06272ab93812148a5f83b6 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2186218 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 615724b665cf..2a9393fd2e38 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -736,7 +736,7 @@ 0x80B8 0x372D 0x80D8 0x5A31 0x80F8 0x8348 - 0x8118 0x3E31 + 0x8118 0x372D 0x8138 0xC8 0x8158 0xC8 0x8178 0xC8 From 1566ca8fe07a11ef1942c944229fa2f384f1455b Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 9 Feb 2022 17:50:27 +0800 Subject: [PATCH 0673/1247] Rhodec: device/moto:Change initial code and porch in dtsi Modify: -Change initial code for updating the correct code and porch to solving ili7807s panle blurred screen problem -Change the refresh rate 60Hz to 120Hz Change-Id: Iba3355fb665ed9e79161ae083d4a35de5cec02f2 Reviewed-on: https://gerrit.mot.com/2186672 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Zhenxin Xi Submit-Approved: panyq6 --- ...-mot-txd-ili7807s-645-1080x2400-video.dtsi | 46 ++++++------------- 1 file changed, 13 insertions(+), 33 deletions(-) diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi index 37e104b05a50..0f9c0c0c835b 100644 --- a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -40,15 +40,15 @@ timing@0 { qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <28>; - qcom,mdss-dsi-h-back-porch = <24>; - qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-pulse-width = <2>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <12>; - qcom,mdss-dsi-v-front-porch = <2565>; + qcom,mdss-dsi-v-back-porch = <40>; + qcom,mdss-dsi-v-front-porch = <40>; qcom,mdss-dsi-v-pulse-width = <2>; - qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; @@ -57,33 +57,13 @@ qcom,mdss-dsi-on-command = [ - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 39 01 00 00 00 00 06 3B 03 14 36 04 04 - 15 01 00 00 00 00 02 B0 00 - 39 01 00 00 00 00 03 C2 1B A0 - - 15 01 00 00 00 00 02 FF F0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 1C 01 - 15 01 00 00 00 00 02 33 01 - 15 01 00 00 00 00 02 5A 00 - 15 01 00 00 00 00 02 FF D0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 53 22 - 15 01 00 00 00 00 02 54 02 - 15 01 00 00 00 00 02 FF C0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 9C 11 - 15 01 00 00 00 00 02 9D 11 - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 C0 03 - 15 01 00 00 00 00 02 51 CC - 15 01 00 00 00 00 02 53 2C - 15 01 00 00 00 00 02 55 01 - 05 01 00 00 64 00 01 11 - 05 01 00 00 48 00 01 29 + 39 01 00 00 00 00 04 FF 78 07 00 + 39 01 00 00 00 00 03 51 03 FF + 39 01 00 00 00 00 02 53 2C + 39 01 00 00 00 00 02 55 03 + 39 01 00 00 78 00 02 11 00 + 39 01 00 00 14 00 02 29 00 + 39 01 00 00 00 00 02 35 00 ]; qcom,mdss-dsi-off-command = [ 05 01 00 00 32 00 01 28 From ee8771301b397114ab74b823d6154d6fe2163274 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Thu, 27 Jan 2022 14:15:11 +0800 Subject: [PATCH 0674/1247] dts/panel: add MIPI suspend Tslpin time for display Modify: add display suspend tslpin spec time 100ms Change-Id: I23f5b254d5dcd73afc4a2a68ce0a8c824d19c911 Reviewed-on: https://gerrit.mot.com/2180084 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...t-tianma-nt36672c-645-1080x2400-video.dtsi | 50 +++++++++---------- 1 file changed, 25 insertions(+), 25 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi index 019c6cef6db4..8c009f9b8516 100644 --- a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -51,38 +51,38 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <150>; qcom,mdss-dsi-on-command = [ - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 39 01 00 00 00 00 06 3B 03 14 36 04 04 - 15 01 00 00 00 00 02 B0 00 - 39 01 00 00 00 00 03 C2 1B A0 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 06 3B 03 14 36 04 04 + 15 00 00 00 00 00 02 B0 00 + 39 00 00 00 00 00 03 C2 1B A0 - 15 01 00 00 00 00 02 FF F0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 1C 01 - 15 01 00 00 00 00 02 33 01 - 15 01 00 00 00 00 02 5A 00 - 15 01 00 00 00 00 02 FF D0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 53 22 - 15 01 00 00 00 00 02 54 02 - 15 01 00 00 00 00 02 FF C0 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 9C 11 - 15 01 00 00 00 00 02 9D 11 - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 15 01 00 00 00 00 02 C0 03 - 15 01 00 00 00 00 02 51 CC - 15 01 00 00 00 00 02 53 2C - 15 01 00 00 00 00 02 55 01 + 15 00 00 00 00 00 02 FF F0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 1C 01 + 15 00 00 00 00 00 02 33 01 + 15 00 00 00 00 00 02 5A 00 + 15 00 00 00 00 00 02 FF D0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 53 22 + 15 00 00 00 00 00 02 54 02 + 15 00 00 00 00 00 02 FF C0 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 9C 11 + 15 00 00 00 00 00 02 9D 11 + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 C0 03 + 15 00 00 00 00 00 02 51 CC + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 05 01 00 00 48 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ 05 01 00 00 10 00 01 28 - 05 01 00 00 32 00 01 10 + 05 01 00 00 64 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; qcom,compression-mode = "dsc"; From 4384fe0117e6fe918e6430dbcea92c6a105be873 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 11 Feb 2022 18:02:35 +0800 Subject: [PATCH 0675/1247] arm/dt: corfur: update rm692c9 panel timing - increase reset delay timing - add init code for avdd fast discharge - pull down reset pin when shutdown - don't read 0a reg when screen on Change-Id: Ic53566def5679a9d90ecbd2be3866c69206a806d Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2189042 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/corfur-display.dtsi | 2 ++ qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi | 4 +++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/qcom/corfur-display.dtsi b/qcom/corfur-display.dtsi index 87039f2c3128..fa3633fccf4e 100644 --- a/qcom/corfur-display.dtsi +++ b/qcom/corfur-display.dtsi @@ -82,6 +82,8 @@ qcom,bklt-dcs-2bytes-enabled; qcom,keep-regulators-on; qcom,platform-reset-gpio-always-on; + qcom,platform-need-execute-shutdown; + qcom,mdss-dsi-no-panel-on-read-support; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; diff --git a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi index 2e8c082a99bf..b5301218c0fe 100644 --- a/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi +++ b/qcom/dsi-panel-mot-visionox-rm692c9-fhd-video.dtsi @@ -28,7 +28,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 5>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 5>, <0 3>, <1 42>; qcom,mdss-pan-physical-width-dimension = <67>; qcom,mdss-pan-physical-height-dimension = <149>; @@ -135,6 +135,8 @@ 15 00 00 00 00 00 02 17 07 15 00 00 00 00 00 02 20 10 15 00 00 00 00 00 02 29 0E + 15 00 00 00 00 00 02 FE 40 + 15 00 00 00 00 00 02 75 32 15 00 00 00 00 00 02 FE 00 15 00 00 00 00 00 02 5E 01 15 00 00 00 00 00 02 C2 03 From a6603bacad368f8e5d9eace521f9934ad8f8e465 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Sat, 12 Feb 2022 18:25:09 +0800 Subject: [PATCH 0676/1247] arm64/dts:update sar paras for Rhodec version:10 -add the temperature compensation coefficient -the CH4 userfliter is adjusted to prevent the desktop from being released too quickly Change-Id: I0cda5547a0206cf522d87f0b04c16897f090090f Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2189532 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 32 +++++++++++++++++++++++----- 1 file changed, 27 insertions(+), 5 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index c62dcfd05134..924430dfc55b 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -540,11 +540,16 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <54>; + Semtech,reg-num = <76>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 0x4008 0x8 + 0x42C0 0x40800 + 0x42C4 0xFF + 0x8010 0x0 + 0x8014 0x0 + 0x8018 0x0 0x8020 0x32 0x8028 0x88E 0x8034 0x88E @@ -562,24 +567,41 @@ 0x806C 0xFFF97F 0x8078 0xFFF9EF 0x8084 0xBFF9FF - 0x8098 0x6942 - 0x80B8 0x3E3E + 0x8098 0x693E + 0x80B8 0x3535 0x80D8 0x6833 - 0x80F8 0x2C2C + 0x80F8 0x2929 0x8118 0x4C4C 0x8138 0x8E 0x8158 0x8E 0x8178 0x5A40 + 0x80A0 0x22220001 + 0x80C0 0x1F1F0001 + 0x80E0 0x48540002 + 0x8100 0x1D1D001A + 0x8120 0x1A1A0002 0x8188 0x8000015 0x818C 0x8000016 + 0x81E0 0x0 + 0x81E4 0x0 + 0x81E8 0x0 + 0x81EC 0x0 0x8090 0x64B45000 0x80B0 0x3CD05000 0x80D0 0x32D87000 0x80F0 0x3CD45000 - 0x8110 0x3CD47000 + 0x8110 0x2CD87000 0x8130 0x54AC5000 0x8150 0x54AC5000 0x8170 0x54AC5000 + 0x8094 0x0 + 0x80B4 0x0 + 0x80D4 0x0 + 0x80F4 0x0 + 0x8114 0x0 + 0x8134 0x0 + 0x8154 0x0 + 0x8174 0x0 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 From d544f8958f268cacbfb1083ccfae394ec829a67b Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 11 Feb 2022 16:12:22 +0800 Subject: [PATCH 0677/1247] arm/dts: modify heart time to 5s while charging. 100s update the battery that is too long. when charging need update the battery info timely so modify it to 5s. Change-Id: Iea135b1874f268ba9993e4fcf4184f5783c7384c Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2188940 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 207071fe8e98..c48288e01c00 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -156,7 +156,7 @@ mmi,enable-charging-limit; mmi,upper-limit-capacity = <65>; mmi,lower-limit-capacity = <60>; - mmi,heartbeat-interval = <100000>; + mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; }; From f8f7e29a413cd23f8199e13c24bb16376920822f Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 11 Feb 2022 15:50:57 +0800 Subject: [PATCH 0678/1247] milanf: arm64/dts: Support for edge rejection - Because have user feedback that the edge area is sensitive in the landscape mode, so add support for the edge rejection function and set different rejection areas according to the rotation direction, which will works in the game mode. Change-Id: Ifd0d0442899215cb7701fa7d8adc06db3bf0dd18 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2188908 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index a1a4aa1d59d5..02bc5dd7c72f 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -84,6 +84,7 @@ novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; novatek,usb_charger; + novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "tianma","tm","csot"; panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; status = "ok"; From 7efcd4c89721a24ef9c6a31f82e3f58cdd5fab82 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Mon, 14 Feb 2022 17:05:43 +0800 Subject: [PATCH 0679/1247] Rhodec:dts/panel:Change NT36672C porch Modify: -Change dts porch for updating nt36672c VBP = 20 to VBP = 16 Change-Id: I678529fe7b4fd9b3b31abc810cff4606975d9536 Reviewed-on: https://gerrit.mot.com/2189954 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi index 8c009f9b8516..a63c293e66cc 100644 --- a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -44,7 +44,7 @@ qcom,mdss-dsi-h-back-porch = <40>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-back-porch = <16>; qcom,mdss-dsi-v-front-porch = <54>; qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <120>; From 1e046aa9d4309694aa7ffad330c90a2b7a1899e5 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Sat, 29 Jan 2022 11:06:55 +0800 Subject: [PATCH 0680/1247] arm/dts: remove mmi,pl-chrg-vbatt-min config As battery can support 33W when vbat > 3V, so remove mmi,pl-chrg-vbatt-min config. Change-Id: I1162cc0d9af11b093d814b9e2b263bf3703da9de Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2181816 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index b782d402c7a0..b1c2b15fb941 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -368,7 +368,6 @@ mmi,pd-curr-max = <3000000>; mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; - mmi,pl-chrg-vbatt-min = <3400000>; mmi,typec-middle-current = <2000000>; mmi,pd-allow-min-current = <1000000>; mmi,step-first-current-comp = <0>; From c69122c6f604bd6508a74ba36dc1bce973e41b27 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 11 Feb 2022 18:09:23 +0800 Subject: [PATCH 0681/1247] arm/dts: add qupv3_se7_i2c as a critical device to gcc As qcom suggest for test, add qupv3_se7_i2c as a critical device to gcc for rhodep Change-Id: Ia8a9654820b9ceae032c5803efd23a1c77683f69 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2189049 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 1bfa330306b2..991aa0bb1225 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -540,6 +540,10 @@ }; }; +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>; +}; + &soc { gpio_keys { compatible = "gpio-keys"; From 313493fbc08a52b3bafa116ef2ab064371a03a3a Mon Sep 17 00:00:00 2001 From: wutao Date: Tue, 15 Feb 2022 18:12:57 +0800 Subject: [PATCH 0682/1247] dtsi:OTG current to 1.2A When the OTG is connected and discharged with high power consumption, the temperature rise exceeds 3 degrees, so it is necessary to modify the OTG discharge current to 1.2 Change-Id: I971395e6dd8d89e5905f7527339e0066ae76ec2a Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2191032 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index b1c2b15fb941..42fef592b73f 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -315,7 +315,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <3000>; mmi,demo-fv-mv = <4000>; - mmi,otg-cl-ua = <2000000>; + mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18D33989"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 3000 1000>, From 2456a5f84c243a555492294999f04eb134fc540a Mon Sep 17 00:00:00 2001 From: wingte52 Date: Wed, 16 Feb 2022 18:19:28 +0800 Subject: [PATCH 0683/1247] arm/dts: update SM5602 fg battery config parameter patch-version: 20220212_00 1.fix The first time the battery be inserted, the power display is low 2.reduce the time of temperature update 3.enable delay-shutdowm feature to set showdown voltage to 3.4v Change-Id: I96d88ce6e4d475a02005234f42a0f4943184bb94 Reviewed-on: https://gerrit.mot.com/2192337 Reviewed-by: Yuecai Liu SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi | 22 +++++++++---------- .../bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi | 22 +++++++++---------- qcom/discrete_charging_holi.dtsi | 5 +++-- 3 files changed, 25 insertions(+), 24 deletions(-) diff --git a/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi b/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi index d6ae5922e98d..ea2f248fe1f6 100644 --- a/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi +++ b/qcom/bat_setting/SM5602_ND50_ATL_Rhodec.dtsi @@ -15,28 +15,28 @@ SM5602_ND50_ATL { battery,param_version = <3>; battery,max_voltage_uv = <4450000>; - battery,battery_type = <4450 0x0 0x26CC>; - battery,battery_table0 = <0x1400 0x1CA1 0x1D13 0x1D75 0x1D8B 0x1D8E 0x1D97 0x1DC4 - 0x1DF4 0x1E1B 0x1E4A 0x1E78 0x1EC8 0x1F28 0x1F6E 0x1FAB - 0x1FFE 0x20C8 0x2174 0x21F0 0x2247 0x22EE 0x2340 0x2733>; - battery,battery_table1 = <0x0 0x83 0x18B 0x316 0x526 0x62E 0x946 0xC5E 0x107E 0x15A5 - 0x1ACD 0x2288 0x2CD8 0x3493 0x3727 0x39BB 0x3EE2 0x4931 - 0x50ED 0x5614 0x59B0 0x60E8 0x6400 0x64E6>; + battery,battery_type = <4450 0x0 0x277A>; + battery,battery_table0 = <0x1400 0x1B49 0x1C5A 0x1CDF 0x1D3E 0x1D62 0x1D80 0x1D97 + 0x1DB7 0x1DF4 0x1E1B 0x1E4A 0x1E78 0x1EC8 0x1F28 0x1F6E + 0x1FAB 0x1FFE 0x20C8 0x2174 0x2247 0x22BF 0x2340 0x24CC>; + battery,battery_table1 = <0x0 0x66 0x1B8 0x2BB 0x3BE 0x440 0x543 0xAD6 0xCDD 0x11EE + 0x16FF 0x1C10 0x23A9 0x2DCB 0x3564 0x37ED 0x3A75 0x3F86 + 0x49A8 0x5141 0x59DE 0x5EEF 0x6400 0x64E6>; battery,battery_table2 = <0x1E2E 0x1719 0x1415 0x1112 0x1010 0x0F0F 0x0E0E 0x0E0E>; battery,alpha = <0x00CC>; battery,beta = <0x0025>; - battery,rs = <0x805F>; + battery,rs = <0x005F>; battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery,vit_period = <0x325A>; + battery,vit_period = <0x315A>; battery,volt_cal = <0x8000>; battery,mix_value = <0x0003>; battery,curr_offset = <0x000>; battery,curr_slope = <0x8080>; - battery,topoff_soc = <7 343>; + battery,topoff_soc = <7 500>; battery,temp_std = <25>; battery,temp_offset = <0 11 1 0 8 (-1)>; battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery,ext_temp_cal = <0 2 1 2 1 0 2 3 2 3>; + battery,ext_temp_cal = <0 2 1 2 1 1 2 3 2 3>; battery,tem_poff = <3400 100>; battery,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 diff --git a/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi b/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi index 59f1c89b68f6..1f4c52c17c1a 100644 --- a/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi +++ b/qcom/bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi @@ -15,28 +15,28 @@ SM5602_ND50_JIADE { battery,param_version = <3>; battery,max_voltage_uv = <4450000>; - battery,battery_type = <4450 0x0 0x2699>; - battery,battery_table0 = <0x1400 0x1C5F 0x1CE0 0x1D63 0x1D87 0x1D90 0x1D95 0x1DB6 - 0x1DE9 0x1E13 0x1E43 0x1E77 0x1EC9 0x1F24 0x1F54 0x1FA3 - 0x2000 0x20C9 0x2178 0x21F3 0x2247 0x22EA 0x2331 0x2733>; - battery,battery_table1 = <0x0 0x83 0x18D 0x31B 0x4A9 0x6BB 0x8CE 0xBEA 0x100F 0x153D - 0x1A6C 0x2231 0x2C8E 0x3454 0x36EB 0x3983 0x3EB1 0x490E - 0x50D4 0x5602 0x59A3 0x60E4 0x6400 0x64E6>; + battery,battery_type = <4450 0x0 0x271E>; + battery,battery_table0 = <0x1400 0x1B3D 0x1C0A 0x1CA6 0x1D40 0x1D79 0x1D87 0x1D95 + 0x1DA3 0x1DB6 0x1DE9 0x1E13 0x1E5A 0x1E89 0x1EC9 0x1F24 + 0x1F54 0x1FA3 0x202E 0x20C9 0x21B5 0x2261 0x2331 0x24CC>; + battery,battery_table1 = <0x0 0x66 0x153 0x259 0x3E1 0x4E7 0x5ED 0xA04 0xC10 0xD15 + 0x112D 0x1649 0x1DF5 0x25A0 0x2D4B 0x34F6 0x3785 0x3A13 + 0x41BE 0x496A 0x53A3 0x5ACC 0x6400 0x64E6>; battery,battery_table2 = <0x2537 0x1C1F 0x1819 0x1415 0x1213 0x1011 0x1010 0x0F0F>; battery,alpha = <0x00CC>; battery,beta = <0x0025>; - battery,rs = <0x805F>; + battery,rs = <0x005F>; battery,rs_value = <0x0050 0x010A 0x3800 0x0048>; - battery,vit_period = <0x325A>; + battery,vit_period = <0x315A>; battery,volt_cal = <0x8000>; battery,mix_value = <0x0003>; battery,curr_offset = <0x000>; battery,curr_slope = <0x8080>; - battery,topoff_soc = <7 343>; + battery,topoff_soc = <7 500>; battery,temp_std = <25>; battery,temp_offset = <0 11 1 0 8 (-1)>; battery,temp_cal = <0 6 1 11 (-1) 0 6 1 9 1>; - battery,ext_temp_cal = <0 2 1 2 0 0 2 3 2 3>; + battery,ext_temp_cal = <0 2 1 2 0 1 2 3 2 3>; battery,tem_poff = <3400 100>; battery,thermal_table = <0x3CAB 0x365A 0x3025 0x2A24 0x2436 0x1E74 0x18D7 0x13A6 0x0E6F 0x0963 0x047E 0xF78B 0xF2F2 0xEE7D 0xEA3D 0xE629 0xE23C 0xDE7B 0xDAE1 0xD769 diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index c48288e01c00..8624a804fa25 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -53,9 +53,9 @@ sm,en_temp_ex; //sm,en_temp_in; sm,en_batt_det; - //sm,iocv_man_mode; + sm,iocv_man_mode; sm,misc = <0x0800>; - sm,aging_ctrl = <0x0125>; + sm,aging_ctrl = <0x0121>; sm,cycle_cfg = <0x7000>; sm,rsns = <1>; sm,fg_irq_set = <0x07FF>; @@ -69,6 +69,7 @@ sm,t_h_alarm_in = <1>; sm,t_l_alarm_ex = <0xD3D8>; sm,t_h_alarm_ex = <0x9245>; + sm,shutdown-delay-enable; df-serialnum = "SB18D24973"; #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" From c5b2f8f15990e5b95197d42778b8b65c9d2d40e6 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 18 Feb 2022 15:44:11 +0800 Subject: [PATCH 0684/1247] dts/panel: Milanf: Remove 1st LCD code that didn't support Remove Milan5G 1st LCD code that didn't support. Remove the used code. Change-Id: I5869ff501215d0272216340793d4eac39167b891 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2194110 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...l-mot-tm-nt36672e-678-1080x2460-video.dtsi | 113 ------------------ qcom/milanf-display.dtsi | 46 ------- 2 files changed, 159 deletions(-) delete mode 100644 qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi deleted file mode 100644 index cf9ba6c3fdce..000000000000 --- a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi +++ /dev/null @@ -1,113 +0,0 @@ -&mdss_mdp { - dsi_tm_nt36672e_678_fhdp_120_video: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video { - qcom,mdss-dsi-panel-name = - "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; - qcom,mdss-dsi-panel-type = "dsi_video_mode"; - qcom,dsi-ctrl-num = <0>; - qcom,dsi-phy-num = <0>; - qcom,mdss-dsi-virtual-channel-id = <0>; - qcom,mdss-dsi-stream = <0>; - qcom,mdss-dsi-bpp = <24>; - qcom,mdss-dsi-border-color = <0>; - qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; - qcom,mdss-dsi-bllp-power-mode; - qcom,mdss-dsi-bllp-eof-power-mode; - qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-lane-0-state; - qcom,mdss-dsi-lane-1-state; - qcom,mdss-dsi-lane-2-state; - qcom,mdss-dsi-lane-3-state; - qcom,mdss-dsi-dma-trigger = "trigger_sw"; - qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 2>, <1 10>; - qcom,mdss-dsi-tx-eot-append; - - qcom,mdss-pan-physical-width-dimension = <69>; - qcom,mdss-pan-physical-height-dimension = <158>; - - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; - qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; - qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; - qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-width = <1080>; - qcom,mdss-dsi-panel-height = <2460>; - qcom,mdss-dsi-h-front-porch = <110>; - qcom,mdss-dsi-h-back-porch = <18>; - qcom,mdss-dsi-h-pulse-width = <4>; - qcom,mdss-dsi-h-sync-skew = <0>; - qcom,mdss-dsi-v-back-porch = <10>; - qcom,mdss-dsi-v-front-porch = <60>; - qcom,mdss-dsi-v-pulse-width = <10>; - qcom,mdss-dsi-panel-framerate = <120>; - qcom,mdss-dsi-on-command = [ - 29 01 00 00 00 00 02 FF 10 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 36 00 - 29 01 00 00 00 00 06 3B 03 14 3C 04 04 - 29 01 00 00 00 00 02 B0 00 - 29 01 00 00 00 00 02 C0 03 - 29 01 00 00 00 00 03 C2 1B A0 - 29 01 00 00 00 00 02 E9 00 - - 29 01 00 00 00 00 02 FF E0 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 35 82 - 29 01 00 00 00 00 02 85 32 - - 29 01 00 00 00 00 02 FF F0 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 1C 01 - 29 01 00 00 00 00 02 33 01 - 29 01 00 00 00 00 02 5A 00 - 29 01 00 00 00 00 02 9F 19 - - 29 01 00 00 00 00 02 FF D0 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 53 22 - 29 01 00 00 00 00 02 54 02 - - 29 01 00 00 00 00 02 FF C0 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 9C 11 - 29 01 00 00 00 00 02 9D 11 - - 29 01 00 00 00 00 02 FF 25 - 29 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 0F 1B - 29 01 00 00 00 00 02 18 20 - - 15 01 00 00 00 00 02 FF 10 - 15 01 00 00 00 00 02 FB 01 - 29 01 00 00 00 00 02 C0 03 - 39 01 00 00 00 00 02 51 CC - 15 01 00 00 00 00 02 53 24 - 15 01 00 00 00 00 02 55 01 - - 05 01 00 00 65 00 01 11 - 05 01 00 00 29 00 01 29 - ]; - qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; - - qcom,mdss-dsi-off-command = [ - 05 01 00 00 10 00 01 28 - 05 01 00 00 46 00 01 10 - ]; - qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; - - qcom,compression-mode = "dsc"; - qcom,mdss-dsc-slice-height = <20>; - qcom,mdss-dsc-slice-width = <540>; - qcom,mdss-dsc-slice-per-pkt = <2>; - qcom,mdss-dsc-bit-per-component = <8>; - qcom,mdss-dsc-bit-per-pixel = <8>; - qcom,mdss-dsc-block-prediction-enable; - - }; - }; - }; -}; diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 554c87e6aeaf..5d504ca40061 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -1,5 +1,4 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" #include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" @@ -120,51 +119,6 @@ qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; }; -&dsi_tm_nt36672e_678_fhdp_120_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 65ccf4df76bdf1319ed45123f814d62ad7508754 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Fri, 18 Feb 2022 13:46:11 +0800 Subject: [PATCH 0685/1247] milanf: arm64/dts: Remove 1st tm panel that didn't support. - Since now we don't need to support 1st tm touch panel any more, therefore remove it. Change-Id: I3765bf7f12437ffba06408db873acdd9f997360a Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2193954 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index 02bc5dd7c72f..0a8f2bdaeba3 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -85,8 +85,8 @@ novatek,report_gesture_key; novatek,usb_charger; novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; - novatek,panel-supplier = "tianma","tm","csot"; - panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; + novatek,panel-supplier = "tianma","csot"; + panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_csot_nt36672e_678_fhdp_120_video>; status = "ok"; }; From 0cd8a454e6ee9162a50b6fe916cff6b274e709b9 Mon Sep 17 00:00:00 2001 From: panyq6 Date: Fri, 18 Feb 2022 13:35:22 +0800 Subject: [PATCH 0686/1247] Rhode5g of india sku(rhodei) bringup: init rhodei dts files init rhodei dts based on rhodep Change-Id: I4aabb66b94a4903053f902876055006e4267c398 Reviewed-on: https://gerrit.mot.com/2193938 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: panyq6 --- qcom/blair-moto-rhodei-base.dts | 45 +++ qcom/blair-rhodei-common-overlay.dtsi | 517 ++++++++++++++++++++++++++ qcom/blair-rhodei-dvt1-overlay.dts | 24 ++ qcom/blair-rhodei-dvt2-overlay.dts | 25 ++ qcom/blair-rhodei-evt1-overlay.dts | 24 ++ qcom/blair-rhodei-evt2-overlay.dts | 24 ++ qcom/discrete_charging_rhodei.dtsi | 222 +++++++++++ qcom/rhodei-display.dtsi | 484 ++++++++++++++++++++++++ qcom/rhodei-fps-overlay.dtsi | 182 +++++++++ qcom/rhodei-touchscreen.dtsi | 104 ++++++ qcom/rhodei-wl2868c.dtsi | 71 ++++ 11 files changed, 1722 insertions(+) create mode 100644 qcom/blair-moto-rhodei-base.dts create mode 100644 qcom/blair-rhodei-common-overlay.dtsi create mode 100644 qcom/blair-rhodei-dvt1-overlay.dts create mode 100644 qcom/blair-rhodei-dvt2-overlay.dts create mode 100644 qcom/blair-rhodei-evt1-overlay.dts create mode 100644 qcom/blair-rhodei-evt2-overlay.dts create mode 100644 qcom/discrete_charging_rhodei.dtsi create mode 100644 qcom/rhodei-display.dtsi create mode 100644 qcom/rhodei-fps-overlay.dtsi create mode 100755 qcom/rhodei-touchscreen.dtsi create mode 100644 qcom/rhodei-wl2868c.dtsi diff --git a/qcom/blair-moto-rhodei-base.dts b/qcom/blair-moto-rhodei-base.dts new file mode 100644 index 000000000000..e9b5f91a2ff2 --- /dev/null +++ b/qcom/blair-moto-rhodei-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi new file mode 100644 index 000000000000..4631224b251b --- /dev/null +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -0,0 +1,517 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-nopmi-moto-common-overlay.dtsi" + +#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "rhodei-fps-overlay.dtsi" +#include "rhodei-display.dtsi" +#include "rhodei-touchscreen.dtsi" +#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" +#include "rhodei-wl2868c.dtsi" +#include "discrete_charging_rhodei.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&sx937x { + status = "disabled"; +}; + +&qupv3_se7_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + mmi,status = "/chosen", "mmi,nfc", "samsung"; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 8 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; + + sx937x_se7:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <54>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x886 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x886 /*AFE_PARAM_PH5*/ + 0x8070 0x886 /*AFE_PARAM_PH6*/ + 0x807C 0x85C /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ + 0x803C 0xFFF9FD /*REG_AFEPH_PH1, CS0, ANT1/6, Top right*/ + 0x8048 0xFFD9FF /*REG_AFEPH_PH2, CS4, ANT2, Top center*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT5, Bottom Right*/ + 0x8060 0xBFF9FF /*REG_AFEPH_PH4, CS7, ANT8, Top Left*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8098 0x693F + 0x80B8 0x6932 + 0x80D8 0x3737 + 0x80F8 0x3C3C + 0x8118 0x4242 + 0x8138 0xFE + 0x8158 0xFE + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD47000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 + 0x8024 0x7F7F + 0x4280 0xF + >; + + status = "ok"; + }; +}; + +&pmk8350_vadc { + pmk8350_chg_therm { + reg = ; + label = "pmk8350_chg_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pmk8350_usb_conn_therm { + reg = ; + label = "pmk8350_ufs_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + usb_conn_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_conn_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + + rfc_camera_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; +}; + diff --git a/qcom/blair-rhodei-dvt1-overlay.dts b/qcom/blair-rhodei-dvt1-overlay.dts new file mode 100644 index 000000000000..68d4becf6f86 --- /dev/null +++ b/qcom/blair-rhodei-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodei-common-overlay.dtsi" + +/ { + model = "rhodei"; + compatible = "qcom,blair-rhodei", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB100>; +}; + diff --git a/qcom/blair-rhodei-dvt2-overlay.dts b/qcom/blair-rhodei-dvt2-overlay.dts new file mode 100644 index 000000000000..4381b1d4144c --- /dev/null +++ b/qcom/blair-rhodei-dvt2-overlay.dts @@ -0,0 +1,25 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodei-common-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-rhodei-dvt2-overlay.dtsi" + +/ { + model = "rhodei"; + compatible = "qcom,blair-rhodei", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB200>; +}; + diff --git a/qcom/blair-rhodei-evt1-overlay.dts b/qcom/blair-rhodei-evt1-overlay.dts new file mode 100644 index 000000000000..da9a3b8cbad0 --- /dev/null +++ b/qcom/blair-rhodei-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodei-common-overlay.dtsi" + +/ { + model = "rhodei"; + compatible = "qcom,blair-rhodei", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xA100>; +}; + diff --git a/qcom/blair-rhodei-evt2-overlay.dts b/qcom/blair-rhodei-evt2-overlay.dts new file mode 100644 index 000000000000..7f9479603246 --- /dev/null +++ b/qcom/blair-rhodei-evt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-rhodei-common-overlay.dtsi" + +/ { + model = "rhodei"; + compatible = "qcom,blair-rhodei", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xA200>; +}; + diff --git a/qcom/discrete_charging_rhodei.dtsi b/qcom/discrete_charging_rhodei.dtsi new file mode 100644 index 000000000000..8624a804fa25 --- /dev/null +++ b/qcom/discrete_charging_rhodei.dtsi @@ -0,0 +1,222 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include +#include "sgm7220.dtsi" +#include "discrete-rt-pd-manger.dtsi" + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D24973"; + #include "bat_setting/CW_nd50-atl-5000mah.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" + }; + + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0121>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <1>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <3>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + sm,shutdown-delay-enable; + + df-serialnum = "SB18D24973"; + #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" + #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" + }; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&qusb_phy0>; + mmi,qc3-support; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&qusb_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,df-serialnum = "SB18D24973"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 4000 0>; + + mmi,thermal-mitigation = <4000000 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + + +&tlmm { + + chg_irq_default: chg_irq_default { + /* IRQ */ + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + bias-pull-up; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; +}; diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi new file mode 100644 index 000000000000..2353bc044c90 --- /dev/null +++ b/qcom/rhodei-display.dtsi @@ -0,0 +1,484 @@ +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&display_panel_avdd { + status = "disabled"; +}; + +&display_panel_ibb { + status = "disabled"; +}; + +&qupv3_se2_spi { + status = "disabled"; +}; + +&qupv3_se2_i2c { + status = "disabled"; +}; + +&tlmm { + panel_vci_en_default: panel_vci_en_default { + mux { + pins = "gpio46"; + function = "gpio"; + }; + + config { + pins = "gpio46"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + dsi_panel_pwr_supply_amoled: dsi_panel_pwr_supply_amoled { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <0>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <10>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <30000>; + qcom,supply-disable-load = <0>; + qcom,supply-post-on-sleep = <0>; + qcom,supply-post-off-sleep = <2>; + }; + }; + + panel_vci: panel_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "panel_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 46 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&panel_vci>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_vci_en_default>; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vci-supply = <&panel_vci>; + vddio-supply = <&L13A>; + dvdd-supply = <&L3A>; + qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; +}; + +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + vqcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + diff --git a/qcom/rhodei-fps-overlay.dtsi b/qcom/rhodei-fps-overlay.dtsi new file mode 100644 index 000000000000..a6d68b415f87 --- /dev/null +++ b/qcom/rhodei-fps-overlay.dtsi @@ -0,0 +1,182 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ft_power_high: ft_power_high { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_power_low: ft_power_low { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; + + ft_eint_as_int: ft_eint_as_int { + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + + ft_reset_high: ft_reset_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_reset_low: ft_reset_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 6 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + ft9362: ft9362 { + status = "ok"; + compatible = "focaltech,fingerprint"; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp,reset_gpio = <&tlmm 18 0>; + fp,irq_gpio = <&tlmm 17 0>; + fp,vdd_gpio = <&tlmm 6 0>; + + pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", + "fpsensor_finger_rst_low","fpsensor_finger_rst_high", + "fpsensor_eint_as_int"; + pinctrl-0 = <&ft_power_high>; + pinctrl-1 = <&ft_power_low>; + pinctrl-2 = <&ft_reset_low>; + pinctrl-3 = <&ft_reset_high>; + pinctrl-4 = <&ft_eint_as_int>; + }; +}; diff --git a/qcom/rhodei-touchscreen.dtsi b/qcom/rhodei-touchscreen.dtsi new file mode 100755 index 000000000000..adabc15c907d --- /dev/null +++ b/qcom/rhodei-touchscreen.dtsi @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <10>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + + goodix_ts_spi@0 { + status = "ok"; + compatible = "goodix,gt9916S"; + reg = <0x0>; + mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x2002>; + goodix,avdd-gpio = <&tlmm 92 0x0>; + goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-id = <10>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + mmi,power-off-suspend; + mmi,enable-gestures; + mmi,usb-charger-detection; + }; +}; diff --git a/qcom/rhodei-wl2868c.dtsi b/qcom/rhodei-wl2868c.dtsi new file mode 100644 index 000000000000..c2ed59b88da4 --- /dev/null +++ b/qcom/rhodei-wl2868c.dtsi @@ -0,0 +1,71 @@ +&tlmm{ + pmic_en_default: pmic_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + + cam_pmic: wl2868c@2F{ + compatible = "semi,wl2868c"; + reg = <0x2F>; + semi,cs-gpios = <&tlmm 33 1>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From ec9009c164621a64e16207d29032b1c73c348bdd Mon Sep 17 00:00:00 2001 From: tnchangj Date: Mon, 21 Feb 2022 14:28:50 +0800 Subject: [PATCH 0687/1247] dynamic adjust battery voltage This is a dynamic adjust battery voltage for cyprus IP8 Change-Id: I43f01aea5d4d18c921bc59e77fb3b53945954169 Signed-off-by:tnchangj Change-Id: I43f01aea5d4d18c921bc59e77fb3b53945954169 Reviewed-on: https://gerrit.mot.com/2195377 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 2a9393fd2e38..4e1318319dc7 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -214,6 +214,9 @@ &sgm4154x { pinctrl-names = "default"; pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; + + /* enable dynamic adjust battery voltage */ + enable_dynamic_adjust_batvol; }; &mmi_charger { From 75099bfaafb12b87ca67b47c8a91d39a613963c1 Mon Sep 17 00:00:00 2001 From: wutao Date: Mon, 21 Feb 2022 21:38:22 +0800 Subject: [PATCH 0688/1247] dtsi: modify heartbeat polling time Untimely battery update leads to battery jump Line 18588: 02-15 04:10:30.405 W/healthd ( 0): battery l=29 v=4367 t=24.0 h=2 st=2 c=6050000 fc=5000000 cc=0 chg=a Line 18728: 02-15 04:10:34.710 W/healthd ( 0): battery l=31 v=4321 t=24.0 h=2 st=2 c=5437000 fc=5000000 cc=0 chg=a Change-Id: Ib614b842d7635153234b1318098f5595a0e38501 Signed-off-by: wutao Reviewed-on: https://gerrit.mot.com/2195787 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Xu Reviewed-by: Zhenxin Xi Submit-Approved: gaoyx9 --- qcom/discrete_charging_rhodep.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index 42fef592b73f..b977b228ca41 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -298,7 +298,7 @@ mmi,enable-charging-limit; mmi,upper-limit-capacity = <65>; mmi,lower-limit-capacity = <60>; - mmi,heartbeat-interval = <100000>; + mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; }; From f45fdd97a5a80eb262219440d61386e85d08e651 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 22 Feb 2022 16:45:34 +0800 Subject: [PATCH 0689/1247] arm/dts: add qupv3_se8_i2c as a critical device to gcc As qcom suggest for test, add qupv3_se8_i2c as a critical device to gcc for rhodep Change-Id: I2e78befcd3721080970f1e66752a92e71925ce7c Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2196604 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 991aa0bb1225..3b8f7154fdcd 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -541,7 +541,7 @@ }; &gcc { - qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>; + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; }; &soc { From 2e81420f88a7b0a0cda7d47b7ff5ce46ca303bcb Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Wed, 23 Feb 2022 21:04:20 +0800 Subject: [PATCH 0690/1247] arm/dt: rhodec: enable single tap gesture key report arm/dt: Enable single tap gesture key report for ilitek touch. Change-Id: Ib85d1d31b513cbe359e6e08b8352a41347084706 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2199020 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index 61202dfb3c67..ade1f7cfa01f 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -140,6 +140,7 @@ pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; pinctrl-3 = <&ts_active>; pinctrl-4 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; status = "ok"; }; }; From 52b7457e64780c222ae718bff66bab16e4ae42ba Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Thu, 24 Feb 2022 13:58:48 +0800 Subject: [PATCH 0691/1247] milanf: Add qupv3_se10_i2c to critical devices list When we use external LDO for power supply, we need to add the parent I2C device to critical devices list to keep clock on to avoid deadlock. Change-Id: I745cdd6fbed0ef885d57b1a7775c6ef792babbed Signed-off-by: Xiaofeng Wang Reviewed-on: https://gerrit.mot.com/2200017 Reviewed-by: Pengfei Qiao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shuo Wang Reviewed-by: Xingyun Fu Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/milanf-wl286xx.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/milanf-wl286xx.dtsi b/qcom/milanf-wl286xx.dtsi index 4327781f6b12..80bd9f868469 100644 --- a/qcom/milanf-wl286xx.dtsi +++ b/qcom/milanf-wl286xx.dtsi @@ -12,6 +12,10 @@ }; }; +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + &qupv3_se10_i2c { status = "ok"; From 9625531a02abfbfef1ccfa843558b6f964cd44c9 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 18 Feb 2022 10:24:48 +0800 Subject: [PATCH 0692/1247] arm64/dt: rhodep: support sceen state notify on fps Add panel infomation to support sceen on/off notification to fps HAL layer on Fotal fps driver. Change-Id: I1be62b9ef3b5516387dba997f336635239b14b1d Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2193810 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Qinghong Yang --- qcom/rhodep-fps-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/rhodep-fps-overlay.dtsi b/qcom/rhodep-fps-overlay.dtsi index a6d68b415f87..93b33407a5f3 100644 --- a/qcom/rhodep-fps-overlay.dtsi +++ b/qcom/rhodep-fps-overlay.dtsi @@ -169,6 +169,10 @@ fp,reset_gpio = <&tlmm 18 0>; fp,irq_gpio = <&tlmm 17 0>; fp,vdd_gpio = <&tlmm 6 0>; + panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", "fpsensor_finger_rst_low","fpsensor_finger_rst_high", From c7a0b72c5fc3586de06866b06cda84c6b7ccf697 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Fri, 25 Feb 2022 17:30:41 +0800 Subject: [PATCH 0693/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: I6fbc190fd1658067a9d959d16803970dcee66610 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2201512 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 22 ++++++++-------------- 1 file changed, 8 insertions(+), 14 deletions(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index 4e1318319dc7..a5c9ade12bbd 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -711,12 +711,6 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ 0x4008 0x8 - 0x42C0 0x40800 - 0x42C4 0xFF - 0x8010 0x0 - 0x8014 0x0 - 0x8018 0x0 - 0x8018 0x0 0x8020 0x32 0x8028 0x85E /*AFE_PARAM_PH0*/ 0x8034 0x85E /*AFE_PARAM_PH1*/ @@ -744,7 +738,7 @@ 0x8158 0xC8 0x8178 0xC8 0x80A0 0x202000E1 - 0x80C0 0x232300E2 + 0x80C0 0x252500E2 0x80E0 0x202000E1 0x8100 0x141400E2 0x8120 0x1F1F00E2 @@ -755,14 +749,14 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x3CC47000 - 0x80B0 0x14EC7000 - 0x80D0 0x3CC47000 - 0x80F0 0x28D87000 - 0x8110 0x18E87000 + 0x8090 0x1EE57000 + 0x80B0 0x14F67000 + 0x80D0 0x14F17000 + 0x80F0 0x22E57000 + 0x8110 0x18EA7000 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 + 0x8150 0x2AD66000 + 0x8170 0x2AD66000 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 From daa8f6d4fb438857a7b0fb20baa69cc24578e9b2 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Fri, 25 Feb 2022 15:18:53 +0800 Subject: [PATCH 0694/1247] dts/panel: Panel: add esd check for ili7807s panel Modify: add esd check for ili7807s read 0a no 0x9c page17 Change-Id: I3a914c16e47059732cf33830070461667dad994e Reviewed-on: https://gerrit.mot.com/2201384 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi | 3 +++ qcom/rhodec-display.dtsi | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi index 0f9c0c0c835b..2b22729d1b28 100644 --- a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -57,6 +57,9 @@ qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 04 FF 78 07 06 + 39 01 00 00 00 00 02 3E E2 + 39 01 00 00 00 00 02 80 00 39 01 00 00 00 00 04 FF 78 07 00 39 01 00 00 00 00 03 51 03 FF 39 01 00 00 00 00 02 53 2C diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index f3c929b275d6..292b5b2ecf13 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -228,7 +228,7 @@ qcom,mdss-dsi-bl-default-level = <1024>; qcom,mdss-brightness-max-level = <2047>; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; From a506ab6e4b25f804aa750faae0a35bf709f4cf13 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 24 Feb 2022 18:05:31 +0800 Subject: [PATCH 0695/1247] arm/dts: change the main charger icl 300ma This platform don't have mmi_battery for 33W, we need change it to battery power supply. change max charger icl to 300ma when charger pump enable. Change-Id: Ibbef411b53a47e305134d75217821c8d58e473df Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2200417 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index b977b228ca41..d227a30e1d07 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -392,8 +392,8 @@ <1000000>; charger_device_0 { chrg-name = "pmic-sw"; - psy-name = "mmi_battery"; - charging-curr-limited = <500000>; + psy-name = "battery"; + charging-curr-limited = <300000>; }; charger_device_1 { chrg-name = "cp-master"; From 301ad7d89996073fa749585529a04a626430094f Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Mon, 28 Feb 2022 10:17:26 +0800 Subject: [PATCH 0696/1247] Enable System Temperature Import the mmi_sys_temp for virtual sensors and thermal policy. Change-Id: I21551e4b1a6b6cc9c502ef64f153a0f47cb38457 Reviewed-on: https://gerrit.mot.com/2202771 SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou SLTApproved: Slta Waiver Submit-Approved: Jira Key --- qcom/blair-milanf-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-milanf-common-overlay.dtsi b/qcom/blair-milanf-common-overlay.dtsi index bb874e3efcd2..da32afe3bc6f 100644 --- a/qcom/blair-milanf-common-overlay.dtsi +++ b/qcom/blair-milanf-common-overlay.dtsi @@ -22,6 +22,7 @@ #include "milanf-sensors.dtsi" #include "camera/blair-camera-sensor-mot-milanf-overlay.dtsi" #include "milanf-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From f95421762b4be6378338959b1b881cabf4ed162b Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 24 Feb 2022 10:43:09 +0800 Subject: [PATCH 0697/1247] dts/panel: Rhodep: add OD code for tianma nt37701 6.55 inch panel Get the new OP manual from KP at 2022.02.23. Add OD code for tianma nt37701 6.55 inch panel. Change-Id: I2205db2212c54882835977afb5c941cadce5fc6b Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2199855 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...37701-655-1080x2400-dsc-cmd-common-v1.dtsi | 12 +- ...37701-655-1080x2400-dsc-cmd-common-v2.dtsi | 217 +++++++++++++++++- 2 files changed, 207 insertions(+), 22 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi index 78ba2aa5836d..4607a2d23090 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi @@ -53,7 +53,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 - 17000 15500 30000 8000 3000>; + 17000 15500 30000 8000 3000>; qcom,mdss-dsi-panel-peak-brightness = <4200000>; qcom,mdss-dsi-panel-blackness-level = <3230>;*/ @@ -140,8 +140,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -236,8 +234,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -332,8 +328,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -428,8 +422,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -524,8 +516,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 diff --git a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi index 186fa258c2e2..4567c552631e 100644 --- a/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi @@ -53,7 +53,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 - 17000 15500 30000 8000 3000>; + 17000 15500 30000 8000 3000>; qcom,mdss-dsi-panel-peak-brightness = <4200000>; qcom,mdss-dsi-panel-blackness-level = <3230>;*/ @@ -121,6 +121,25 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 14 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 0E F3 5D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 98 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 02 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]; qcom,mdss-dsi-on-command = [ @@ -140,8 +159,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -174,8 +191,30 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 08 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 C0 0E F3 5D 00 00 00 00 00 00 00 00 00 00 00 00 00 00 98 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 02 + 39 01 00 00 00 00 1C CE 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 63 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -217,6 +256,25 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 10 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 46 CC 11 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]; qcom,mdss-dsi-on-command = [ @@ -236,8 +294,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -270,8 +326,30 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 03 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 46 CC 11 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 F0 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 63 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -313,6 +391,25 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 0b 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 25 FE E1 4F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 92 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]; qcom,mdss-dsi-on-command = [ @@ -332,8 +429,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -366,8 +461,30 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 07 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 //63改为00,使能开关必须要在11之后下 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 25 FE E1 4F 00 00 00 00 00 00 00 00 00 00 00 00 00 00 92 + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 63 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -409,6 +526,25 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 08 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 94 36 53 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]; qcom,mdss-dsi-on-command = [ @@ -428,8 +564,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -462,8 +596,30 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 02 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 94 36 53 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FF + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 63 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 /* display_off */ @@ -505,6 +661,25 @@ qcom,mdss-dsi-display-timings { qcom,mdss-dsi-panel-jitter = <0x20 0xa>; // 90fps +/- 2 qcom,mdss-dsi-timing-switch-command = [ 15 01 00 00 06 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 48 F3 49 C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FC + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 01 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ]; qcom,mdss-dsi-on-command = [ @@ -524,8 +699,6 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 58 00 //DC off 39 00 00 00 00 00 06 F0 55 AA 52 08 00 - 15 00 00 00 00 00 02 6F 02 - 39 01 00 00 00 00 03 C1 00 60 15 00 00 00 00 00 02 6F 08 15 00 00 00 00 00 02 C3 04 39 00 00 00 00 00 06 F0 55 AA 52 08 03 @@ -558,8 +731,30 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 05 2B 00 00 09 5F 15 01 00 00 00 00 02 2F 04 //08:48Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + // FFD2.0 RGB OFS CTRL + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 39 00 00 00 00 00 06 E1 00 03 03 03 00 + 39 00 00 00 00 00 14 E2 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 14 E3 48 F3 49 C0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FC + 39 00 00 00 00 00 14 E4 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E5 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E6 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 13 E7 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 + //FFD SPR Pixel Type Setting + 15 00 00 00 00 00 02 6F 04 + 15 00 00 00 00 00 02 C1 00 + //FFD RAM Setting, RAMOFF_IDLE_DMR + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 39 00 00 00 00 00 04 C0 0E B3 21 + //ODS part + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 6F 03 + 15 00 00 00 00 00 02 C1 03 + 39 00 00 00 00 00 1C CE 22 00 00 22 00 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 06 F0 55 AA 52 08 08 + 15 00 00 00 00 00 02 E1 63 05 01 00 00 00 00 01 29]; // display on qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 // display_off From f427c0f8334b6770c8a70054cc656808fc970e86 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 28 Feb 2022 15:10:05 +0800 Subject: [PATCH 0698/1247] arm/dt: rhodec: enable exponential backlight - enable exponential backlight - format panel dtsi - delete unused panel configs Change-Id: Ic890e4ff5bd76897dcbc7a8a3c22bce6337321d3 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2203088 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-nt36672c-645-1080x2400-video.dtsi | 11 +- ...-mot-txd-ili7807s-645-1080x2400-video.dtsi | 24 ++-- qcom/rhodec-display.dtsi | 104 ++++-------------- 3 files changed, 38 insertions(+), 101 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi index a63c293e66cc..30e13c971b2f 100644 --- a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -19,15 +19,12 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - //qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; qcom,mdss-dsi-tx-eot-append; qcom,adjust-timer-wakeup-ms = <1>; - //qcom,mdss-dsi-panel-hdr-enabled; - //qcom,mdss-dsi-panel-hdr-color-primaries = <15000 16000 33750 - // 15800 13250 34450 7500 3000>; - //qcom,mdss-dsi-panel-peak-brightness = <6450000>; - //qcom,mdss-dsi-panel-blackness-level = <4961>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <150>; qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; @@ -48,8 +45,6 @@ qcom,mdss-dsi-v-front-porch = <54>; qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <120>; - qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <150>; qcom,mdss-dsi-on-command = [ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi index 2b22729d1b28..757cf5213f08 100644 --- a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -26,8 +26,8 @@ qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-reset-sequence = <1 4>, <0 1>, <1 12>; - qcom,mdss-pan-physical-width-dimension = <69>; - qcom,mdss-pan-physical-height-dimension = <158>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <150>; qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; @@ -57,16 +57,16 @@ qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 04 FF 78 07 06 - 39 01 00 00 00 00 02 3E E2 - 39 01 00 00 00 00 02 80 00 - 39 01 00 00 00 00 04 FF 78 07 00 - 39 01 00 00 00 00 03 51 03 FF - 39 01 00 00 00 00 02 53 2C - 39 01 00 00 00 00 02 55 03 - 39 01 00 00 78 00 02 11 00 - 39 01 00 00 14 00 02 29 00 - 39 01 00 00 00 00 02 35 00 + 39 00 00 00 00 00 04 FF 78 07 06 + 15 00 00 00 00 00 02 3E E2 + 15 00 00 00 00 00 02 80 00 + 39 00 00 00 00 00 04 FF 78 07 00 + 39 00 00 00 00 00 03 51 06 66 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 15 00 00 00 00 00 02 35 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 ]; qcom,mdss-dsi-off-command = [ 05 01 00 00 32 00 01 28 diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 292b5b2ecf13..fa35849ceb30 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -1,6 +1,4 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tianma-ili7807s-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-csot-ili7807s-678-1080x2460-video.dtsi" #include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" #include "dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi" @@ -182,6 +180,7 @@ qcom,mdss-dsi-bl-default-level = <1024>; qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -236,7 +235,7 @@ qcom,mdss-dsi-panel-on-check-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; + qcom,mdss-dsi-panel-supplier = "txd"; qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; @@ -253,16 +252,11 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90 120>; - //qcom,mdss-dsi-panel-hdr-enabled; - //qcom,mdss-dsi-panel-hdr-color-primaries = <15115 15895 32830 - // 16770 15010 32385 7770 1830>; - //qcom,mdss-dsi-panel-peak-brightness = <4500000>; - //qcom,mdss-dsi-panel-blackness-level = <3000>; qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; @@ -277,57 +271,6 @@ }; }; -&dsi_csot_ili7807s_678_fhd_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,bklt-dcs-2bytes-enabled; - - qcom,mdss-dsi-bl-min-level = <8>; - qcom,mdss-dsi-bl-max-level = <1023>; - qcom,mdss-dsi-bl-default-level = <512>; - qcom,mdss-brightness-max-level = <1023>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-on-check-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,suspend-ulps-enabled; - - qcom,tp_state_check_enable; - qcom,platform-need-execute-shutdown; - - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90 120>; - - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 03 33]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 03 33]; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0C>; - qcom,mdss-dsi-t-clk-pre = <0x30>; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 - 07 07 02 04 00]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -348,6 +291,7 @@ }; }; }; + &qupv3_se10_i2c { status = "ok"; @@ -355,32 +299,30 @@ compatible = "awinic,aw99703-bl","sm-sm5350"; reg = <0x36>; hwen-gpio = <&tlmm 60 1>; - /* brightness map level 1:256,2:1024,3:2048 */ - aw99703,bl-map = <3>; - aw99703,using-lsb; - aw99703,ovp-level = <2>; /* 31V */ - aw99703,ocp-level = <1>; /* 1.8A */ - aw99703,switch-freq = <1>; /* 1000kHz(default) */ - aw99703,auto-freq-high = <0x10>; - aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <3>; - aw99703,turn-on-ramp = <0x04>; - aw99703,turn-off-ramp = <0x04>; - aw99703,pwm-trans-dim = <0>; /* 2ms */ - aw99703,i2c-trans-dim = <0x00>; - aw99703,pwm-mode = <1>; /* 0 pwm disble,1 PWM enable */ - aw99703,map-type = <4>; /* linear */ - aw99703,work-mode = <1>; /* backlight */ - aw99703,flash-timeout-time = <0x05>; /* 500ms(default) */ - aw99703,flash-current = <0x08>; /* 59.2mA(default) */ - aw99703,efuse-config = <0x1C 0x61 0x61 0x4C 0x2C 0xC0 0x08 0x00 0x01 0x80 0x00 0x00 0x00>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; status = "okay"; pwm-cfg = <0x0C>; boost-ctl = <0x03>; ctl-bank-en = <0x02>; full-scale-current = <0x0A>; + map-mode = <0>; /* 0 exponential, 1 linear */ }; ocp2138@3e { From b620236cedd8d12c1a8178941fb23549577594ac Mon Sep 17 00:00:00 2001 From: chenyb1 Date: Tue, 1 Mar 2022 09:26:59 +0800 Subject: [PATCH 0699/1247] Enable System Temperature Import the mmi_sys_temp for virtual sensors and thermal policy. Change-Id: If4476a14018ca9c4010aa51a49dbd5d0e51ca70b Reviewed-on: https://gerrit.mot.com/2203723 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jichao Zou Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 3b8f7154fdcd..ae34c560c1b9 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -27,6 +27,7 @@ #include "sgm7220.dtsi" #include "discrete_charging_rhodep.dtsi" #include "discrete-rt-pd-manger.dtsi" +#include "moto_therm_sys_temp.dtsi" &qupv3_se8_i2c { status = "okay"; From 7b837795be8c1412185d21cf83118d800151914c Mon Sep 17 00:00:00 2001 From: wingte48 Date: Fri, 25 Feb 2022 17:33:57 +0800 Subject: [PATCH 0700/1247] dts/panel: add vddio pre-on time for display Modify: add display vddio on timing must greater than 30 ms Change-Id: I9d3c808f5adc2c6ef82d9d061c46e73e9d2492ef Reviewed-on: https://gerrit.mot.com/2201520 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index fa35849ceb30..6febbcd59cfc 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -141,6 +141,7 @@ qcom,supply-max-voltage = <1904000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; + qcom,supply-pre-on-sleep = <30>; qcom,supply-pre-off-sleep = <150>; }; From 63641a1ac2c978b431a29fd089b4fae81694dd90 Mon Sep 17 00:00:00 2001 From: weimh1 Date: Wed, 2 Mar 2022 10:48:11 +0800 Subject: [PATCH 0701/1247] arm/dts: add "qcom,leica-used-i2c" for se7 details: 1."qcom,leica-used-i2c" is used for PMIC over i2c use case to skip the BW vote. 2. We rm se8 and set it just for se7 to verify the LDO used by camera. Change-Id: I14dd200ebd64e1fdd277c581a4535998ff269472 Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2204672 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index ae34c560c1b9..1d5675564888 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -266,6 +266,8 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; + + qcom,leica-used-i2c; sec-nfc@27 { compatible = "sec-nfc"; reg = <0x27>; @@ -542,7 +544,7 @@ }; &gcc { - qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>; }; &soc { From 0e9dcf01751051de0c2400e5baf6c3869ce10f71 Mon Sep 17 00:00:00 2001 From: wingte52 Date: Tue, 1 Mar 2022 18:06:51 +0800 Subject: [PATCH 0702/1247] charging: Disable SC89890 ILIM for Rhode5G There is no HW ILIM R in Rhode5G HW Board Disable HW ILIM by reg BQ2589X_ENILIM_DISABLE , and config it w/ DTS in rhode5g charging dts Change-Id: Ia795d4bf63ba9a69bf91842e2e4e59caee54223f Reviewed-on: https://gerrit.mot.com/2204336 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 8624a804fa25..0defbcdcb36d 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -147,6 +147,7 @@ ti,bq2589x,enable-termination; ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; + ti,bq2589x,disable-ilim; }; }; From a6a4091c1bd73c3562921fe1e317a36c16058348 Mon Sep 17 00:00:00 2001 From: zhoujs3 Date: Mon, 28 Feb 2022 13:44:47 +0800 Subject: [PATCH 0703/1247] Bring up miami on sm2021, init overlay config Init the config for new product miami Base on product rhodep Change-Id: Ic448f74abe5cddbc3b988981bd642078fa506d41 Signed-off-by: zhoujs3 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-on: https://gerrit.mot.com/2205200 Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao --- qcom/blair-miami-common-overlay.dtsi | 572 +++++++++++++++++++++++++++ qcom/blair-miami-dvt1-overlay.dts | 24 ++ qcom/blair-miami-dvt2-overlay.dts | 25 ++ qcom/blair-miami-evt1-overlay.dts | 24 ++ qcom/blair-miami-evt2-overlay.dts | 24 ++ qcom/blair-moto-miami-base.dts | 45 +++ qcom/discrete_charging_miami.dtsi | 405 +++++++++++++++++++ qcom/miami-display.dtsi | 484 +++++++++++++++++++++++ qcom/miami-fps-overlay.dtsi | 182 +++++++++ qcom/miami-touchscreen.dtsi | 104 +++++ qcom/miami-wl2868c.dtsi | 71 ++++ 11 files changed, 1960 insertions(+) create mode 100644 qcom/blair-miami-common-overlay.dtsi create mode 100644 qcom/blair-miami-dvt1-overlay.dts create mode 100644 qcom/blair-miami-dvt2-overlay.dts create mode 100644 qcom/blair-miami-evt1-overlay.dts create mode 100644 qcom/blair-miami-evt2-overlay.dts create mode 100644 qcom/blair-moto-miami-base.dts create mode 100644 qcom/discrete_charging_miami.dtsi create mode 100644 qcom/miami-display.dtsi create mode 100644 qcom/miami-fps-overlay.dtsi create mode 100755 qcom/miami-touchscreen.dtsi create mode 100644 qcom/miami-wl2868c.dtsi diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi new file mode 100644 index 000000000000..5f2821686e33 --- /dev/null +++ b/qcom/blair-miami-common-overlay.dtsi @@ -0,0 +1,572 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-nopmi-moto-common-overlay.dtsi" + +#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "miami-fps-overlay.dtsi" +#include "miami-display.dtsi" +#include "miami-touchscreen.dtsi" +#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" +#include "miami-wl2868c.dtsi" +#include "tcpc_config.dtsi" +#include "sgm7220.dtsi" +#include "discrete_charging_miami.dtsi" +#include "discrete-rt-pd-manger.dtsi" + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + sense_r_mohm = <5>; + factory_mode_ntc_exist = <0>; + df-serialnum = "SB18D38323"; + #include "bat_setting/CW_ng50-ATL-5000mah-miami.dtsi" + #include "bat_setting/CW_ng50-SWD-5000mah-miami.dtsi" + }; + + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + //sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0125>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <0>; + factory_mode_ntc_exist = <0>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <2>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + + df-serialnum = "SB18D38324"; + #include "bat_setting/SM5602_NE50_ATL_Rhodep.dtsi" + #include "bat_setting/SM5602_NE50_SWD_Rhodep.dtsi" + }; +}; + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&sx937x { + status = "disabled"; +}; + +&qupv3_se7_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + mmi,status = "/chosen", "mmi,nfc", "samsung"; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 8 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; + + sx937x_se7:sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <54>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x886 /*AFE_PARAM_PH3*/ + 0x8058 0x886 /*AFE_PARAM_PH4*/ + 0x8064 0x886 /*AFE_PARAM_PH5*/ + 0x8070 0x886 /*AFE_PARAM_PH6*/ + 0x807C 0x85C /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ + 0x803C 0xFFF9FD /*REG_AFEPH_PH1, CS0, ANT1/6, Top right*/ + 0x8048 0xFFD9FF /*REG_AFEPH_PH2, CS4, ANT2, Top center*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT5, Bottom Right*/ + 0x8060 0xBFF9FF /*REG_AFEPH_PH4, CS7, ANT8, Top Left*/ + 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ + 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8098 0x693F + 0x80B8 0x6932 + 0x80D8 0x3737 + 0x80F8 0x3C3C + 0x8118 0x4242 + 0x8138 0xFE + 0x8158 0xFE + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x3CD47000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 + 0x8024 0x7F7F + 0x4280 0xF + >; + + status = "ok"; + }; +}; + +&pmk8350_vadc { + pmk8350_chg_therm { + reg = ; + label = "pmk8350_chg_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + pmk8350_usb_conn_therm { + reg = ; + label = "pmk8350_ufs_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + usb_conn_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_conn_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + + rfc_camera_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; +}; + diff --git a/qcom/blair-miami-dvt1-overlay.dts b/qcom/blair-miami-dvt1-overlay.dts new file mode 100644 index 000000000000..e9890bbaf3f1 --- /dev/null +++ b/qcom/blair-miami-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-miami-common-overlay.dtsi" + +/ { + model = "miami"; + compatible = "qcom,blair-miami", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB100>; +}; + diff --git a/qcom/blair-miami-dvt2-overlay.dts b/qcom/blair-miami-dvt2-overlay.dts new file mode 100644 index 000000000000..d42b5fdc9f80 --- /dev/null +++ b/qcom/blair-miami-dvt2-overlay.dts @@ -0,0 +1,25 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-miami-common-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" + +/ { + model = "miami"; + compatible = "qcom,blair-miami", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xB200>; +}; + diff --git a/qcom/blair-miami-evt1-overlay.dts b/qcom/blair-miami-evt1-overlay.dts new file mode 100644 index 000000000000..15b96109157c --- /dev/null +++ b/qcom/blair-miami-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-miami-common-overlay.dtsi" + +/ { + model = "miami"; + compatible = "qcom,blair-miami", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xA100>; +}; + diff --git a/qcom/blair-miami-evt2-overlay.dts b/qcom/blair-miami-evt2-overlay.dts new file mode 100644 index 000000000000..40d769034c31 --- /dev/null +++ b/qcom/blair-miami-evt2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-miami-common-overlay.dtsi" + +/ { + model = "miami"; + compatible = "qcom,blair-miami", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x4D 0xA200>; +}; + diff --git a/qcom/blair-moto-miami-base.dts b/qcom/blair-moto-miami-base.dts new file mode 100644 index 000000000000..e9b5f91a2ff2 --- /dev/null +++ b/qcom/blair-moto-miami-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi new file mode 100644 index 000000000000..b977b228ca41 --- /dev/null +++ b/qcom/discrete_charging_miami.dtsi @@ -0,0 +1,405 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se10_i2c { + status = "okay"; + bq2597x: bq2597x-charger@66 { + compatible = "ti,bq25970-charger"; + reg = <0x66>; + #io-channel-cells = <1>; + //ti,bq2597x,interrupt_gpios = <&pio 30 0>; + //interrupt-parent = <&pio>; + //interrupts = <2 IRQ_TYPE_EDGE_FALLING 2 0>; + //interrupt-names = "bq2597x_irq"; + + //pinctrl-names = "default_slave"; + //pinctrl-0 = <&bq2597x_int_default_slave>; + interrupt-parent = <&tlmm>; + interrupts = <84 0>; //irq num base on hardware design + bq2597x,irq-gpio = <&tlmm 84 0>; //irq num base on hardware design + + ti,bq2597x,bat-ovp-disable = <0>; + ti,bq2597x,bat-ocp_disable = <0>; + ti,bq2597x,bat-ovp-alarm-disable = <0>; + ti,bq2597x,bus-ocp-disable = <0>; + ti,bq2597x,bus-ovp-alarm-disable = <0>; + ti,bq2597x,bus-ocp-alarm-disable = <0>; + ti,bq2597x,bat-ucp-alarm-disable = <0>; + ti,bq2597x,bat-therm-disable = <0>; + ti,bq2597x,bus-therm-disable = <0>; + + ti,bq2597x,bat-ovp-threshold = <4500>; + ti,bq2597x,bat-ovp-alarm-threshold = <4450>; + ti,bq2597x,bat-ocp-threshold = <8000>; + ti,bq2597x,bat-ocp-alarm-threshold = <7500>; + + ti,bq2597x,bus-ovp-threshold = <12000>; + ti,bq2597x,bus-ovp-alarm-threshold = <11000>; + ti,bq2597x,bus-ocp-threshold = <3750>; + ti,bq2597x,bus-ocp-alarm-threshold = <3500>; + + ti,bq2597x,bat-ucp-alarm-threshold = <2000>; + + ti,bq2597x,bat-therm-threshold = <0x15>; + ti,bq2597x,bus-therm-threshold = <0x15>; + ti,bq2597x,die-therm-threshold = <125>; + + ti,bq2597x,ac-ovp-threshold = <17>; + ti,bq2597x,sense-resistor-mohm = <5>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&wt6670 PSY_IIO_DETECTION_READY>, + <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; + io-channel-names = "gpio3_div3", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_start_detection", + "wt6670_detection_ready", + "qc3p_start_policy"; + + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + //sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890: bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, + <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, + <&wt6670 PSY_IIO_QC3P_POWER>, + <&wt6670 PSY_IIO_START_DETECTION>, + <&wt6670 PSY_IIO_DETECTION_READY>, + <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; + io-channel-names = "gpio3_div3", + "wt6670_usb_real_type", + "wt6670_usb_qc3p_power", + "wt6670_start_detection", + "wt6670_detection_ready", + "qc3p_start_policy"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + //bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&usb2_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; + + wt6670: wt6670f@35 { + status = "okay"; + compatible = "mediatek,wt6670f_qc3p"; + reg = <0x35>; + #io-channel-cells = <1>; + wt6670f-reset-gpio = <&tlmm 56 0x0>; + wt6670f-int-gpio = <&tlmm 85 0x0>; + //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; + //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; + + //pinctrl-names = "default", + //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", + //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", + //"wt6670_i2c"; + + //pinctrl-0 = <&wt6670_pins_default>; + //pinctrl-1 = <&wt6670_pins_scl_low>; + //pinctrl-2 = <&wt6670_pins_scl_high>; + //pinctrl-3 = <&wt6670_pins_sda_low>; + //pinctrl-4 = <&wt6670_pins_sda_high>; + //pinctrl-5 = <&wt6670_pins_i2c>; + }; +}; + +&tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + //add wt6670 pins + wt6670_pins_default: wt6670_default_mode { + }; + wt6670_pins_scl_low: wt6670_scl_low { + mux { + pins = "gpio1"; + function = "gpio"; + }; + + config { + pins = "gpio1"; + drive-strength = <2>; + bias-pull-down; + }; + }; + wt6670_pins_scl_high: wt6670_scl_high { + mux { + pins = "gpio1"; + function = "gpio"; + }; + + config { + pins = "gpio1"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; + wt6670_pins_sda_low: wt6670_sda_low { + mux { + pins = "gpio0"; + function = "gpio"; + }; + + config { + pins = "gpio0"; + drive-strength = <2>; + bias-pull-down; + }; + }; + wt6670_pins_sda_high: wt6670_sda_high { + mux { + pins = "gpio0"; + function = "gpio"; + }; + + config { + pins = "gpio0"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; +/* + wt6670_pins_i2c: wt6670_i2c_mode { + pins_cmd_dat { + pinmux = , + ; + }; + }; +*/ +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <3000>; + mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; + mmi,df-serialnum = "SB18D33989"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <45 0 4000 4000>, + <60 4200 3000 0>; + mmi,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; + + mmi_chrg: mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_HW_CURRENT_MAX>, + <&mmi_discrete_charger PSY_IIO_USB_CHARGING_ENABLED>, + <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, + <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, + <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, + <&mmi_discrete_charger PSY_IIO_USB_TERMINATION_ENABLED>, + <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_DP_DM>, + <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, + <&bq2597x PSY_IIO_CP_ENABLE>, + <&bq2597x PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq2597x PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq2597x PSY_IIO_CP_STATUS1>, + <&bq2597x PSY_IIO_CP_CLEAR_ERROR>; + + io-channel-names = "hw_current_max", + "charging_enabled", + "typec_mode", + "input_current_settled", + "pd_active", + "termination_enabled", + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", + "bq2597x_cp_enabled", + "bq2597x_input_current_now", + "bq2597x_input_voltage_settled", + "bq2597x_cp_status1", + "bq2597x_cp_clear_error"; + + // qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <10000000>; + mmi,pd-curr-max = <3000000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4550000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 1000 0 0>, + <10 4250 3000 4450 1000>, + <15 4450 3000 0 0>, + <45 4350 6000 4480 4000>, + <60 4200 4000 0 0>; + mmi,thermal-mitigation = + <5800000>, + <5000000>, + <4000000>, + <3500000>, + <3000000>, + <2000000>, + <1000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "mmi_battery"; + charging-curr-limited = <500000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "cp-standalone"; + charging-curr-min = <1500000>; + }; + }; +}; + diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi new file mode 100644 index 000000000000..2353bc044c90 --- /dev/null +++ b/qcom/miami-display.dtsi @@ -0,0 +1,484 @@ +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" +#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" +#include "dsi-panel-mot-dummy-qhd-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&display_panel_avdd { + status = "disabled"; +}; + +&display_panel_ibb { + status = "disabled"; +}; + +&qupv3_se2_spi { + status = "disabled"; +}; + +&qupv3_se2_i2c { + status = "disabled"; +}; + +&tlmm { + panel_vci_en_default: panel_vci_en_default { + mux { + pins = "gpio46"; + function = "gpio"; + }; + + config { + pins = "gpio46"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + dsi_panel_pwr_supply_amoled: dsi_panel_pwr_supply_amoled { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <0>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <60700>; + qcom,supply-disable-load = <10>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <30000>; + qcom,supply-disable-load = <0>; + qcom,supply-post-on-sleep = <0>; + qcom,supply-post-off-sleep = <2>; + }; + }; + + panel_vci: panel_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "panel_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 46 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&panel_vci>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_vci_en_default>; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vci-supply = <&panel_vci>; + vddio-supply = <&L13A>; + dvdd-supply = <&L3A>; + qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; +}; + +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + vqcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + diff --git a/qcom/miami-fps-overlay.dtsi b/qcom/miami-fps-overlay.dtsi new file mode 100644 index 000000000000..a6d68b415f87 --- /dev/null +++ b/qcom/miami-fps-overlay.dtsi @@ -0,0 +1,182 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ft_power_high: ft_power_high { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_power_low: ft_power_low { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; + + ft_eint_as_int: ft_eint_as_int { + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + + ft_reset_high: ft_reset_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + ft_reset_low: ft_reset_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 6 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + ft9362: ft9362 { + status = "ok"; + compatible = "focaltech,fingerprint"; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp,reset_gpio = <&tlmm 18 0>; + fp,irq_gpio = <&tlmm 17 0>; + fp,vdd_gpio = <&tlmm 6 0>; + + pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", + "fpsensor_finger_rst_low","fpsensor_finger_rst_high", + "fpsensor_eint_as_int"; + pinctrl-0 = <&ft_power_high>; + pinctrl-1 = <&ft_power_low>; + pinctrl-2 = <&ft_reset_low>; + pinctrl-3 = <&ft_reset_high>; + pinctrl-4 = <&ft_eint_as_int>; + }; +}; diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi new file mode 100755 index 000000000000..adabc15c907d --- /dev/null +++ b/qcom/miami-touchscreen.dtsi @@ -0,0 +1,104 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <10>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <10>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + + goodix_ts_spi@0 { + status = "ok"; + compatible = "goodix,gt9916S"; + reg = <0x0>; + mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x2002>; + goodix,avdd-gpio = <&tlmm 92 0x0>; + goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ + goodix,panel-max-id = <10>; + goodix,panel-max-x = <1080>; + goodix,panel-max-y = <2400>; + goodix,panel-max-w = <255>; + goodix,panel-max-p = <4096>; + panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + mmi,power-off-suspend; + mmi,enable-gestures; + mmi,usb-charger-detection; + }; +}; diff --git a/qcom/miami-wl2868c.dtsi b/qcom/miami-wl2868c.dtsi new file mode 100644 index 000000000000..c2ed59b88da4 --- /dev/null +++ b/qcom/miami-wl2868c.dtsi @@ -0,0 +1,71 @@ +&tlmm{ + pmic_en_default: pmic_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-up; + output-high; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + + cam_pmic: wl2868c@2F{ + compatible = "semi,wl2868c"; + reg = <0x2F>; + semi,cs-gpios = <&tlmm 33 1>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From 3c1bee089cb789a777b7ab0ee3b3bcf5e9a3b8e1 Mon Sep 17 00:00:00 2001 From: wengjun1 Date: Thu, 3 Mar 2022 10:10:02 +0800 Subject: [PATCH 0704/1247] rhodep: arm64/dts: Fixed tap to wake can't work.(latest DVT2 only) - Since now touch can't support for tianma v2, add this config and make touch can match the tianma v2 display. Change-Id: Ia33537f30c79cc35dfa93d05160ec43d4ef5f125 Signed-off-by: wengjun1 Reviewed-on: https://gerrit.mot.com/2205779 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodep-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodep-touchscreen.dtsi b/qcom/rhodep-touchscreen.dtsi index adabc15c907d..e00d715a5924 100755 --- a/qcom/rhodep-touchscreen.dtsi +++ b/qcom/rhodep-touchscreen.dtsi @@ -91,6 +91,7 @@ goodix,panel-max-p = <4096>; panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; From 485787f4b0e562a8e33ec15fa94ef15cfb82e5d4 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Mon, 28 Feb 2022 13:48:48 +0800 Subject: [PATCH 0705/1247] arm64/dt bringup rhodei dts bringup the rhode5g india sku config the dts based rhode5g Change-Id: Ib7cef9c91785e5d79702dddd3ab775f71fbe8c64 Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2203004 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 ++++ qcom/blair-rhodei-common-overlay.dtsi | 2 +- qcom/blair-rhodei-evt1-overlay.dts | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/qcom/Makefile b/qcom/Makefile index 0dfa6dfe34ae..45ea439a7d35 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -111,6 +111,10 @@ blair-rhodep-evt2-overlay.dtbo-base := blair-moto-rhodep-base.dtb blair-rhodep-dvt1-overlay.dtbo-base := blair-moto-rhodep-base.dtb blair-rhodep-dvt2-overlay.dtbo-base := blair-moto-rhodep-base.dtb +dtbo-$(CONFIG_RHODEI_DTB) += \ + blair-rhodei-evt1-overlay.dtbo + +blair-rhodei-evt1-overlay.dtbo-base := blair-moto-rhodei-base.dtb else ifneq ($(CONFIG_ARCH_QTI_VM), y) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 4631224b251b..c736fc882be1 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -23,7 +23,7 @@ #include "rhodei-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" -#include "discrete_charging_rhodei.dtsi" +#include "discrete_charging_rhodep.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/blair-rhodei-evt1-overlay.dts b/qcom/blair-rhodei-evt1-overlay.dts index da9a3b8cbad0..d4717f998c3a 100644 --- a/qcom/blair-rhodei-evt1-overlay.dts +++ b/qcom/blair-rhodei-evt1-overlay.dts @@ -19,6 +19,6 @@ model = "rhodei"; compatible = "qcom,blair-rhodei", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x4D 0xA100>; + qcom,board-id = <0x42 0xA100>; }; From eeb90fabfd57a9f055457d7c1e618234f20b294b Mon Sep 17 00:00:00 2001 From: weimh1 Date: Thu, 3 Mar 2022 17:26:11 +0800 Subject: [PATCH 0706/1247] cypfr/sensor: sar sensor params 1.update params for sx9375 2.blari-cypfr-common-overlay.dtsi Change-Id: Idf2e146c1bdc7042405fcde1d709c052655e60af Signed-off-by: weimh1 Reviewed-on: https://gerrit.mot.com/2206290 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index a5c9ade12bbd..c950164bbaf1 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -706,7 +706,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <72>; + Semtech,reg-num = <66>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ From 64f7fdd586efc6e63a1aab8c61091d5a187aead1 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Tue, 1 Mar 2022 15:31:53 +0800 Subject: [PATCH 0707/1247] dtsi/panel: The panel icnl9922 bringup for display Modify: Bringup panel icnl9922 panel,add the new panel devicetree and moto definition. Change-Id: I177951a47605e0f213c12620d4c5c90c9c3883cf Reviewed-on: https://gerrit.mot.com/2204101 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9922-645-1080x2400-video.dtsi | 87 +++++++++++++++++++ qcom/rhodec-display.dtsi | 47 ++++++++++ 2 files changed, 134 insertions(+) create mode 100644 qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi diff --git a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi new file mode 100644 index 000000000000..e980051a8e49 --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi @@ -0,0 +1,87 @@ +&mdss_mdp { + dsi_icnl9922_fhd_plus_120_video: qcom,mdss_dsi_tm_icnl9922_645_fhd_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_icnl9922_fhdp_645_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <150>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <34>; + qcom,mdss-dsi-v-front-porch = <38>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 39 00 00 00 01 00 03 F0 5A 59 + 39 00 00 00 01 00 03 F1 A5 A6 + 39 00 00 00 01 00 03 F0 B4 4B + 39 00 00 00 01 00 10 70 41 12 00 05 00 5A 00 6F 00 77 00 31 02 20 20 + 39 00 00 00 01 00 21 71 11 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 + 39 00 00 00 01 00 21 72 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 + 39 00 00 00 01 00 21 73 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 + 39 00 00 00 01 00 21 74 12 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 + 39 00 00 00 01 00 21 75 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 + 39 00 00 00 01 00 21 76 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 + 39 00 00 00 01 00 03 F0 5A 59 + 39 00 00 00 01 00 03 F1 A5 A6 + //SLPOT + DISPON + 15 00 00 00 01 00 02 51 CC + 15 00 00 00 01 00 02 53 2C + 15 00 00 00 01 00 02 55 01 + 15 00 00 00 01 00 02 35 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 78 00 01 29 + 15 01 00 00 01 00 02 AC 05 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 15 01 00 00 01 00 02 AC 0A + 05 01 00 00 10 00 01 28 + 05 01 00 00 32 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-update-pps-disable; + qcom,mdss-dsc-slice-height = <8>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + }; + }; +}; diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 6febbcd59cfc..c67713372317 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" #include "dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi" +#include "dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -215,6 +216,52 @@ }; }; + + +&dsi_icnl9922_fhd_plus_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-no-panel-on-read-support; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,tp_state_check_enable; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x39>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 06 06 22 20 07 07 07 02 04 00]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &dsi_ili7807s_fhd_plus_120_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 261e5af1096a655d07833def9a76a7888bbc8a6f Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 4 Mar 2022 13:50:46 +0800 Subject: [PATCH 0708/1247] arm/dt: rhodec: set backlight max current to 23mA - set nt36672c pwm to 11bit - set backlight max current to 23mA - set sm5350 default brightness to 1810 to avoid brightness change when boot. Change-Id: I88a23f10c751efdc2bdMontanafa0800bcfd48b6ff8d Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2207193 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Shanshan Dai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-nt36672c-645-1080x2400-video.dtsi | 6 ++++- qcom/rhodec-display.dtsi | 27 ++++++++----------- 2 files changed, 16 insertions(+), 17 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi index 30e13c971b2f..70bac21cac7a 100644 --- a/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi @@ -52,6 +52,10 @@ 15 00 00 00 00 00 02 B0 00 39 00 00 00 00 00 03 C2 1B A0 + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 60 + 15 00 00 00 00 00 02 FF F0 15 00 00 00 00 00 02 FB 01 15 00 00 00 00 00 02 1C 01 @@ -68,7 +72,7 @@ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 15 00 00 00 00 00 02 C0 03 - 15 00 00 00 00 00 02 51 CC + 39 00 00 00 00 00 03 51 06 66 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 64 00 01 11 diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index c67713372317..e442ba54d124 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -198,9 +198,9 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; @@ -285,10 +285,10 @@ qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "txd"; - qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,suspend-ulps-enabled; @@ -298,13 +298,7 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,dsi-supported-dfps-list = <60 90 120>; - - - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,dsi-supported-dfps-list = <120 90 60>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0C>; @@ -354,7 +348,7 @@ aw99703,switch-freq = <1>; /* 1000kHz(default) */ aw99703,auto-freq-high = <0x10>; aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-fscal-led = <0x17>; /* 24.8mA */ aw99703,bl-channel = <3>; aw99703,turn-on-ramp = <0x00>; /* 512us */ aw99703,turn-off-ramp = <0x04>; /* 8ms */ @@ -366,11 +360,12 @@ aw99703,default-brightness = <1810>; status = "okay"; - pwm-cfg = <0x0C>; + pwm-cfg = <0x0F>; boost-ctl = <0x03>; ctl-bank-en = <0x02>; - full-scale-current = <0x0A>; + full-scale-current = <0x17>; map-mode = <0>; /* 0 exponential, 1 linear */ + sm5350,default-brightness = <1810>; }; ocp2138@3e { From e97909b16f90887782730361a824092a640d91b0 Mon Sep 17 00:00:00 2001 From: Liyun Zhang Date: Thu, 3 Mar 2022 22:47:21 -0600 Subject: [PATCH 0709/1247] Revert "(CR) milanf: arm64/dts: Remove 1st tm panel that didn't support." This reverts commit f3f61efbdf668311b7232265c819ed34448c60ee. Change-Id: Ibc3a6fcc68987c5df59f646fd50e323ef07d733f Reviewed-on: https://gerrit.mot.com/2207131 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Tested-by: Liyun Zhang Submit-Approved: Jira Key --- qcom/milanf-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/milanf-touchscreen.dtsi b/qcom/milanf-touchscreen.dtsi index 0a8f2bdaeba3..02bc5dd7c72f 100755 --- a/qcom/milanf-touchscreen.dtsi +++ b/qcom/milanf-touchscreen.dtsi @@ -85,8 +85,8 @@ novatek,report_gesture_key; novatek,usb_charger; novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; - novatek,panel-supplier = "tianma","csot"; - panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_csot_nt36672e_678_fhdp_120_video>; + novatek,panel-supplier = "tianma","tm","csot"; + panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; status = "ok"; }; From b5a923f771a3cf3c3232320dc60ac463299bc79e Mon Sep 17 00:00:00 2001 From: Liyun Zhang Date: Thu, 3 Mar 2022 22:47:40 -0600 Subject: [PATCH 0710/1247] Revert "(CR) dts/panel: Milanf: Remove 1st LCD code that didn't support" This reverts commit b66ddadc0aa9d570abe71f929010189bbcf2fa92. Change-Id: I121cacd4321724a17e8fe93f246074866031b85d Reviewed-on: https://gerrit.mot.com/2207134 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Dezhen Hou Reviewed-by: Hujun Liao Tested-by: Liyun Zhang Submit-Approved: Liyun Zhang --- ...l-mot-tm-nt36672e-678-1080x2460-video.dtsi | 113 ++++++++++++++++++ qcom/milanf-display.dtsi | 46 +++++++ 2 files changed, 159 insertions(+) create mode 100644 qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi diff --git a/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi new file mode 100644 index 000000000000..cf9ba6c3fdce --- /dev/null +++ b/qcom/dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi @@ -0,0 +1,113 @@ +&mdss_mdp { + dsi_tm_nt36672e_678_fhdp_120_video: qcom,mdss_dsi_tm_nt36672e_678_fhdp_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_nt36672e_fhdp_678_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 2>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <158>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2460>; + qcom,mdss-dsi-h-front-porch = <110>; + qcom,mdss-dsi-h-back-porch = <18>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <10>; + qcom,mdss-dsi-v-front-porch = <60>; + qcom,mdss-dsi-v-pulse-width = <10>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 29 01 00 00 00 00 02 FF 10 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 36 00 + 29 01 00 00 00 00 06 3B 03 14 3C 04 04 + 29 01 00 00 00 00 02 B0 00 + 29 01 00 00 00 00 02 C0 03 + 29 01 00 00 00 00 03 C2 1B A0 + 29 01 00 00 00 00 02 E9 00 + + 29 01 00 00 00 00 02 FF E0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 35 82 + 29 01 00 00 00 00 02 85 32 + + 29 01 00 00 00 00 02 FF F0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 1C 01 + 29 01 00 00 00 00 02 33 01 + 29 01 00 00 00 00 02 5A 00 + 29 01 00 00 00 00 02 9F 19 + + 29 01 00 00 00 00 02 FF D0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 53 22 + 29 01 00 00 00 00 02 54 02 + + 29 01 00 00 00 00 02 FF C0 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 9C 11 + 29 01 00 00 00 00 02 9D 11 + + 29 01 00 00 00 00 02 FF 25 + 29 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 0F 1B + 29 01 00 00 00 00 02 18 20 + + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 29 01 00 00 00 00 02 C0 03 + 39 01 00 00 00 00 02 51 CC + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 01 + + 05 01 00 00 65 00 01 11 + 05 01 00 00 29 00 01 29 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 46 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <8>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + }; + }; + }; +}; diff --git a/qcom/milanf-display.dtsi b/qcom/milanf-display.dtsi index 5d504ca40061..554c87e6aeaf 100644 --- a/qcom/milanf-display.dtsi +++ b/qcom/milanf-display.dtsi @@ -1,4 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" #include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" #include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" @@ -119,6 +120,51 @@ qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; }; +&dsi_tm_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 8369b33cf791b324586dd8f7ef08bf615b573112 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 8 Mar 2022 14:00:46 +0800 Subject: [PATCH 0711/1247] arm/dts: config charge dtsi file for rhodei project rhode-5g fg/typec/charger ic config to discrete_charging_holi.dtsi rhodec/rhodei use the same charger dtsi file. Change-Id: I629f80be9671cc94dd4c92f2c6a77d93ebd9a1e9 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2209833 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- qcom/discrete_charging_rhodei.dtsi | 222 -------------------------- 2 files changed, 1 insertion(+), 223 deletions(-) delete mode 100644 qcom/discrete_charging_rhodei.dtsi diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index c736fc882be1..96751aed0622 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -23,7 +23,7 @@ #include "rhodei-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" -#include "discrete_charging_rhodep.dtsi" +#include "discrete_charging_holi.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/discrete_charging_rhodei.dtsi b/qcom/discrete_charging_rhodei.dtsi deleted file mode 100644 index 8624a804fa25..000000000000 --- a/qcom/discrete_charging_rhodei.dtsi +++ /dev/null @@ -1,222 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#include -#include "sgm7220.dtsi" -#include "discrete-rt-pd-manger.dtsi" - -&pm6125_vadc { - gpio6_div3{ - reg = ; - label = "gpio3_div3"; - qcom,pre-scaling = <1 3>; - }; -}; - -&pm6125_gpios { - gpio6_adc{ - gpio6_adc_default:gpio6_adc_default{ - pins = "gpio6"; - function = "normal"; - bias-high-impedance; - }; - }; -}; - -&qupv3_se8_i2c { - status = "okay"; - cw2217@64 { - compatible = "cellwise,cw2217"; - reg = <0x64>; - status = "okay"; - - df-serialnum = "SB18D24973"; - #include "bat_setting/CW_nd50-atl-5000mah.dtsi" - #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" - }; - - sm5602@71 { - compatible = "sm,sm5602"; - reg = <0x71>; - //interrupt-parent = <&tlmm>; - //interrupts = <38 2>; - //qcom,irq-gpio = <&tlmm 38 0x0>; - - sm,en_temp_ex; - //sm,en_temp_in; - sm,en_batt_det; - sm,iocv_man_mode; - sm,misc = <0x0800>; - sm,aging_ctrl = <0x0121>; - sm,cycle_cfg = <0x7000>; - sm,rsns = <1>; - sm,fg_irq_set = <0x07FF>; - sm,low_soc1 = <1>; - sm,low_soc2 = <15>; - sm,v_l_alarm = <3400>; - sm,v_h_alarm = <4450>; - sm,battery_table_num = <0>; - sm,param_version = <3>; - sm,t_l_alarm_in = <54>; - sm,t_h_alarm_in = <1>; - sm,t_l_alarm_ex = <0xD3D8>; - sm,t_h_alarm_ex = <0x9245>; - sm,shutdown-delay-enable; - - df-serialnum = "SB18D24973"; - #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" - #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" - }; - - sgm4154x: sgm4154x@3B { - status = "okay"; - compatible = "sgm,sgm41542"; - reg = <0x3B>; - - pinctrl-names = "default"; - pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; - - interrupt-parent = <&tlmm>; - interrupts = <12 0>; //irq num base on hardware design - sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design - sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other - - dpdm-supply = <&qusb_phy0>; - mmi,qc3-support; - - /* sw jeita parameter customer defined*/ - enable_sw_jeita; - jeita_temp_above_t4_cv = <0>; - jeita_temp_t3_to_t4_cv = <4100000>; - jeita_temp_t2_to_t3_cv = <4350000>; - jeita_temp_t1_to_t2_cv = <4350000>; - jeita_temp_t0_to_t1_cv = <0>; - jeita_temp_below_t0_cv = <0>; - - jeita_temp_above_t4_cc_current = <0>; - jeita_temp_t3_to_t4_cc_current = <1000000>; - jeita_temp_t2_to_t3_cc_current = <1250000>; - jeita_temp_t1_to_t2_cc_current = <1000000>; - jeita_temp_below_t0_cc_current = <0>; - - temp_t4_thres = <50>; - temp_t4_thres_minus_x_degree = <48>; - temp_t3_thres = <45>; - temp_t3_thres_minus_x_degree = <45>; - temp_t2_thres = <20>; - temp_t2_thres_plus_x_degree = <15>; - temp_t1_thres = <0>; - temp_t1_thres_plus_x_degree = <0>; - temp_t0_thres = <0>; - temp_t0_thres_plus_x_degree = <2>; - temp_neg_10_thres = <0>; - }; - - bq25890@6A { - status = "okay"; - compatible = "ti,bq2589x-1"; - reg = <0x6A>; - - pinctrl-names = "default"; - pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; - - bq2589x_irq-gpio = <&tlmm 12 0>; - bq2589x_en-gpio = <&tlmm 92 0>; - dpdm-supply = <&qusb_phy0>; - - mmi,qc3-support; - ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ - ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ - ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; - ti,bq2589x,charge-voltage = <4450>; - ti,bq2589x,charge-current = <3000>; - ti,bq2589x,term-current = <128>; - ti,bq2589x,enable-auto-dpdm; - ti,bq2589x,enable-termination; - ti,bq2589x,enable-ico; - ti,bq2589x,use-absolute-vindpm; - }; -}; - -&soc { - mmi_charger: mmi,charger { - status = "ok"; - compatible = "mmi,mmi-charger"; - mmi,enable-charging-limit; - mmi,upper-limit-capacity = <65>; - mmi,lower-limit-capacity = <60>; - mmi,heartbeat-interval = <5000>; - mmi,dcp-power-max = <10000>; - mmi,hvdcp-power-max = <15000>; - }; - - mmi_discrete_charger: mmi,discrete-charging { - status = "ok"; - compatible = "mmi,mmi-discrete-charger"; - #io-channel-cells = <1>; - battery-names = "battery"; - supplied-from = "mmi_battery"; - - mmi,chrg-iterm-ma = <243>; - mmi,fg-iterm-ma = <500>; - mmi,max-fv-mv = <4450>; - mmi,max-fcc-ma = <4000>; - mmi,demo-fv-mv = <4000>; - mmi,df-serialnum = "SB18D24973"; - mmi,mmi-temp-zones = <0 4200 1000 0>, - <10 4250 2500 1000>, - <15 0 2500 2500>, - <45 0 4000 4000>, - <60 4200 4000 0>; - - mmi,thermal-mitigation = <4000000 3000000 2500000 - 2000000 1500000 - 1200000 900000 - 600000 300000>; - }; -}; - - -&tlmm { - - chg_irq_default: chg_irq_default { - /* IRQ */ - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - bias-pull-up; - drive-strength = <2>; /* 2 MA */ - input-enable; - }; - }; - - bq2589x_irq: bq2589x_irq { - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - drive-strength = <2>; - bias-pull-up; - input-enable; - }; - }; -}; From d91cf00bcf18792d1068763a11b14160e9f94bc3 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 9 Mar 2022 16:29:55 +0800 Subject: [PATCH 0712/1247] arm/dts: add rhodei charger dts config build ERROR: ufdt_overlay_do_fixups():Couldn't find 'qusb_phy0' symbol in main dtb discrete_charging_holi.dts is for sm4350 platform. In sm6375 platform can't find "qusb_phy0" add discrete_charging_rhodei.dtsi for rhodei project. For sm6375 platform, dpd-supply = <&usb2_phy0> Change-Id: Ifbe32a6d9cc438d5d209c69762bbbb575ff57d0a Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2211352 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- qcom/discrete_charging_rhodei.dtsi | 223 ++++++++++++++++++++++++++ 2 files changed, 224 insertions(+), 1 deletion(-) create mode 100644 qcom/discrete_charging_rhodei.dtsi diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 96751aed0622..4631224b251b 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -23,7 +23,7 @@ #include "rhodei-touchscreen.dtsi" #include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" -#include "discrete_charging_holi.dtsi" +#include "discrete_charging_rhodei.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/discrete_charging_rhodei.dtsi b/qcom/discrete_charging_rhodei.dtsi new file mode 100644 index 000000000000..147e7964e97e --- /dev/null +++ b/qcom/discrete_charging_rhodei.dtsi @@ -0,0 +1,223 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include +#include "sgm7220.dtsi" +#include "discrete-rt-pd-manger.dtsi" + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D24973"; + #include "bat_setting/CW_nd50-atl-5000mah.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" + }; + + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0121>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <1>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <3>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + sm,shutdown-delay-enable; + + df-serialnum = "SB18D24973"; + #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" + #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" + }; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; + dpdm-supply = <&usb2_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + ti,bq2589x,disable-ilim; + }; +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <15000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,df-serialnum = "SB18D24973"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 4000 0>; + + mmi,thermal-mitigation = <4000000 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + + +&tlmm { + + chg_irq_default: chg_irq_default { + /* IRQ */ + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + bias-pull-up; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; +}; From 40769b4bf949f7944d909a34d70d1f57fabf7a83 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Mon, 7 Mar 2022 17:59:46 +0800 Subject: [PATCH 0713/1247] dtsi/Rhodec:Bringup TM_ICNL9922 touch panel Modify: -Add panel tianma_icnl9922 TP dtsi bringup in touchscreen.dtsi. Change-Id: I33d932bfc34f04b409fd2aea34dc4126b95c0787 Reviewed-on: https://gerrit.mot.com/2208884 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: panyq6 --- qcom/rhodec-touchscreen.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index ade1f7cfa01f..a5b3998d6b00 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -143,4 +143,24 @@ ilitek,report_gesture_key; status = "ok"; }; + chipone_tddi@1 { + compatible = "chipone-tddi"; + reg = <0x2>; + spi-max-frequency = <4800000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2001>; + chipone,x-res = <1080>; + chipone,y-res = <2400>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + panel = <&dsi_icnl9922_fhd_plus_120_video>; + status = "ok"; + }; }; From 032d442cdf28a563e43170d70e8bbd07e01fa99f Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 10 Mar 2022 17:17:20 +0800 Subject: [PATCH 0714/1247] arm/dts: rhode-5g factory-build the charger limit change to 65~70 factory request charger limit change to [65%~70%] Change-Id: Idf4b9004f9925d26f71e085371d32751d6193f62 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2212579 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 4 ++-- qcom/discrete_charging_rhodei.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 0defbcdcb36d..671d031e5bd3 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -156,8 +156,8 @@ status = "ok"; compatible = "mmi,mmi-charger"; mmi,enable-charging-limit; - mmi,upper-limit-capacity = <65>; - mmi,lower-limit-capacity = <60>; + mmi,upper-limit-capacity = <70>; + mmi,lower-limit-capacity = <65>; mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; diff --git a/qcom/discrete_charging_rhodei.dtsi b/qcom/discrete_charging_rhodei.dtsi index 147e7964e97e..19e29075ced5 100644 --- a/qcom/discrete_charging_rhodei.dtsi +++ b/qcom/discrete_charging_rhodei.dtsi @@ -156,8 +156,8 @@ status = "ok"; compatible = "mmi,mmi-charger"; mmi,enable-charging-limit; - mmi,upper-limit-capacity = <65>; - mmi,lower-limit-capacity = <60>; + mmi,upper-limit-capacity = <70>; + mmi,lower-limit-capacity = <65>; mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; From 880bacd4b83fb73ecb3a8c4328ce28351762cb95 Mon Sep 17 00:00:00 2001 From: wanggc6 Date: Thu, 10 Mar 2022 11:03:45 +0800 Subject: [PATCH 0715/1247] dts:remove wt6670 form miami Remove wt6670 form miami , because miami does not use wt6670. Change-Id: I68695fe1707874f7a41d2c3bdd4028b1e0e12292 Signed-off-by: wanggc6 Reviewed-on: https://gerrit.mot.com/2212194 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 113 ++---------------------------- 1 file changed, 4 insertions(+), 109 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index b977b228ca41..6a180c5cff68 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -89,19 +89,8 @@ pinctrl-names = "default"; pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; #io-channel-cells = <1>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, - <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, - <&wt6670 PSY_IIO_QC3P_POWER>, - <&wt6670 PSY_IIO_START_DETECTION>, - <&wt6670 PSY_IIO_DETECTION_READY>, - <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; - io-channel-names = "gpio3_div3", - "wt6670_usb_real_type", - "wt6670_usb_qc3p_power", - "wt6670_start_detection", - "wt6670_detection_ready", - "qc3p_start_policy"; - + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; interrupt-parent = <&tlmm>; interrupts = <12 0>; //irq num base on hardware design @@ -147,18 +136,8 @@ pinctrl-names = "default"; pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; #io-channel-cells = <1>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, - <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, - <&wt6670 PSY_IIO_QC3P_POWER>, - <&wt6670 PSY_IIO_START_DETECTION>, - <&wt6670 PSY_IIO_DETECTION_READY>, - <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; - io-channel-names = "gpio3_div3", - "wt6670_usb_real_type", - "wt6670_usb_qc3p_power", - "wt6670_start_detection", - "wt6670_detection_ready", - "qc3p_start_policy"; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; bq2589x_irq-gpio = <&tlmm 12 0>; //bq2589x_en-gpio = <&tlmm 92 0>; @@ -176,29 +155,6 @@ ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; }; - - wt6670: wt6670f@35 { - status = "okay"; - compatible = "mediatek,wt6670f_qc3p"; - reg = <0x35>; - #io-channel-cells = <1>; - wt6670f-reset-gpio = <&tlmm 56 0x0>; - wt6670f-int-gpio = <&tlmm 85 0x0>; - //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; - //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; - - //pinctrl-names = "default", - //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", - //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", - //"wt6670_i2c"; - - //pinctrl-0 = <&wt6670_pins_default>; - //pinctrl-1 = <&wt6670_pins_scl_low>; - //pinctrl-2 = <&wt6670_pins_scl_high>; - //pinctrl-3 = <&wt6670_pins_sda_low>; - //pinctrl-4 = <&wt6670_pins_sda_high>; - //pinctrl-5 = <&wt6670_pins_i2c>; - }; }; &tlmm { @@ -228,67 +184,6 @@ input-enable; }; }; - //add wt6670 pins - wt6670_pins_default: wt6670_default_mode { - }; - wt6670_pins_scl_low: wt6670_scl_low { - mux { - pins = "gpio1"; - function = "gpio"; - }; - - config { - pins = "gpio1"; - drive-strength = <2>; - bias-pull-down; - }; - }; - wt6670_pins_scl_high: wt6670_scl_high { - mux { - pins = "gpio1"; - function = "gpio"; - }; - - config { - pins = "gpio1"; - drive-strength = <2>; - bias-pull-up; - output-high; - }; - }; - wt6670_pins_sda_low: wt6670_sda_low { - mux { - pins = "gpio0"; - function = "gpio"; - }; - - config { - pins = "gpio0"; - drive-strength = <2>; - bias-pull-down; - }; - }; - wt6670_pins_sda_high: wt6670_sda_high { - mux { - pins = "gpio0"; - function = "gpio"; - }; - - config { - pins = "gpio0"; - drive-strength = <2>; - bias-pull-up; - output-high; - }; - }; -/* - wt6670_pins_i2c: wt6670_i2c_mode { - pins_cmd_dat { - pinmux = , - ; - }; - }; -*/ }; &soc { From 126415af7bcdfe2be9f81b8c732d4474511aaa0a Mon Sep 17 00:00:00 2001 From: wingte49 Date: Thu, 10 Mar 2022 20:03:21 +0800 Subject: [PATCH 0716/1247] devicetree/dtsi:Rhodec: Update the TXD_ILI7807S dtsi initial code Modify: -Update the dtsi initial code for optimizing the screen glass GIP timing. -Effection: -It will occur the problem which the top dark line when extreme and heavy load are encountered. Change-Id: I3b1626106d6c801e9e23e39a83cdf70ef5a0a3fc Reviewed-on: https://gerrit.mot.com/2212717 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi index 757cf5213f08..9b7cbf5dfd25 100644 --- a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -66,6 +66,10 @@ 15 00 00 00 00 00 02 55 01 15 00 00 00 00 00 02 35 00 05 01 00 00 78 00 01 11 + 39 00 00 00 00 00 04 FF 78 07 02 + 15 00 00 00 00 00 02 46 20 + 15 00 00 00 00 00 02 5B 11 + 39 00 00 00 00 00 04 FF 78 07 00 05 01 00 00 14 00 01 29 ]; qcom,mdss-dsi-off-command = [ From 35c8841a13f693fd04976973ae517dec4897deb4 Mon Sep 17 00:00:00 2001 From: wanggc6 Date: Wed, 9 Mar 2022 20:21:45 +0800 Subject: [PATCH 0717/1247] arm/dts: config bq25960 for miami Config bq25960_master and bq25960_slave for miami .We will use them when android system insmod bq25980_mmi_iio.ko. Change-Id: I70044c7c417a527158941430e8879446b814a569 Signed-off-by: wanggc6 Reviewed-on: https://gerrit.mot.com/2211633 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 6a180c5cff68..2212f2bb0f7f 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -157,6 +157,32 @@ }; }; +&qupv3_se2_i2c { + status = "okay"; + bq25960_master:bq25960-master@66 { + status = "okay"; + compatible = "ti,bq25960-master"; + reg = <0x66>; + interrupt-parent = <&tlmm>; + interrupts = <57 0>; + ti,irq-gpio = <&tlmm 57 0>; + }; + +}; + +&qupv3_se8_i2c { + status = "okay"; + bq25960_slave:bq25960-slave@67 { + status = "okay"; + compatible = "ti,bq25960-slave"; + reg = <0x67>; + interrupt-parent = <&tlmm>; + interrupts = <84 0>; + ti,irq-gpio = <&tlmm 84 0>; + }; + +}; + &tlmm { sgm4154x_gpio_pins: sgm4154x_gpio_pins { mux { From b233effb8266edcc36ea14807a64bfc0d145c7cf Mon Sep 17 00:00:00 2001 From: wanggc6 Date: Thu, 10 Mar 2022 18:19:06 +0800 Subject: [PATCH 0718/1247] arm/dts: bring up fuel gauge mm8013 bring up fuel gauge mm8013 for miami Change-Id: Ic508fa4a9ab4e16408f3e958494dd585e02de0d7 Signed-off-by: wanggc6 Reviewed-on: https://gerrit.mot.com/2212659 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 2212f2bb0f7f..91bd5b7b7216 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -155,6 +155,13 @@ ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; }; + + mm8013@55 { + compatible = "mitsumi,mm8013c10"; + reg = <0x55>; + status = "okay"; + + }; }; &qupv3_se2_i2c { From ed66818e928e4057d4523ee9c22bf647b703c264 Mon Sep 17 00:00:00 2001 From: wingte51 Date: Fri, 11 Mar 2022 16:39:49 +0800 Subject: [PATCH 0719/1247] : update the cw2217 gauge parameters update the cw2217 gauge parameters for shutdown voltage @~3.4V . Based on the test results, use Jiade battery, the shutdown voltage is about 3.4V. Change-Id: I35e902fdd50a8674d95017ffa6fde4f06c802bf0 Reviewed-on: https://gerrit.mot.com/2213596 Reviewed-by: Huosheng Liao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-5000mah.dtsi | 6 +++--- qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi index a5bd275d9b00..da99b4a78c5b 100644 --- a/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah.dtsi @@ -14,7 +14,7 @@ nd50-atl-5000mah { serialnum = "SB18D24973"; fcc_design = <5000>; ui_full = <98>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [49 00 00 00 00 00 00 00 B2 BB C3 C7 B9 B4 AC 72 4A FF F3 B7 8E 81 69 5B 53 50 4C 80 D9 DE B8 DD @@ -23,5 +23,5 @@ nd50-atl-5000mah { 6D 6B 79 90 A8 90 5C 69 20 00 57 10 02 B0 61 00 00 00 64 22 D3 58 00 00 - 00 00 00 00 00 00 00 20 ]; -}; \ No newline at end of file + 00 00 00 00 00 00 00 81 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi index 9f548633197b..6284ab433272 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi @@ -14,7 +14,7 @@ nd50-jiade-5000mah { serialnum = "SB18D25053"; fcc_design = <5000>; ui_full = <98>; - config_profile_info = [5A 00 00 00 00 00 00 00 + config_profile_info = [49 00 00 00 00 00 00 00 9E BE B7 CF C2 C1 91 4F 31 FF FF FF C3 A3 8B 75 61 57 4C 8E E6 DE 83 D0 @@ -23,5 +23,5 @@ nd50-jiade-5000mah { 76 6D 7A 91 A7 86 5F 72 20 00 57 10 02 B0 5A 00 00 00 64 26 D3 4D 00 00 - 00 00 00 00 00 00 00 04 ]; -}; \ No newline at end of file + 00 00 00 00 00 00 00 A5 ]; +}; From 4717aa438af9342809b8a77d2df0a323a1b9c1a0 Mon Sep 17 00:00:00 2001 From: wingte51 Date: Fri, 11 Mar 2022 17:47:39 +0800 Subject: [PATCH 0720/1247] : set the otg current to 1.2A Add otg-cl-ua configuration, and set the otg current to 1.2A. Change-Id: I881f14a95853618e7f746021b71118a919b49559 Reviewed-on: https://gerrit.mot.com/2213693 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_holi.dtsi | 1 + qcom/discrete_charging_rhodei.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/discrete_charging_holi.dtsi b/qcom/discrete_charging_holi.dtsi index 671d031e5bd3..5325513b1dbb 100644 --- a/qcom/discrete_charging_holi.dtsi +++ b/qcom/discrete_charging_holi.dtsi @@ -175,6 +175,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18D24973"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, diff --git a/qcom/discrete_charging_rhodei.dtsi b/qcom/discrete_charging_rhodei.dtsi index 19e29075ced5..003e56e875a4 100644 --- a/qcom/discrete_charging_rhodei.dtsi +++ b/qcom/discrete_charging_rhodei.dtsi @@ -175,6 +175,7 @@ mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; mmi,df-serialnum = "SB18D24973"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, From 795d49645ef0879dcba3ad996a568194149a4375 Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Fri, 11 Mar 2022 10:44:40 +0800 Subject: [PATCH 0721/1247] Rhodei:Bringup touchscreen rhodei/devices tree Add nova touchscreen Change-Id: I51c210ef610b9bfbfa3a634b6924f9e99cc92745 Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2213291 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-touchscreen.dtsi | 85 ++++++++++++++++++++++++------------ 1 file changed, 56 insertions(+), 29 deletions(-) diff --git a/qcom/rhodei-touchscreen.dtsi b/qcom/rhodei-touchscreen.dtsi index adabc15c907d..4a41f385f9b7 100755 --- a/qcom/rhodei-touchscreen.dtsi +++ b/qcom/rhodei-touchscreen.dtsi @@ -24,7 +24,7 @@ config { pins = "gpio0", "gpio1", "gpio2"; - drive-strength = <10>; + drive-strength = <6>; bias-disable; }; }; @@ -37,7 +37,7 @@ config { pins = "gpio0", "gpio1", "gpio2"; - drive-strength = <10>; + drive-strength = <6>; bias-disable; }; }; @@ -50,7 +50,7 @@ config { pins = "gpio3"; - drive-strength = <10>; + drive-strength = <6>; bias-disable; }; }; @@ -63,8 +63,47 @@ config { pins = "gpio3"; - drive-strength = <10>; - bias-pull-up; + drive-strength = <6>; + bias-bus-hold; + }; + }; + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; }; }; }; @@ -74,31 +113,19 @@ pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - goodix_ts_spi@0 { - status = "ok"; - compatible = "goodix,gt9916S"; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; reg = <0x0>; - mmi,status = "/chosen","mmi,panel_name","contains","nt37701"; spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ - goodix,reset-gpio = <&tlmm 21 0x0>; - goodix,irq-gpio = <&tlmm 22 0x2002>; - goodix,avdd-gpio = <&tlmm 92 0x0>; - goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ - goodix,panel-max-id = <10>; - goodix,panel-max-x = <1080>; - goodix,panel-max-y = <2400>; - goodix,panel-max-w = <255>; - goodix,panel-max-p = <4096>; - panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 - &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 - &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 - &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; - pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - mmi,power-off-suspend; - mmi,enable-gestures; - mmi,usb-charger-detection; + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2400>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,panel-supplier = "tm"; + panel = <&dsi_nt36672c_fhd_plus_120_video>; + status = "ok"; }; }; From d4044572241c6d783fee5ea507aed5b1152aa858 Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Fri, 11 Mar 2022 10:52:55 +0800 Subject: [PATCH 0722/1247] arm/dt: add tm nt36672c panel devicestree rhodei/devicestree: Add tm nt36672c LCM dts,remove unused GPIO configuration, and GPIO86 should not be set in camera mudule Change-Id: Ibb9bfe1df585b8e3720fc1e433f27d7b42823e74 Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2213292 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- qcom/rhodei-display.dtsi | 199 +++++++++++++++++++++++--- 2 files changed, 182 insertions(+), 19 deletions(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 4631224b251b..38d5e43b5539 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "rhodei-fps-overlay.dtsi" #include "rhodei-display.dtsi" #include "rhodei-touchscreen.dtsi" -#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" +//#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" #include "discrete_charging_rhodei.dtsi" diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 2353bc044c90..8a6ac2dc7161 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -4,6 +4,7 @@ #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -27,14 +28,28 @@ }; &tlmm { - panel_vci_en_default: panel_vci_en_default { + lcd_panel_avdd_default: lcd_panel_avdd_default { mux { - pins = "gpio46"; + pins = "gpio85"; function = "gpio"; }; config { - pins = "gpio46"; + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio86"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -43,6 +58,34 @@ }; &soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 86 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + dsi_panel_pwr_supply_amoled: dsi_panel_pwr_supply_amoled { #address-cells = <1>; #size-cells = <0>; @@ -81,18 +124,42 @@ }; }; - panel_vci: panel_gpio_regulator@1 { - compatible = "qti-regulator-fixed"; - regulator-name = "panel_vci"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 46 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&panel_vci>; - pinctrl-names = "default"; - pinctrl-0 = <&panel_vci_en_default>; + dsi_panel_pwr_supply_nt36672c_rhodei: dsi_panel_pwr_supply_nt36672c_rhodei{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <150>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <5>; + }; + }; }; @@ -103,10 +170,11 @@ /delete-property/ qcom,dsi-default-panel; /delete-property/ avdd-supply; - vci-supply = <&panel_vci>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; vddio-supply = <&L13A>; - dvdd-supply = <&L3A>; - qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; + + qcom,dsi-default-panel = <&dsi_nt36672c_fhd_plus_120_video>; }; &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { @@ -464,6 +532,50 @@ }; }; +&dsi_nt36672c_fhd_plus_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_nt36672c_rhodei>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-no-panel-on-read-support; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,tp_state_check_enable; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0D>; + qcom,mdss-dsi-t-clk-pre = <0x1A>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 16 08 08 08 02 04 00 1A 0D]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -482,3 +594,54 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + + aw99703_backlight: sprd_backlight@36{ + compatible = "awinic,aw99703-bl","sm-sm5350"; + reg = <0x36>; + hwen-gpio = <&tlmm 60 1>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x17>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; + + status = "okay"; + pwm-cfg = <0x0F>; + boost-ctl = <0x03>; + ctl-bank-en = <0x02>; + full-scale-current = <0x17>; + map-mode = <0>; /* 0 exponential, 1 linear */ + sm5350,default-brightness = <1810>; + }; + + ocp2138@3e { + compatible = "ocp,i2c_lcd_bias"; + reg = <0x3e>; + i2c-pull-up; + ocp,lcd-bias-enn-gpio = <&tlmm 85 0>; + ocp,lcd-bias-enp-gpio = <&tlmm 86 0>; + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + From 30c300d9c93667070d72a7570c960b4f292c0d59 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Mon, 14 Mar 2022 11:16:03 +0800 Subject: [PATCH 0723/1247] arm/dts: rhodei audio bringup Rhodei audio is exact same as Rhodec, dual aw88261 smartpa, use GPIO59 and GPIO84 for two IRQ pins. Change-Id: I1d19896f5aeefdae4f3708bc09be088de6ef28c7 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2214757 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 38d5e43b5539..a4c779894c43 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" +#include "holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" From 0b94e0a00866ff45950b675bf47a76a0fd8c9b5b Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 14 Mar 2022 14:47:52 +0800 Subject: [PATCH 0724/1247] arm64/dts:update sar paras for Rhodec version:12 1. Modify the scanning frequency of PH0 and PH2 2. Change the triggering threshold of PH1 Change-Id: Idf4c8880c75956cea7f501096628cda2d4265602 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2214964 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 27 ++++++--------------------- 1 file changed, 6 insertions(+), 21 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 924430dfc55b..2a1ed6129f88 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -540,20 +540,15 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <76>; + Semtech,reg-num = <61>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 0x4008 0x8 - 0x42C0 0x40800 - 0x42C4 0xFF - 0x8010 0x0 - 0x8014 0x0 - 0x8018 0x0 0x8020 0x32 - 0x8028 0x88E + 0x8028 0x8A6 0x8034 0x88E - 0x8040 0x88E + 0x8040 0x8A6 0x804C 0x88E 0x8058 0x88E 0x8064 0x88E @@ -568,7 +563,7 @@ 0x8078 0xFFF9EF 0x8084 0xBFF9FF 0x8098 0x693E - 0x80B8 0x3535 + 0x80B8 0x3131 0x80D8 0x6833 0x80F8 0x2929 0x8118 0x4C4C @@ -582,10 +577,8 @@ 0x8120 0x1A1A0002 0x8188 0x8000015 0x818C 0x8000016 - 0x81E0 0x0 - 0x81E4 0x0 - 0x81E8 0x0 - 0x81EC 0x0 + 0x8190 0x10 + 0x8194 0x12 0x8090 0x64B45000 0x80B0 0x3CD05000 0x80D0 0x32D87000 @@ -594,14 +587,6 @@ 0x8130 0x54AC5000 0x8150 0x54AC5000 0x8170 0x54AC5000 - 0x8094 0x0 - 0x80B4 0x0 - 0x80D4 0x0 - 0x80F4 0x0 - 0x8114 0x0 - 0x8134 0x0 - 0x8154 0x0 - 0x8174 0x0 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 From 79eaa5f499fd0855227b7ef568af61cb981ebc99 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 15 Mar 2022 11:37:00 +0800 Subject: [PATCH 0725/1247] arm/dts: remove wt6670 ic for rhodep remove wt6670 ic for rhodep, because rhodep use sw solution Change-Id: Ia341c0a4e5fedc3ec0d079eb78eed51382311130 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2216012 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 110 ++--------------------------- 1 file changed, 4 insertions(+), 106 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index d227a30e1d07..a8340cd11201 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -89,18 +89,8 @@ pinctrl-names = "default"; pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; #io-channel-cells = <1>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, - <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, - <&wt6670 PSY_IIO_QC3P_POWER>, - <&wt6670 PSY_IIO_START_DETECTION>, - <&wt6670 PSY_IIO_DETECTION_READY>, - <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; - io-channel-names = "gpio3_div3", - "wt6670_usb_real_type", - "wt6670_usb_qc3p_power", - "wt6670_start_detection", - "wt6670_detection_ready", - "qc3p_start_policy"; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; interrupt-parent = <&tlmm>; @@ -147,18 +137,8 @@ pinctrl-names = "default"; pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; #io-channel-cells = <1>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>, - <&wt6670 PSY_IIO_QC3P_REAL_TYPE>, - <&wt6670 PSY_IIO_QC3P_POWER>, - <&wt6670 PSY_IIO_START_DETECTION>, - <&wt6670 PSY_IIO_DETECTION_READY>, - <&mmi_chrg PSY_IIO_QC3P_START_POLICY>; - io-channel-names = "gpio3_div3", - "wt6670_usb_real_type", - "wt6670_usb_qc3p_power", - "wt6670_start_detection", - "wt6670_detection_ready", - "qc3p_start_policy"; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; bq2589x_irq-gpio = <&tlmm 12 0>; //bq2589x_en-gpio = <&tlmm 92 0>; @@ -177,28 +157,6 @@ ti,bq2589x,use-absolute-vindpm; }; - wt6670: wt6670f@35 { - status = "okay"; - compatible = "mediatek,wt6670f_qc3p"; - reg = <0x35>; - #io-channel-cells = <1>; - wt6670f-reset-gpio = <&tlmm 56 0x0>; - wt6670f-int-gpio = <&tlmm 85 0x0>; - //wt6670f-i2c-scl-pin = <&tlmm 1 0x0>; - //wt6670f-i2c-sda-pin = <&tlmm 0 0x0>; - - //pinctrl-names = "default", - //"wt6670_i2c_scl_low", "wt6670_i2c_scl_high", - //"wt6670_i2c_sda_low", "wt6670_i2c_sda_high", - //"wt6670_i2c"; - - //pinctrl-0 = <&wt6670_pins_default>; - //pinctrl-1 = <&wt6670_pins_scl_low>; - //pinctrl-2 = <&wt6670_pins_scl_high>; - //pinctrl-3 = <&wt6670_pins_sda_low>; - //pinctrl-4 = <&wt6670_pins_sda_high>; - //pinctrl-5 = <&wt6670_pins_i2c>; - }; }; &tlmm { @@ -228,67 +186,7 @@ input-enable; }; }; - //add wt6670 pins - wt6670_pins_default: wt6670_default_mode { - }; - wt6670_pins_scl_low: wt6670_scl_low { - mux { - pins = "gpio1"; - function = "gpio"; - }; - config { - pins = "gpio1"; - drive-strength = <2>; - bias-pull-down; - }; - }; - wt6670_pins_scl_high: wt6670_scl_high { - mux { - pins = "gpio1"; - function = "gpio"; - }; - - config { - pins = "gpio1"; - drive-strength = <2>; - bias-pull-up; - output-high; - }; - }; - wt6670_pins_sda_low: wt6670_sda_low { - mux { - pins = "gpio0"; - function = "gpio"; - }; - - config { - pins = "gpio0"; - drive-strength = <2>; - bias-pull-down; - }; - }; - wt6670_pins_sda_high: wt6670_sda_high { - mux { - pins = "gpio0"; - function = "gpio"; - }; - - config { - pins = "gpio0"; - drive-strength = <2>; - bias-pull-up; - output-high; - }; - }; -/* - wt6670_pins_i2c: wt6670_i2c_mode { - pins_cmd_dat { - pinmux = , - ; - }; - }; -*/ }; &soc { From 32900613439d0757c466bbd884cbd57b6da7372e Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Tue, 15 Mar 2022 15:00:26 +0800 Subject: [PATCH 0726/1247] arm/dt: add txd ili7807s panel devicestree rhodei/dts: add a sencond lcm txd ili7807s panel for rhodei remove useless lcm config Change-Id: Icddd046aac9e0b0ee2ade5d11ce42049430ee1a8 Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2216207 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 503 +++++++-------------------------------- 1 file changed, 89 insertions(+), 414 deletions(-) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 8a6ac2dc7161..84db1753a702 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -1,32 +1,12 @@ -#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" -#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" +#include "dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; /delete-property/ pinctrl-0; }; -&display_panel_avdd { - status = "disabled"; -}; - -&display_panel_ibb { - status = "disabled"; -}; - -&qupv3_se2_spi { - status = "disabled"; -}; - -&qupv3_se2_i2c { - status = "disabled"; -}; - &tlmm { lcd_panel_avdd_default: lcd_panel_avdd_default { mux { @@ -86,44 +66,6 @@ pinctrl-0 = <&lcd_panel_avee_default>; }; - dsi_panel_pwr_supply_amoled: dsi_panel_pwr_supply_amoled { - #address-cells = <1>; - #size-cells = <0>; - - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <60700>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-post-off-sleep = <0>; - }; - - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "dvdd"; - qcom,supply-min-voltage = <1250000>; - qcom,supply-max-voltage = <1250000>; - qcom,supply-enable-load = <60700>; - qcom,supply-disable-load = <10>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-post-off-sleep = <2>; - }; - - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "vci"; - qcom,supply-min-voltage = <3000000>; - qcom,supply-max-voltage = <3000000>; - qcom,supply-enable-load = <30000>; - qcom,supply-disable-load = <0>; - qcom,supply-post-on-sleep = <0>; - qcom,supply-post-off-sleep = <2>; - }; - }; - dsi_panel_pwr_supply_nt36672c_rhodei: dsi_panel_pwr_supply_nt36672c_rhodei{ #address-cells = <1>; #size-cells = <0>; @@ -161,6 +103,43 @@ }; }; + + dsi_panel_pwr_supply_rhodei: dsi_panel_pwr_supply_rhodei{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <20>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; }; &sde_dsi { @@ -177,361 +156,6 @@ qcom,dsi-default-panel = <&dsi_nt36672c_fhd_plus_120_video>; }; -&mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - vqcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - &dsi_nt36672c_fhd_plus_120_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -576,6 +200,57 @@ }; }; +&dsi_ili7807s_fhd_plus_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodei>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "txd"; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <120 90 60>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0B>; + qcom,mdss-dsi-t-clk-pre = <0x16>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 19 06 06 15 14 07 + 06 07 02 04 00 16 0B]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 1b60e553b55d7dff690a63eb517e8fe2f883c4de Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Tue, 15 Mar 2022 15:54:08 +0800 Subject: [PATCH 0727/1247] arm/dt: add txd ili7807s touchpanel devicestree rhodei/dts: add a sencond touchpanel txd ili7807s for rhodei Change-Id: Ib7d0925c1a6379adbbad904e73246293851608bc Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2216311 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-touchscreen.dtsi | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/qcom/rhodei-touchscreen.dtsi b/qcom/rhodei-touchscreen.dtsi index 4a41f385f9b7..39e266db95e3 100755 --- a/qcom/rhodei-touchscreen.dtsi +++ b/qcom/rhodei-touchscreen.dtsi @@ -128,4 +128,20 @@ panel = <&dsi_nt36672c_fhd_plus_120_video>; status = "ok"; }; + ilitek@0 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili7807s_fhd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili7807s"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; + status = "ok"; + }; }; From 7c57fdf0c016c472b603e14af418e37f2a19d0d4 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 16 Mar 2022 18:49:57 +0800 Subject: [PATCH 0728/1247] arm/dts: config front back temperature import the mmi_sys_temp for virtual sensors and thermal policy Change-Id: I51d971cfc0a3b0eb5d25b342678b7a4864882a42 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2217860 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 2a1ed6129f88..2728ef8527c8 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -23,6 +23,7 @@ #include "rhodec-fmr-overlay.dtsi" #include "camera/holi-camera-sensor-mot-rhodec-overlay.dtsi" #include "discrete_charging_holi.dtsi" +#include "moto_therm_sys_temp.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From e4cd73f2e106e9b679e06345483606966f68b8fe Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Wed, 16 Mar 2022 18:48:03 +0800 Subject: [PATCH 0729/1247] arm/dt: add tm icnl9922 display devicestree rhodei/dts: add a third display tianma icnl9922 for rhodei Change-Id: I59674ba627c620a28694413f1d2565cd1c9804bc Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2217858 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 44 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 84db1753a702..86e17a2acec0 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-nt36672c-645-1080x2400-video.dtsi" #include "dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi" +#include "dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -251,6 +252,49 @@ }; }; +&dsi_icnl9922_fhd_plus_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodei>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <8>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-no-panel-on-read-support; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,tp_state_check_enable; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0C>; + qcom,mdss-dsi-t-clk-pre = <0x17>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 16 14 07 07 07 02 04 00 17 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 351472c40869dfc551aa5a9e9e167703874f1ef8 Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Wed, 16 Mar 2022 18:52:05 +0800 Subject: [PATCH 0730/1247] arm/dt: add tm icnl9922 touchpanel devicestree rhodei/dts: add a sencond touchpanel tianma icnl9922 for rhodei Change-Id: I1b8b32cc38a6bbe82066291096ad686646a3c2a9 Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2217859 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-touchscreen.dtsi | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/qcom/rhodei-touchscreen.dtsi b/qcom/rhodei-touchscreen.dtsi index 39e266db95e3..3091a737f474 100755 --- a/qcom/rhodei-touchscreen.dtsi +++ b/qcom/rhodei-touchscreen.dtsi @@ -144,4 +144,24 @@ ilitek,report_gesture_key; status = "ok"; }; + chipone_tddi@1 { + compatible = "chipone-tddi"; + reg = <0x2>; + spi-max-frequency = <4800000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2001>; + chipone,x-res = <1080>; + chipone,y-res = <2400>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + panel = <&dsi_icnl9922_fhd_plus_120_video>; + status = "ok"; + }; }; From 2cbfe9f042afbfccab5189ca362012a0e30d796a Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Fri, 18 Mar 2022 14:32:01 +0800 Subject: [PATCH 0731/1247] arm/dt: rhodei: keep L21A regulator always on sgm7220 vdd use L21A, when device booting-up, the L21A will be pull down that make sgm7720 ic power-off and hole the I2C bus. Change-Id: I3d07c336abf6b937ad1267764baf96bbfe04632d Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2219999 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index a4c779894c43..5d8dc8b88d09 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -515,3 +515,8 @@ }; }; +&L21A{ + regulator-always-on; + status = "okay"; +}; + From b24c527bc06e33d78e083db44142090fb7c4d263 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 18 Mar 2022 17:13:49 +0800 Subject: [PATCH 0732/1247] arm/dts: rhodep default battery parameter use ATL(SB18D38324) 3nd and local-buy battery will use ATL battery cell. so setting ATL(SB18D38324) to default-battery-parameter Change-Id: If87e012ad3983949550b6ec83d81a0725052d423 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2220210 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 1d5675564888..9861fc52d0ad 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -38,7 +38,7 @@ sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; - df-serialnum = "SB18D38323"; + df-serialnum = "SB18D38324"; #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" }; From b7f4e12f13ccc88c0ca55756f66fa605ac93fa04 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Tue, 15 Mar 2022 10:11:30 +0800 Subject: [PATCH 0733/1247] dts/panel: reduce nt36672c time for display Modify: reduce display vddio on time from 30 ms to 20ms, AVDD AVEE interval time from 5ms to 3ms Change-Id: Icd499cea3f8160239aac9e56132b8714f7cd602a Reviewed-on: https://gerrit.mot.com/2215904 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index e442ba54d124..70a373ab132a 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -142,7 +142,7 @@ qcom,supply-max-voltage = <1904000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; - qcom,supply-pre-on-sleep = <30>; + qcom,supply-pre-on-sleep = <20>; qcom,supply-pre-off-sleep = <150>; }; @@ -165,7 +165,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; - qcom,supply-post-off-sleep = <5>; + qcom,supply-post-off-sleep = <3>; }; }; From cb1043c5cabb3238ea49cb84d5132c53ecc3575a Mon Sep 17 00:00:00 2001 From: wingte48 Date: Thu, 17 Mar 2022 09:35:09 +0800 Subject: [PATCH 0734/1247] dts/panel: add post-off sleep time for avdd avee Modify: add display sleep timing avdd avee interval time 3ms Change-Id: I55c030f1367d91d1b17a5ddfc1424d98f7cfd1ba Reviewed-on: https://gerrit.mot.com/2215933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 70a373ab132a..10434005cee7 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -125,6 +125,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; }; }; From bd06a31805d808e9e6d0968d4fb02d6973e0d1b5 Mon Sep 17 00:00:00 2001 From: louhs1 Date: Fri, 18 Mar 2022 13:51:26 +0800 Subject: [PATCH 0735/1247] arm64/dt: bringup miami project remark: bringup the miami project Change-Id: I9f1695fc2e8dbc1a3c7a10bf6cad62a10e06e3b2 Signed-off-by: louhs1 Reviewed-on: https://gerrit.mot.com/2219976 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 5 +++++ qcom/blair-miami-common-overlay.dtsi | 4 ++-- qcom/blair-miami-evt1-overlay.dts | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/qcom/Makefile b/qcom/Makefile index 45ea439a7d35..88541d18e3c8 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -116,6 +116,11 @@ dtbo-$(CONFIG_RHODEI_DTB) += \ blair-rhodei-evt1-overlay.dtbo-base := blair-moto-rhodei-base.dtb +dtbo-$(CONFIG_MIAMI_DTB) += \ + blair-miami-evt1-overlay.dtbo + +blair-miami-evt1-overlay.dtbo-base := blair-moto-miami-base.dtb + else ifneq ($(CONFIG_ARCH_QTI_VM), y) ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 5f2821686e33..cc518efb4d61 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -38,8 +38,8 @@ sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; df-serialnum = "SB18D38323"; - #include "bat_setting/CW_ng50-ATL-5000mah-miami.dtsi" - #include "bat_setting/CW_ng50-SWD-5000mah-miami.dtsi" + #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" + #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" }; sm5602@71 { diff --git a/qcom/blair-miami-evt1-overlay.dts b/qcom/blair-miami-evt1-overlay.dts index 15b96109157c..4282379a8939 100644 --- a/qcom/blair-miami-evt1-overlay.dts +++ b/qcom/blair-miami-evt1-overlay.dts @@ -19,6 +19,6 @@ model = "miami"; compatible = "qcom,blair-miami", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x4D 0xA100>; + qcom,board-id = <0x4A 0xA100>; }; From 603b41afeb740a4de19530d1151de3c0c07df278 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Thu, 24 Mar 2022 21:52:40 +0800 Subject: [PATCH 0736/1247] dts/arm64:sx9375 sar sensor bringup work -modify sx9375 dts config for rhodei -sar sensor bringup work Change-Id: I7dd02a3724d1b0a28c652783a3632375713f1d68 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2225259 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 138 ++++++++++++-------------- 1 file changed, 65 insertions(+), 73 deletions(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 5d8dc8b88d09..11aed26427a3 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -198,10 +198,6 @@ status = "ok"; }; -&sx937x { - status = "disabled"; -}; - &qupv3_se7_i2c_sleep { config { /delete-property/ bias-disable; @@ -229,85 +225,81 @@ pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>; pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; }; +}; - sx937x_se7:sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <24 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 24 0x02>; - cap_vdd-supply = <&pm6125_l9>; - /*use PH4/5/6 as the reference sensor +&sx937x { + /*use PH5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <54>; + Semtech,reg-num = <61>; Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x886 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x886 /*AFE_PARAM_PH5*/ - 0x8070 0x886 /*AFE_PARAM_PH6*/ - 0x807C 0x85C /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ - 0x803C 0xFFF9FD /*REG_AFEPH_PH1, CS0, ANT1/6, Top right*/ - 0x8048 0xFFD9FF /*REG_AFEPH_PH2, CS4, ANT2, Top center*/ - 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT5, Bottom Right*/ - 0x8060 0xBFF9FF /*REG_AFEPH_PH4, CS7, ANT8, Top Left*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8098 0x693F - 0x80B8 0x6932 - 0x80D8 0x3737 - 0x80F8 0x3C3C - 0x8118 0x4242 - 0x8138 0xFE - 0x8158 0xFE - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8090 0x64B45000 - 0x80B0 0x3CD05000 - 0x80D0 0x32D87000 - 0x80F0 0x3CD45000 - 0x8110 0x3CD47000 - 0x8130 0x54AC5000 - 0x8150 0x54AC5000 - 0x8170 0x54AC5000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x600000 - 0x8148 0x600000 - 0x808C 0x60200030 - 0x80AC 0x60200030 - 0x80CC 0x60200018 - 0x80EC 0x60200030 - 0x810C 0x60200018 - 0x812C 0x60200030 - 0x814C 0x60200030 - 0x816C 0x60200030 - 0x8024 0x7F7F - 0x4280 0xF + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x8A6 + 0x8034 0x88E + 0x8040 0x8A6 + 0x804C 0x88E + 0x8058 0x88E + 0x8064 0x88E + 0x8070 0x88E + 0x807C 0x88E + 0x8030 0xFFD9FF + 0x803C 0xBFF9FF + 0x8048 0xFFF9FD + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF97F + 0x8078 0xFFF9EF + 0x8084 0xBFF9FF + 0x8098 0x693E + 0x80B8 0x3131 + 0x80D8 0x6833 + 0x80F8 0x2929 + 0x8118 0x4C4C + 0x8138 0x8E + 0x8158 0x8E + 0x8178 0x5A40 + 0x80A0 0x22220001 + 0x80C0 0x1F1F0001 + 0x80E0 0x48540002 + 0x8100 0x1D1D001A + 0x8120 0x1A1A0002 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x10 + 0x8194 0x12 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x2CD87000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 >; status = "ok"; - }; }; &pmk8350_vadc { From 8688aaa7fc9dfef95c1416f10860a041c3d24439 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 25 Mar 2022 14:21:15 +0800 Subject: [PATCH 0737/1247] arm64/dts:add panel node in focal fps for rhodei -add panel node in focal fps for rhodei -screen status interface for focal Change-Id: Iff3abba4bddab11deb05162885d0136ceecf58f1 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2226020 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-fps-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodei-fps-overlay.dtsi b/qcom/rhodei-fps-overlay.dtsi index a6d68b415f87..e180bffbb389 100644 --- a/qcom/rhodei-fps-overlay.dtsi +++ b/qcom/rhodei-fps-overlay.dtsi @@ -169,6 +169,7 @@ fp,reset_gpio = <&tlmm 18 0>; fp,irq_gpio = <&tlmm 17 0>; fp,vdd_gpio = <&tlmm 6 0>; + panel = <&dsi_nt36672c_fhd_plus_120_video>; pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", "fpsensor_finger_rst_low","fpsensor_finger_rst_high", From 950bab9cad4638803d43d94682e796d96d0ddc53 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 25 Mar 2022 12:35:36 +0800 Subject: [PATCH 0738/1247] arm/dt: miami: bringup oled and touch for evb board arm/dt: - change oled dvdd and vci gpio - change touch avdd and iovdd gpio - delete old camera dtsi, because it use gpio86, same as miami new board Change-Id: I974ad154b62ea5a32d3b27c038db272e781cf499 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2225881 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 2 +- qcom/miami-display.dtsi | 36 ++++++++++++++++++++++++---- qcom/miami-touchscreen.dtsi | 3 ++- 3 files changed, 35 insertions(+), 6 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index cc518efb4d61..07ea5b56eb28 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "miami-fps-overlay.dtsi" #include "miami-display.dtsi" #include "miami-touchscreen.dtsi" -#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" +//#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" #include "miami-wl2868c.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 2353bc044c90..52d7221467fb 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -29,12 +29,26 @@ &tlmm { panel_vci_en_default: panel_vci_en_default { mux { - pins = "gpio46"; + pins = "gpio86"; function = "gpio"; }; config { - pins = "gpio46"; + pins = "gpio86"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + panel_dvdd_en_default: panel_dvdd_en_default { + mux { + pins = "gpio56"; + function = "gpio"; + }; + + config { + pins = "gpio56"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -87,13 +101,27 @@ regulator-min-microvolt = <3000000>; regulator-max-microvolt = <3000000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 46 0>; + gpio = <&tlmm 86 0>; enable-active-high; regulator-boot-on; proxy-supply = <&panel_vci>; pinctrl-names = "default"; pinctrl-0 = <&panel_vci_en_default>; }; + + panel_dvdd: panel_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "panel_dvdd"; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1250000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 56 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&panel_dvdd>; + pinctrl-names = "default"; + pinctrl-0 = <&panel_dvdd_en_default>; + }; }; &sde_dsi { @@ -105,7 +133,7 @@ vci-supply = <&panel_vci>; vddio-supply = <&L13A>; - dvdd-supply = <&L3A>; + dvdd-supply = <&panel_dvdd>; qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; }; diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index adabc15c907d..9b99c9a82b90 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -82,7 +82,8 @@ spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ goodix,reset-gpio = <&tlmm 21 0x0>; goodix,irq-gpio = <&tlmm 22 0x2002>; - goodix,avdd-gpio = <&tlmm 92 0x0>; + goodix,avdd-gpio = <&tlmm 136 0x0>; + goodix,iovdd-gpio = <&tlmm 135 0x0>; goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ goodix,panel-max-id = <10>; goodix,panel-max-x = <1080>; From 555902b7d6e960a15cdb22a83f6d62752ce3f556 Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Fri, 25 Mar 2022 15:52:36 +0800 Subject: [PATCH 0739/1247] arm64/dts:rhodei:L21A to 3.3v,L19A 1.8v rhodei: L21A to 3.3v for ps leda L19A 1.8V for sar interrupt pull-up Change-Id: I5aa6b772e05c2717352184d1efdd7d71e8aef18d Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2226218 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lijun Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 11aed26427a3..def6aa27b8f4 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -507,8 +507,15 @@ }; }; -&L21A{ - regulator-always-on; +&L21A { + regulator-always-on; //typec and LEDA power + regulator-min-microvolt = <3300000>; + qcom,init-voltage = <3300000>; status = "okay"; }; +&L9A { + regulator-always-on; //SAR interrupt power + qcom,init-voltage = <1800000>; + status = "okay"; +}; From f63a760c76246d97835874ab77d73f0ff98be105 Mon Sep 17 00:00:00 2001 From: chenlj26 Date: Sat, 26 Mar 2022 15:31:52 +0800 Subject: [PATCH 0740/1247] arm64/dts: miami: pmic wl2864c bring up Change-Id: Ie426ea2dec599ab5044a193874e93ab6a953f55a Signed-off-by: chenlj26 Reviewed-on: https://gerrit.mot.com/2226887 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Long Cheng Reviewed-by: Wang Liu Reviewed-by: Zhuoran Xu Reviewed-by: Reviewed-by: Zhichao Chen Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 2 +- qcom/miami-wl2864c.dtsi | 74 ++++++++++++++++++++++++++++ 2 files changed, 75 insertions(+), 1 deletion(-) create mode 100644 qcom/miami-wl2864c.dtsi diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 07ea5b56eb28..43044b2927e9 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -22,7 +22,7 @@ #include "miami-display.dtsi" #include "miami-touchscreen.dtsi" //#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" -#include "miami-wl2868c.dtsi" +#include "miami-wl2864c.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" #include "discrete_charging_miami.dtsi" diff --git a/qcom/miami-wl2864c.dtsi b/qcom/miami-wl2864c.dtsi new file mode 100644 index 000000000000..cc926c994652 --- /dev/null +++ b/qcom/miami-wl2864c.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic_en_default: pmic_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se2_i2c>; +}; + +&qupv3_se2_i2c { + status = "ok"; + qcom,leica-used-i2c; + cam_pmic: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic_ldo1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic_ldo3: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo4: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo5: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo6: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic_ldo7: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From b4fb4861122b8e75d7661cceafe5a4d8218a84d5 Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Fri, 25 Mar 2022 21:55:29 +0800 Subject: [PATCH 0741/1247] arm64/dts:ps leda ldo gpio default on miami: leda gpio50 default on Change-Id: I7df6a864cfc79de2aa620cc47132229fdd737cef Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2226534 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lijun Chen Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 31 ++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 43044b2927e9..6c6c4e092def 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -570,3 +570,34 @@ }; }; +&tlmm { + ps_vled_en_default: ps_vled_en_default { + mux { + pins = "gpio50"; + function = "gpio"; + }; + config { + pins = "gpio50"; + bias-pull-up; /* NO PULL */ + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; +}; + +&soc { + ps_vled: gpio-regulator@0 { + compatible = "regulator-fixed"; + regulator-name = "ps_vled"; + gpio = <&tlmm 50 0>; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <233>; + enable-active-high; + regulator-boot-on; + regulator-always-on; + pinctrl-names = "default"; + pinctrl-0 = <&ps_vled_en_default>; + }; +}; + From 5e9f06fc9f79cdc05cf7460326858a2122ddbc0e Mon Sep 17 00:00:00 2001 From: zhouwl Date: Mon, 28 Mar 2022 11:01:50 +0800 Subject: [PATCH 0742/1247] arm/dts: miami audio bringup stereo speaker, bottom speaker: aw88261 IRQ uses GPIO59 top speaker: aw88261 IRQ uses GPIO100 Change-Id: I8e2bcbeaadec33bde06e3aae852ce4352ab3b266 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2227141 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-audio-overlay.dtsi | 424 +++++++++++++++++++++++++++ qcom/blair-miami-common-overlay.dtsi | 8 +- 2 files changed, 425 insertions(+), 7 deletions(-) create mode 100644 qcom/blair-miami-audio-overlay.dtsi diff --git a/qcom/blair-miami-audio-overlay.dtsi b/qcom/blair-miami-audio-overlay.dtsi new file mode 100644 index 000000000000..1b75e9669ba8 --- /dev/null +++ b/qcom/blair-miami-audio-overlay.dtsi @@ -0,0 +1,424 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { + mux { + pins = "gpio100"; + function = "gpio"; + }; + config { + pins = "gpio100"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_recv_irq_default>; + irq-gpio = <&tlmm 100 0x2008>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 6c6c4e092def..32c5fdade382 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" +#include "blair-miami-audio-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -562,12 +562,6 @@ linux,can-disable; }; }; - - ldo_vib { - compatible = "moto,vibrator-ldo"; - moto,vib-ldo-gpio = <&tlmm 100 0x0>; - status = "ok"; - }; }; &tlmm { From 2844bd881c396fd5d341a4ad15cca3419e85aa60 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Mon, 28 Mar 2022 11:07:22 +0800 Subject: [PATCH 0743/1247] arm/dts: miami haptic haptic driver is aw86224 - reset signal: GPIO102 - interrupt signal: GPIO87 Change-Id: I67aac67a37e827b61a04e31d2512bd514082f36d Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2227147 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-audio-overlay.dtsi | 69 ++++++++++++++++++++++++++++- 1 file changed, 68 insertions(+), 1 deletion(-) diff --git a/qcom/blair-miami-audio-overlay.dtsi b/qcom/blair-miami-audio-overlay.dtsi index 1b75e9669ba8..d43b58d40559 100644 --- a/qcom/blair-miami-audio-overlay.dtsi +++ b/qcom/blair-miami-audio-overlay.dtsi @@ -28,6 +28,41 @@ bias-pull-up; }; }; + haptic_irq_default: haptic_irq_default { + mux { + pins = "gpio87"; + function = "gpio"; + }; + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + haptic_rst_high: haptic_rst_high { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + haptic_rst_low: haptic_rst_low { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; }; &cdc_dmic01_gpios { @@ -352,7 +387,39 @@ aw-re-max = <30000>; aw-cali-mode = "aw_attr"; status = "okay"; - }; + }; + awinic_haptic@5a{ + compatible = "awinic,haptic_nv"; + reg = <0x5a>; + aw862xx_i2c_addr = <0x58>; + reset-gpio = <&tlmm 102 0>; + irq-gpio = <&tlmm 87 0>; + aw8622x_vib_lk_f0_cali = < 0 >; + aw8622x_vib_mode = < 0 >; /* mode: RAM mode->0; CONT mode->1 */ + aw8622x_vib_f0_pre = < 2350 >; + aw8622x_vib_f0_cali_percen = < 7 >; + aw8622x_vib_cont_drv1_lvl = < 0x7F >; + aw8622x_vib_cont_drv2_lvl = < 0x36 >; + aw8622x_vib_cont_brk_time = < 0x0C >; + aw8622x_vib_cont_tset = < 0x06 >; + aw8622x_vib_cont_bemf_set = < 0x02 >; + aw8622x_vib_cont_drv_width = < 0x48 >; + aw8622x_vib_cont_wait_num = < 0x06 >; + aw8622x_vib_cont_brk_gain = < 0x0A >; + aw8622x_vib_cont_drv1_time = < 0x04 >; + aw8622x_vib_cont_drv2_time = < 0x14 >; + aw8622x_vib_cont_track_margin = < 0x12 >; + aw8622x_vib_sine_array = < 0x05 0xB2 0xFF 0xEF >; /* SIN_H SIN_L COS_H COS_L*/ + aw8622x_vib_d2s_gain = < 0x07 >; + aw8622x_vib_prctmode = < 0x2D 0x3E 0x3F >; + aw8622x_vib_trig_config = < 0 0 0 1 0 2 0 + 0 0 0 1 0 2 0 + 0 0 0 1 0 2 0 >; + aw8622x_vib_duration_time = < 30 65 105 >; + pinctrl-names = "default"; + pinctrl-0 = <&haptic_irq_default>; + status = "okay"; + }; }; &va_cdc_dma_0_tx { From ba856488828a6c2f26901b8bac4031bc046dae5d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 28 Mar 2022 10:05:25 +0800 Subject: [PATCH 0744/1247] arm/dt: miami: add aw2033 leds configs arm/dt: Add aw2033 leds initial configs, create red/green/blue for upper layer indication, and charging for tcmd. Change-Id: Id8777dac22078775dc7302f166159d29a43f720d Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2227091 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yiqiang Feng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 32c5fdade382..29c8db7a2659 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -595,3 +595,58 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + aw2033@45 { + compatible = "awinic,aw2033_led"; + reg = <0x45>; + + aw2033,red { + aw2033,name = "red"; + aw2033,id = <0>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + + aw2033,charging { + aw2033,name = "charging"; + aw2033,id = <0>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + + aw2033,green { + aw2033,name = "green"; + aw2033,id = <1>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + aw2033,blue { + aw2033,name = "blue"; + aw2033,id = <2>; + aw2033,imax = <2>; + aw2033,led-current = <3>; + aw2033,max-brightness = <255>; + aw2033,rise-time-ms = <6>; + aw2033,hold-time-ms = <0>; + aw2033,fall-time-ms = <6>; + aw2033,off-time-ms = <4>; + }; + }; +}; + From d4c8ea145801794429e9e7724a7dab638a3e3103 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 28 Mar 2022 19:01:50 +0800 Subject: [PATCH 0745/1247] arm64/dts:sx9375 sar sensor bringup for Miami -modify sx9375 dts config for Miami -sar sensor bringup work Change-Id: I9f43014c505a3d2df953412ce9023adac790fc41 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2227626 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 121 ++++++++++++++------------- 1 file changed, 64 insertions(+), 57 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 29c8db7a2659..507592183abd 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -89,6 +89,10 @@ cdc-vdd-mic-bias-supply = <>; }; +&pm6125_l9 { + regulator-always-on; //SAR interrupt power + qcom,init-voltage = <1800000>; +}; &tlmm { nfc { @@ -280,8 +284,13 @@ pinctrl-0 = <&nfc_int_active &nfc_enable_active &nfc_clk_req_active>; pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; }; +}; - sx937x_se7:sx937x@2c { +&qupv3_se2_i2c { + + status = "ok"; + + sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; pinctrl-names = "default","sleep"; @@ -291,6 +300,7 @@ interrupts = <24 0x02>; interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me cap_vdd-supply = <&pm6125_l9>; /*use PH4/5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ @@ -298,63 +308,60 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <54>; + Semtech,reg-num = <52>; Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x886 /*AFE_PARAM_PH3*/ - 0x8058 0x886 /*AFE_PARAM_PH4*/ - 0x8064 0x886 /*AFE_PARAM_PH5*/ - 0x8070 0x886 /*AFE_PARAM_PH6*/ - 0x807C 0x85C /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFEF9FF /*REG_AFEPH_PH0, CS5, ANT0, Bottom center*/ - 0x803C 0xFFF9FD /*REG_AFEPH_PH1, CS0, ANT1/6, Top right*/ - 0x8048 0xFFD9FF /*REG_AFEPH_PH2, CS4, ANT2, Top center*/ - 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT5, Bottom Right*/ - 0x8060 0xBFF9FF /*REG_AFEPH_PH4, CS7, ANT8, Top Left*/ - 0x806C 0xFFF97F /*REG_AFEPH_PH5, CS2, ANT0/5_REF, Bottom_Ref*/ - 0x8078 0xFFF9EF /*REG_AFEPH_PH6, CS1, ANT8 REF, Middle*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8098 0x693F - 0x80B8 0x6932 - 0x80D8 0x3737 - 0x80F8 0x3C3C - 0x8118 0x4242 - 0x8138 0xFE - 0x8158 0xFE - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8090 0x64B45000 - 0x80B0 0x3CD05000 - 0x80D0 0x32D87000 - 0x80F0 0x3CD45000 - 0x8110 0x3CD47000 - 0x8130 0x54AC5000 - 0x8150 0x54AC5000 - 0x8170 0x54AC5000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x600000 - 0x8148 0x600000 - 0x808C 0x60200030 - 0x80AC 0x60200030 - 0x80CC 0x60200018 - 0x80EC 0x60200030 - 0x810C 0x60200018 - 0x812C 0x60200030 - 0x814C 0x60200030 - 0x816C 0x60200030 - 0x8024 0x7F7F - 0x4280 0xF + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x85E + 0x8034 0x85E + 0x8040 0x85E + 0x804C 0x85E + 0x8058 0x85E + 0x8064 0x85E + 0x8070 0x85E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xBFF9FF + 0x8048 0xF7F9FF + 0x8054 0xFEF9FF + 0x8060 0xFFD9FF + 0x806C 0xFFF9EF + 0x8078 0xFFF97F + 0x8084 0xFFF9FF + 0x8098 0x5A40 + 0x80B8 0x5A40 + 0x80D8 0x5A5A + 0x80F8 0x5A5A + 0x8118 0x5A5A + 0x8138 0x5A40 + 0x8158 0x5A40 + 0x8178 0x5A40 + 0x8090 0x54AC5000 + 0x80B0 0x54AC5000 + 0x80D0 0x54AC5000 + 0x80F0 0x54AC5000 + 0x8110 0x54AC5000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200030 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 >; status = "ok"; From 7b21142e28c29c0ef81cd3fe0df75b8071ff2e59 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 24 Mar 2022 17:36:42 +0800 Subject: [PATCH 0746/1247] arm/dts: remove useless dts config remove useless dts config for miami charging bring up Change-Id: If1d0adc06b77dfb5f7080c309f21feffa67def34 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2225086 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 49 ---------------------------- 1 file changed, 49 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 507592183abd..0b4740d903f6 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -24,58 +24,9 @@ //#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" #include "miami-wl2864c.dtsi" #include "tcpc_config.dtsi" -#include "sgm7220.dtsi" #include "discrete_charging_miami.dtsi" #include "discrete-rt-pd-manger.dtsi" -&qupv3_se8_i2c { - status = "okay"; - cw2217@64 { - compatible = "cellwise,cw2217"; - reg = <0x64>; - status = "okay"; - - sense_r_mohm = <5>; - factory_mode_ntc_exist = <0>; - df-serialnum = "SB18D38323"; - #include "bat_setting/CW_ng50-ATL-5000mah-rhodep.dtsi" - #include "bat_setting/CW_ng50-SWD-5000mah-rhodep.dtsi" - }; - - sm5602@71 { - compatible = "sm,sm5602"; - reg = <0x71>; - //interrupt-parent = <&tlmm>; - //interrupts = <38 2>; - //qcom,irq-gpio = <&tlmm 38 0x0>; - - sm,en_temp_ex; - //sm,en_temp_in; - sm,en_batt_det; - //sm,iocv_man_mode; - sm,misc = <0x0800>; - sm,aging_ctrl = <0x0125>; - sm,cycle_cfg = <0x7000>; - sm,rsns = <0>; - factory_mode_ntc_exist = <0>; - sm,fg_irq_set = <0x07FF>; - sm,low_soc1 = <1>; - sm,low_soc2 = <15>; - sm,v_l_alarm = <3400>; - sm,v_h_alarm = <4450>; - sm,battery_table_num = <0>; - sm,param_version = <2>; - sm,t_l_alarm_in = <54>; - sm,t_h_alarm_in = <1>; - sm,t_l_alarm_ex = <0xD3D8>; - sm,t_h_alarm_ex = <0x9245>; - - df-serialnum = "SB18D38324"; - #include "bat_setting/SM5602_NE50_ATL_Rhodep.dtsi" - #include "bat_setting/SM5602_NE50_SWD_Rhodep.dtsi" - }; -}; - &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; cdc-vddpx-supply = <&L9A>; From ce6a6b638c6e88f0f4bc6d0cc3f4dfae5d26a257 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Thu, 24 Mar 2022 10:01:47 +0800 Subject: [PATCH 0747/1247] arm/dts: config miami charging dts for bring up config miami charging dts for bring up Change-Id: I3be377647ae7c513c83d4a7b9a85136e1589960f Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2224645 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 126 +++++++++++------------------- 1 file changed, 44 insertions(+), 82 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 91bd5b7b7216..fa827f32ec1b 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -30,54 +30,6 @@ }; }; -&qupv3_se10_i2c { - status = "okay"; - bq2597x: bq2597x-charger@66 { - compatible = "ti,bq25970-charger"; - reg = <0x66>; - #io-channel-cells = <1>; - //ti,bq2597x,interrupt_gpios = <&pio 30 0>; - //interrupt-parent = <&pio>; - //interrupts = <2 IRQ_TYPE_EDGE_FALLING 2 0>; - //interrupt-names = "bq2597x_irq"; - - //pinctrl-names = "default_slave"; - //pinctrl-0 = <&bq2597x_int_default_slave>; - interrupt-parent = <&tlmm>; - interrupts = <84 0>; //irq num base on hardware design - bq2597x,irq-gpio = <&tlmm 84 0>; //irq num base on hardware design - - ti,bq2597x,bat-ovp-disable = <0>; - ti,bq2597x,bat-ocp_disable = <0>; - ti,bq2597x,bat-ovp-alarm-disable = <0>; - ti,bq2597x,bus-ocp-disable = <0>; - ti,bq2597x,bus-ovp-alarm-disable = <0>; - ti,bq2597x,bus-ocp-alarm-disable = <0>; - ti,bq2597x,bat-ucp-alarm-disable = <0>; - ti,bq2597x,bat-therm-disable = <0>; - ti,bq2597x,bus-therm-disable = <0>; - - ti,bq2597x,bat-ovp-threshold = <4500>; - ti,bq2597x,bat-ovp-alarm-threshold = <4450>; - ti,bq2597x,bat-ocp-threshold = <8000>; - ti,bq2597x,bat-ocp-alarm-threshold = <7500>; - - ti,bq2597x,bus-ovp-threshold = <12000>; - ti,bq2597x,bus-ovp-alarm-threshold = <11000>; - ti,bq2597x,bus-ocp-threshold = <3750>; - ti,bq2597x,bus-ocp-alarm-threshold = <3500>; - - ti,bq2597x,bat-ucp-alarm-threshold = <2000>; - - ti,bq2597x,bat-therm-threshold = <0x15>; - ti,bq2597x,bus-therm-threshold = <0x15>; - ti,bq2597x,die-therm-threshold = <125>; - - ti,bq2597x,ac-ovp-threshold = <17>; - ti,bq2597x,sense-resistor-mohm = <5>; - }; -}; - &qupv3_se8_i2c { status = "okay"; @@ -95,7 +47,7 @@ interrupt-parent = <&tlmm>; interrupts = <12 0>; //irq num base on hardware design sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design - //sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other dpdm-supply = <&usb2_phy0>; mmi,qc3-support; @@ -140,7 +92,7 @@ io-channel-names = "gpio3_div3"; bq2589x_irq-gpio = <&tlmm 12 0>; - //bq2589x_en-gpio = <&tlmm 92 0>; + bq2589x_en-gpio = <&tlmm 92 0>; dpdm-supply = <&usb2_phy0>; mmi,qc3-support; @@ -238,19 +190,19 @@ battery-names = "battery"; supplied-from = "mmi_battery"; - mmi,chrg-iterm-ma = <243>; + mmi,chrg-iterm-ma = <196>; mmi,fg-iterm-ma = <500>; - mmi,max-fv-mv = <4450>; - mmi,max-fcc-ma = <3000>; + mmi,max-fv-mv = <4480>; + mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <1200000>; - mmi,df-serialnum = "SB18D33989"; - mmi,mmi-temp-zones = <0 4200 1000 0>, - <10 4250 3000 1000>, - <15 0 3000 3000>, + mmi,df-serialnum = "SB18D50729"; + mmi,mmi-temp-zones = <0 4200 800 0>, + <10 4250 2000 1000>, + <15 0 2000 2000>, <45 0 4000 4000>, - <60 4200 3000 0>; - mmi,thermal-mitigation = <3000000 2500000 + <60 4200 4000 0>; + mmi,thermal-mitigation = <4000000 3000000 2500000 2000000 1500000 1200000 900000 600000 300000>; @@ -268,11 +220,11 @@ <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, <&mmi_discrete_charger PSY_IIO_DP_DM>, <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, - <&bq2597x PSY_IIO_CP_ENABLE>, - <&bq2597x PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, - <&bq2597x PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, - <&bq2597x PSY_IIO_CP_STATUS1>, - <&bq2597x PSY_IIO_CP_CLEAR_ERROR>; + <&bq25960_master PSY_IIO_CP_ENABLE>, + <&bq25960_master PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_master PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_master PSY_IIO_CP_STATUS1>, + <&bq25960_master PSY_IIO_CP_CLEAR_ERROR>; io-channel-names = "hw_current_max", "charging_enabled", @@ -283,17 +235,17 @@ "usb_real_type", "battery_dp_dm", "usb_qc3p_power", - "bq2597x_cp_enabled", - "bq2597x_input_current_now", - "bq2597x_input_voltage_settled", - "bq2597x_cp_status1", - "bq2597x_cp_clear_error"; + "bq25980_cp_enabled", + "bq25980_input_current_now", + "bq25980_input_voltage_settled", + "bq25980_cp_status1", + "bq25980_cp_clear_error"; // qcom,usbpd-phandle = <&pm7250b_pdphy>; mmi,pps-volt-steps = <20000>; mmi,pps-curr-steps = <100000>; - mmi,pd-volt-max = <10000000>; - mmi,pd-curr-max = <3000000>; + mmi,pd-volt-max = <11000000>; + mmi,pd-curr-max = <6200000>; mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; mmi,typec-middle-current = <2000000>; @@ -305,29 +257,39 @@ mmi,qc3p-volt-max = <10000000>; mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = - <0 4200 1000 0 0>, - <10 4250 3000 4450 1000>, - <15 4450 3000 0 0>, - <45 4350 6000 4480 4000>, - <60 4200 4000 0 0>; + <0 4200 800 0 0 0 0 0 0>, + <10 4250 2000 4480 1000 0 0 0 0>, + <15 4480 2000 0 0 0 0 0 0>, + <45 4250 12400 4300 8000 4480 6000 4510 4000>, + <60 4200 4000 0 0 0 0 0 0>; mmi,thermal-mitigation = - <5800000>, + <12400000>, + <11000000>, + <10000000>, + <9000000>, + <8000000>, + <7000000>, + <6000000>, <5000000>, <4000000>, - <3500000>, - <3000000>, + <3000000>, <2000000>, <1000000>; charger_device_0 { chrg-name = "pmic-sw"; - psy-name = "mmi_battery"; - charging-curr-limited = <500000>; + psy-name = "battery"; + charging-curr-limited = <300000>; }; charger_device_1 { chrg-name = "cp-master"; - psy-name = "cp-standalone"; + psy-name = "bq25960-master"; charging-curr-min = <1500000>; }; + charger_device_2 { + chrg-name = "cp-slave"; + psy-name = "bq25960-slave"; + charging-curr-min = <2000000>; + }; }; }; From 800d7953066a6ab0cfa5835b49d005d188ff2a0f Mon Sep 17 00:00:00 2001 From: chenlj26 Date: Mon, 28 Mar 2022 13:44:55 +0800 Subject: [PATCH 0748/1247] arm64/dts: maimi: bringup front camera ov32c4c Change-Id: I6311363b5024e62700e1f266e7e0fd842c2e3bca Signed-off-by: chenlj26 Reviewed-on: https://gerrit.mot.com/2227243 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wang Liu Tested-by: Jira Key Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 0b4740d903f6..6f34bdd0b42f 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "miami-fps-overlay.dtsi" #include "miami-display.dtsi" #include "miami-touchscreen.dtsi" -//#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-miami-overlay.dtsi" #include "miami-wl2864c.dtsi" #include "tcpc_config.dtsi" #include "discrete_charging_miami.dtsi" From 39510e4a2c5d80ca9c3273c68f4fbe19b1d481af Mon Sep 17 00:00:00 2001 From: wingte48 Date: Fri, 25 Mar 2022 17:34:24 +0800 Subject: [PATCH 0749/1247] dts/panel: change the backlight current duty cyle for ili7807s Modify: change the backlight current to 16.15ma, on 20.2ma Change-Id: I51c166ce687c4ca1dcc33baedMontana349fba5bf888 Reviewed-on: https://gerrit.mot.com/2226329 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi | 2 +- qcom/rhodec-display.dtsi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi index 9b7cbf5dfd25..88b096221488 100644 --- a/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili7807s-645-1080x2400-video.dtsi @@ -61,7 +61,7 @@ 15 00 00 00 00 00 02 3E E2 15 00 00 00 00 00 02 80 00 39 00 00 00 00 00 04 FF 78 07 00 - 39 00 00 00 00 00 03 51 06 66 + 39 00 00 00 00 00 03 51 05 8B 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 15 00 00 00 00 00 02 35 00 diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 10434005cee7..68b9cb95c1b5 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -286,9 +286,9 @@ qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "txd"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 06 EF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 8B]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From 408ca52f56a0b296dcfbe3c5284c90e193e7bf16 Mon Sep 17 00:00:00 2001 From: hansx3 Date: Mon, 28 Mar 2022 14:32:12 +0800 Subject: [PATCH 0750/1247] arm64/dts: rhodei: add camera dts details: add camera dts for rhodei Change-Id: If8161bdb64574e26a3e517a0398226692d4786be Signed-off-by: hansx3 Reviewed-on: https://gerrit.mot.com/2227350 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Reviewed-by: XiaoFeng Wang Reviewed-by: Zhichao Chen Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index def6aa27b8f4..4f2504f44ab5 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "rhodei-fps-overlay.dtsi" #include "rhodei-display.dtsi" #include "rhodei-touchscreen.dtsi" -//#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" +#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" #include "discrete_charging_rhodei.dtsi" From 6c86157d9f26bb1624908b79ae976c3ac6e7ed7f Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Wed, 30 Mar 2022 18:48:00 +0800 Subject: [PATCH 0751/1247] arm64/dts:et721 bringup for miami remove unused fps config et721 bringup work for miami Change-Id: I30e08c187b9e1c5fa43f8d21c41a2a816ccb188f Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2229610 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/miami-fps-overlay.dtsi | 88 ------------------------------------- 1 file changed, 88 deletions(-) diff --git a/qcom/miami-fps-overlay.dtsi b/qcom/miami-fps-overlay.dtsi index a6d68b415f87..11d1d0852de4 100644 --- a/qcom/miami-fps-overlay.dtsi +++ b/qcom/miami-fps-overlay.dtsi @@ -68,76 +68,6 @@ output-low; }; }; - - ft_power_high: ft_power_high { - mux { - pins = "gpio6"; - function = "gpio"; - }; - - config { - pins = "gpio6"; - drive-strength = <2>; - bias-disable; - output-high; - }; - }; - - ft_power_low: ft_power_low { - mux { - pins = "gpio6"; - function = "gpio"; - }; - - config { - pins = "gpio6"; - drive-strength = <2>; - bias-disable; - output-low; - }; - }; - - ft_eint_as_int: ft_eint_as_int { - mux { - pins = "gpio17"; - function = "gpio"; - }; - - config { - pins = "gpio17"; - drive-strength = <2>; - bias-disable; - input-enable; - }; - }; - - ft_reset_high: ft_reset_high { - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; - bias-disable; - output-high; - }; - }; - - ft_reset_low: ft_reset_low { - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; - bias-disable; - output-low; - }; - }; }; &soc { @@ -161,22 +91,4 @@ pinctrl-4 = <&ets_vcc_low>; }; - ft9362: ft9362 { - status = "ok"; - compatible = "focaltech,fingerprint"; - interrupt-parent = <&tlmm>; - interrupts = <17 0x0>; - fp,reset_gpio = <&tlmm 18 0>; - fp,irq_gpio = <&tlmm 17 0>; - fp,vdd_gpio = <&tlmm 6 0>; - - pinctrl-names = "fpsensor_finger_power_high","fpsensor_finger_power_low", - "fpsensor_finger_rst_low","fpsensor_finger_rst_high", - "fpsensor_eint_as_int"; - pinctrl-0 = <&ft_power_high>; - pinctrl-1 = <&ft_power_low>; - pinctrl-2 = <&ft_reset_low>; - pinctrl-3 = <&ft_reset_high>; - pinctrl-4 = <&ft_eint_as_int>; - }; }; From e4b410525dd7fac64ca3667c6ec9624398b6f9b5 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 30 Mar 2022 15:58:26 +0800 Subject: [PATCH 0752/1247] dtsi/Rhodec: Pull up INT when screen suspend Modify: Change the pinctrl mode to fix the problem TP INT in half-high when the screen suspend,we set high the TP INT. Change-Id: Ifc2f60f6c702bb91d34e10ba9f1712fa1750c812 Reviewed-on: https://gerrit.mot.com/2229405 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-touchscreen.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/rhodec-touchscreen.dtsi b/qcom/rhodec-touchscreen.dtsi index a5b3998d6b00..3413e0550c44 100755 --- a/qcom/rhodec-touchscreen.dtsi +++ b/qcom/rhodec-touchscreen.dtsi @@ -102,7 +102,7 @@ config { pins = "gpio22"; drive-strength = <2>; - bias-pull-up; + bias-disable; }; }; }; @@ -138,8 +138,8 @@ touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2001>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; - pinctrl-3 = <&ts_active>; - pinctrl-4 = <&ts_int_suspend_high>; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; status = "ok"; }; From 4d5a46ff21e4a562b6705ed919048c3247d0b246 Mon Sep 17 00:00:00 2001 From: duqiu2 Date: Thu, 31 Mar 2022 15:11:48 +0800 Subject: [PATCH 0753/1247] wisl: miami: bringup nfc pn557 Config the PN557 device tree, according to RF HW request. Change-Id: Ie05f9eb57c93c51beb69170b2b781232139cc61b Signed-off-by: duqiu2 Reviewed-on: https://gerrit.mot.com/2230640 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bin Liu Reviewed-by: Xu Du Reviewed-by: Weilong Wu Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 6f34bdd0b42f..9116369c2e2a 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -220,21 +220,27 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; - sec-nfc@27 { - compatible = "sec-nfc"; - reg = <0x27>; - mmi,status = "/chosen", "mmi,nfc", "samsung"; - sec-nfc,ven-gpio = <&tlmm 48 0x00>; - sec-nfc,firm-gpio = <&tlmm 8 0x00>; - sec-nfc,irq-gpio = <&tlmm 9 0x00>; - sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + st21nfc@8 { + status = "disabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 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>; - }; + pinctrl-0 = <&nfc_int_active &nfc_enable_active + &nfc_clk_req_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend + &nfc_clk_req_suspend>; + }; }; &qupv3_se2_i2c { From dff15044d81c803511280fa683ee8d3351a792ed Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 31 Mar 2022 19:51:40 +0800 Subject: [PATCH 0754/1247] arm/dt: miami: set se10 i2c pin to high when idle arm/dt: Set se10 i2c pin to high when idle, avoid slave devices reset. Change-Id: If735d178f26dc6e2a27c92fd2b1b390dd00fd5d7 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2230989 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 9116369c2e2a..379d54ab5891 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -559,6 +559,14 @@ }; }; +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; + &qupv3_se10_i2c { status = "ok"; aw2033@45 { From 00472dbbba858d618b5486194e4a5eba8982571d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 31 Mar 2022 10:17:35 +0800 Subject: [PATCH 0755/1247] arm/dt: rhodec: add backlight current align configuration arm/dt: Add backlight current align configuration. Change-Id: I4d27c7027fd086168caa310df7787e7f27daa942 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2230349 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodec-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 68b9cb95c1b5..db92ae708d00 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -366,6 +366,7 @@ ctl-bank-en = <0x02>; full-scale-current = <0x17>; map-mode = <0>; /* 0 exponential, 1 linear */ + current-align-type = <1>; sm5350,default-brightness = <1810>; }; From 55188b5faf5976a58e0630e15334a64aad98979e Mon Sep 17 00:00:00 2001 From: wanggc6 Date: Tue, 29 Mar 2022 16:42:25 +0800 Subject: [PATCH 0756/1247] arm/dts: config cps4019 for miami Bring up cps4019 dts for miami. Change-Id: I20646e9d69c5d873aae22ae1588ed02776fe8641 Signed-off-by: wanggc6 Reviewed-on: https://gerrit.mot.com/2228511 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index fa827f32ec1b..8ff9158291f9 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -142,6 +142,19 @@ }; +&qupv3_se2_i2c { + status = "okay"; + cps-wls-charger@30 { + status = "okay"; + compatible = "cps,wls-charger-cps4019"; + reg = <0x30>; + cps_wls_int = <&tlmm 38 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <38 0>; + interrupt-names = "cps_wls_int"; + }; +}; + &tlmm { sgm4154x_gpio_pins: sgm4154x_gpio_pins { mux { From 3f9584c13f96f443ae1801e2e85503a5dbf49a6c Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 29 Mar 2022 14:36:24 +0800 Subject: [PATCH 0757/1247] arm/dts: reduce the ibus total current to 2.9A As taiwan safety regulation test failed, ibus > 3A, so need to reduce ibus total current to 2.9A Change-Id: I468a2e7aa5934bcc5d62062544f648547d9c1335 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2228374 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index a8340cd11201..a820a896c57a 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -270,7 +270,7 @@ mmi,pd-allow-min-current = <1000000>; mmi,step-first-current-comp = <0>; mmi,dont-rerun-aicl; - mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-max-ibus-ma = <2900>; mmi,qc3p-volt-steps = <20000>; mmi,qc3p-volt-max = <10000000>; mmi,chrg-temp-zones-num = <5>; @@ -278,7 +278,7 @@ <0 4200 1000 0 0>, <10 4250 3000 4450 1000>, <15 4450 3000 0 0>, - <45 4350 6000 4480 4000>, + <45 4350 5800 4480 4000>, <60 4200 4000 0 0>; mmi,thermal-mitigation = <5800000>, From 22bca0f44355ed0a0a8b2d41fc23c3f5fcc996e3 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Fri, 1 Apr 2022 19:08:11 +0800 Subject: [PATCH 0758/1247] arm64/dts: overlay linein threshold for rhodec and rhodei Qcom mbhc default linein threshold is 5000, but some AUX carkit speaker impedance is not large than it, mbhc detects it as headphone, not use LINE audio parameter, causes audio performance issue. According to ST test result, overlay it as 4000 for rhodec & rhodei. Change-Id: Iea5a1acf0761c58237c9cf389c087053804bfc6f Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2232105 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 3 +++ qcom/holi-rhodec-common-overlay.dtsi | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 4f2504f44ab5..8e577afe5d31 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -38,6 +38,9 @@ cdc-vdd-mic-bias-supply = <>; }; +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; &tlmm { nfc { diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 2728ef8527c8..7b9168e06dc6 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -38,6 +38,10 @@ cdc-vdd-mic-bias-supply = <>; }; +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + /* Dummy LDO reference */ &sdhc_1 { status = "ok"; From cc13785176093a5bb50b86474766b1d1d331f161 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 1 Apr 2022 20:00:52 +0800 Subject: [PATCH 0759/1247] arm/dts: Rename bq2597x to cp arm/dts/cp rename bq2597x to cp for charge pump common modules. Change-Id: I6e520f947b62e06b3d49483b4065b764d24eee69 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2232144 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Qiong Xie Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_rhodep.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/discrete_charging_rhodep.dtsi b/qcom/discrete_charging_rhodep.dtsi index a820a896c57a..a81756051d78 100644 --- a/qcom/discrete_charging_rhodep.dtsi +++ b/qcom/discrete_charging_rhodep.dtsi @@ -253,11 +253,11 @@ "usb_real_type", "battery_dp_dm", "usb_qc3p_power", - "bq2597x_cp_enabled", - "bq2597x_input_current_now", - "bq2597x_input_voltage_settled", - "bq2597x_cp_status1", - "bq2597x_cp_clear_error"; + "cp_enabled", + "cp_input_current_now", + "cp_input_voltage_settled", + "cp_status1", + "cp_clear_error"; // qcom,usbpd-phandle = <&pm7250b_pdphy>; mmi,pps-volt-steps = <20000>; From 57c6a1b62492efc4bd4a1112dbdd0327786b2b61 Mon Sep 17 00:00:00 2001 From: Zhizhong Ge Date: Sat, 2 Apr 2022 13:50:04 +0800 Subject: [PATCH 0760/1247] reduce the mpss_wlan to make more total memory Case 05725399, reduce mpss carveout region from 256 to 246MB this will increae 10M of android total memory mpss_wlan@8b800000 { no-map; - reg = <0x0 0x8b800000 0x0 0x10000000>; + reg = <0x0 0x8b800000 0x0 0xF600000>; phandle = <0x98>; }; Change-Id: Ief96c7520ac71c78ab600b446ea721dcd3f69622 Reviewed-on: https://gerrit.mot.com/2232713 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghui Jia Reviewed-by: Hongshu Lou Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 7b9168e06dc6..a3177516c634 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -656,3 +656,11 @@ 0x30 0x23c /* CHG_CTRL2 */ 0x22 0x210>; /* PWR_CTRL1 */ }; + +&reserved_memory { + + pil_mpss_wlan_mem: mpss_wlan@8b800000 { + no-map; + reg = <0x0 0x8b800000 0x0 0xF600000>; + }; +}; From de89923ad7fce0e22586a32e18f1bb44daa75a69 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 1 Apr 2022 20:27:14 +0800 Subject: [PATCH 0761/1247] arm/dts: rename bq25980 to cp and add slave iio rename bq25980 to cp for charge pump common modules. and add slave cp iio Change-Id: I1887a978f99430058ab959f247c67d758f8ccdf6 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2232182 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 8ff9158291f9..d8a80cc72d9a 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -122,6 +122,7 @@ status = "okay"; compatible = "ti,bq25960-master"; reg = <0x66>; + #io-channel-cells = <1>; interrupt-parent = <&tlmm>; interrupts = <57 0>; ti,irq-gpio = <&tlmm 57 0>; @@ -135,6 +136,7 @@ status = "okay"; compatible = "ti,bq25960-slave"; reg = <0x67>; + #io-channel-cells = <1>; interrupt-parent = <&tlmm>; interrupts = <84 0>; ti,irq-gpio = <&tlmm 84 0>; @@ -237,7 +239,12 @@ <&bq25960_master PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, <&bq25960_master PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, <&bq25960_master PSY_IIO_CP_STATUS1>, - <&bq25960_master PSY_IIO_CP_CLEAR_ERROR>; + <&bq25960_master PSY_IIO_CP_CLEAR_ERROR>, + <&bq25960_slave PSY_IIO_CP_ENABLE>, + <&bq25960_slave PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_slave PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_slave PSY_IIO_CP_STATUS1>, + <&bq25960_slave PSY_IIO_CP_CLEAR_ERROR>; io-channel-names = "hw_current_max", "charging_enabled", @@ -248,11 +255,16 @@ "usb_real_type", "battery_dp_dm", "usb_qc3p_power", - "bq25980_cp_enabled", - "bq25980_input_current_now", - "bq25980_input_voltage_settled", - "bq25980_cp_status1", - "bq25980_cp_clear_error"; + "cp_enabled", + "cp_input_current_now", + "cp_input_voltage_settled", + "cp_status1", + "cp_clear_error", + "cp_slave_enabled", + "cp_slave_input_current_now", + "cp_slave_input_voltage_settled", + "cp_slave_status1", + "cp_slave_clear_error"; // qcom,usbpd-phandle = <&pm7250b_pdphy>; mmi,pps-volt-steps = <20000>; From fe382e75d329710c138cf7ced501c20c1ada0b73 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Wed, 6 Apr 2022 09:30:47 +0800 Subject: [PATCH 0762/1247] arm64/dts: miami headset bringup Miami uses FSA4480 usb type-c analog audio switch to implement wired headset detection. Change-Id: I5928e591d9501fb5eb4be17a724e44323bca80ba Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2234587 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Haijian Ma Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-audio-overlay.dtsi | 17 +++++++++++++++-- qcom/blair-miami-common-overlay.dtsi | 2 +- 2 files changed, 16 insertions(+), 3 deletions(-) diff --git a/qcom/blair-miami-audio-overlay.dtsi b/qcom/blair-miami-audio-overlay.dtsi index d43b58d40559..40e2f39c28da 100644 --- a/qcom/blair-miami-audio-overlay.dtsi +++ b/qcom/blair-miami-audio-overlay.dtsi @@ -293,6 +293,17 @@ }; }; +&qupv3_se10_i2c { + status = "ok"; + fsa4480: fsa4480@42 { + compatible = "qcom,fsa4480-i2c"; + reg = <0x42>; + io-channels = <&mmi_discrete_charger PSY_IIO_TYPEC_ACCESSORY_MODE>; + io-channel-names = "typec_accessory_mode"; + qcom,use-power-supply = <1>; + }; +}; + &holi_snd { qcom,model = "holi-9370_aw882xx-snd-card"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; @@ -339,8 +350,6 @@ "VA DMIC1", "VA MIC BIAS1", "VA DMIC2", "VA MIC BIAS3", "VA DMIC3", "VA MIC BIAS3"; - qcom,msm-mbhc-hphl-swh = <1>; - qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", @@ -349,6 +358,10 @@ <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; + qcom,msm-mbhc-usbc-audio-supported = <1>; + qcom,msm-mbhc-hphl-swh = <0>; + qcom,msm-mbhc-gnd-swh = <0>; + fsa4480-i2c-handle = <&fsa4480>; }; &qupv3_se10_i2c { diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 379d54ab5891..4a00384b88b0 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -11,7 +11,6 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "blair-miami-audio-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" @@ -26,6 +25,7 @@ #include "tcpc_config.dtsi" #include "discrete_charging_miami.dtsi" #include "discrete-rt-pd-manger.dtsi" +#include "blair-miami-audio-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; From d371125d4de05ac367fcbce7b237a774585b2843 Mon Sep 17 00:00:00 2001 From: Zhizhong Ge Date: Wed, 6 Apr 2022 02:12:12 -0500 Subject: [PATCH 0763/1247] Revert "(CR) reduce mpss_wlan to make more memory" This reverts commit 902b64600cb2a7dfc9da2a7fa5ad437905608541. Change-Id: I50bd08abd6729f5c88c061d00a60acc65b12958f Reviewed-on: https://gerrit.mot.com/2234839 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Haotian Chen Tested-by: Jira Key Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/holi-rhodec-common-overlay.dtsi | 8 -------- 1 file changed, 8 deletions(-) diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index a3177516c634..7b9168e06dc6 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -656,11 +656,3 @@ 0x30 0x23c /* CHG_CTRL2 */ 0x22 0x210>; /* PWR_CTRL1 */ }; - -&reserved_memory { - - pil_mpss_wlan_mem: mpss_wlan@8b800000 { - no-map; - reg = <0x0 0x8b800000 0x0 0xF600000>; - }; -}; From f20c73e827cc05b0fb962088bc10b12be3bbd490 Mon Sep 17 00:00:00 2001 From: wingte51 Date: Thu, 7 Apr 2022 13:57:50 +0800 Subject: [PATCH 0764/1247] Rhodec: update battery param for rhodec battery param - ui_full update, current ui_full=98, the current of showing 100% is 380mA set ui_full=96, then the current of showing 100% change to 510mA. Change-Id: I3d08310ac6a7f5c245d697a6a7aad4d8cd4a704d Reviewed-on: https://gerrit.mot.com/2235802 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yuecai Liu Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi index 6284ab433272..9867c41bd5dd 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi @@ -13,7 +13,7 @@ nd50-jiade-5000mah { serialnum = "SB18D25053"; fcc_design = <5000>; - ui_full = <98>; + ui_full = <96>; config_profile_info = [49 00 00 00 00 00 00 00 9E BE B7 CF C2 C1 91 4F 31 FF FF FF C3 A3 8B 75 From e0e4908332e45f68d911a6a697bd14e8f92af68d Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Thu, 7 Apr 2022 11:13:05 +0800 Subject: [PATCH 0765/1247] arm64/dts:miami ntc config miami: ntc bringup Change-Id: I777ada48c9919fc250d76288384f2e2546607f7a Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2235699 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 124 ++++++++++++++++----------- 1 file changed, 75 insertions(+), 49 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 4a00384b88b0..552520908b12 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -26,6 +26,7 @@ #include "discrete_charging_miami.dtsi" #include "discrete-rt-pd-manger.dtsi" #include "blair-miami-audio-overlay.dtsi" +#include "moto_therm_sys_temp.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -360,6 +361,47 @@ }; }; +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -382,36 +424,6 @@ xo-therm-usr { status = "disabled"; }; - chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - usb_conn_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -427,8 +439,7 @@ }; }; - - rfc_camera_therm { + chg_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -443,22 +454,7 @@ }; }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm1 { + pa_therm2 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -473,7 +469,7 @@ }; }; - pa_therm2 { + pa_therm1 { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; @@ -502,6 +498,36 @@ }; }; }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; &gcc { From 9c5665e394fd97455fa535395bd3ef222b8fe07d Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 7 Apr 2022 16:01:03 +0800 Subject: [PATCH 0766/1247] arm/dt: miami: add csot 6.28 oled panel initial configs arm/dt: - add csot 6.28 oled panel initial configs - delete unuseful panel configs - delete unuseful panel configs in touch dtsi Change-Id: Ib1a4588ffa212e1a7d939b25d8a52165aca3a6a5 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2235945 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-628-1080x2400-dsc-cmd-common.dtsi | 519 ++++++++++++++++++ qcom/miami-display.dtsi | 222 +------- qcom/miami-touchscreen.dtsi | 6 +- 3 files changed, 524 insertions(+), 223 deletions(-) create mode 100644 qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi new file mode 100644 index 000000000000..d9769e0bbc53 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi @@ -0,0 +1,519 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { +mot_csot_nt37701_628_1080x2400_dsc_cmd_v0: qcom,mdss_dsi_mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_628"; +qcom,mdss-dsi-panel-supplier = "csot"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <65>; +qcom,mdss-pan-physical-height-dimension = <145>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; + +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; + +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; + +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; + +qcom,mdss-dsi-te-using-te-pin; + +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; + +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 0D BA]; + +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 01 00 00 00 00 03 51 0F FF]; + +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; + +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 98 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; //90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + +}; + +}; + +}; diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 52d7221467fb..6f8b7413b10e 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -1,8 +1,5 @@ -#include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi" #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" -#include "dsi-panel-mot-tianma-nt37701-655-1080x2400-dsc-cmd-common-v2.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" &display_panel_avdd { @@ -134,7 +131,7 @@ vci-supply = <&panel_vci>; vddio-supply = <&L13A>; dvdd-supply = <&panel_dvdd>; - qcom,dsi-default-panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0>; + qcom,dsi-default-panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0>; }; &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 { @@ -208,220 +205,7 @@ }; }; -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v2 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - vqcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 { - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <9>; - qcom,mdss-dsi-bl-max-level = <3514>; - qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-brightness-max-level = <3514>; - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,bl-dsc-cmd-state = "dsi_hs_mode"; - - /*qcom,mdss-dsi-panel-hdr-enabled; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>;*/ - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - //qcom,mdss-dsi-panel-clockrate = <320000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 - 03 02 02 04 00 0C 08]; - }; - timing@1 { - //qcom,mdss-dsi-panel-clockrate = <400000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 - 04 03 02 04 00 0E 08]; - }; - timing@2 { - //qcom,mdss-dsi-panel-clockrate = <601000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 - 06 06 02 04 00 13 0A]; - }; - timing@3 { - //qcom,mdss-dsi-panel-clockrate = <801000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 - 07 08 02 04 00 18 0C]; - }; - /*timing@4 { - //qcom,mdss-dsi-panel-clockrate = <961000000>; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 - 08 09 02 04 00 1C 0D]; - };*/ - }; -}; - -&mot_tm_nt37701_655_1080x2400_dsc_cmd_v0 { +&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 { qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index 9b99c9a82b90..8d55c324dec3 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -90,10 +90,8 @@ goodix,panel-max-y = <2400>; goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; - panel = <&mot_csot_nt37701_655_1080x2400_dsc_cmd_v0 - &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 - &mot_tm_nt37701_655_1080x2400_dsc_cmd_v1 - &mot_tm_nt37701_655_1080x2400_dsc_cmd_v0>; + panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; From d23abc6841a0c7458427c56b18e276b746bdec96 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 12 Apr 2022 10:41:45 +0800 Subject: [PATCH 0767/1247] charger: add mux control for WLS in otg mode In OTG mode, the output of VOUT from WLS should be disabled. So we use gpio 49 to control WLS through mux. Change-Id: I4d9bc5d8a74f8da93f9069ed061e22af29208485 Reviewed-on: https://gerrit.mot.com/2239282 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index d8a80cc72d9a..a6c861d794ec 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -48,6 +48,7 @@ interrupts = <12 0>; //irq num base on hardware design sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + mmi,wls-en-gpio = <&tlmm 49 0>; dpdm-supply = <&usb2_phy0>; mmi,qc3-support; @@ -93,6 +94,7 @@ bq2589x_irq-gpio = <&tlmm 12 0>; bq2589x_en-gpio = <&tlmm 92 0>; + mmi,wls-en-gpio = <&tlmm 49 0>; dpdm-supply = <&usb2_phy0>; mmi,qc3-support; From c7c94dc5c8ee6ce72e4e7106a297d3472900d109 Mon Sep 17 00:00:00 2001 From: wanggc6 Date: Tue, 12 Apr 2022 09:48:52 +0800 Subject: [PATCH 0768/1247] arm/dts:bring up sc8541 for miami Add sc8541-master and sc8541-slave for bring up . Modify "irq-gpio" beause TI BQ25960 and SC8541 are used this name together. Change-Id: I433d766a2bcd067e5093ca1d2b859dc3e408dec7 Signed-off-by: wanggc6 Reviewed-on: https://gerrit.mot.com/2239233 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index a6c861d794ec..525623739b8c 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -124,10 +124,12 @@ status = "okay"; compatible = "ti,bq25960-master"; reg = <0x66>; + sc8541-addr = <0x6B>; + sc8541-name = "sc8541-master"; #io-channel-cells = <1>; interrupt-parent = <&tlmm>; interrupts = <57 0>; - ti,irq-gpio = <&tlmm 57 0>; + irq-gpio = <&tlmm 57 0>; }; }; @@ -138,10 +140,12 @@ status = "okay"; compatible = "ti,bq25960-slave"; reg = <0x67>; + sc8541-addr = <0x6C>; + sc8541-name = "sc8541-slave"; #io-channel-cells = <1>; interrupt-parent = <&tlmm>; interrupts = <84 0>; - ti,irq-gpio = <&tlmm 84 0>; + irq-gpio = <&tlmm 84 0>; }; }; From e8b648263a0bf670fcdcdc0b2eea3a254fdf5868 Mon Sep 17 00:00:00 2001 From: liaoxl Date: Fri, 8 Apr 2022 15:05:26 +0800 Subject: [PATCH 0769/1247] arm64/dts: remove LDO21 from icnss module confirm with QCom, LDO21 not need for HW design with 6375 & 3988 , so remove this from dts to prevent unexpected operation from wlan sw. Change-Id: I661f448567b350ac225c71427438d9bc589acace Reviewed-on: https://gerrit.mot.com/2237242 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Bin Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-moto-rhodei-base.dts | 7 +++++++ qcom/blair-moto-rhodep-base.dts | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/qcom/blair-moto-rhodei-base.dts b/qcom/blair-moto-rhodei-base.dts index e9b5f91a2ff2..4223b976d491 100644 --- a/qcom/blair-moto-rhodei-base.dts +++ b/qcom/blair-moto-rhodei-base.dts @@ -43,3 +43,10 @@ &mdss_dsi_phy0 { /delete-property/ qcom,dsi-pll-ssc-en; }; + +&soc { + icnss: qcom,icnss@C800000 { + /delete-property/ vdd-3.3-ch1-supply; + /delete-property/ qcom,vdd-3.3-ch1-config; + }; +}; diff --git a/qcom/blair-moto-rhodep-base.dts b/qcom/blair-moto-rhodep-base.dts index e9b5f91a2ff2..4223b976d491 100644 --- a/qcom/blair-moto-rhodep-base.dts +++ b/qcom/blair-moto-rhodep-base.dts @@ -43,3 +43,10 @@ &mdss_dsi_phy0 { /delete-property/ qcom,dsi-pll-ssc-en; }; + +&soc { + icnss: qcom,icnss@C800000 { + /delete-property/ vdd-3.3-ch1-supply; + /delete-property/ qcom,vdd-3.3-ch1-config; + }; +}; From 776c6059ed120eff270824e6485a24bb97a0b08e Mon Sep 17 00:00:00 2001 From: weiweij Date: Fri, 8 Apr 2022 09:12:08 +0800 Subject: [PATCH 0770/1247] wls: add CPS4019 dts configurations Adding power boost/bootloader/firmware configurations in dts for CPS4019 Change-Id: Ia4224262c6eb75806bd0d15f6f31e163c265f68f Reviewed-on: https://gerrit.mot.com/2239819 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 525623739b8c..ee4f8de5dd96 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -160,6 +160,12 @@ interrupt-parent = <&tlmm>; interrupts = <38 0>; interrupt-names = "cps_wls_int"; + + io-channels = <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; + io-channel-names = "otg_enable"; + + wireless-fw-name = "cps4019.hex"; + use_bl_in_h; }; }; From 81a9f400c01be6ff19525670769cfcc2566e701e Mon Sep 17 00:00:00 2001 From: Jiacheng Ou Date: Thu, 14 Apr 2022 18:17:40 +0800 Subject: [PATCH 0771/1247] arm64/dts:battery/chg_pump_therm sensor config Miami: battery/chg_pump_therm sensor config Change-Id: Ic3e3670a3a22fbf73318f0c1e38d227e886292c0 Signed-off-by: Jiacheng Ou Reviewed-on: https://gerrit.mot.com/2242767 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 29 +++++++++++++++++++++------- 1 file changed, 22 insertions(+), 7 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 552520908b12..50e55d047195 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -327,17 +327,16 @@ }; &pmk8350_vadc { - pmk8350_chg_therm { + pmk8350_qtm_n_therm { reg = ; - label = "pmk8350_chg_therm"; + label = "pmk8350_qtm_n_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; }; - - pmk8350_usb_conn_therm { + pmk8350_qtm_e_therm { reg = ; - label = "pmk8350_ufs_therm"; + label = "pmk8350_qtm_e_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; @@ -349,12 +348,12 @@ <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; - chg_therm { + qtm_n__therm { reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; }; - usb_conn_therm { + qtm_e_therm { reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; @@ -528,6 +527,22 @@ }; }; }; + + chg_pump_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + }; &gcc { From 1d477416f9ee235599d6d080a77c6084cbd9eda4 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 21 Apr 2022 15:32:50 +0800 Subject: [PATCH 0772/1247] arm/dt: miami: change breath led max current to 30mA miami: Change aw2033 max current to 30mA, accroding to hardware requirement. Change-Id: Idc641c93aed19773227b7c75a926fe0670a07dd5 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2249110 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 50e55d047195..f7941586fd3e 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -617,8 +617,8 @@ aw2033,red { aw2033,name = "red"; aw2033,id = <0>; - aw2033,imax = <2>; - aw2033,led-current = <3>; + aw2033,imax = <1>; + aw2033,led-current = <15>; aw2033,max-brightness = <255>; aw2033,rise-time-ms = <6>; aw2033,hold-time-ms = <0>; @@ -629,8 +629,8 @@ aw2033,charging { aw2033,name = "charging"; aw2033,id = <0>; - aw2033,imax = <2>; - aw2033,led-current = <3>; + aw2033,imax = <1>; + aw2033,led-current = <15>; aw2033,max-brightness = <255>; aw2033,rise-time-ms = <6>; aw2033,hold-time-ms = <0>; @@ -641,8 +641,8 @@ aw2033,green { aw2033,name = "green"; aw2033,id = <1>; - aw2033,imax = <2>; - aw2033,led-current = <3>; + aw2033,imax = <1>; + aw2033,led-current = <15>; aw2033,max-brightness = <255>; aw2033,rise-time-ms = <6>; aw2033,hold-time-ms = <0>; @@ -652,8 +652,8 @@ aw2033,blue { aw2033,name = "blue"; aw2033,id = <2>; - aw2033,imax = <2>; - aw2033,led-current = <3>; + aw2033,imax = <1>; + aw2033,led-current = <15>; aw2033,max-brightness = <255>; aw2033,rise-time-ms = <6>; aw2033,hold-time-ms = <0>; From afc81d50a9353fa0691a394e2a69b698ff590781 Mon Sep 17 00:00:00 2001 From: weiweij Date: Sun, 24 Apr 2022 11:06:40 +0800 Subject: [PATCH 0773/1247] wls_charge: add wls charging power¤t config Each wls charging chip has its own power and charging current, we should configure it in dts file to let each wls charging case could use its own parameter. Change-Id: I4b20f54e1b47dd50ed8f32d2fc609c4d35a1a59a Reviewed-on: https://gerrit.mot.com/2251114 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index ee4f8de5dd96..cfb7121bd658 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -208,6 +208,7 @@ mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; + mmi,wls-power-max = <5000>; }; mmi_discrete_charger: mmi,discrete-charging { @@ -223,6 +224,7 @@ mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <1200000>; + mmi,wls-max-icl-ua = <1000000>; mmi,df-serialnum = "SB18D50729"; mmi,mmi-temp-zones = <0 4200 800 0>, <10 4250 2000 1000>, From 0030bde8e18940249aea8bc2e6cbc526b87146ce Mon Sep 17 00:00:00 2001 From: chailu1 Date: Mon, 25 Apr 2022 13:38:16 +0800 Subject: [PATCH 0774/1247] arm/dts: config ntc for rhodei product therm/ntc config ntc for rhodei product Change-Id: I02080ab645ac119081c784470e1eac443457c27f Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2251848 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yongbin Chen Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodei-common-overlay.dtsi | 120 +++++++++++++------------- 1 file changed, 61 insertions(+), 59 deletions(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 8e577afe5d31..518e7caa60d8 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -24,6 +24,7 @@ #include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" #include "discrete_charging_rhodei.dtsi" +#include "moto_therm_sys_temp.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; @@ -362,39 +363,10 @@ xo-therm-usr { status = "disabled"; }; - chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - usb_conn_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; @@ -407,10 +379,9 @@ }; }; - - rfc_camera_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; @@ -423,24 +394,9 @@ }; }; - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + pa_therm2 { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; @@ -453,9 +409,9 @@ }; }; - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -469,8 +425,8 @@ }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -482,6 +438,52 @@ }; }; }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + }; &soc { From 7a99074cea10cb54aa8372bf027e0c12fcdaaaa3 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Wed, 20 Apr 2022 18:01:40 +0800 Subject: [PATCH 0775/1247] arm/dts: add charger pump enable status IIO add charger pump enable status IIO for pd policy Change-Id: I88d653e41f7406ba2285db2b659edbf03b553072 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2247944 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index cfb7121bd658..0fad445f1094 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -249,6 +249,7 @@ <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, <&mmi_discrete_charger PSY_IIO_DP_DM>, <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, + <&mmi_discrete_charger PSY_IIO_CP_ENABLE>, <&bq25960_master PSY_IIO_CP_ENABLE>, <&bq25960_master PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, <&bq25960_master PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, @@ -269,6 +270,7 @@ "usb_real_type", "battery_dp_dm", "usb_qc3p_power", + "mmi_cp_enabled_status", "cp_enabled", "cp_input_current_now", "cp_input_voltage_settled", From ee9770451010dec0a86c1af7a74b9ab6e76beca0 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 25 Apr 2022 16:58:39 +0800 Subject: [PATCH 0776/1247] arm/dts: miami introduce NTC for battery temperature this NTC connect to pmk8003. fuel-gauge get this NTC temp and report to power_suppory Change-Id: Ia1f8582eab48a37777df8be3798c35e893ef488e Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2252137 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 6 +++--- qcom/discrete_charging_miami.dtsi | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index f7941586fd3e..a9478b8cb44d 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -327,9 +327,9 @@ }; &pmk8350_vadc { - pmk8350_qtm_n_therm { + pmk8350_batt_therm { reg = ; - label = "pmk8350_qtm_n_therm"; + label = "pmk8350_batt_therm"; qcom,ratiometric; qcom,hw-settle-time = <200>; qcom,pre-scaling = <1 1>; @@ -348,7 +348,7 @@ <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; - qtm_n__therm { + batt_therm { reg = ; qcom,ratiometric; qcom,hw-settle-time = <200>; diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 0fad445f1094..335b017a6999 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -114,6 +114,8 @@ compatible = "mitsumi,mm8013c10"; reg = <0x55>; status = "okay"; + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>; + io-channel-names = "batt_therm"; }; }; From e36267a7ea3bf6e9d19de316be8ce4acd2ecff16 Mon Sep 17 00:00:00 2001 From: wingte48 Date: Thu, 14 Apr 2022 13:56:14 +0800 Subject: [PATCH 0777/1247] dts/panel: change the backlight current duty cyle for icnl9922 Modify: configure duty cycle 80% frequency 20kHz and number of 11 bits Change-Id: I9fe72c3cf18854c974a5d651057d05a40d8cc894 Reviewed-on: https://gerrit.mot.com/2242107 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9922-645-1080x2400-video.dtsi | 37 ++++++++++--------- qcom/rhodec-display.dtsi | 4 +- 2 files changed, 21 insertions(+), 20 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi index e980051a8e49..2e5558e6f679 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi @@ -45,30 +45,31 @@ qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ - 39 00 00 00 01 00 03 F0 5A 59 - 39 00 00 00 01 00 03 F1 A5 A6 - 39 00 00 00 01 00 03 F0 B4 4B - 39 00 00 00 01 00 10 70 41 12 00 05 00 5A 00 6F 00 77 00 31 02 20 20 - 39 00 00 00 01 00 21 71 11 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 - 39 00 00 00 01 00 21 72 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 - 39 00 00 00 01 00 21 73 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 - 39 00 00 00 01 00 21 74 12 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 - 39 00 00 00 01 00 21 75 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 - 39 00 00 00 01 00 21 76 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 - 39 00 00 00 01 00 03 F0 5A 59 - 39 00 00 00 01 00 03 F1 A5 A6 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 03 F0 B4 4B + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF + 39 00 00 00 00 00 10 70 41 12 00 05 00 5A 00 6F 00 77 00 31 02 20 20 + 39 00 00 00 00 00 21 71 11 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 + 39 00 00 00 00 00 21 72 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 + 39 00 00 00 00 00 21 73 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 21 74 12 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 + 39 00 00 00 00 00 21 75 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 + 39 00 00 00 00 00 21 76 09 BE 19 FC 19 FA 19 F8 1A 38 1A 78 1A B6 2A F6 2B 34 2B 74 3B 74 6B F4 00 00 00 00 00 00 00 00 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 //SLPOT + DISPON - 15 00 00 00 01 00 02 51 CC - 15 00 00 00 01 00 02 53 2C - 15 00 00 00 01 00 02 55 01 - 15 00 00 00 01 00 02 35 00 + 39 00 00 00 00 00 03 51 06 66 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 15 00 00 00 00 00 02 35 00 05 01 00 00 78 00 01 11 05 01 00 00 78 00 01 29 - 15 01 00 00 01 00 02 AC 05 + 15 01 00 00 00 00 02 AC 05 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 15 01 00 00 01 00 02 AC 0A + 15 00 00 00 00 00 02 AC 0A 05 01 00 00 10 00 01 28 05 01 00 00 32 00 01 10 ]; diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index db92ae708d00..14581cbb057a 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -245,9 +245,9 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From b8d865d8d7f6f16c3c45433355943dd39f581a9a Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 25 Apr 2022 16:17:46 +0800 Subject: [PATCH 0778/1247] arm/dt: miami: add csot 6.28 local hbm feature configs arm/dt: Add csot 6.28 local hbm feature configs: - alpha-brightness map table - fod hbm on and off commands - update fod coordinates. - update dc on and off codes to avoid flicker Change-Id: I6a6ed0a30b26635f40694af02d044ad44609d914 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2252100 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-628-1080x2400-dsc-cmd-common.dtsi | 332 ++++++++++++++++-- 1 file changed, 309 insertions(+), 23 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi index d9769e0bbc53..ddfbfb98f494 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi @@ -58,13 +58,287 @@ qcom,mdss-dsi-panel-peak-brightness = <4200000>; qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; + 39 01 00 00 00 00 03 51 0F FF + 39 01 00 00 00 00 03 87 1F FF + 39 01 00 00 00 00 02 88 01 + 39 01 00 00 00 00 02 86 01]; qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 0D BA]; + 39 01 00 00 00 00 03 51 0D BB + 39 01 00 00 00 00 03 87 0F FF + 39 01 00 00 00 00 02 88 01 + 39 01 00 00 00 00 02 86 01]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ - 39 01 00 00 00 00 03 51 0F FF]; + 39 01 00 00 00 00 06 F0 55 AA 52 08 07 + 39 01 00 00 00 00 02 C0 01 + 39 01 00 00 00 00 03 51 0F FF + 39 01 00 00 00 00 03 87 19 0D + 39 01 00 00 00 00 02 88 01 + 39 01 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F + 39 01 00 00 00 00 02 85 01]; + +qcom,mdss-dsi-panel-local-hbm-enabled; +qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; +qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; +qcom,mdss-dsi-panel-local-hbm-alpha-table = < + 0 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4365 4365 4365 4365 + 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 + 4365 4365 4365 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4367 + 4367 4367 4367 4367 4367 4367 4367 4368 4368 4368 4368 4368 4368 4368 4368 4369 + 4369 4369 4369 4369 4369 4370 4370 4370 4370 4370 4370 4371 4371 4371 4371 4371 + 4372 4372 4372 4372 4372 4373 4373 4373 4373 4373 4374 4374 4374 4374 4375 4375 + 4375 4375 4375 4376 4376 4376 4376 4377 4377 4377 4378 4378 4378 4378 4379 4379 + 4379 4379 4380 4380 4380 4381 4381 4381 4382 4382 4382 4382 4383 4383 4383 4384 + 4384 4384 4385 4385 4385 4386 4386 4386 4387 4387 4387 4388 4388 4389 4389 4389 + 4390 4390 4390 4391 4391 4391 4392 4392 4393 4393 4393 4394 4394 4395 4395 4395 + 4396 4396 4397 4397 4397 4398 4398 4399 4399 4400 4400 4400 4401 4401 4402 4402 + 4403 4403 4404 4404 4404 4405 4405 4406 4406 4407 4407 4408 4408 4409 4409 4410 + 4410 4410 4411 4411 4412 4412 4413 4413 4414 4414 4415 4415 4416 4416 4417 4417 + 4418 4418 4419 4420 4420 4421 4421 4422 4422 4423 4423 4424 4424 4425 4425 4426 + 4426 4427 4428 4428 4429 4429 4430 4430 4431 4431 4432 4433 4433 4434 4434 4435 + 4435 4436 4437 4437 4438 4438 4439 4439 4440 4441 4441 4442 4442 4443 4444 4444 + 4445 4445 4446 4447 4447 4448 4448 4449 4450 4450 4451 4451 4452 4453 4453 4454 + 4455 4455 4456 4456 4457 4458 4458 4459 4460 4460 4461 4461 4462 4463 4463 4464 + 4465 4465 4466 4467 4467 4468 4469 4469 4470 4471 4471 4472 4473 4473 4474 4474 + 4475 4476 4476 4477 4478 4479 4479 4480 4481 4481 4482 4483 4483 4484 4485 4485 + 4486 4487 4487 4488 4489 4489 4490 4491 4491 4492 4493 4494 4494 4495 4496 4496 + 4497 4498 4498 4499 4500 4501 4501 4502 4503 4503 4504 4505 4506 4506 4507 4508 + 4508 4509 4510 4511 4511 4512 4513 4514 4514 4515 4516 4516 4517 4518 4519 4519 + 4520 4521 4522 4522 4523 4524 4524 4525 4526 4527 4527 4528 4529 4530 4530 4531 + 4532 4533 4533 4534 4535 4536 4536 4537 4538 4539 4539 4540 4541 4542 4542 4543 + 4544 4545 4545 4546 4547 4548 4549 4549 4550 4551 4552 4552 4553 4554 4555 4555 + 4556 4557 4558 4559 4559 4560 4561 4562 4562 4563 4564 4565 4565 4566 4567 4568 + 4569 4569 4570 4571 4572 4573 4573 4574 4575 4576 4576 4577 4578 4579 4580 4580 + 4581 4582 4583 4584 4584 4585 4586 4587 4588 4588 4589 4590 4591 4592 4592 4593 + 4594 4595 4596 4596 4597 4598 4599 4600 4600 4601 4602 4603 4604 4604 4605 4606 + 4607 4608 4608 4609 4610 4611 4612 4612 4613 4614 4615 4616 4616 4617 4618 4619 + 4620 4621 4621 4622 4623 4624 4625 4625 4626 4627 4628 4629 4630 4630 4631 4632 + 4633 4634 4635 4635 4636 4637 4638 4639 4639 4640 4641 4642 4643 4644 4644 4645 + 4646 4647 4648 4649 4649 4650 4651 4652 4653 4654 4654 4655 4656 4657 4658 4659 + 4659 4660 4661 4662 4663 4664 4664 4665 4666 4667 4668 4669 4669 4670 4671 4672 + 4673 4674 4674 4675 4676 4677 4678 4679 4680 4680 4681 4682 4683 4684 4685 4685 + 4686 4687 4688 4689 4690 4690 4691 4692 4693 4694 4695 4696 4696 4697 4698 4699 + 4700 4701 4702 4702 4703 4704 4705 4706 4707 4707 4708 4709 4710 4711 4712 4713 + 4713 4714 4715 4716 4717 4718 4719 4719 4720 4721 4722 4723 4724 4725 4725 4726 + 4727 4728 4729 4730 4731 4731 4732 4733 4734 4735 4736 4737 4738 4738 4739 4740 + 4741 4742 4743 4744 4744 4745 4746 4747 4748 4749 4750 4750 4751 4752 4753 4754 + 4755 4756 4757 4757 4758 4759 4760 4761 4762 4763 4763 4764 4765 4766 4767 4768 + 4769 4770 4770 4771 4772 4773 4774 4775 4776 4777 4777 4778 4779 4780 4781 4782 + 4783 4784 4784 4785 4786 4787 4788 4789 4790 4791 4791 4792 4793 4794 4795 4796 + 4797 4798 4798 4799 4800 4801 4802 4803 4804 4805 4805 4806 4807 4808 4809 4810 + 4811 4812 4812 4813 4814 4815 4816 4817 4818 4819 4819 4820 4821 4822 4823 4824 + 4825 4826 4827 4827 4828 4829 4830 4831 4832 4833 4834 4834 4835 4836 4837 4838 + 4839 4840 4841 4842 4842 4843 4844 4845 4846 4847 4848 4849 4850 4850 4851 4852 + 4853 4854 4855 4856 4857 4857 4858 4859 4860 4861 4862 4863 4864 4865 4865 4866 + 4867 4868 4869 4870 4871 4872 4873 4873 4874 4875 4876 4877 4878 4879 4880 4881 + 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4890 4891 4892 4893 4894 4895 + 4896 4897 4898 4898 4899 4900 4901 4902 4903 4904 4905 4906 4906 4907 4908 4909 + 4910 4911 4912 4913 4914 4915 4915 4916 4917 4918 4919 4920 4921 4922 4923 4923 + 4924 4925 4926 4927 4928 4929 4930 4931 4932 4932 4933 4934 4935 4936 4937 4938 + 4939 4940 4941 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4950 4951 4952 + 4953 4954 4955 4956 4957 4958 4959 4959 4960 4961 4962 4963 4964 4965 4966 4967 + 4968 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4977 4978 4979 4980 4981 + 4982 4983 4984 4985 4986 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 + 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5005 5006 5007 5008 5009 5010 + 5011 5012 5013 5014 5015 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5024 + 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5034 5035 5036 5037 5038 5039 + 5040 5041 5042 5043 5044 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 + 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5064 5065 5066 5067 5068 + 5069 5070 5071 5072 5073 5074 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 + 5084 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5094 5095 5096 5097 + 5098 5099 5100 5101 5102 5103 5104 5104 5105 5106 5107 5108 5109 5110 5111 5112 + 5113 5114 5115 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5125 5126 + 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5136 5137 5138 5139 5140 5141 + 5142 5143 5144 5145 5146 5147 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 + 5157 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5168 5169 5170 + 5171 5172 5173 5174 5175 5176 5177 5178 5179 5179 5180 5181 5182 5183 5184 5185 + 5186 5187 5188 5189 5190 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 + 5201 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5212 5213 5214 + 5215 5216 5217 5218 5219 5220 5221 5222 5223 5223 5224 5225 5226 5227 5228 5229 + 5230 5231 5232 5233 5234 5235 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 + 5245 5246 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5257 5258 + 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5269 5270 5271 5272 5273 + 5274 5275 5276 5277 5278 5279 5280 5280 5281 5282 5283 5284 5285 5286 5287 5288 + 5289 5290 5291 5292 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 + 5304 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5315 5316 5317 + 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5327 5328 5329 5330 5331 5332 + 5333 5334 5335 5336 5337 5338 5339 5339 5340 5341 5342 5343 5344 5345 5346 5347 + 5348 5349 5350 5351 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 + 5363 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5375 5376 + 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5387 5388 5389 5390 5391 + 5392 5393 5394 5395 5396 5397 5398 5399 5399 5400 5401 5402 5403 5404 5405 5406 + 5407 5408 5409 5410 5411 5412 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 + 5422 5423 5424 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 + 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5449 5450 + 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5461 5462 5463 5464 5465 + 5466 5467 5468 5469 5470 5471 5472 5473 5474 5474 5475 5476 5477 5478 5479 5480 + 5481 5482 5483 5484 5485 5486 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 + 5496 5497 5498 5499 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 + 5511 5512 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5524 + 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5537 5538 5539 + 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5550 5551 5552 5553 5554 + 5555 5556 5557 5558 5559 5560 5561 5562 5563 5563 5564 5565 5566 5567 5568 5569 + 5570 5571 5572 5573 5574 5575 5576 5576 5577 5578 5579 5580 5581 5582 5583 5584 + 5585 5586 5587 5588 5589 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 + 5600 5601 5602 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 + 5615 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5628 + 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5641 5642 5643 + 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5654 5655 5656 5657 5658 + 5659 5660 5661 5662 5663 5664 5665 5666 5667 5667 5668 5669 5670 5671 5672 5673 + 5674 5675 5676 5677 5678 5679 5680 5681 5681 5682 5683 5684 5685 5686 5687 5688 + 5689 5690 5691 5692 5693 5694 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 + 5704 5705 5706 5707 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 + 5719 5720 5721 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 + 5734 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5747 + 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5761 5762 + 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5774 5775 5776 5777 + 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5788 5789 5790 5791 5792 + 5793 5794 5795 5796 5797 5798 5799 5800 5801 5801 5802 5803 5804 5805 5806 5807 + 5808 5809 5810 5811 5812 5813 5814 5815 5815 5816 5817 5818 5819 5820 5821 5822 + 5823 5824 5825 5826 5827 5828 5829 5829 5830 5831 5832 5833 5834 5835 5836 5837 + 5838 5839 5840 5841 5842 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 + 5853 5854 5855 5856 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 + 5868 5869 5870 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 + 5883 5884 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 + 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5911 + 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5925 5926 + 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5939 5940 5941 + 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5953 5954 5955 5956 + 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5967 5968 5969 5970 5971 + 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5981 5982 5983 5984 5985 5986 + 5987 5988 5989 5990 5991 5992 5993 5994 5995 5995 5996 5997 5998 5999 6000 6001 + 6002 6003 6004 6005 6006 6007 6008 6009 6009 6010 6011 6012 6013 6014 6015 6016 + 6017 6018 6019 6020 6021 6022 6023 6023 6024 6025 6026 6027 6028 6029 6030 6031 + 6032 6033 6034 6035 6036 6037 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 + 6047 6048 6049 6050 6051 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 + 6062 6063 6064 6065 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 + 6077 6078 6079 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 + 6092 6093 6094 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 + 6107 6108 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 + 6122 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 + 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6150 + 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6165 + 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6179 6180 + 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6193 6194 6195 + 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6208 6209 6210 + 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6222 6223 6224 6225 + 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6236 6237 6238 6239 6240 + 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6251 6252 6253 6254 6255 + 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6265 6266 6267 6268 6269 6270 + 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6280 6281 6282 6283 6284 6285 + 6286 6287 6288 6289 6290 6291 6292 6293 6294 6294 6295 6296 6297 6298 6299 6300 + 6301 6302 6303 6304 6305 6306 6307 6308 6308 6309 6310 6311 6312 6313 6314 6315 + 6316 6317 6318 6319 6320 6321 6322 6323 6323 6324 6325 6326 6327 6328 6329 6330 + 6331 6332 6333 6334 6335 6336 6337 6337 6338 6339 6340 6341 6342 6343 6344 6345 + 6346 6347 6348 6349 6350 6351 6352 6352 6353 6354 6355 6356 6357 6358 6359 6360 + 6361 6362 6363 6364 6365 6366 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 + 6376 6377 6378 6379 6380 6381 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 + 6391 6392 6393 6394 6395 6396 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 + 6406 6407 6408 6409 6410 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 + 6421 6422 6423 6424 6425 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 + 6436 6437 6438 6439 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 + 6451 6452 6453 6454 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 + 6466 6467 6468 6469 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 + 6481 6482 6483 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 + 6496 6497 6498 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 + 6511 6512 6513 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 + 6526 6527 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 + 6541 6542 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 + 6556 6557 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 + 6571 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 + 6586 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 + 6601 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 + 6616 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 + 6631 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 + 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 + 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 + 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 + 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 + 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6719 + 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6734 + 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6749 + 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6764 + 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6779 + 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6794 + 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6809 + 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6824 + 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6839 + 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6854 + 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6869 + 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6883 6884 + 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6898 6899 + 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6913 6914 + 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6928 6929 + 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6943 6944 + 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6958 6959 + 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6973 6974 + 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6988 6989 + 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7003 7004 + 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7018 7019 + 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7034 + 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7049 + 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7064 + 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7079 + 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7094 + 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7109 + 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7124 + 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7139 + 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7154 + 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7169 + 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7184 + 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7199 + 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 + 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 + 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 + 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 + 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 + 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 + 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 + 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 + 7321 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 + 7336 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 + 7351 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 + 7366 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 + 7381 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 + 7396 7397 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 + 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 + 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 + 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 + 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 + 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 + 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 + 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 + 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 + 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 + 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 + 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 + 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 + 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 + 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 + 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 + 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 + 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 + 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 + 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 + 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 + 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 + 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 + 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 + 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 + 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 + 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 + 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 + 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 + 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 + 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 + 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 + 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 + 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 + 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 + 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 + 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986>; //qcom,mdss-dsi-acl-on-command = [ // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 @@ -77,12 +351,12 @@ qcom,mdss-dsi-dc-off-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 18 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF 15 01 00 00 00 00 02 58 00]; qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; @@ -95,7 +369,7 @@ qcom,mdss-dsi-dc-on-command = [ 15 00 00 00 00 00 02 6F 0C 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF 15 01 00 00 00 00 02 58 01]; qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; @@ -130,13 +404,13 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 18 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 1C @@ -151,6 +425,9 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 35 00 //te enable @@ -212,13 +489,13 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 18 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 1C @@ -233,6 +510,9 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 35 00 //te enable @@ -294,13 +574,13 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 18 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 1C @@ -315,6 +595,9 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 35 00 //te enable @@ -376,13 +659,13 @@ qcom,mdss-dsi-display-timings { 39 00 00 00 00 00 06 F0 55 AA 52 08 00 15 00 00 00 00 00 02 B2 18 15 00 00 00 00 00 02 6F 0F - 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A 15 00 00 00 00 00 02 6F 0C - 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F 15 00 00 00 00 00 02 6F 18 - 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF - 15 01 00 00 00 00 02 58 00 //DC code + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 15 01 00 00 00 00 02 6F 1C @@ -397,6 +680,9 @@ qcom,mdss-dsi-display-timings { 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 20 15 01 00 00 00 00 02 35 00 //te enable From 91772a9e1ae2052f884c72af83159c2fa2a26e5f Mon Sep 17 00:00:00 2001 From: wingte49 Date: Tue, 26 Apr 2022 14:43:19 +0800 Subject: [PATCH 0779/1247] dts/panel: Panel: add panel-supply for icnl9922 Modify: add panel-supply for icnl9922 and change timing for ld13a avdd avee Change-Id: I29fb74aa8d96ce015f3d53ade0fa26627f6c810a Reviewed-on: https://gerrit.mot.com/2253004 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9922-645-1080x2400-video.dtsi | 4 +- qcom/rhodec-display.dtsi | 45 ++++++++++++++++++- 2 files changed, 45 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi index 2e5558e6f679..5497af83c073 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi @@ -64,14 +64,14 @@ 15 00 00 00 00 00 02 55 01 15 00 00 00 00 00 02 35 00 05 01 00 00 78 00 01 11 - 05 01 00 00 78 00 01 29 + 05 01 00 00 32 00 01 29 15 01 00 00 00 00 02 AC 05 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ 15 00 00 00 00 00 02 AC 0A 05 01 00 00 10 00 01 28 - 05 01 00 00 32 00 01 10 + 05 01 00 00 64 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; qcom,compression-mode = "dsc"; diff --git a/qcom/rhodec-display.dtsi b/qcom/rhodec-display.dtsi index 14581cbb057a..8a2e4a8ae714 100644 --- a/qcom/rhodec-display.dtsi +++ b/qcom/rhodec-display.dtsi @@ -172,6 +172,47 @@ }; }; +&soc { + dsi_panel_pwr_supply_icnl9922_rhodec: dsi_panel_pwr_supply_icnl9922_rhodec{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <150>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; + }; + + }; +}; + &dsi_nt36672c_fhd_plus_120_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -223,7 +264,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_rhodec>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_icnl9922_rhodec>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; qcom,mdss-dsi-bl-min-level = <8>; qcom,mdss-dsi-bl-max-level = <2047>; @@ -256,7 +297,7 @@ qcom,mdss-dsi-t-clk-pre = <0x39>; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 06 06 22 20 07 07 07 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 1B 06 06 22 20 07 07 07 02 04 00]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; From 68b6fc3160b80158300a6d18aa8138fa6e1e51eb Mon Sep 17 00:00:00 2001 From: weiweij Date: Wed, 27 Apr 2022 11:47:58 +0800 Subject: [PATCH 0780/1247] wls-charge: define latest FW as version 0.6 Define latest wls charge chip CPS4019's firmware as version V0.6. Change-Id: I01b930cd1ae6b66e290b820e162d6aee8a6978b7 Reviewed-on: https://gerrit.mot.com/2254037 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 335b017a6999..ee5354d1c028 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -167,6 +167,9 @@ io-channel-names = "otg_enable"; wireless-fw-name = "cps4019.hex"; + fw_ver_major = <0>; + fw_ver_minor = <6>; + use_bl_in_h; }; }; From c9c23e4e338a896bc09c724cb621fd21b2aad8b9 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 28 Apr 2022 14:17:00 +0800 Subject: [PATCH 0781/1247] arm/dt: miami: add 8x resolution function for goodix touch miami: Add 8x resolution function for goodix touch. Change-Id: I52c4641b350052fce0d8fc6770b84a31b7fba1dd Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2255270 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index 8d55c324dec3..f23da9caea4a 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -86,8 +86,8 @@ goodix,iovdd-gpio = <&tlmm 135 0x0>; goodix,irq-flags = <0x2002>; /* 1:trigger rising, 2:trigger falling;*/ goodix,panel-max-id = <10>; - goodix,panel-max-x = <1080>; - goodix,panel-max-y = <2400>; + goodix,panel-max-x = <8640>; + goodix,panel-max-y = <19200>; goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 From 8723db97b5b72c350ceae031b3b34602bc048a3c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 26 Apr 2022 14:32:44 +0800 Subject: [PATCH 0782/1247] leds: miami rename aw2015 RGB light name /sys/class/leds/red blue green used by google. if we use red/bule/green name again, there are many google/qcom services will handle these nodes. that will cause moto light's action not as expect. (https://gerrit.mot.com/#/c/1340797/) Change-Id: Iaa6cb05519500b22d8b7f591bdc2ac48649095bf Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2252997 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index a9478b8cb44d..9ea085074ae8 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -615,7 +615,7 @@ reg = <0x45>; aw2033,red { - aw2033,name = "red"; + aw2033,name = "red_moto"; aw2033,id = <0>; aw2033,imax = <1>; aw2033,led-current = <15>; @@ -639,7 +639,7 @@ }; aw2033,green { - aw2033,name = "green"; + aw2033,name = "green_moto"; aw2033,id = <1>; aw2033,imax = <1>; aw2033,led-current = <15>; @@ -650,7 +650,7 @@ aw2033,off-time-ms = <4>; }; aw2033,blue { - aw2033,name = "blue"; + aw2033,name = "blue_moto"; aw2033,id = <2>; aw2033,imax = <1>; aw2033,led-current = <15>; From e22e8542db1824bab5f3b73957e7c88f91637741 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 27 Apr 2022 17:19:31 +0800 Subject: [PATCH 0783/1247] arm/dt: Rhodec: Add icnl9922 CABC UI code and moving code Modify: Add the icnl9922 UI mode code in initial code; and CABC code in dtsi Change-Id: Ib19460cc880f963a824969ee0e265abb08cd5182 Reviewed-on: https://gerrit.mot.com/2254385 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9922-645-1080x2400-video.dtsi | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi index 5497af83c073..07e521f7bad5 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi @@ -26,9 +26,25 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <150>; - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command = [ + 15 00 00 00 00 00 02 55 03 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 FF FF F0 F0 F0 F0 F0 FF F5 F8 FB FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 BB BB CD DD EE FF E7 EF F7 FF 87 10 99 FB 5D BF 21 84 + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command = [ + 15 00 00 00 00 00 02 55 01 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; @@ -48,7 +64,6 @@ 39 00 00 00 00 00 03 F0 5A 59 39 00 00 00 00 00 03 F1 A5 A6 39 00 00 00 00 00 03 F0 B4 4B - 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF 39 00 00 00 00 00 10 70 41 12 00 05 00 5A 00 6F 00 77 00 31 02 20 20 39 00 00 00 00 00 21 71 11 00 00 89 30 80 09 60 04 38 00 08 02 1C 02 1C 02 00 02 0E 00 20 00 BB 00 07 00 0C 0D B7 0C B7 39 00 00 00 00 00 21 72 18 00 10 F0 03 0C 20 00 06 0B 0B 33 0E 1C 2A 38 46 54 62 69 70 77 79 7B 7D 7E 01 02 01 00 09 40 @@ -63,6 +78,12 @@ 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 15 00 00 00 00 00 02 35 00 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A 05 01 00 00 78 00 01 11 05 01 00 00 32 00 01 29 15 01 00 00 00 00 02 AC 05 From 34add471c41654a0d0d3c515cadb418c3a99dad7 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 28 Apr 2022 15:46:40 +0800 Subject: [PATCH 0784/1247] wls_chg: define main charger name for cps4019 In the driver of cps4019, it will use charger class to operate main charger. Because each product may have different name for main charger, the name of main charger should be defined in dts file. Refs change: https://gerrit.mot.com/#/c/2255421/ Change-Id: Iff1a0f8510f7a51999fa96f2cdbceac625cdc713 Reviewed-on: https://gerrit.mot.com/2255452 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index ee5354d1c028..9f8928e8bd73 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -166,6 +166,8 @@ io-channels = <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; io-channel-names = "otg_enable"; + main-charger-name = "master_chg"; + wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; fw_ver_minor = <6>; From 5ef766e28f55223cc0ff95a34b9aaab06d5156d5 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 29 Apr 2022 14:11:05 +0800 Subject: [PATCH 0785/1247] arm/dt: miami: send hbm and alpha one packet arm/dt: Send hbm 51 reg and 87 reg one packet, avoid flicker issue. Change-Id: I97511e0d3b5dc746b50d54f9541b30f922ae3bb3 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2256579 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-628-1080x2400-dsc-cmd-common.dtsi | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi index ddfbfb98f494..6e5d904eab4d 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi @@ -58,26 +58,26 @@ qcom,mdss-dsi-panel-peak-brightness = <4200000>; qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 03 51 0F FF - 39 01 00 00 00 00 03 87 1F FF - 39 01 00 00 00 00 02 88 01 - 39 01 00 00 00 00 02 86 01]; + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 87 1F FF + 15 00 00 00 00 00 02 88 01 + 15 01 00 00 00 00 02 86 01]; qcom,mdss-dsi-hbm-off-command = [ - 39 01 00 00 00 00 03 51 0D BB - 39 01 00 00 00 00 03 87 0F FF - 39 01 00 00 00 00 02 88 01 - 39 01 00 00 00 00 02 86 01]; + 39 00 00 00 00 00 03 51 0D BB + 39 00 00 00 00 00 03 87 0F FF + 15 00 00 00 00 00 02 88 01 + 15 01 00 00 00 00 02 86 01]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 07 - 39 01 00 00 00 00 02 C0 01 - 39 01 00 00 00 00 03 51 0F FF - 39 01 00 00 00 00 03 87 19 0D - 39 01 00 00 00 00 02 88 01 - 39 01 00 00 00 00 02 6F 01 - 39 01 00 00 00 00 05 88 02 1C 08 6F - 39 01 00 00 00 00 02 85 01]; + 39 00 00 00 00 00 06 F0 55 AA 52 08 07 + 15 00 00 00 00 00 02 C0 01 + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 87 19 0D + 15 00 00 00 00 00 02 88 01 + 15 00 00 00 00 00 02 6F 01 + 39 00 00 00 00 00 05 88 02 1C 08 6F + 15 01 00 00 00 00 02 85 01]; qcom,mdss-dsi-panel-local-hbm-enabled; qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; From 2c06747d4011b568d186c0f536e8223a1b27d1f2 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 29 Apr 2022 17:40:12 +0800 Subject: [PATCH 0786/1247] arm/dt: miami: enable fod detection of touch arm/dt: Enable fod detection of touch when system is suspend. Change-Id: Ieefccaa3cf3380a1e4be173ec401df3874632bcd Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2256825 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index f23da9caea4a..dc3a606d007d 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -99,5 +99,7 @@ mmi,power-off-suspend; mmi,enable-gestures; mmi,usb-charger-detection; + mmi,fod_detection; + mmi,fod_coords = <540 2159>; }; }; From eb14217327be23964592d3518758cbc608b9e612 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 3 May 2022 11:07:41 +0800 Subject: [PATCH 0787/1247] arm/dts: config dr_check to prefer_dfp for VDM As 68W moto charger need VDM verify, so config dr_check to prefer_dfp. Change-Id: I61694d93f4ea0eaefe8b8375ff226d5cea0e81c6 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2258488 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 9f8928e8bd73..a8f6405d1267 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -118,6 +118,14 @@ io-channel-names = "batt_therm"; }; + + rt1711h@4e { + dpm_caps { + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <2>; + }; + }; + }; &qupv3_se2_i2c { From 6336ebe79706f54e45266b4dc7b1670d82eb2977 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 3 May 2022 11:10:33 +0800 Subject: [PATCH 0788/1247] arm/dts: add pd vdm verify IIO channel add pd vdm verify IIO channel to notify verify state to mmi discrete charger core. Change-Id: Id2f1ace9a1880266c4cbec12fdf63b4edc164129 Signed-off-by: mahj8 Reviewed-on: https://gerrit.mot.com/2258489 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete-rt-pd-manger.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/discrete-rt-pd-manger.dtsi b/qcom/discrete-rt-pd-manger.dtsi index 15a3f91189be..24686370ba63 100644 --- a/qcom/discrete-rt-pd-manger.dtsi +++ b/qcom/discrete-rt-pd-manger.dtsi @@ -18,11 +18,13 @@ io-channels = <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>, <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, - <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>; + <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, + <&mmi_discrete_charger PSY_IIO_MMI_PD_VDM_VERIFY>; io-channel-names = "usb_real_type", "otg_enable", "typec_mode", - "pd_active"; + "pd_active", + "mmi_pd_vdm_verify"; }; }; From 679be86d10172e3a277a86f048ace9e942fa9772 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Mon, 9 May 2022 10:15:31 +0800 Subject: [PATCH 0789/1247] arm64/dts: miami: control earpiece dsense Add gpio58 to control earpiece dsense, default output is high, pull gpio58 low when earpiece is using. Change-Id: I850a74f4860421b20399be666d06bb26ad623c79 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2263121 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-audio-overlay.dtsi | 28 +++++++++++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/qcom/blair-miami-audio-overlay.dtsi b/qcom/blair-miami-audio-overlay.dtsi index 40e2f39c28da..50c7c4a28d1d 100644 --- a/qcom/blair-miami-audio-overlay.dtsi +++ b/qcom/blair-miami-audio-overlay.dtsi @@ -16,7 +16,6 @@ bias-pull-up; }; }; - aw882xx_recv_irq_default: aw882xx_recv_irq_default { mux { pins = "gpio100"; @@ -28,6 +27,7 @@ bias-pull-up; }; }; + haptic_irq_default: haptic_irq_default { mux { pins = "gpio87"; @@ -63,6 +63,31 @@ output-low; }; }; + + earpiece_dsense_high: earpiece_dsense_high { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + earpiece_dsense_low: earpiece_dsense_low { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; }; &cdc_dmic01_gpios { @@ -362,6 +387,7 @@ qcom,msm-mbhc-hphl-swh = <0>; qcom,msm-mbhc-gnd-swh = <0>; fsa4480-i2c-handle = <&fsa4480>; + earpiece-dsense-enable = <&tlmm 58 0>; }; &qupv3_se10_i2c { From c0ccf773048952d0cb855040c4014e64ac8893d8 Mon Sep 17 00:00:00 2001 From: weiweij Date: Sat, 7 May 2022 17:09:52 +0800 Subject: [PATCH 0790/1247] dts: set cps4019 int pin as pull up for default For CPS4019, its int pin is low active, so we should set it as pull up for default. Change-Id: I8242e3f48a0c8aa7e784dc167640b00c3cf7811a Reviewed-on: https://gerrit.mot.com/2262756 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index a8f6405d1267..ddefcbb67b12 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -171,6 +171,9 @@ interrupts = <38 0>; interrupt-names = "cps_wls_int"; + pinctrl-names = "default"; + pinctrl-0 = <&cps4019_irq>; + io-channels = <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; io-channel-names = "otg_enable"; @@ -211,6 +214,20 @@ input-enable; }; }; + + cps4019_irq: cps4019_irq { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; }; &soc { From 44d810d70aa9e867637d92a00f77014b0e911baa Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 9 May 2022 14:48:39 +0800 Subject: [PATCH 0791/1247] wls-chg: add USB/WLS mux switch control gpio For factory test, we use a mux to control USB/WLS route, and it is controlled by a gpio. This dts configuration is defined for this gpio. For MIAMI, it is gpio37 Change-Id: I7a53ad1cddbe5d9a000e36ffcbfa23342c4b0dcf Reviewed-on: https://gerrit.mot.com/2263380 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index ddefcbb67b12..34c8a0abf2d6 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -166,6 +166,7 @@ status = "okay"; compatible = "cps,wls-charger-cps4019"; reg = <0x30>; + force_wls_pin = <&tlmm 37 0x00>; cps_wls_int = <&tlmm 38 0x00>; interrupt-parent = <&tlmm>; interrupts = <38 0>; From 176a74831b4eb71638935a5049914348660a3a86 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 10 May 2022 14:52:16 +0800 Subject: [PATCH 0792/1247] WLS-CHG: add psy supplied from name "bms" For wls charger, it will get battery capacity to control charging led to green when capacity is 100. To get FG driver's notification, wls charger should register suppied-from element. And for working for each products with this chip driver, we defined supplied-from element name in DTS. Change-Id: I4e81c2e3851a35f6b443f84dd5efbdbb1b9c61a5 Reviewed-on: https://gerrit.mot.com/2264559 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 34c8a0abf2d6..240f5ebc37d7 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -179,6 +179,7 @@ io-channel-names = "otg_enable"; main-charger-name = "master_chg"; + supplied-from = "bms"; wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; From 29f3129cc8bf798163300dfaef725f2c661984ef Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 12 May 2022 15:04:24 +0800 Subject: [PATCH 0793/1247] wls-chg: change supplier to "battery" For uevents will be send each power_supply_change() function called. So if we use "bms" node to notify capacity 100%, it will sennd uevents just after "battery" node. And as a result, there will be lots of uevents. It is not suitable. So we change to "battery" node to notify wls-chg. Change-Id: Ibfc9ca5c7de5722d602f295a2d30e21fc596b5ca Reviewed-on: https://gerrit.mot.com/2266836 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 240f5ebc37d7..b27eb539840b 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -179,7 +179,7 @@ io-channel-names = "otg_enable"; main-charger-name = "master_chg"; - supplied-from = "bms"; + supplied-from = "battery"; wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; From 5099c8434eb936d1a63ad8c3699097be2fcf754e Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Thu, 12 May 2022 15:28:24 +0800 Subject: [PATCH 0794/1247] arm/dts: config pmk8003 GPIO1 to ADC mode battery-NTC connect to pmk8003 gpio1. Ensure the the GPIO is disabled via setting to(bias-high-impedance) to enable ADC mode. Change-Id: I3db41404ced9292277824843a5c2f47dcba7a7a4 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2266945 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 10 ++++++++++ qcom/discrete_charging_miami.dtsi | 3 +++ 2 files changed, 13 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 9ea085074ae8..38c945d375d4 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -343,6 +343,16 @@ }; }; +&pmk8350_gpios { + pmk8350_gpio1_adc { + pmk8350_gpio1_adc_default: pmk8350_gpio1_adc_default { + pins = "gpio1"; /* GPIO 1 */ + function = "normal"; /* normal */ + bias-high-impedance; /* DISABLE GPIO1 for ADC*/ + }; + }; +}; + &pmk8350_adc_tm { io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index b27eb539840b..97d836375d4d 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -117,6 +117,9 @@ io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>; io-channel-names = "batt_therm"; + pinctrl-names = "default"; + pinctrl-0 = <&pmk8350_gpio1_adc_default>; + }; rt1711h@4e { From 800818f1739810a1198266a0f821d73351bf01ea Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 13 May 2022 16:03:17 +0800 Subject: [PATCH 0795/1247] arm/dts: add FFC config for miami add FFC config in main charger side for miami Change-Id: Iae3afaff7f5f9edeb9c8cd9e4d3ae8133790709c Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2268188 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 97d836375d4d..ad4b7acb952a 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -257,6 +257,7 @@ mmi,chrg-iterm-ma = <196>; mmi,fg-iterm-ma = <500>; + mmi,batt-profile-fv-mv = <4512>; mmi,max-fv-mv = <4480>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; @@ -268,6 +269,12 @@ <15 0 2000 2000>, <45 0 4000 4000>, <60 4200 4000 0>; + mmi,mmi-ffc-zones = + <15 4480 196 500>, + <25 4512 590 500>, + <35 4512 712 500>, + <45 4512 804 500>, + <60 4480 196 500>; mmi,thermal-mitigation = <4000000 3000000 2500000 2000000 1500000 1200000 900000 From 84e4a5ec9059cf042f37648cacc62f6188793944 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 17 May 2022 17:24:41 +0800 Subject: [PATCH 0796/1247] arm/dts: config mmi,usb-pd-supported config mmi,usb-pd-supported for miami to avoiding unit reboot in charge only mode. Change-Id: Id13ddaf23492ac5c9a860369a46b925668dee9e9 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2271108 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index ad4b7acb952a..c0a5553e92fc 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -279,6 +279,7 @@ 2000000 1500000 1200000 900000 600000 300000>; + mmi,usb-pd-supported; }; mmi_chrg: mmi_chrg_manager { From 752e724fa40bba5ec7980af837f730f84da8db22 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Tue, 17 May 2022 15:16:42 +0800 Subject: [PATCH 0797/1247] arm/dts: config vindpm to 4700mv As miami battery FV is 4480 and refer to main charging IC spec vbus > vbat +vsleep, so charge vindpm to 4700mv. Change-Id: Iecd4b233c381843997cd35b32f2a1aa8518f541b Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2270963 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index c0a5553e92fc..905495913ca2 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -52,6 +52,7 @@ dpdm-supply = <&usb2_phy0>; mmi,qc3-support; + input-voltage-limit-microvolt = <4700000>; /* sw jeita parameter customer defined*/ enable_sw_jeita; @@ -108,6 +109,7 @@ ti,bq2589x,enable-termination; ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; + ti,bq2589x,vindpm = <4700>; }; mm8013@55 { From bfaa8479edf24313c77fbbfeb5bbc8724f896434 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Tue, 17 May 2022 11:18:59 +0800 Subject: [PATCH 0798/1247] propietary/dtsi:Rhodec: Update icnl9922 CABC code Modify: -Update icnl9922 kernel and uefi initial code, kernel mv/ui mode code to ensure the read-back code is rhight. Change-Id: I0cbc8fdeaec445addd14db3017d2e6ddfcece880 Reviewed-on: https://gerrit.mot.com/2270751 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi index 07e521f7bad5..9eb626fe474d 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9922-645-1080x2400-video.dtsi @@ -37,7 +37,7 @@ ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-ui-command = [ - 15 00 00 00 00 00 02 55 01 + 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 03 F0 5A 59 39 00 00 00 00 00 03 F1 A5 A6 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF @@ -76,8 +76,8 @@ //SLPOT + DISPON 39 00 00 00 00 00 03 51 06 66 15 00 00 00 00 00 02 53 2C - 15 00 00 00 00 00 02 55 01 15 00 00 00 00 00 02 35 00 + 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 03 F0 5A 59 39 00 00 00 00 00 03 F1 A5 A6 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF From a4fe51fd1617a3489a23c41e7011017d0f0e41c5 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Sun, 22 May 2022 21:14:50 +0800 Subject: [PATCH 0799/1247] arm/dt: rhodei: change sm5350 backlight curve arm/dt: Change sm5350 backlight curve to align with aw99703. Otherwise sm5350 default curve is too dark. Change-Id: Ib0c334d0d1816800d6716f13d5a7f9635ab7a391 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2276175 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 86e17a2acec0..ce5aea2b66ed 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -344,6 +344,7 @@ ctl-bank-en = <0x02>; full-scale-current = <0x17>; map-mode = <0>; /* 0 exponential, 1 linear */ + current-align-type = <1>; sm5350,default-brightness = <1810>; }; From 6edb448fac11ad315af33d8ca7931461ccfed665 Mon Sep 17 00:00:00 2001 From: liaohj Date: Sat, 7 May 2022 14:03:18 +0800 Subject: [PATCH 0800/1247] arm64/dts:rhodep enable aw882xx get algo params from ram enable aw882xx get algo params from ram. avoid adsp block issue. Change-Id: I0a823235a87ccb7a43a756539b23cde3fb07e5ff Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2262524 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- ...udio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 426 ++++++++++++++++++ 2 files changed, 427 insertions(+), 1 deletion(-) create mode 100644 qcom/rhodep-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 9861fc52d0ad..8b7a0b254457 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -11,7 +11,7 @@ */ #include "blair-nopmi-moto-common-overlay.dtsi" -#include "blair-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" +#include "rhodep-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" diff --git a/qcom/rhodep-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/rhodep-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi new file mode 100644 index 000000000000..e899a43690b9 --- /dev/null +++ b/qcom/rhodep-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -0,0 +1,426 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_recv_irq_default>; + irq-gpio = <&tlmm 60 0x2008>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From 169b6343f11657fdd23680f5ef0e4b847fa7bc36 Mon Sep 17 00:00:00 2001 From: mahj8 Date: Fri, 20 May 2022 15:51:05 +0800 Subject: [PATCH 0801/1247] arm/dts: config mmi,cfg-chgmod-to-fg As mm8013 fg need charger mode info, so config this dts to enable this feature. Change-Id: Ide85f326a345410f15da5870091e4a1897a6cf96 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2274903 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 905495913ca2..80fe509f1f87 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -282,6 +282,7 @@ 1200000 900000 600000 300000>; mmi,usb-pd-supported; + mmi,cfg-chgmod-to-fg; }; mmi_chrg: mmi_chrg_manager { From 400acc2fbc7ffa0340a6b0ab857c93ce1ca2c490 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 25 May 2022 20:11:01 +0800 Subject: [PATCH 0802/1247] dtsi:Rhodei:Pull high the TP INT Modify: Pull high the TP INT when screen suspend to fix ESD failure. Change-Id: I4a8cc2b59d7b4f13c104a83cca21559916bfab4b Reviewed-on: https://gerrit.mot.com/2279598 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-touchscreen.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/rhodei-touchscreen.dtsi b/qcom/rhodei-touchscreen.dtsi index 3091a737f474..d5d343e7ce3f 100755 --- a/qcom/rhodei-touchscreen.dtsi +++ b/qcom/rhodei-touchscreen.dtsi @@ -102,7 +102,7 @@ config { pins = "gpio22"; drive-strength = <2>; - bias-pull-up; + bias-disable; }; }; }; @@ -139,8 +139,8 @@ touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2001>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; - pinctrl-3 = <&ts_active>; - pinctrl-4 = <&ts_int_suspend_high>; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; status = "ok"; }; From f405ce2939088d710a3231225f7f820e4bb185fe Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 17 May 2022 19:24:40 +0800 Subject: [PATCH 0803/1247] arm/dt: miami: use reg 87 to control lhbm miami: - Use 87 to control lhbm, if lhbm is abnormal, we can read 87 to check. Previous 86 can not be read. - exit lhbm, set every commands to last command to fix lhbm can't exit issue. - exit lhbm when enter hbm. Change-Id: I117b9b0a62b41d9ad7c79806f3b784686245f77e Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2271181 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-628-1080x2400-dsc-cmd-common.dtsi | 26 ++++++++++--------- 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi index 6e5d904eab4d..d76ce6523330 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi @@ -58,26 +58,20 @@ qcom,mdss-dsi-panel-peak-brightness = <4200000>; qcom,mdss-dsi-panel-blackness-level = <3230>;*/ qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 00 00 00 03 51 0F FF - 39 00 00 00 00 00 03 87 1F FF - 15 00 00 00 00 00 02 88 01 - 15 01 00 00 00 00 02 86 01]; + 39 01 00 00 00 00 03 51 0F FF + 39 01 00 00 00 00 04 87 0F FF 04]; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 00 00 00 03 51 0D BB - 39 00 00 00 00 00 03 87 0F FF - 15 00 00 00 00 00 02 88 01 - 15 01 00 00 00 00 02 86 01]; + 39 01 00 00 00 00 03 51 0D BB + 39 01 00 00 00 00 04 87 0F FF 04]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ 39 00 00 00 00 00 06 F0 55 AA 52 08 07 15 00 00 00 00 00 02 C0 01 39 00 00 00 00 00 03 51 0F FF - 39 00 00 00 00 00 03 87 19 0D - 15 00 00 00 00 00 02 88 01 + 39 00 00 00 00 00 04 87 1F FF 05 15 00 00 00 00 00 02 6F 01 - 39 00 00 00 00 00 05 88 02 1C 08 6F - 15 01 00 00 00 00 02 85 01]; + 39 01 00 00 00 00 05 88 02 1C 08 6F]; qcom,mdss-dsi-panel-local-hbm-enabled; qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; @@ -437,6 +431,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 15 01 00 00 00 00 02 88 01 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ @@ -522,6 +518,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 15 01 00 00 00 00 02 88 01 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ @@ -607,6 +605,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 15 01 00 00 00 00 02 88 01 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ @@ -692,6 +692,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + 15 01 00 00 00 00 02 88 01 + 05 01 00 00 78 00 01 11 05 01 00 00 00 00 01 29]; /* display on */ qcom,mdss-dsi-off-command = [ From b89a3678601d30055eba9fee0fbe9d41109ce64d Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 30 May 2022 17:30:05 +0800 Subject: [PATCH 0804/1247] arm/dts: config 7.5W for DCP charger config 7.5W max charging capacity of DCP charger for miami Change-Id: I9dc7b73f8058da4d5d4910aa94780b3d620baaa0 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2283933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 80fe509f1f87..1e22ede4efad 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -245,7 +245,7 @@ mmi,upper-limit-capacity = <65>; mmi,lower-limit-capacity = <60>; mmi,heartbeat-interval = <5000>; - mmi,dcp-power-max = <10000>; + mmi,dcp-power-max = <7500>; mmi,hvdcp-power-max = <15000>; mmi,wls-power-max = <5000>; }; From 1722e315768ae0bfcae3bfba45e186218cc164b9 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Fri, 27 May 2022 18:22:59 +0800 Subject: [PATCH 0805/1247] arm/dts: add MM8013C FG FW/Parameter/battery_id version config config mm8013c fg FW version:0X0812 parameter version:0x0200 and battery id info Change-Id: I50e2abe4287da36c4756e879952b6ab2d61385ae Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2282116 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 1e22ede4efad..a42e56e3b376 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -122,6 +122,12 @@ pinctrl-names = "default"; pinctrl-0 = <&pmk8350_gpio1_adc_default>; + latest_fw_version = <0x0812>; + latest_parameter_version = <0x0201>; + + first_battery_serialnum = <0x0103>; + second_battery_serialnum = <0x0102>; + default_battery_serialnum = <0x0103>; }; rt1711h@4e { From 7722505f0253800a50a6e8edd91c6365c4d869a7 Mon Sep 17 00:00:00 2001 From: chailu1 Date: Mon, 6 Jun 2022 11:22:37 +0800 Subject: [PATCH 0806/1247] arm/dts: config pmk8003 gpio3 to adc mode charge pump ntc connect to pmk8003 gpio3 Ensure the gpio is disabled via setting to bias-high-impedance to enable adc mode. Change-Id: I4bd98e3ff38ba65e88c89b735a0011b2f73978d5 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2289337 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 38c945d375d4..41b738507540 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -327,6 +327,9 @@ }; &pmk8350_vadc { + pinctrl-names = "default"; + pinctrl-0 = <&pmk8350_gpio3_adc_default>; + pmk8350_batt_therm { reg = ; label = "pmk8350_batt_therm"; @@ -351,6 +354,14 @@ bias-high-impedance; /* DISABLE GPIO1 for ADC*/ }; }; + + pmk8350_gpio3_adc { + pmk8350_gpio3_adc_default: pmk8350_gpio3_adc_default { + pins = "gpio3"; /* GPIO 3 */ + function = "normal"; /* normal */ + bias-high-impedance; /* DISABLE GPIO3 for ADC*/ + }; + }; }; &pmk8350_adc_tm { From f1e7d37a20b06cbb5adfe37b11edde46fb0d19e5 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 1 Jun 2022 19:57:31 +0800 Subject: [PATCH 0807/1247] dtsi:Rhodei:add post-off sleep time for avdd avee Modify: add display sleep timing avdd avee interval time 3ms set display vddio on time from 20ms, AVDD AVEE interval time 5ms to 3ms Change-Id: Icd8165b28fef79002837f7fbfd87c98a2987c0f4 Reviewed-on: https://gerrit.mot.com/2286120 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index ce5aea2b66ed..5c17d9eaed45 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -45,6 +45,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; + qcom,supply-post-off-sleep = <5>; gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; @@ -78,6 +79,7 @@ qcom,supply-max-voltage = <1904000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; + qcom,supply-pre-on-sleep = <20>; qcom,supply-pre-off-sleep = <150>; }; @@ -100,7 +102,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; - qcom,supply-post-off-sleep = <5>; + qcom,supply-post-off-sleep = <3>; }; }; @@ -138,6 +140,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; + qcom,supply-pre-off-sleep = <3>; }; }; From 11f7dde0d8cf7472510c161969da3aec14b5c65b Mon Sep 17 00:00:00 2001 From: wingte49 Date: Wed, 1 Jun 2022 20:06:22 +0800 Subject: [PATCH 0808/1247] dtsi:Rhodei: Change txd-ili and tianma-nt36672c backlight 11bit Modify: set nt36672c pwm to 11bit set ili7807s pwm to 11bit Change-Id: Ic28139f2eed364fdbc1a18b7a2e419b7c17d10a7 Reviewed-on: https://gerrit.mot.com/2286130 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 5c17d9eaed45..109819f7a180 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -186,9 +186,9 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-hbm-on-command = [15 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [15 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; @@ -227,9 +227,9 @@ qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "txd"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 EF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 8B]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; From 22442c9f518b036e5e4a429777481d82fcc707db Mon Sep 17 00:00:00 2001 From: caoqian4 Date: Wed, 8 Jun 2022 16:10:52 +0800 Subject: [PATCH 0809/1247] dtsi:init configuration of dts for Penang to pass build Init the config for new product penang Base on product milanf Change-Id: I49b96af87e52518b63b5b58a29a8b3f4f101356f Signed-off-by: caoqian4 Reviewed-on: https://gerrit.mot.com/2291665 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao --- qcom/Makefile | 11 + qcom/blair-moto-penang-base.dts | 45 +++ qcom/blair-penang-common-overlay.dtsi | 500 ++++++++++++++++++++++++++ qcom/blair-penang-dvt1-overlay.dts | 203 +++++++++++ qcom/blair-penang-dvt2-overlay.dts | 133 +++++++ qcom/blair-penang-evb1-overlay.dts | 24 ++ qcom/blair-penang-evb2-overlay.dts | 24 ++ qcom/discrete_charging_penang.dtsi | 384 ++++++++++++++++++++ qcom/penang-display.dtsi | 313 ++++++++++++++++ qcom/penang-fps-overlay.dtsi | 164 +++++++++ qcom/penang-touchscreen.dtsi | 93 +++++ qcom/penang-wl286xx.dtsi | 74 ++++ 12 files changed, 1968 insertions(+) create mode 100644 qcom/blair-moto-penang-base.dts create mode 100644 qcom/blair-penang-common-overlay.dtsi create mode 100644 qcom/blair-penang-dvt1-overlay.dts create mode 100644 qcom/blair-penang-dvt2-overlay.dts create mode 100644 qcom/blair-penang-evb1-overlay.dts create mode 100644 qcom/blair-penang-evb2-overlay.dts create mode 100644 qcom/discrete_charging_penang.dtsi create mode 100644 qcom/penang-display.dtsi create mode 100644 qcom/penang-fps-overlay.dtsi create mode 100755 qcom/penang-touchscreen.dtsi create mode 100644 qcom/penang-wl286xx.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 88541d18e3c8..9a93febe658b 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -100,6 +100,17 @@ blair-milanf-evb2-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb +dtbo-$(CONFIG_PENANG_DTB) += \ + blair-penang-evb1-overlay.dtbo \ + blair-penang-evb2-overlay.dtbo \ + blair-penang-dvt1-overlay.dtbo \ + blair-penang-dvt2-overlay.dtbo + +blair-penang-evb1-overlay.dtbo-base := blair-moto-penang-base.dtb +blair-penang-evb2-overlay.dtbo-base := blair-moto-penang-base.dtb +blair-penang-dvt1-overlay.dtbo-base := blair-moto-penang-base.dtb +blair-penang-dvt2-overlay.dtbo-base := blair-moto-penang-base.dtb + dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evt1-overlay.dtbo \ blair-rhodep-evt2-overlay.dtbo \ diff --git a/qcom/blair-moto-penang-base.dts b/qcom/blair-moto-penang-base.dts new file mode 100644 index 000000000000..e9b5f91a2ff2 --- /dev/null +++ b/qcom/blair-moto-penang-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-penang-common-overlay.dtsi b/qcom/blair-penang-common-overlay.dtsi new file mode 100644 index 000000000000..8b9f43e8e7ae --- /dev/null +++ b/qcom/blair-penang-common-overlay.dtsi @@ -0,0 +1,500 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-penang-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "penang-fps-overlay.dtsi" +#include "penang-display.dtsi" +#include "penang-touchscreen.dtsi" +#include "penang-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-penang-overlay.dtsi" +#include "penang-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; +}; + +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + diff --git a/qcom/blair-penang-dvt1-overlay.dts b/qcom/blair-penang-dvt1-overlay.dts new file mode 100644 index 000000000000..e3343d6a222b --- /dev/null +++ b/qcom/blair-penang-dvt1-overlay.dts @@ -0,0 +1,203 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xB100>; +}; + +&rt9426a { + interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; +}; +&rt9426a_alert { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&tlmm { + ets_vcc_high { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + ets_vcc_low { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + nfc_enable_active { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + nfc_enable_suspend { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + }; +}; + +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; +}; + +&et528 { + egistec,gpio_vcc_en = <&tlmm 6 0x0>; +}; + +&silead { + avdd-gpios = <&tlmm 6 0x0>; +}; + +&qupv3_se7_i2c { + st21nfc@8 { + status = "diabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&sx937x { + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <58>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x886 /*AFE_PARAM_PH0*/ + 0x8034 0x886 /*AFE_PARAM_PH1*/ + 0x8040 0x886 /*AFE_PARAM_PH2*/ + 0x804C 0x8BE /*AFE_PARAM_PH3*/ + 0x8058 0x866 /*AFE_PARAM_PH4*/ + 0x8064 0x86E /*AFE_PARAM_PH5*/ + 0x8070 0x86E /*AFE_PARAM_PH6*/ + 0x807C 0x85E /*AFE_PARAM_PH7*/ + /*set CS3 to hiz, because it used as IRQ pin*/ + 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ + 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ + 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ + 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ + 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ + 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ + 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ + 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ + 0x8098 0x7A36 + 0x80B8 0x7636 + 0x80D8 0x5959 + 0x80F8 0x3939 + 0x8118 0x2C2C + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0x5A40 + 0x80A0 0x1E1E00E1 + 0x80C0 0x404000E2 + 0x80E0 0x222200E1 + 0x8100 0x161600E2 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x41DB3000 + 0x80B0 0x7FB33000 + 0x80D0 0x40CD3000 + 0x80F0 0x68BD3000 + 0x8110 0x30DD3000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD67000 + 0x8088 0x300005 + 0x80A8 0x300005 + 0x80C8 0x300005 + 0x80E8 0x300005 + 0x8108 0x300005 + 0x8128 0x3600000 + 0x8148 0x3600000 + 0x8168 0x300000 + 0x808C 0x60200060 + 0x80AC 0x60200060 + 0x80CC 0x60200060 + 0x80EC 0x60200060 + 0x810C 0x60200060 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + >; + + status = "ok"; +}; diff --git a/qcom/blair-penang-dvt2-overlay.dts b/qcom/blair-penang-dvt2-overlay.dts new file mode 100644 index 000000000000..24a43f434d19 --- /dev/null +++ b/qcom/blair-penang-dvt2-overlay.dts @@ -0,0 +1,133 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xB200>; +}; + +&rt9426a { + interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; +}; +&rt9426a_alert { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + }; +}; + +&tlmm { + ets_vcc_high { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + ets_vcc_low { + mux { + pins = "gpio6"; + }; + + config { + pins = "gpio6"; + }; + }; + + nfc_enable_active { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + nfc_enable_suspend { + mux { + pins = "gpio48"; + }; + + config { + pins = "gpio48"; + }; + }; + + sgm7220_en_n: sgm7220_en_n { + mux { + pins = "gpio58"; + function = "gpio"; + }; + + config { + pins = "gpio58"; + drive-strength = <2>; + bias-pull-down; + input-enable; + }; + }; +}; + +&sgm7220 { + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; +}; + +&et528 { + egistec,gpio_vcc_en = <&tlmm 6 0x0>; +}; + +&silead { + avdd-gpios = <&tlmm 6 0x0>; +}; + +&qupv3_se7_i2c { + st21nfc@8 { + status = "diabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + diff --git a/qcom/blair-penang-evb1-overlay.dts b/qcom/blair-penang-evb1-overlay.dts new file mode 100644 index 000000000000..309ec88cbb1e --- /dev/null +++ b/qcom/blair-penang-evb1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA100>; +}; + diff --git a/qcom/blair-penang-evb2-overlay.dts b/qcom/blair-penang-evb2-overlay.dts new file mode 100644 index 000000000000..3cd0b51a280d --- /dev/null +++ b/qcom/blair-penang-evb2-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-nopmi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA200>; +}; + diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi new file mode 100644 index 000000000000..1e22ede4efad --- /dev/null +++ b/qcom/discrete_charging_penang.dtsi @@ -0,0 +1,384 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#include + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + + sgm4154x: sgm4154x@3B { + status = "okay"; + compatible = "sgm,sgm41542"; + reg = <0x3B>; + + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + mmi,wls-en-gpio = <&tlmm 49 0>; + + dpdm-supply = <&usb2_phy0>; + mmi,qc3-support; + input-voltage-limit-microvolt = <4700000>; + + /* sw jeita parameter customer defined*/ + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890: bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 12 0>; + bq2589x_en-gpio = <&tlmm 92 0>; + mmi,wls-en-gpio = <&tlmm 49 0>; + dpdm-supply = <&usb2_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + ti,bq2589x,vindpm = <4700>; + }; + + mm8013@55 { + compatible = "mitsumi,mm8013c10"; + reg = <0x55>; + status = "okay"; + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>; + io-channel-names = "batt_therm"; + + pinctrl-names = "default"; + pinctrl-0 = <&pmk8350_gpio1_adc_default>; + + }; + + rt1711h@4e { + dpm_caps { + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <2>; + }; + }; + +}; + +&qupv3_se2_i2c { + status = "okay"; + bq25960_master:bq25960-master@66 { + status = "okay"; + compatible = "ti,bq25960-master"; + reg = <0x66>; + sc8541-addr = <0x6B>; + sc8541-name = "sc8541-master"; + #io-channel-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <57 0>; + irq-gpio = <&tlmm 57 0>; + }; + +}; + +&qupv3_se8_i2c { + status = "okay"; + bq25960_slave:bq25960-slave@67 { + status = "okay"; + compatible = "ti,bq25960-slave"; + reg = <0x67>; + sc8541-addr = <0x6C>; + sc8541-name = "sc8541-slave"; + #io-channel-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <84 0>; + irq-gpio = <&tlmm 84 0>; + }; + +}; + +&qupv3_se2_i2c { + status = "okay"; + cps-wls-charger@30 { + status = "okay"; + compatible = "cps,wls-charger-cps4019"; + reg = <0x30>; + force_wls_pin = <&tlmm 37 0x00>; + cps_wls_int = <&tlmm 38 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <38 0>; + interrupt-names = "cps_wls_int"; + + pinctrl-names = "default"; + pinctrl-0 = <&cps4019_irq>; + + io-channels = <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; + io-channel-names = "otg_enable"; + + main-charger-name = "master_chg"; + supplied-from = "battery"; + + wireless-fw-name = "cps4019.hex"; + fw_ver_major = <0>; + fw_ver_minor = <6>; + + use_bl_in_h; + }; +}; + +&tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio12"; + function = "gpio"; + }; + + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + + cps4019_irq: cps4019_irq { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <65>; + mmi,lower-limit-capacity = <60>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <7500>; + mmi,hvdcp-power-max = <15000>; + mmi,wls-power-max = <5000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <196>; + mmi,fg-iterm-ma = <500>; + mmi,batt-profile-fv-mv = <4512>; + mmi,max-fv-mv = <4480>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; + mmi,wls-max-icl-ua = <1000000>; + mmi,df-serialnum = "SB18D50729"; + mmi,mmi-temp-zones = <0 4200 800 0>, + <10 4250 2000 1000>, + <15 0 2000 2000>, + <45 0 4000 4000>, + <60 4200 4000 0>; + mmi,mmi-ffc-zones = + <15 4480 196 500>, + <25 4512 590 500>, + <35 4512 712 500>, + <45 4512 804 500>, + <60 4480 196 500>; + mmi,thermal-mitigation = <4000000 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + mmi,usb-pd-supported; + mmi,cfg-chgmod-to-fg; + }; + + mmi_chrg: mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&mmi_discrete_charger PSY_IIO_HW_CURRENT_MAX>, + <&mmi_discrete_charger PSY_IIO_USB_CHARGING_ENABLED>, + <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, + <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, + <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, + <&mmi_discrete_charger PSY_IIO_USB_TERMINATION_ENABLED>, + <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, + <&mmi_discrete_charger PSY_IIO_DP_DM>, + <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, + <&mmi_discrete_charger PSY_IIO_CP_ENABLE>, + <&bq25960_master PSY_IIO_CP_ENABLE>, + <&bq25960_master PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_master PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_master PSY_IIO_CP_STATUS1>, + <&bq25960_master PSY_IIO_CP_CLEAR_ERROR>, + <&bq25960_slave PSY_IIO_CP_ENABLE>, + <&bq25960_slave PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_slave PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_slave PSY_IIO_CP_STATUS1>, + <&bq25960_slave PSY_IIO_CP_CLEAR_ERROR>; + + io-channel-names = "hw_current_max", + "charging_enabled", + "typec_mode", + "input_current_settled", + "pd_active", + "termination_enabled", + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", + "mmi_cp_enabled_status", + "cp_enabled", + "cp_input_current_now", + "cp_input_voltage_settled", + "cp_status1", + "cp_clear_error", + "cp_slave_enabled", + "cp_slave_input_current_now", + "cp_slave_input_voltage_settled", + "cp_slave_status1", + "cp_slave_clear_error"; + + // qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <11000000>; + mmi,pd-curr-max = <6200000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4550000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 800 0 0 0 0 0 0>, + <10 4250 2000 4480 1000 0 0 0 0>, + <15 4480 2000 0 0 0 0 0 0>, + <45 4250 12400 4300 8000 4480 6000 4510 4000>, + <60 4200 4000 0 0 0 0 0 0>; + mmi,thermal-mitigation = + <12400000>, + <11000000>, + <10000000>, + <9000000>, + <8000000>, + <7000000>, + <6000000>, + <5000000>, + <4000000>, + <3000000>, + <2000000>, + <1000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "battery"; + charging-curr-limited = <300000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "bq25960-master"; + charging-curr-min = <1500000>; + }; + charger_device_2 { + chrg-name = "cp-slave"; + psy-name = "bq25960-slave"; + charging-curr-min = <2000000>; + }; + }; +}; + diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi new file mode 100644 index 000000000000..554c87e6aeaf --- /dev/null +++ b/qcom/penang-display.dtsi @@ -0,0 +1,313 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + + +&tlmm { + lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { + mux { + pins = "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio86"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsp_en_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 86 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsn_en_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <30>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-post-on-sleep = <10>; + }; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vddio-supply = <&L13A>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + + qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; +}; + +&dsi_tm_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_csot_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "csot"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + +&dsi_tianma_nt36672e_678_fhdp_120_video_v1 { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + lcd_backlight@36 { + compatible = "awinic,aw99703-bl"; + reg = <0x36>; + + /* Awinic, aw99703 */ + aw99703,hwen-gpio = <&tlmm 60 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; + + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/penang-fps-overlay.dtsi b/qcom/penang-fps-overlay.dtsi new file mode 100644 index 000000000000..364d5a440a08 --- /dev/null +++ b/qcom/penang-fps-overlay.dtsi @@ -0,0 +1,164 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + silead: silead { + compatible = "sil,silead_fp"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + avdd-gpios = <&tlmm 38 0x0>; + irq-gpios = <&tlmm 17 0x0>; + rst-gpios = <&tlmm 18 0x0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi new file mode 100755 index 000000000000..02bc5dd7c72f --- /dev/null +++ b/qcom/penang-touchscreen.dtsi @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2460>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; + novatek,panel-supplier = "tianma","tm","csot"; + panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; + status = "ok"; + }; + +}; diff --git a/qcom/penang-wl286xx.dtsi b/qcom/penang-wl286xx.dtsi new file mode 100644 index 000000000000..80bd9f868469 --- /dev/null +++ b/qcom/penang-wl286xx.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; From e8cd19d16619bcf04569a096d4b3b375cc41d88a Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 8 Jun 2022 11:51:27 +0800 Subject: [PATCH 0810/1247] arm/dts: config max wireless charging icl config max wireless charging icl 1A in sgm41542 for miami Change-Id: I05547c388da47d69563f757fb0c824b5152c2a17 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2293044 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index a42e56e3b376..1b3be47a8834 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -52,6 +52,7 @@ dpdm-supply = <&usb2_phy0>; mmi,qc3-support; + mmi,wls-max-icl = <1000000>; input-voltage-limit-microvolt = <4700000>; /* sw jeita parameter customer defined*/ From a9777dff7fa45306d6aa2f691eeae81ec42f4f1e Mon Sep 17 00:00:00 2001 From: chailu1 Date: Wed, 8 Jun 2022 20:59:47 +0800 Subject: [PATCH 0811/1247] arm/dts: config ntc polling timming for miami thrmal ntc config ntc polling timming for miaim Change-Id: I77dde81d4b386ffd044474ae8e2a8d9127a42b88 Signed-off-by: chailu1 Reviewed-on: https://gerrit.mot.com/2293909 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 32 ++++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 41b738507540..87c2bc82363f 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -445,8 +445,8 @@ status = "disabled"; }; msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <3000>; + polling-delay = <5000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; wake-capable-sensor; @@ -460,8 +460,8 @@ }; chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <3000>; + polling-delay = <5000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; @@ -475,8 +475,8 @@ }; pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; wake-capable-sensor; @@ -490,8 +490,8 @@ }; pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -505,8 +505,8 @@ }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; @@ -520,8 +520,8 @@ }; cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <3000>; + polling-delay = <5000>; thermal-governor = "user_space"; thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; wake-capable-sensor; @@ -535,8 +535,8 @@ }; xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; wake-capable-sensor; @@ -550,8 +550,8 @@ }; chg_pump_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <3000>; + polling-delay = <5000>; thermal-governor = "user_space"; thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; wake-capable-sensor; From 13cab762579583006a046b1fcfd4de71ec156890 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Thu, 9 Jun 2022 11:20:46 +0800 Subject: [PATCH 0812/1247] dtsi/Rhodei: Fix the build fail broblem Modify: delete the same delay time config to fix the build fail Change-Id: I0ec033bfaa5bcff189ae7d5416be85c83a83f3a2 Reviewed-on: https://gerrit.mot.com/2294464 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/rhodei-display.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/rhodei-display.dtsi b/qcom/rhodei-display.dtsi index 109819f7a180..611d08910164 100644 --- a/qcom/rhodei-display.dtsi +++ b/qcom/rhodei-display.dtsi @@ -140,7 +140,6 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; qcom,supply-post-on-sleep = <3>; - qcom,supply-pre-off-sleep = <3>; }; }; From fb84e6206c328dbd1e41402c68f2170364ccdc7e Mon Sep 17 00:00:00 2001 From: caoqian4 Date: Fri, 10 Jun 2022 15:08:38 +0800 Subject: [PATCH 0813/1247] dtsi:init config to fix Penang vendor build error add dtsi for new product penang5g Base on product milanf Change-Id: If75e8907316fd0dd2c7e15c07e105aec96d5c021 Signed-off-by: caoqian4 Reviewed-on: https://gerrit.mot.com/2296531 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao --- qcom/blair-nopmi-penang-common-overlay.dtsi | 38 ++ qcom/blair-pm6125-penang-common-overlay.dtsi | 21 + qcom/holi-audio-penang-overlay.dtsi | 394 +++++++++++++++++++ qcom/penang-sensors.dtsi | 51 +++ 4 files changed, 504 insertions(+) create mode 100644 qcom/blair-nopmi-penang-common-overlay.dtsi create mode 100644 qcom/blair-pm6125-penang-common-overlay.dtsi create mode 100644 qcom/holi-audio-penang-overlay.dtsi create mode 100755 qcom/penang-sensors.dtsi diff --git a/qcom/blair-nopmi-penang-common-overlay.dtsi b/qcom/blair-nopmi-penang-common-overlay.dtsi new file mode 100644 index 000000000000..8d62277fa8a1 --- /dev/null +++ b/qcom/blair-nopmi-penang-common-overlay.dtsi @@ -0,0 +1,38 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-penang-common-overlay.dtsi" +#include "blair-nopmi-moto-common-overlay.dtsi" +#include "tcpc_config.dtsi" +#include "discrete-rt-pd-manger.dtsi" +#include "sgm7220.dtsi" +#include "rt9426a.dtsi" +#include "discrete_charging.dtsi" + +&qupv3_se8_i2c { + status = "okay"; + oz8806@2f { + compatible = "o2micro,oz8806"; + reg = <0x2f>; + status = "okay"; + }; + + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + df-serialnum = "SB18D33989"; + #include "bat_setting/CW_md50-scud-5000mah.dtsi" + #include "bat_setting/CW_md50-amperex-5000mah.dtsi" + }; +}; + diff --git a/qcom/blair-pm6125-penang-common-overlay.dtsi b/qcom/blair-pm6125-penang-common-overlay.dtsi new file mode 100644 index 000000000000..410bf321b99d --- /dev/null +++ b/qcom/blair-pm6125-penang-common-overlay.dtsi @@ -0,0 +1,21 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-penang-common-overlay.dtsi" +#include "blair-pm6125-moto-common-overlay.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; diff --git a/qcom/holi-audio-penang-overlay.dtsi b/qcom/holi-audio-penang-overlay.dtsi new file mode 100644 index 000000000000..d1412105625e --- /dev/null +++ b/qcom/holi-audio-penang-overlay.dtsi @@ -0,0 +1,394 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xx_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/penang-sensors.dtsi b/qcom/penang-sensors.dtsi new file mode 100755 index 000000000000..f3426b6eb2ab --- /dev/null +++ b/qcom/penang-sensors.dtsi @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + From ad2a7c5f3797700310c0ce41f34c0578a8a70253 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 10 Jun 2022 16:21:23 +0800 Subject: [PATCH 0814/1247] arm64/dts:update sar paras for sx9375 in Miami modification: -channel map -enable ref channel & modify config for ref -modify threshold of channels Change-Id: I035e7c0f811b6c2afa8d78922b022a47f49429d7 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2296644 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 51 ++++++++++++++++------------ 1 file changed, 29 insertions(+), 22 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 87c2bc82363f..eebcfd1696c9 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -266,19 +266,19 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <52>; + Semtech,reg-num = <59>; Semtech,reg-init = < 0x8024 0x7F00 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x85E - 0x8034 0x85E - 0x8040 0x85E - 0x804C 0x85E - 0x8058 0x85E - 0x8064 0x85E - 0x8070 0x85E + 0x8028 0x666 + 0x8034 0x466 + 0x8040 0x466 + 0x804C 0x466 + 0x8058 0x466 + 0x8064 0x466 + 0x8070 0x466 0x807C 0x85E 0x8030 0xFFF9FD 0x803C 0xBFF9FF @@ -288,19 +288,26 @@ 0x806C 0xFFF9EF 0x8078 0xFFF97F 0x8084 0xFFF9FF - 0x8098 0x5A40 - 0x80B8 0x5A40 - 0x80D8 0x5A5A - 0x80F8 0x5A5A - 0x8118 0x5A5A - 0x8138 0x5A40 - 0x8158 0x5A40 + 0x8098 0x5A39 + 0x80B8 0x5A31 + 0x80D8 0x2121 + 0x80F8 0x4747 + 0x8118 0x1818 + 0x8138 0xFF + 0x8158 0xFF 0x8178 0x5A40 - 0x8090 0x54AC5000 - 0x80B0 0x54AC5000 - 0x80D0 0x54AC5000 - 0x80F0 0x54AC5000 - 0x8110 0x54AC5000 + 0x80A0 0x1E1E00E1 + 0x80C0 0xE0E00E2 + 0x80E0 0x1C1C00E2 + 0x8100 0x30300FA + 0x8120 0x1B1B00E2 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8090 0x50DC5000 + 0x80B0 0x48D45000 + 0x80D0 0x3CD05000 + 0x80F0 0x3CD35000 + 0x8110 0x28E05000 0x8130 0x54AC5000 0x8150 0x54AC5000 0x8170 0x54AC5000 @@ -309,8 +316,8 @@ 0x80C8 0x300000 0x80E8 0x300000 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 + 0x8128 0x3600000 + 0x8148 0x3600000 0x8168 0x300000 0x808C 0x60200030 0x80AC 0x60200030 From 61308057cf0fed400c78d028cb5d3b7298b27822 Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Sun, 12 Jun 2022 14:57:18 +0800 Subject: [PATCH 0815/1247] miami:open partial update function miami: to save power, open partial update function Change-Id: I551ab366f14a12d7c24d6854f6eb1c95458b1ba0 Reviewed-on: https://gerrit.mot.com/2298056 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiqiang Feng Reviewed-by: Huosheng Liao Reviewed-by: Yeqing Wang Submit-Approved: Jira Key --- qcom/miami-display.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 6f8b7413b10e..9cf209dce5e9 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -237,6 +237,8 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; @@ -245,6 +247,8 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; @@ -253,6 +257,8 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; @@ -261,6 +267,8 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; From 6ffa0fa6b121a79f42700005e0c09e518e4acca3 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Thu, 9 Jun 2022 16:26:52 +0800 Subject: [PATCH 0816/1247] arm/dt: miami: delete breath led aw2033 led1 and led2 arm/dt: miami only uses aw2033 leds0, so delete led1 and led2. Change-Id: I680dcd8adfba1dc113ed8d2504ba30eceabc457c Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2294941 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index eebcfd1696c9..86f73125bb9f 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -665,29 +665,6 @@ aw2033,fall-time-ms = <6>; aw2033,off-time-ms = <4>; }; - - aw2033,green { - aw2033,name = "green_moto"; - aw2033,id = <1>; - aw2033,imax = <1>; - aw2033,led-current = <15>; - aw2033,max-brightness = <255>; - aw2033,rise-time-ms = <6>; - aw2033,hold-time-ms = <0>; - aw2033,fall-time-ms = <6>; - aw2033,off-time-ms = <4>; - }; - aw2033,blue { - aw2033,name = "blue_moto"; - aw2033,id = <2>; - aw2033,imax = <1>; - aw2033,led-current = <15>; - aw2033,max-brightness = <255>; - aw2033,rise-time-ms = <6>; - aw2033,hold-time-ms = <0>; - aw2033,fall-time-ms = <6>; - aw2033,off-time-ms = <4>; - }; }; }; From 2f8ca234bad50cf19b41c89ef4bc13118409c091 Mon Sep 17 00:00:00 2001 From: weiweij Date: Tue, 14 Jun 2022 14:36:15 +0800 Subject: [PATCH 0817/1247] WLC: change buildin cps4019 fw to v0.8 Upgrade cps4019 fw as v0.8. The following changes are applied: 1. increase RP package value by 1000mW Change-Id: Ia03c9663cae50fc4780b2742e99ac198cc3a3452 Reviewed-on: https://gerrit.mot.com/2299979 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 1b3be47a8834..c1305eff4362 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -195,7 +195,7 @@ wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; - fw_ver_minor = <6>; + fw_ver_minor = <8>; use_bl_in_h; }; From e6ddf50baee7f0982969a671739e32f434f88fba Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 13 Jun 2022 12:02:04 +0800 Subject: [PATCH 0818/1247] arm/dts: As HW require, limit max ibat 12A As HW require, limit max ibat 12A for miami Change-Id: I3a9a2fe5b8c73295bd493d3b45709cff7ef4178b Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2298501 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index c1305eff4362..670a1eb583c7 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -356,10 +356,10 @@ <0 4200 800 0 0 0 0 0 0>, <10 4250 2000 4480 1000 0 0 0 0>, <15 4480 2000 0 0 0 0 0 0>, - <45 4250 12400 4300 8000 4480 6000 4510 4000>, + <45 4250 12000 4300 8000 4480 6000 4510 4000>, <60 4200 4000 0 0 0 0 0 0>; mmi,thermal-mitigation = - <12400000>, + <12000000>, <11000000>, <10000000>, <9000000>, From aab76069458bf93e991973d9bc1d16d7532296f8 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Tue, 7 Jun 2022 16:31:07 +0800 Subject: [PATCH 0819/1247] arm/dts: mm8013c fg add muti battery id the first_batt_param_ver and second_batt_param_ver maybe different. so we need match battery_id && param_ver when update parameter. Change-Id: I9c5848f42092451ae08e11713f376021c8dfa4ea Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2291383 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 670a1eb583c7..89b495551da4 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -124,11 +124,11 @@ pinctrl-0 = <&pmk8350_gpio1_adc_default>; latest_fw_version = <0x0812>; - latest_parameter_version = <0x0201>; + first_battery_param_ver = <0x0201>; + second_battery_param_ver = <0x0201>; - first_battery_serialnum = <0x0103>; - second_battery_serialnum = <0x0102>; - default_battery_serialnum = <0x0103>; + first_battery_id = <0x0103>; + second_battery_id = <0x0102>; }; rt1711h@4e { From caca9db7f565146f3062425b513b960ea4e3d253 Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Tue, 14 Jun 2022 21:00:45 +0800 Subject: [PATCH 0820/1247] miami:add 5ms delay between mipi0 to reset0 when power off miami: add 5ms delay between mipi0 to reset0 when power off Change-Id: Ie9b434120845fe9cb808eccc878030b7fbf7bc12 Reviewed-on: https://gerrit.mot.com/2300459 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 9cf209dce5e9..19cf9c6efae0 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -224,6 +224,8 @@ qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + qcom,platform-delayms-before-resetlow = <5>; + /*qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 16000 13000 35500 7000 2500>; From ae89bea6e045455c4f8268a99780ab42cd52b16c Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Thu, 16 Jun 2022 17:59:38 +0800 Subject: [PATCH 0821/1247] miami:modify THs-prepare for mipi test pass at 48hz the range of THs-prepare at 48Hz is 40+4*UI to 85+6*UI, UI=3.846154 the actual test value is 119, change T_HS_PREPARE to 3 for mipi test pass Change-Id: I106b40d925ef6c1b2c4b9e4f56a296970fde9534 Reviewed-on: https://gerrit.mot.com/2303173 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 19cf9c6efae0..e12e4a7dfd38 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -242,7 +242,7 @@ qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <540 12 8 12 1080 12>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; - qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 03 02 02 04 00 0C 08]; }; timing@1 { From a9abaf93fdc7a246ebcf4b51760d25b309f7162b Mon Sep 17 00:00:00 2001 From: zhouwl Date: Fri, 17 Jun 2022 18:10:28 +0800 Subject: [PATCH 0822/1247] arm64/dts: rhodec+rhodei: aw882xx get params for RAM Enable aw882xx get algo params from RAM, avoid adsp block issue. Change-Id: I7eda95c34adee77b03936d0078bad2c2d086def9 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2304487 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index 6dee5f31fc7c..bd9ae051e943 100644 --- a/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi +++ b/qcom/holi-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -333,6 +333,7 @@ aw-re-min = <4000>; aw-re-max = <30000>; aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; status = "okay"; }; aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { @@ -351,6 +352,7 @@ aw-re-min = <4000>; aw-re-max = <30000>; aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; status = "okay"; }; }; From 611b22f9edf1f397f3acae1612695ae24305e095 Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Sat, 18 Jun 2022 15:19:14 +0800 Subject: [PATCH 0823/1247] miami:compatible with c6 panel in kernel miami If [(DC<<16)|(DB<<8)|DA]< 0x263F3, the panel is c4 panel, otherwise is c6 panel Change-Id: If92637b579e438a1c1341fed64e1f656cc505e80 Reviewed-on: https://gerrit.mot.com/2305463 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...37701-628-1080x2400-dsc-cmd-common-v1.dtsi | 817 ++++++++++++++++++ qcom/miami-display.dtsi | 82 ++ 2 files changed, 899 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi new file mode 100644 index 000000000000..ae3202859e21 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi @@ -0,0 +1,817 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { +mot_csot_nt37701_628_1080x2400_dsc_cmd_v1: qcom,mdss_dsi_mot_csot_nt37701_628_1080x2400_dsc_cmd_v1 { +compatible = "qcom,mdss-dsi-panel"; +qcom,mdss-dsi-panel-name = "mipi_mot_cmd_csot_1080p_dsc_628"; +qcom,mdss-dsi-panel-supplier = "csot"; +qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; +qcom,mdss-dsi-virtual-channel-id = <0>; +qcom,mdss-dsi-stream = <0>; +qcom,mdss-pan-physical-width-dimension = <65>; +qcom,mdss-pan-physical-height-dimension = <145>; +qcom,mdss-dsi-bpp = <30>; +qcom,mdss-dsi-underflow-color = <0xff>; +qcom,mdss-dsi-border-color = <0>; +qcom,mdss-dsi-panel-param-verision = <121201>; +qcom,mdss-dsi-panel-param-num = <5>; + +qcom,dsi-ctrl-num = <0>; +qcom,dsi-phy-num = <0>; + +qcom,mdss-dsi-traffic-mode = "burst_mode"; +qcom,mdss-dsi-bllp-eof-power-mode; +qcom,mdss-dsi-bllp-power-mode; +qcom,mdss-dsi-lane-0-state; +qcom,mdss-dsi-lane-1-state; +qcom,mdss-dsi-lane-2-state; +qcom,mdss-dsi-lane-3-state; + +qcom,mdss-dsi-dma-trigger = "trigger_sw"; +qcom,mdss-dsi-mdp-trigger = "none"; +qcom,mdss-dsi-reset-sequence = <0 11>, <1 1>, <0 1>, <1 11>; +qcom,mdss-dsi-lp11-init; +qcom,mdss-dsi-tx-eot-append; +qcom,mdss-dsi-te-pin-select = <1>; +qcom,mdss-dsi-te-dcs-command = <1>; + +qcom,mdss-dsi-te-using-te-pin; + +qcom,bklt-dcs-2bytes-enabled; +qcom,mdss-dsi-bl-min-level = <3>; +qcom,mdss-dsi-bl-max-level = <4095>; +qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + +/*qcom,mdss-dsi-panel-hdr-enabled; +qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; +qcom,mdss-dsi-panel-peak-brightness = <4200000>; + +qcom,mdss-dsi-panel-blackness-level = <3230>;*/ +qcom,mdss-dsi-hbm-on-command = [ + 39 01 00 00 00 00 03 51 0F FF + 39 01 00 00 00 00 04 87 0F FF 04]; +qcom,mdss-dsi-hbm-off-command = [ + 39 01 00 00 00 00 03 51 0D BB + 39 01 00 00 00 00 04 87 0F FF 04]; + +qcom,mdss-dsi-hbm-fod; +qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 07 + 15 00 00 00 00 00 02 C0 01 + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 04 87 1F FF 05 + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F]; + +qcom,mdss-dsi-panel-local-hbm-enabled; +qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; +qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; +qcom,mdss-dsi-panel-local-hbm-alpha-table = < + 0 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4365 4365 4365 4365 + 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 + 4365 4365 4365 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4367 + 4367 4367 4367 4367 4367 4367 4367 4368 4368 4368 4368 4368 4368 4368 4368 4369 + 4369 4369 4369 4369 4369 4370 4370 4370 4370 4370 4370 4371 4371 4371 4371 4371 + 4372 4372 4372 4372 4372 4373 4373 4373 4373 4373 4374 4374 4374 4374 4375 4375 + 4375 4375 4375 4376 4376 4376 4376 4377 4377 4377 4378 4378 4378 4378 4379 4379 + 4379 4379 4380 4380 4380 4381 4381 4381 4382 4382 4382 4382 4383 4383 4383 4384 + 4384 4384 4385 4385 4385 4386 4386 4386 4387 4387 4387 4388 4388 4389 4389 4389 + 4390 4390 4390 4391 4391 4391 4392 4392 4393 4393 4393 4394 4394 4395 4395 4395 + 4396 4396 4397 4397 4397 4398 4398 4399 4399 4400 4400 4400 4401 4401 4402 4402 + 4403 4403 4404 4404 4404 4405 4405 4406 4406 4407 4407 4408 4408 4409 4409 4410 + 4410 4410 4411 4411 4412 4412 4413 4413 4414 4414 4415 4415 4416 4416 4417 4417 + 4418 4418 4419 4420 4420 4421 4421 4422 4422 4423 4423 4424 4424 4425 4425 4426 + 4426 4427 4428 4428 4429 4429 4430 4430 4431 4431 4432 4433 4433 4434 4434 4435 + 4435 4436 4437 4437 4438 4438 4439 4439 4440 4441 4441 4442 4442 4443 4444 4444 + 4445 4445 4446 4447 4447 4448 4448 4449 4450 4450 4451 4451 4452 4453 4453 4454 + 4455 4455 4456 4456 4457 4458 4458 4459 4460 4460 4461 4461 4462 4463 4463 4464 + 4465 4465 4466 4467 4467 4468 4469 4469 4470 4471 4471 4472 4473 4473 4474 4474 + 4475 4476 4476 4477 4478 4479 4479 4480 4481 4481 4482 4483 4483 4484 4485 4485 + 4486 4487 4487 4488 4489 4489 4490 4491 4491 4492 4493 4494 4494 4495 4496 4496 + 4497 4498 4498 4499 4500 4501 4501 4502 4503 4503 4504 4505 4506 4506 4507 4508 + 4508 4509 4510 4511 4511 4512 4513 4514 4514 4515 4516 4516 4517 4518 4519 4519 + 4520 4521 4522 4522 4523 4524 4524 4525 4526 4527 4527 4528 4529 4530 4530 4531 + 4532 4533 4533 4534 4535 4536 4536 4537 4538 4539 4539 4540 4541 4542 4542 4543 + 4544 4545 4545 4546 4547 4548 4549 4549 4550 4551 4552 4552 4553 4554 4555 4555 + 4556 4557 4558 4559 4559 4560 4561 4562 4562 4563 4564 4565 4565 4566 4567 4568 + 4569 4569 4570 4571 4572 4573 4573 4574 4575 4576 4576 4577 4578 4579 4580 4580 + 4581 4582 4583 4584 4584 4585 4586 4587 4588 4588 4589 4590 4591 4592 4592 4593 + 4594 4595 4596 4596 4597 4598 4599 4600 4600 4601 4602 4603 4604 4604 4605 4606 + 4607 4608 4608 4609 4610 4611 4612 4612 4613 4614 4615 4616 4616 4617 4618 4619 + 4620 4621 4621 4622 4623 4624 4625 4625 4626 4627 4628 4629 4630 4630 4631 4632 + 4633 4634 4635 4635 4636 4637 4638 4639 4639 4640 4641 4642 4643 4644 4644 4645 + 4646 4647 4648 4649 4649 4650 4651 4652 4653 4654 4654 4655 4656 4657 4658 4659 + 4659 4660 4661 4662 4663 4664 4664 4665 4666 4667 4668 4669 4669 4670 4671 4672 + 4673 4674 4674 4675 4676 4677 4678 4679 4680 4680 4681 4682 4683 4684 4685 4685 + 4686 4687 4688 4689 4690 4690 4691 4692 4693 4694 4695 4696 4696 4697 4698 4699 + 4700 4701 4702 4702 4703 4704 4705 4706 4707 4707 4708 4709 4710 4711 4712 4713 + 4713 4714 4715 4716 4717 4718 4719 4719 4720 4721 4722 4723 4724 4725 4725 4726 + 4727 4728 4729 4730 4731 4731 4732 4733 4734 4735 4736 4737 4738 4738 4739 4740 + 4741 4742 4743 4744 4744 4745 4746 4747 4748 4749 4750 4750 4751 4752 4753 4754 + 4755 4756 4757 4757 4758 4759 4760 4761 4762 4763 4763 4764 4765 4766 4767 4768 + 4769 4770 4770 4771 4772 4773 4774 4775 4776 4777 4777 4778 4779 4780 4781 4782 + 4783 4784 4784 4785 4786 4787 4788 4789 4790 4791 4791 4792 4793 4794 4795 4796 + 4797 4798 4798 4799 4800 4801 4802 4803 4804 4805 4805 4806 4807 4808 4809 4810 + 4811 4812 4812 4813 4814 4815 4816 4817 4818 4819 4819 4820 4821 4822 4823 4824 + 4825 4826 4827 4827 4828 4829 4830 4831 4832 4833 4834 4834 4835 4836 4837 4838 + 4839 4840 4841 4842 4842 4843 4844 4845 4846 4847 4848 4849 4850 4850 4851 4852 + 4853 4854 4855 4856 4857 4857 4858 4859 4860 4861 4862 4863 4864 4865 4865 4866 + 4867 4868 4869 4870 4871 4872 4873 4873 4874 4875 4876 4877 4878 4879 4880 4881 + 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4890 4891 4892 4893 4894 4895 + 4896 4897 4898 4898 4899 4900 4901 4902 4903 4904 4905 4906 4906 4907 4908 4909 + 4910 4911 4912 4913 4914 4915 4915 4916 4917 4918 4919 4920 4921 4922 4923 4923 + 4924 4925 4926 4927 4928 4929 4930 4931 4932 4932 4933 4934 4935 4936 4937 4938 + 4939 4940 4941 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4950 4951 4952 + 4953 4954 4955 4956 4957 4958 4959 4959 4960 4961 4962 4963 4964 4965 4966 4967 + 4968 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4977 4978 4979 4980 4981 + 4982 4983 4984 4985 4986 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 + 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5005 5006 5007 5008 5009 5010 + 5011 5012 5013 5014 5015 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5024 + 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5034 5035 5036 5037 5038 5039 + 5040 5041 5042 5043 5044 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 + 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5064 5065 5066 5067 5068 + 5069 5070 5071 5072 5073 5074 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 + 5084 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5094 5095 5096 5097 + 5098 5099 5100 5101 5102 5103 5104 5104 5105 5106 5107 5108 5109 5110 5111 5112 + 5113 5114 5115 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5125 5126 + 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5136 5137 5138 5139 5140 5141 + 5142 5143 5144 5145 5146 5147 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 + 5157 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5168 5169 5170 + 5171 5172 5173 5174 5175 5176 5177 5178 5179 5179 5180 5181 5182 5183 5184 5185 + 5186 5187 5188 5189 5190 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 + 5201 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5212 5213 5214 + 5215 5216 5217 5218 5219 5220 5221 5222 5223 5223 5224 5225 5226 5227 5228 5229 + 5230 5231 5232 5233 5234 5235 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 + 5245 5246 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5257 5258 + 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5269 5270 5271 5272 5273 + 5274 5275 5276 5277 5278 5279 5280 5280 5281 5282 5283 5284 5285 5286 5287 5288 + 5289 5290 5291 5292 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 + 5304 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5315 5316 5317 + 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5327 5328 5329 5330 5331 5332 + 5333 5334 5335 5336 5337 5338 5339 5339 5340 5341 5342 5343 5344 5345 5346 5347 + 5348 5349 5350 5351 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 + 5363 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5375 5376 + 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5387 5388 5389 5390 5391 + 5392 5393 5394 5395 5396 5397 5398 5399 5399 5400 5401 5402 5403 5404 5405 5406 + 5407 5408 5409 5410 5411 5412 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 + 5422 5423 5424 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 + 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5449 5450 + 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5461 5462 5463 5464 5465 + 5466 5467 5468 5469 5470 5471 5472 5473 5474 5474 5475 5476 5477 5478 5479 5480 + 5481 5482 5483 5484 5485 5486 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 + 5496 5497 5498 5499 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 + 5511 5512 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5524 + 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5537 5538 5539 + 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5550 5551 5552 5553 5554 + 5555 5556 5557 5558 5559 5560 5561 5562 5563 5563 5564 5565 5566 5567 5568 5569 + 5570 5571 5572 5573 5574 5575 5576 5576 5577 5578 5579 5580 5581 5582 5583 5584 + 5585 5586 5587 5588 5589 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 + 5600 5601 5602 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 + 5615 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5628 + 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5641 5642 5643 + 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5654 5655 5656 5657 5658 + 5659 5660 5661 5662 5663 5664 5665 5666 5667 5667 5668 5669 5670 5671 5672 5673 + 5674 5675 5676 5677 5678 5679 5680 5681 5681 5682 5683 5684 5685 5686 5687 5688 + 5689 5690 5691 5692 5693 5694 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 + 5704 5705 5706 5707 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 + 5719 5720 5721 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 + 5734 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5747 + 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5761 5762 + 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5774 5775 5776 5777 + 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5788 5789 5790 5791 5792 + 5793 5794 5795 5796 5797 5798 5799 5800 5801 5801 5802 5803 5804 5805 5806 5807 + 5808 5809 5810 5811 5812 5813 5814 5815 5815 5816 5817 5818 5819 5820 5821 5822 + 5823 5824 5825 5826 5827 5828 5829 5829 5830 5831 5832 5833 5834 5835 5836 5837 + 5838 5839 5840 5841 5842 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 + 5853 5854 5855 5856 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 + 5868 5869 5870 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 + 5883 5884 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 + 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5911 + 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5925 5926 + 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5939 5940 5941 + 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5953 5954 5955 5956 + 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5967 5968 5969 5970 5971 + 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5981 5982 5983 5984 5985 5986 + 5987 5988 5989 5990 5991 5992 5993 5994 5995 5995 5996 5997 5998 5999 6000 6001 + 6002 6003 6004 6005 6006 6007 6008 6009 6009 6010 6011 6012 6013 6014 6015 6016 + 6017 6018 6019 6020 6021 6022 6023 6023 6024 6025 6026 6027 6028 6029 6030 6031 + 6032 6033 6034 6035 6036 6037 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 + 6047 6048 6049 6050 6051 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 + 6062 6063 6064 6065 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 + 6077 6078 6079 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 + 6092 6093 6094 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 + 6107 6108 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 + 6122 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 + 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6150 + 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6165 + 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6179 6180 + 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6193 6194 6195 + 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6208 6209 6210 + 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6222 6223 6224 6225 + 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6236 6237 6238 6239 6240 + 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6251 6252 6253 6254 6255 + 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6265 6266 6267 6268 6269 6270 + 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6280 6281 6282 6283 6284 6285 + 6286 6287 6288 6289 6290 6291 6292 6293 6294 6294 6295 6296 6297 6298 6299 6300 + 6301 6302 6303 6304 6305 6306 6307 6308 6308 6309 6310 6311 6312 6313 6314 6315 + 6316 6317 6318 6319 6320 6321 6322 6323 6323 6324 6325 6326 6327 6328 6329 6330 + 6331 6332 6333 6334 6335 6336 6337 6337 6338 6339 6340 6341 6342 6343 6344 6345 + 6346 6347 6348 6349 6350 6351 6352 6352 6353 6354 6355 6356 6357 6358 6359 6360 + 6361 6362 6363 6364 6365 6366 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 + 6376 6377 6378 6379 6380 6381 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 + 6391 6392 6393 6394 6395 6396 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 + 6406 6407 6408 6409 6410 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 + 6421 6422 6423 6424 6425 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 + 6436 6437 6438 6439 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 + 6451 6452 6453 6454 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 + 6466 6467 6468 6469 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 + 6481 6482 6483 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 + 6496 6497 6498 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 + 6511 6512 6513 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 + 6526 6527 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 + 6541 6542 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 + 6556 6557 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 + 6571 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 + 6586 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 + 6601 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 + 6616 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 + 6631 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 + 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 + 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 + 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 + 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 + 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6719 + 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6734 + 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6749 + 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6764 + 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6779 + 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6794 + 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6809 + 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6824 + 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6839 + 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6854 + 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6869 + 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6883 6884 + 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6898 6899 + 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6913 6914 + 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6928 6929 + 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6943 6944 + 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6958 6959 + 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6973 6974 + 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6988 6989 + 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7003 7004 + 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7018 7019 + 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7034 + 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7049 + 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7064 + 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7079 + 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7094 + 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7109 + 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7124 + 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7139 + 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7154 + 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7169 + 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7184 + 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7199 + 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 + 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 + 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 + 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 + 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 + 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 + 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 + 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 + 7321 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 + 7336 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 + 7351 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 + 7366 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 + 7381 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 + 7396 7397 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 + 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 + 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 + 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 + 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 + 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 + 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 + 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 + 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 + 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 + 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 + 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 + 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 + 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 + 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 + 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 + 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 + 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 + 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 + 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 + 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 + 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 + 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 + 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 + 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 + 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 + 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 + 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 + 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 + 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 + 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 + 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 + 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 + 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 + 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 + 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 + 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986>; + +//qcom,mdss-dsi-acl-on-command = [ +// 39 01 00 00 00 00 06 F0 55 AA 52 08 00 +// 15 00 00 00 00 00 02 B0 0C +// 15 01 00 00 00 00 02 55 05]; +//qcom,mdss-dsi-acl-off-command = [ +// 15 01 00 00 00 00 02 55 00]; + +qcom,mdss-dsi-dc-off-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00]; +qcom,mdss-dsi-dc-off-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-dc-on-command = [ + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 98 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 60 00 80 00 2F FF + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 00 00 00 00 00 00 00 00 00 00 00 00 + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 01]; +qcom,mdss-dsi-dc-on-command-state = "dsi_lp_mode"; + +qcom,mdss-dsi-display-timings { + timing@0{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <48>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 14 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 5F 80 //GIR OFF + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 08 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 15 01 00 00 00 00 02 88 01 + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@1{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 10 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 5F 80 //GIR OFF + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 03 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 15 01 00 00 00 00 02 88 01 + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@2{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <90>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 0b 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 5F 80 //GIR OFF + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 07 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 15 01 00 00 00 00 02 88 01 + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + timing@3{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; /* 90fps +/- 2 */ + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 08 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 66 8E 86 8E 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 44 04 44 06 8E 06 8E 06 8F + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 06 8F 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code*/ + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 5F 80 //GIR OFF + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 15 00 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 05 88 02 1C 08 6F //Local HBM X/Y + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 02 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 15 01 00 00 00 00 02 88 01 + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; /* display on */ + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 /* display_off */ + 05 01 00 00 78 00 01 10]; /* enter sleep mode */ + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + /* Why QCOM doesn't use this, even it used 2 encoder + * as for that dsi_sw43404_amoled_cmd, for ex */ + /* qcom,mdss-dsc-encoders = <2>; */ + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + /*timing@4{ + qcom,mdss-dsi-cmd-mode; + qcom,mdss-dsi-panel-framerate = <144>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <16>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <4>; + qcom,mdss-dsi-v-front-porch = <12>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-panel-jitter = <0x20 0xa>; //90fps +/- 2 + qcom,mdss-dsi-timing-switch-command = [ + 15 01 00 00 06 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + ]; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 04 B5 4B 22 4F //swire pulse + + 39 00 00 00 00 00 06 F0 55 AA 52 08 00 + 15 00 00 00 00 00 02 B2 18 + 15 00 00 00 00 00 02 6F 0F + 39 00 00 00 00 00 09 B2 60 50 65 E9 85 E9 2F FF + 39 00 00 00 00 00 0D B3 00 01 01 59 01 59 02 1A 02 1A 03 0A + 15 00 00 00 00 00 02 6F 0C + 39 00 00 00 00 00 0D B3 03 0A 04 00 04 00 05 E9 05 E9 05 EA + 15 00 00 00 00 00 02 6F 18 + 39 00 00 00 00 00 0D B3 05 EA 09 08 09 08 0D BB 0D BB 0F FF + 15 01 00 00 00 00 02 58 00 //DC code + + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 15 01 00 00 00 00 02 6F 1C + 39 01 00 00 00 00 06 C0 03 14 25 A9 78 + + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 15 01 00 00 00 00 02 6F 1D + 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + + 15 01 00 00 00 00 02 5F 80 //GIR OFF + + 15 01 00 00 00 00 02 03 01 + 15 01 00 00 00 00 02 90 01 + 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 + 15 01 00 00 00 00 02 2C 00 //dsc config 10bit + + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 20 + 15 01 00 00 00 00 02 35 00 //te enable + + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + + 15 01 00 00 00 00 02 2F 04 //08:49Hz 03:60Hz 07:90Hz 02:120Hz 04:144Hz + + 05 01 00 00 78 00 01 11 + 05 01 00 00 00 00 01 29]; // display on + qcom,mdss-dsi-off-command = [ + 05 01 00 00 00 00 01 28 // display_off + 05 01 00 00 78 00 01 10]; // enter sleep mode + + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-timing-switch-command-state = + "dsi_lp_mode"; + qcom,compression-mode = "dsc"; + // Why QCOM doesn't use this, even it used 2 encoder + // as for that dsi_sw43404_amoled_cmd, for ex + // qcom,mdss-dsc-encoders = <2>; + qcom,mdss-dsc-version = <0x11>; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <1080>; + qcom,mdss-dsc-slice-per-pkt = <1>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + };*/ + + +}; + +}; + +}; diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index e12e4a7dfd38..48a4c75bd663 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -1,4 +1,5 @@ #include "dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi" +#include "dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-csot-nt37701-655-1080x2400-dsc-cmd-common-v1.dtsi" #include "dsi-panel-mot-dummy-qhd-video.dtsi" @@ -286,6 +287,87 @@ }; }; +&mot_csot_nt37701_628_1080x2400_dsc_cmd_v1 { + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "te_chk_reg_rd"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_amoled>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <9>; + qcom,mdss-dsi-bl-max-level = <3514>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-brightness-max-level = <3514>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,bl-dsc-cmd-state = "dsi_hs_mode"; + + qcom,platform-delayms-before-resetlow = <5>; + + /*qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>;*/ + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + //qcom,mdss-dsi-panel-clockrate = <320000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 + 03 02 02 04 00 0C 08]; + }; + timing@1 { + //qcom,mdss-dsi-panel-clockrate = <400000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 + 04 03 02 04 00 0E 08]; + }; + timing@2 { + //qcom,mdss-dsi-panel-clockrate = <601000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 + 06 06 02 04 00 13 0A]; + }; + timing@3 { + //qcom,mdss-dsi-panel-clockrate = <801000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,partial-update-enabled = "single_roi"; + qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 + 07 08 02 04 00 18 0C]; + }; + /*timing@4 { + //qcom,mdss-dsi-panel-clockrate = <961000000>; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 + 08 09 02 04 00 1C 0D]; + };*/ + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 43ced6d7a25a5715e6a795a30ece586d1500129f Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Mon, 20 Jun 2022 13:34:35 +0800 Subject: [PATCH 0824/1247] miami:add c6 panel in tp drm notify miami: add c6 panel in tp drm notify Change-Id: Ifb38be1102f3ed412378dc495ddfe07b7214243c Reviewed-on: https://gerrit.mot.com/2305990 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index dc3a606d007d..ccddbe2a541e 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -91,7 +91,8 @@ goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 - &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1>; + &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 + &mot_csot_nt37701_628_1080x2400_dsc_cmd_v1>; pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; From 851624ed4973f257ffe70c16ffa19987740ada63 Mon Sep 17 00:00:00 2001 From: zhouwl Date: Wed, 22 Jun 2022 14:10:36 +0800 Subject: [PATCH 0825/1247] arm64/dts: miami: aw882xx get params for RAM Enalbe aw882xx get algorithm params for RAM, avoid adsp block issue. Change-Id: I051b096283c3ab01a3c5bf81057909c7f3384bc2 Signed-off-by: zhouwl Reviewed-on: https://gerrit.mot.com/2309237 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-audio-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/blair-miami-audio-overlay.dtsi b/qcom/blair-miami-audio-overlay.dtsi index 50c7c4a28d1d..edbe64afc220 100644 --- a/qcom/blair-miami-audio-overlay.dtsi +++ b/qcom/blair-miami-audio-overlay.dtsi @@ -407,6 +407,7 @@ aw-re-min = <4000>; aw-re-max = <30000>; aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; status = "okay"; }; aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { @@ -425,6 +426,7 @@ aw-re-min = <4000>; aw-re-max = <30000>; aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; status = "okay"; }; awinic_haptic@5a{ From 867c7b8cff173da9c985c7c9089a321d5d37ac7e Mon Sep 17 00:00:00 2001 From: Xiaojun Lv Date: Tue, 21 Jun 2022 17:42:33 +0800 Subject: [PATCH 0826/1247] miami:gir off and add hbm table in c4 panel miami: gir off and add hbm table in c4 panel Change-Id: I3737cf978d89c5294a51ac1f249708accd135785 Reviewed-on: https://gerrit.mot.com/2308170 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...-nt37701-628-1080x2400-dsc-cmd-common.dtsi | 267 ++++++++++++++++++ 1 file changed, 267 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi index d76ce6523330..f0fcc4565dfa 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common.dtsi @@ -333,6 +333,263 @@ qcom,mdss-dsi-panel-local-hbm-alpha-table = < 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986>; +qcom,mdss-dsi-panel-local-hbm-alpha-263f2-table = < + 0 4338 4338 4338 4338 4338 4338 4338 4339 4339 4339 4339 4339 4339 4339 4339 + 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 + 4339 4339 4339 4339 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 + 4341 4341 4341 4341 4341 4341 4341 4341 4341 4342 4342 4342 4342 4342 4342 4342 + 4342 4343 4343 4343 4343 4343 4343 4343 4344 4344 4344 4344 4344 4344 4345 4345 + 4345 4345 4345 4345 4346 4346 4346 4346 4346 4347 4347 4347 4347 4347 4348 4348 + 4348 4348 4348 4349 4349 4349 4349 4350 4350 4350 4350 4351 4351 4351 4351 4352 + 4352 4352 4352 4353 4353 4353 4353 4354 4354 4354 4354 4355 4355 4355 4356 4356 + 4356 4357 4357 4357 4357 4358 4358 4358 4359 4359 4359 4360 4360 4360 4361 4361 + 4361 4362 4362 4362 4363 4363 4363 4364 4364 4364 4365 4365 4365 4366 4366 4366 + 4367 4367 4368 4368 4368 4369 4369 4369 4370 4370 4371 4371 4371 4372 4372 4373 + 4373 4373 4374 4374 4375 4375 4375 4376 4376 4377 4377 4378 4378 4378 4379 4379 + 4380 4380 4381 4381 4381 4382 4382 4383 4383 4384 4384 4385 4385 4385 4386 4386 + 4387 4387 4388 4388 4389 4389 4390 4390 4391 4391 4392 4392 4393 4393 4394 4394 + 4395 4395 4395 4396 4396 4397 4397 4398 4398 4399 4400 4400 4401 4401 4402 4402 + 4403 4403 4404 4404 4405 4405 4406 4406 4407 4407 4408 4408 4409 4409 4410 4411 + 4411 4412 4412 4413 4413 4414 4414 4415 4415 4416 4417 4417 4418 4418 4419 4419 + 4420 4420 4421 4422 4422 4423 4423 4424 4424 4425 4426 4426 4427 4427 4428 4428 + 4429 4430 4430 4431 4431 4432 4433 4433 4434 4434 4435 4436 4436 4437 4437 4438 + 4439 4439 4440 4440 4441 4442 4442 4443 4443 4444 4445 4445 4446 4446 4447 4448 + 4448 4449 4450 4450 4451 4451 4452 4453 4453 4454 4455 4455 4456 4456 4457 4458 + 4458 4459 4460 4460 4461 4462 4462 4463 4463 4464 4465 4465 4466 4467 4467 4468 + 4469 4469 4470 4471 4471 4472 4473 4473 4474 4475 4475 4476 4476 4477 4478 4478 + 4479 4480 4480 4481 4482 4482 4483 4484 4484 4485 4486 4486 4487 4488 4488 4489 + 4490 4490 4491 4492 4493 4493 4494 4495 4495 4496 4497 4497 4498 4499 4499 4500 + 4501 4501 4502 4503 4503 4504 4505 4506 4506 4507 4508 4508 4509 4510 4510 4511 + 4512 4512 4513 4514 4515 4515 4516 4517 4517 4518 4519 4519 4520 4521 4522 4522 + 4523 4524 4524 4525 4526 4527 4527 4528 4529 4529 4530 4531 4531 4532 4533 4534 + 4534 4535 4536 4536 4537 4538 4539 4539 4540 4541 4542 4542 4543 4544 4544 4545 + 4546 4547 4547 4548 4549 4549 4550 4551 4552 4552 4553 4554 4555 4555 4556 4557 + 4557 4558 4559 4560 4560 4561 4562 4563 4563 4564 4565 4566 4566 4567 4568 4568 + 4569 4570 4571 4571 4572 4573 4574 4574 4575 4576 4577 4577 4578 4579 4580 4580 + 4581 4582 4583 4583 4584 4585 4585 4586 4587 4588 4588 4589 4590 4591 4591 4592 + 4593 4594 4594 4595 4596 4597 4597 4598 4599 4600 4600 4601 4602 4603 4603 4604 + 4605 4606 4606 4607 4608 4609 4610 4610 4611 4612 4613 4613 4614 4615 4616 4616 + 4617 4618 4619 4619 4620 4621 4622 4622 4623 4624 4625 4625 4626 4627 4628 4629 + 4629 4630 4631 4632 4632 4633 4634 4635 4635 4636 4637 4638 4638 4639 4640 4641 + 4642 4642 4643 4644 4645 4645 4646 4647 4648 4648 4649 4650 4651 4652 4652 4653 + 4654 4655 4655 4656 4657 4658 4659 4659 4660 4661 4662 4662 4663 4664 4665 4665 + 4666 4667 4668 4669 4669 4670 4671 4672 4672 4673 4674 4675 4676 4676 4677 4678 + 4679 4679 4680 4681 4682 4683 4683 4684 4685 4686 4687 4687 4688 4689 4690 4690 + 4691 4692 4693 4694 4694 4695 4696 4697 4697 4698 4699 4700 4701 4701 4702 4703 + 4704 4705 4705 4706 4707 4708 4708 4709 4710 4711 4712 4712 4713 4714 4715 4716 + 4716 4717 4718 4719 4720 4720 4721 4722 4723 4723 4724 4725 4726 4727 4727 4728 + 4729 4730 4731 4731 4732 4733 4734 4735 4735 4736 4737 4738 4739 4739 4740 4741 + 4742 4742 4743 4744 4745 4746 4746 4747 4748 4749 4750 4750 4751 4752 4753 4754 + 4754 4755 4756 4757 4758 4758 4759 4760 4761 4762 4762 4763 4764 4765 4766 4766 + 4767 4768 4769 4770 4770 4771 4772 4773 4774 4774 4775 4776 4777 4778 4778 4779 + 4780 4781 4782 4782 4783 4784 4785 4786 4786 4787 4788 4789 4790 4790 4791 4792 + 4793 4794 4794 4795 4796 4797 4798 4798 4799 4800 4801 4802 4802 4803 4804 4805 + 4806 4806 4807 4808 4809 4810 4811 4811 4812 4813 4814 4815 4815 4816 4817 4818 + 4819 4819 4820 4821 4822 4823 4823 4824 4825 4826 4827 4827 4828 4829 4830 4831 + 4831 4832 4833 4834 4835 4836 4836 4837 4838 4839 4840 4840 4841 4842 4843 4844 + 4844 4845 4846 4847 4848 4848 4849 4850 4851 4852 4853 4853 4854 4855 4856 4857 + 4857 4858 4859 4860 4861 4861 4862 4863 4864 4865 4866 4866 4867 4868 4869 4870 + 4870 4871 4872 4873 4874 4874 4875 4876 4877 4878 4879 4879 4880 4881 4882 4883 + 4883 4884 4885 4886 4887 4887 4888 4889 4890 4891 4892 4892 4893 4894 4895 4896 + 4896 4897 4898 4899 4900 4901 4901 4902 4903 4904 4905 4905 4906 4907 4908 4909 + 4910 4910 4911 4912 4913 4914 4914 4915 4916 4917 4918 4919 4919 4920 4921 4922 + 4923 4923 4924 4925 4926 4927 4928 4928 4929 4930 4931 4932 4932 4933 4934 4935 + 4936 4937 4937 4938 4939 4940 4941 4941 4942 4943 4944 4945 4946 4946 4947 4948 + 4949 4950 4950 4951 4952 4953 4954 4955 4955 4956 4957 4958 4959 4959 4960 4961 + 4962 4963 4964 4964 4965 4966 4967 4968 4968 4969 4970 4971 4972 4973 4973 4974 + 4975 4976 4977 4978 4978 4979 4980 4981 4982 4982 4983 4984 4985 4986 4987 4987 + 4988 4989 4990 4991 4992 4992 4993 4994 4995 4996 4996 4997 4998 4999 5000 5001 + 5001 5002 5003 5004 5005 5006 5006 5007 5008 5009 5010 5010 5011 5012 5013 5014 + 5015 5015 5016 5017 5018 5019 5020 5020 5021 5022 5023 5024 5024 5025 5026 5027 + 5028 5029 5029 5030 5031 5032 5033 5034 5034 5035 5036 5037 5038 5039 5039 5040 + 5041 5042 5043 5043 5044 5045 5046 5047 5048 5048 5049 5050 5051 5052 5053 5053 + 5054 5055 5056 5057 5058 5058 5059 5060 5061 5062 5062 5063 5064 5065 5066 5067 + 5067 5068 5069 5070 5071 5072 5072 5073 5074 5075 5076 5077 5077 5078 5079 5080 + 5081 5082 5082 5083 5084 5085 5086 5086 5087 5088 5089 5090 5091 5091 5092 5093 + 5094 5095 5096 5096 5097 5098 5099 5100 5101 5101 5102 5103 5104 5105 5106 5106 + 5107 5108 5109 5110 5111 5111 5112 5113 5114 5115 5116 5116 5117 5118 5119 5120 + 5120 5121 5122 5123 5124 5125 5125 5126 5127 5128 5129 5130 5130 5131 5132 5133 + 5134 5135 5135 5136 5137 5138 5139 5140 5140 5141 5142 5143 5144 5145 5145 5146 + 5147 5148 5149 5150 5150 5151 5152 5153 5154 5155 5155 5156 5157 5158 5159 5160 + 5160 5161 5162 5163 5164 5165 5165 5166 5167 5168 5169 5170 5170 5171 5172 5173 + 5174 5175 5175 5176 5177 5178 5179 5179 5180 5181 5182 5183 5184 5184 5185 5186 + 5187 5188 5189 5189 5190 5191 5192 5193 5194 5194 5195 5196 5197 5198 5199 5199 + 5200 5201 5202 5203 5204 5204 5205 5206 5207 5208 5209 5209 5210 5211 5212 5213 + 5214 5214 5215 5216 5217 5218 5219 5219 5220 5221 5222 5223 5224 5224 5225 5226 + 5227 5228 5229 5229 5230 5231 5232 5233 5234 5234 5235 5236 5237 5238 5239 5239 + 5240 5241 5242 5243 5244 5244 5245 5246 5247 5248 5249 5250 5250 5251 5252 5253 + 5254 5255 5255 5256 5257 5258 5259 5260 5260 5261 5262 5263 5264 5265 5265 5266 + 5267 5268 5269 5270 5270 5271 5272 5273 5274 5275 5275 5276 5277 5278 5279 5280 + 5280 5281 5282 5283 5284 5285 5285 5286 5287 5288 5289 5290 5290 5291 5292 5293 + 5294 5295 5295 5296 5297 5298 5299 5300 5300 5301 5302 5303 5304 5305 5305 5306 + 5307 5308 5309 5310 5310 5311 5312 5313 5314 5315 5316 5316 5317 5318 5319 5320 + 5321 5321 5322 5323 5324 5325 5326 5326 5327 5328 5329 5330 5331 5331 5332 5333 + 5334 5335 5336 5336 5337 5338 5339 5340 5341 5341 5342 5343 5344 5345 5346 5346 + 5347 5348 5349 5350 5351 5351 5352 5353 5354 5355 5356 5357 5357 5358 5359 5360 + 5361 5362 5362 5363 5364 5365 5366 5367 5367 5368 5369 5370 5371 5372 5372 5373 + 5374 5375 5376 5377 5377 5378 5379 5380 5381 5382 5382 5383 5384 5385 5386 5387 + 5387 5388 5389 5390 5391 5392 5393 5393 5394 5395 5396 5397 5398 5398 5399 5400 + 5401 5402 5403 5403 5404 5405 5406 5407 5408 5408 5409 5410 5411 5412 5413 5413 + 5414 5415 5416 5417 5418 5419 5419 5420 5421 5422 5423 5424 5424 5425 5426 5427 + 5428 5429 5429 5430 5431 5432 5433 5434 5434 5435 5436 5437 5438 5439 5439 5440 + 5441 5442 5443 5444 5444 5445 5446 5447 5448 5449 5450 5450 5451 5452 5453 5454 + 5455 5455 5456 5457 5458 5459 5460 5460 5461 5462 5463 5464 5465 5465 5466 5467 + 5468 5469 5470 5471 5471 5472 5473 5474 5475 5476 5476 5477 5478 5479 5480 5481 + 5481 5482 5483 5484 5485 5486 5486 5487 5488 5489 5490 5491 5492 5492 5493 5494 + 5495 5496 5497 5497 5498 5499 5500 5501 5502 5502 5503 5504 5505 5506 5507 5507 + 5508 5509 5510 5511 5512 5512 5513 5514 5515 5516 5517 5518 5518 5519 5520 5521 + 5522 5523 5523 5524 5525 5526 5527 5528 5528 5529 5530 5531 5532 5533 5534 5534 + 5535 5536 5537 5538 5539 5539 5540 5541 5542 5543 5544 5544 5545 5546 5547 5548 + 5549 5549 5550 5551 5552 5553 5554 5555 5555 5556 5557 5558 5559 5560 5560 5561 + 5562 5563 5564 5565 5565 5566 5567 5568 5569 5570 5570 5571 5572 5573 5574 5575 + 5576 5576 5577 5578 5579 5580 5581 5581 5582 5583 5584 5585 5586 5586 5587 5588 + 5589 5590 5591 5592 5592 5593 5594 5595 5596 5597 5597 5598 5599 5600 5601 5602 + 5602 5603 5604 5605 5606 5607 5607 5608 5609 5610 5611 5612 5613 5613 5614 5615 + 5616 5617 5618 5618 5619 5620 5621 5622 5623 5623 5624 5625 5626 5627 5628 5629 + 5629 5630 5631 5632 5633 5634 5634 5635 5636 5637 5638 5639 5639 5640 5641 5642 + 5643 5644 5645 5645 5646 5647 5648 5649 5650 5650 5651 5652 5653 5654 5655 5655 + 5656 5657 5658 5659 5660 5661 5661 5662 5663 5664 5665 5666 5666 5667 5668 5669 + 5670 5671 5671 5672 5673 5674 5675 5676 5677 5677 5678 5679 5680 5681 5682 5682 + 5683 5684 5685 5686 5687 5687 5688 5689 5690 5691 5692 5693 5693 5694 5695 5696 + 5697 5698 5698 5699 5700 5701 5702 5703 5703 5704 5705 5706 5707 5708 5709 5709 + 5710 5711 5712 5713 5714 5714 5715 5716 5717 5718 5719 5719 5720 5721 5722 5723 + 5724 5725 5725 5726 5727 5728 5729 5730 5730 5731 5732 5733 5734 5735 5735 5736 + 5737 5738 5739 5740 5741 5741 5742 5743 5744 5745 5746 5746 5747 5748 5749 5750 + 5751 5751 5752 5753 5754 5755 5756 5757 5757 5758 5759 5760 5761 5762 5762 5763 + 5764 5765 5766 5767 5768 5768 5769 5770 5771 5772 5773 5773 5774 5775 5776 5777 + 5778 5778 5779 5780 5781 5782 5783 5784 5784 5785 5786 5787 5788 5789 5789 5790 + 5791 5792 5793 5794 5794 5795 5796 5797 5798 5799 5800 5800 5801 5802 5803 5804 + 5805 5805 5806 5807 5808 5809 5810 5811 5811 5812 5813 5814 5815 5816 5816 5817 + 5818 5819 5820 5821 5821 5822 5823 5824 5825 5826 5827 5827 5828 5829 5830 5831 + 5832 5832 5833 5834 5835 5836 5837 5838 5838 5839 5840 5841 5842 5843 5843 5844 + 5845 5846 5847 5848 5848 5849 5850 5851 5852 5853 5854 5854 5855 5856 5857 5858 + 5859 5859 5860 5861 5862 5863 5864 5864 5865 5866 5867 5868 5869 5870 5870 5871 + 5872 5873 5874 5875 5875 5876 5877 5878 5879 5880 5881 5881 5882 5883 5884 5885 + 5886 5886 5887 5888 5889 5890 5891 5892 5892 5893 5894 5895 5896 5897 5897 5898 + 5899 5900 5901 5902 5902 5903 5904 5905 5906 5907 5908 5908 5909 5910 5911 5912 + 5913 5913 5914 5915 5916 5917 5918 5919 5919 5920 5921 5922 5923 5924 5924 5925 + 5926 5927 5928 5929 5929 5930 5931 5932 5933 5934 5935 5935 5936 5937 5938 5939 + 5940 5940 5941 5942 5943 5944 5945 5946 5946 5947 5948 5949 5950 5951 5951 5952 + 5953 5954 5955 5956 5957 5957 5958 5959 5960 5961 5962 5962 5963 5964 5965 5966 + 5967 5967 5968 5969 5970 5971 5972 5973 5973 5974 5975 5976 5977 5978 5978 5979 + 5980 5981 5982 5983 5984 5984 5985 5986 5987 5988 5989 5989 5990 5991 5992 5993 + 5994 5995 5995 5996 5997 5998 5999 6000 6000 6001 6002 6003 6004 6005 6005 6006 + 6007 6008 6009 6010 6011 6011 6012 6013 6014 6015 6016 6016 6017 6018 6019 6020 + 6021 6022 6022 6023 6024 6025 6026 6027 6027 6028 6029 6030 6031 6032 6033 6033 + 6034 6035 6036 6037 6038 6038 6039 6040 6041 6042 6043 6043 6044 6045 6046 6047 + 6048 6049 6049 6050 6051 6052 6053 6054 6054 6055 6056 6057 6058 6059 6060 6060 + 6061 6062 6063 6064 6065 6065 6066 6067 6068 6069 6070 6071 6071 6072 6073 6074 + 6075 6076 6076 6077 6078 6079 6080 6081 6082 6082 6083 6084 6085 6086 6087 6087 + 6088 6089 6090 6091 6092 6093 6093 6094 6095 6096 6097 6098 6098 6099 6100 6101 + 6102 6103 6103 6104 6105 6106 6107 6108 6109 6109 6110 6111 6112 6113 6114 6114 + 6115 6116 6117 6118 6119 6120 6120 6121 6122 6123 6124 6125 6125 6126 6127 6128 + 6129 6130 6131 6131 6132 6133 6134 6135 6136 6136 6137 6138 6139 6140 6141 6142 + 6142 6143 6144 6145 6146 6147 6147 6148 6149 6150 6151 6152 6153 6153 6154 6155 + 6156 6157 6158 6158 6159 6160 6161 6162 6163 6164 6164 6165 6166 6167 6168 6169 + 6169 6170 6171 6172 6173 6174 6175 6175 6176 6177 6178 6179 6180 6180 6181 6182 + 6183 6184 6185 6185 6186 6187 6188 6189 6190 6191 6191 6192 6193 6194 6195 6196 + 6196 6197 6198 6199 6200 6201 6202 6202 6203 6204 6205 6206 6207 6207 6208 6209 + 6210 6211 6212 6213 6213 6214 6215 6216 6217 6218 6218 6219 6220 6221 6222 6223 + 6224 6224 6225 6226 6227 6228 6229 6229 6230 6231 6232 6233 6234 6235 6235 6236 + 6237 6238 6239 6240 6240 6241 6242 6243 6244 6245 6246 6246 6247 6248 6249 6250 + 6251 6251 6252 6253 6254 6255 6256 6257 6257 6258 6259 6260 6261 6262 6262 6263 + 6264 6265 6266 6267 6268 6268 6269 6270 6271 6272 6273 6273 6274 6275 6276 6277 + 6278 6279 6279 6280 6281 6282 6283 6284 6284 6285 6286 6287 6288 6289 6290 6290 + 6291 6292 6293 6294 6295 6295 6296 6297 6298 6299 6300 6301 6301 6302 6303 6304 + 6305 6306 6306 6307 6308 6309 6310 6311 6312 6312 6313 6314 6315 6316 6317 6317 + 6318 6319 6320 6321 6322 6323 6323 6324 6325 6326 6327 6328 6328 6329 6330 6331 + 6332 6333 6334 6334 6335 6336 6337 6338 6339 6339 6340 6341 6342 6343 6344 6345 + 6345 6346 6347 6348 6349 6350 6350 6351 6352 6353 6354 6355 6356 6356 6357 6358 + 6359 6360 6361 6361 6362 6363 6364 6365 6366 6367 6367 6368 6369 6370 6371 6372 + 6372 6373 6374 6375 6376 6377 6378 6378 6379 6380 6381 6382 6383 6383 6384 6385 + 6386 6387 6388 6389 6389 6390 6391 6392 6393 6394 6394 6395 6396 6397 6398 6399 + 6400 6400 6401 6402 6403 6404 6405 6405 6406 6407 6408 6409 6410 6411 6411 6412 + 6413 6414 6415 6416 6416 6417 6418 6419 6420 6421 6422 6422 6423 6424 6425 6426 + 6427 6427 6428 6429 6430 6431 6432 6433 6433 6434 6435 6436 6437 6438 6438 6439 + 6440 6441 6442 6443 6444 6444 6445 6446 6447 6448 6449 6449 6450 6451 6452 6453 + 6454 6455 6455 6456 6457 6458 6459 6460 6460 6461 6462 6463 6464 6465 6466 6466 + 6467 6468 6469 6470 6471 6471 6472 6473 6474 6475 6476 6477 6477 6478 6479 6480 + 6481 6482 6482 6483 6484 6485 6486 6487 6488 6488 6489 6490 6491 6492 6493 6493 + 6494 6495 6496 6497 6498 6499 6499 6500 6501 6502 6503 6504 6504 6505 6506 6507 + 6508 6509 6510 6510 6511 6512 6513 6514 6515 6516 6516 6517 6518 6519 6520 6521 + 6521 6522 6523 6524 6525 6526 6527 6527 6528 6529 6530 6531 6532 6532 6533 6534 + 6535 6536 6537 6538 6538 6539 6540 6541 6542 6543 6543 6544 6545 6546 6547 6548 + 6549 6549 6550 6551 6552 6553 6554 6554 6555 6556 6557 6558 6559 6560 6560 6561 + 6562 6563 6564 6565 6565 6566 6567 6568 6569 6570 6571 6571 6572 6573 6574 6575 + 6576 6576 6577 6578 6579 6580 6581 6582 6582 6583 6584 6585 6586 6587 6587 6588 + 6589 6590 6591 6592 6593 6593 6594 6595 6596 6597 6598 6598 6599 6600 6601 6602 + 6603 6604 6604 6605 6606 6607 6608 6609 6610 6610 6611 6612 6613 6614 6615 6615 + 6616 6617 6618 6619 6620 6621 6621 6622 6623 6624 6625 6626 6626 6627 6628 6629 + 6630 6631 6632 6632 6633 6634 6635 6636 6637 6637 6638 6639 6640 6641 6642 6643 + 6643 6644 6645 6646 6647 6648 6648 6649 6650 6651 6652 6653 6654 6654 6655 6656 + 6657 6658 6659 6659 6660 6661 6662 6663 6664 6665 6665 6666 6667 6668 6669 6670 + 6670 6671 6672 6673 6674 6675 6676 6676 6677 6678 6679 6680 6681 6681 6682 6683 + 6684 6685 6686 6687 6687 6688 6689 6690 6691 6692 6693 6693 6694 6695 6696 6697 + 6698 6698 6699 6700 6701 6702 6703 6704 6704 6705 6706 6707 6708 6709 6709 6710 + 6711 6712 6713 6714 6715 6715 6716 6717 6718 6719 6720 6720 6721 6722 6723 6724 + 6725 6726 6726 6727 6728 6729 6730 6731 6731 6732 6733 6734 6735 6736 6737 6737 + 6738 6739 6740 6741 6742 6742 6743 6744 6745 6746 6747 6748 6748 6749 6750 6751 + 6752 6753 6754 6754 6755 6756 6757 6758 6759 6759 6760 6761 6762 6763 6764 6765 + 6765 6766 6767 6768 6769 6770 6770 6771 6772 6773 6774 6775 6776 6776 6777 6778 + 6779 6780 6781 6781 6782 6783 6784 6785 6786 6787 6787 6788 6789 6790 6791 6792 + 6792 6793 6794 6795 6796 6797 6798 6798 6799 6800 6801 6802 6803 6803 6804 6805 + 6806 6807 6808 6809 6809 6810 6811 6812 6813 6814 6815 6815 6816 6817 6818 6819 + 6820 6820 6821 6822 6823 6824 6825 6826 6826 6827 6828 6829 6830 6831 6831 6832 + 6833 6834 6835 6836 6837 6837 6838 6839 6840 6841 6842 6842 6843 6844 6845 6846 + 6847 6848 6848 6849 6850 6851 6852 6853 6853 6854 6855 6856 6857 6858 6859 6859 + 6860 6861 6862 6863 6864 6865 6865 6866 6867 6868 6869 6870 6870 6871 6872 6873 + 6874 6875 6876 6876 6877 6878 6879 6880 6881 6881 6882 6883 6884 6885 6886 6887 + 6887 6888 6889 6890 6891 6892 6892 6893 6894 6895 6896 6897 6898 6898 6899 6900 + 6901 6902 6903 6903 6904 6905 6906 6907 6908 6909 6909 6910 6911 6912 6913 6914 + 6915 6915 6916 6917 6918 6919 6920 6920 6921 6922 6923 6924 6925 6926 6926 6927 + 6928 6929 6930 6931 6931 6932 6933 6934 6935 6936 6937 6937 6938 6939 6940 6941 + 6942 6942 6943 6944 6945 6946 6947 6948 6948 6949 6950 6951 6952 6953 6953 6954 + 6955 6956 6957 6958 6959 6959 6960 6961 6962 6963 6964 6965 6965 6966 6967 6968 + 6969 6970 6970 6971 6972 6973 6974 6975 6976 6976 6977 6978 6979 6980 6981 6981 + 6982 6983 6984 6985 6986 6987 6987 6988 6989 6990 6991 6992 6992 6993 6994 6995 + 6996 6997 6998 6998 6999 7000 7001 7002 7003 7004 7004 7005 7006 7007 7008 7009 + 7009 7010 7011 7012 7013 7014 7015 7015 7016 7017 7018 7019 7020 7020 7021 7022 + 7023 7024 7025 7026 7026 7027 7028 7029 7030 7031 7031 7032 7033 7034 7035 7036 + 7037 7037 7038 7039 7040 7041 7042 7043 7043 7044 7045 7046 7047 7048 7048 7049 + 7050 7051 7052 7053 7054 7054 7055 7056 7057 7058 7059 7059 7060 7061 7062 7063 + 7064 7065 7065 7066 7067 7068 7069 7070 7070 7071 7072 7073 7074 7075 7076 7076 + 7077 7078 7079 7080 7081 7082 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 + 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 + 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 + 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 + 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 + 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 + 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 + 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 + 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 + 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 + 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 + 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 + 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 + 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 + 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 + 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 + 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 + 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 + 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 + 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 + 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 + 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 + 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 + 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 + 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 + 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 + 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 + 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 + 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 + 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 + 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 + 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 + 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 + 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 + 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 + 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 + 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667>; //qcom,mdss-dsi-acl-on-command = [ // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 @@ -414,6 +671,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + 15 01 00 00 00 00 02 5F 80 //GIR OFF + 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -501,6 +760,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + 15 01 00 00 00 00 02 5F 80 //GIR OFF + 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -588,6 +849,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + 15 01 00 00 00 00 02 5F 80 //GIR OFF + 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -675,6 +938,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + 15 01 00 00 00 00 02 5F 80 //GIR OFF + 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 @@ -762,6 +1027,8 @@ qcom,mdss-dsi-display-timings { 15 01 00 00 00 00 02 6F 1D 15 01 00 00 00 00 02 F2 05 //Corner&Hole page0 + 15 01 00 00 00 00 02 5F 80 //GIR OFF + 15 01 00 00 00 00 02 03 01 15 01 00 00 00 00 02 90 01 39 01 00 00 00 00 13 91 AB 28 00 0C C2 00 03 1C 01 7E 00 0F 08 BB 04 3D 10 F0 From edc5dc50a93a6ab40f783784600e1a9ee67c2b14 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 24 Jun 2022 18:30:42 +0800 Subject: [PATCH 0827/1247] arm/dts: disable ICO for sc89890H disable ICO for sc89890H for wireless icl work well for miami Change-Id: I84561a75ae6b666d60bf2b7041f51a2fd8d58304 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2312588 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 89b495551da4..f140ebc0242c 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -108,7 +108,6 @@ ti,bq2589x,term-current = <128>; ti,bq2589x,enable-auto-dpdm; ti,bq2589x,enable-termination; - ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; ti,bq2589x,vindpm = <4700>; }; From f9d1f69428010632878bc97011e48c36abc4af4e Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 24 Jun 2022 18:47:58 +0800 Subject: [PATCH 0828/1247] charging: config max pd current As HW require, config max pd current 5.9A and max ibat 12.2A Change-Id: Ifd35183ed0c62312ec2100f74437f7ddc80aae86 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2312587 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index f140ebc0242c..69fd32a67177 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -340,7 +340,7 @@ mmi,pps-volt-steps = <20000>; mmi,pps-curr-steps = <100000>; mmi,pd-volt-max = <11000000>; - mmi,pd-curr-max = <6200000>; + mmi,pd-curr-max = <5900000>; mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4550000>; mmi,typec-middle-current = <2000000>; @@ -355,10 +355,10 @@ <0 4200 800 0 0 0 0 0 0>, <10 4250 2000 4480 1000 0 0 0 0>, <15 4480 2000 0 0 0 0 0 0>, - <45 4250 12000 4300 8000 4480 6000 4510 4000>, + <45 4250 12200 4300 8000 4480 6000 4510 4000>, <60 4200 4000 0 0 0 0 0 0>; mmi,thermal-mitigation = - <12000000>, + <12200000>, <11000000>, <10000000>, <9000000>, From 5638fd699e3cbbf6cfa319a71798b0472e5c7ff8 Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Mon, 27 Jun 2022 14:45:51 +0800 Subject: [PATCH 0829/1247] arm/dts: add "qcom,leica-used-i2c" for se7 Refer to (CR) details: 1."qcom,leica-used-i2c" is used for PMIC over i2c use case to skip the BW vote. 2. We rm se8 and set it just for se7 to verify the LDO used by camera. Change-Id: I5af4c48f6f293344fef5b86d21730fdb0f2e11ba Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2313939 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Minghui Wei Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 86f73125bb9f..c16ec2175cd3 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -221,6 +221,8 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; + + qcom,leica-used-i2c; st21nfc@8 { status = "disabled"; }; @@ -574,7 +576,7 @@ }; &gcc { - qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>; }; &soc { From c810f62f0822cf95c17040a33d8b334545c2c75c Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Wed, 29 Jun 2022 13:50:27 +0800 Subject: [PATCH 0830/1247] arm64/dts:update sar paras for sx9375 Miami: update sar paras to solve sar test fail ph0:modify coeff of ref channel ph4:modify coeff of ref channel Change-Id: I913b0Montanaf7cabcf812fbe1bb9e57c9938f083529 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2316921 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index c16ec2175cd3..b5f125b489ce 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -298,14 +298,14 @@ 0x8138 0xFF 0x8158 0xFF 0x8178 0x5A40 - 0x80A0 0x1E1E00E1 + 0x80A0 0x141400E1 0x80C0 0xE0E00E2 0x80E0 0x1C1C00E2 0x8100 0x30300FA - 0x8120 0x1B1B00E2 + 0x8120 0x212100E2 0x8188 0x8000015 0x818C 0x8000016 - 0x8090 0x50DC5000 + 0x8090 0x50DE5000 0x80B0 0x48D45000 0x80D0 0x3CD05000 0x80F0 0x3CD35000 From ba3bcdf4b7759454bf5ef0d879924508b828be47 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 1 Jul 2022 16:26:16 +0800 Subject: [PATCH 0831/1247] arm/dt: miami: update lhbm alpha array for c6 panel arm/dt: Update lhbm alpha array for c6 panel. It's same as dvt2 c4 panel. New c4 and c6 apl is 1000nit. Change-Id: Ia3849e40184e2d216bc9718069c1ba15c9a00994 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2320289 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...37701-628-1080x2400-dsc-cmd-common-v1.dtsi | 512 +++++++++--------- 1 file changed, 256 insertions(+), 256 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi index ae3202859e21..d99efa618f73 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi @@ -77,262 +77,262 @@ qcom,mdss-dsi-panel-local-hbm-enabled; qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; qcom,mdss-dsi-panel-local-hbm-alpha-table = < - 0 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4364 4365 4365 4365 4365 - 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 4365 - 4365 4365 4365 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4366 4367 - 4367 4367 4367 4367 4367 4367 4367 4368 4368 4368 4368 4368 4368 4368 4368 4369 - 4369 4369 4369 4369 4369 4370 4370 4370 4370 4370 4370 4371 4371 4371 4371 4371 - 4372 4372 4372 4372 4372 4373 4373 4373 4373 4373 4374 4374 4374 4374 4375 4375 - 4375 4375 4375 4376 4376 4376 4376 4377 4377 4377 4378 4378 4378 4378 4379 4379 - 4379 4379 4380 4380 4380 4381 4381 4381 4382 4382 4382 4382 4383 4383 4383 4384 - 4384 4384 4385 4385 4385 4386 4386 4386 4387 4387 4387 4388 4388 4389 4389 4389 - 4390 4390 4390 4391 4391 4391 4392 4392 4393 4393 4393 4394 4394 4395 4395 4395 - 4396 4396 4397 4397 4397 4398 4398 4399 4399 4400 4400 4400 4401 4401 4402 4402 - 4403 4403 4404 4404 4404 4405 4405 4406 4406 4407 4407 4408 4408 4409 4409 4410 - 4410 4410 4411 4411 4412 4412 4413 4413 4414 4414 4415 4415 4416 4416 4417 4417 - 4418 4418 4419 4420 4420 4421 4421 4422 4422 4423 4423 4424 4424 4425 4425 4426 - 4426 4427 4428 4428 4429 4429 4430 4430 4431 4431 4432 4433 4433 4434 4434 4435 - 4435 4436 4437 4437 4438 4438 4439 4439 4440 4441 4441 4442 4442 4443 4444 4444 - 4445 4445 4446 4447 4447 4448 4448 4449 4450 4450 4451 4451 4452 4453 4453 4454 - 4455 4455 4456 4456 4457 4458 4458 4459 4460 4460 4461 4461 4462 4463 4463 4464 - 4465 4465 4466 4467 4467 4468 4469 4469 4470 4471 4471 4472 4473 4473 4474 4474 - 4475 4476 4476 4477 4478 4479 4479 4480 4481 4481 4482 4483 4483 4484 4485 4485 - 4486 4487 4487 4488 4489 4489 4490 4491 4491 4492 4493 4494 4494 4495 4496 4496 - 4497 4498 4498 4499 4500 4501 4501 4502 4503 4503 4504 4505 4506 4506 4507 4508 - 4508 4509 4510 4511 4511 4512 4513 4514 4514 4515 4516 4516 4517 4518 4519 4519 - 4520 4521 4522 4522 4523 4524 4524 4525 4526 4527 4527 4528 4529 4530 4530 4531 - 4532 4533 4533 4534 4535 4536 4536 4537 4538 4539 4539 4540 4541 4542 4542 4543 - 4544 4545 4545 4546 4547 4548 4549 4549 4550 4551 4552 4552 4553 4554 4555 4555 - 4556 4557 4558 4559 4559 4560 4561 4562 4562 4563 4564 4565 4565 4566 4567 4568 - 4569 4569 4570 4571 4572 4573 4573 4574 4575 4576 4576 4577 4578 4579 4580 4580 - 4581 4582 4583 4584 4584 4585 4586 4587 4588 4588 4589 4590 4591 4592 4592 4593 - 4594 4595 4596 4596 4597 4598 4599 4600 4600 4601 4602 4603 4604 4604 4605 4606 - 4607 4608 4608 4609 4610 4611 4612 4612 4613 4614 4615 4616 4616 4617 4618 4619 - 4620 4621 4621 4622 4623 4624 4625 4625 4626 4627 4628 4629 4630 4630 4631 4632 - 4633 4634 4635 4635 4636 4637 4638 4639 4639 4640 4641 4642 4643 4644 4644 4645 - 4646 4647 4648 4649 4649 4650 4651 4652 4653 4654 4654 4655 4656 4657 4658 4659 - 4659 4660 4661 4662 4663 4664 4664 4665 4666 4667 4668 4669 4669 4670 4671 4672 - 4673 4674 4674 4675 4676 4677 4678 4679 4680 4680 4681 4682 4683 4684 4685 4685 - 4686 4687 4688 4689 4690 4690 4691 4692 4693 4694 4695 4696 4696 4697 4698 4699 - 4700 4701 4702 4702 4703 4704 4705 4706 4707 4707 4708 4709 4710 4711 4712 4713 - 4713 4714 4715 4716 4717 4718 4719 4719 4720 4721 4722 4723 4724 4725 4725 4726 - 4727 4728 4729 4730 4731 4731 4732 4733 4734 4735 4736 4737 4738 4738 4739 4740 - 4741 4742 4743 4744 4744 4745 4746 4747 4748 4749 4750 4750 4751 4752 4753 4754 - 4755 4756 4757 4757 4758 4759 4760 4761 4762 4763 4763 4764 4765 4766 4767 4768 - 4769 4770 4770 4771 4772 4773 4774 4775 4776 4777 4777 4778 4779 4780 4781 4782 - 4783 4784 4784 4785 4786 4787 4788 4789 4790 4791 4791 4792 4793 4794 4795 4796 - 4797 4798 4798 4799 4800 4801 4802 4803 4804 4805 4805 4806 4807 4808 4809 4810 - 4811 4812 4812 4813 4814 4815 4816 4817 4818 4819 4819 4820 4821 4822 4823 4824 - 4825 4826 4827 4827 4828 4829 4830 4831 4832 4833 4834 4834 4835 4836 4837 4838 - 4839 4840 4841 4842 4842 4843 4844 4845 4846 4847 4848 4849 4850 4850 4851 4852 - 4853 4854 4855 4856 4857 4857 4858 4859 4860 4861 4862 4863 4864 4865 4865 4866 - 4867 4868 4869 4870 4871 4872 4873 4873 4874 4875 4876 4877 4878 4879 4880 4881 - 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4890 4891 4892 4893 4894 4895 - 4896 4897 4898 4898 4899 4900 4901 4902 4903 4904 4905 4906 4906 4907 4908 4909 - 4910 4911 4912 4913 4914 4915 4915 4916 4917 4918 4919 4920 4921 4922 4923 4923 - 4924 4925 4926 4927 4928 4929 4930 4931 4932 4932 4933 4934 4935 4936 4937 4938 - 4939 4940 4941 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4950 4951 4952 - 4953 4954 4955 4956 4957 4958 4959 4959 4960 4961 4962 4963 4964 4965 4966 4967 - 4968 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4977 4978 4979 4980 4981 - 4982 4983 4984 4985 4986 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 - 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5005 5006 5007 5008 5009 5010 - 5011 5012 5013 5014 5015 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5024 - 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5034 5035 5036 5037 5038 5039 - 5040 5041 5042 5043 5044 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 - 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5064 5065 5066 5067 5068 - 5069 5070 5071 5072 5073 5074 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 - 5084 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5094 5095 5096 5097 - 5098 5099 5100 5101 5102 5103 5104 5104 5105 5106 5107 5108 5109 5110 5111 5112 - 5113 5114 5115 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5125 5126 - 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5136 5137 5138 5139 5140 5141 - 5142 5143 5144 5145 5146 5147 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 - 5157 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5168 5169 5170 - 5171 5172 5173 5174 5175 5176 5177 5178 5179 5179 5180 5181 5182 5183 5184 5185 - 5186 5187 5188 5189 5190 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 - 5201 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5212 5213 5214 - 5215 5216 5217 5218 5219 5220 5221 5222 5223 5223 5224 5225 5226 5227 5228 5229 - 5230 5231 5232 5233 5234 5235 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 - 5245 5246 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5257 5258 - 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5269 5270 5271 5272 5273 - 5274 5275 5276 5277 5278 5279 5280 5280 5281 5282 5283 5284 5285 5286 5287 5288 - 5289 5290 5291 5292 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 - 5304 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5315 5316 5317 - 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5327 5328 5329 5330 5331 5332 - 5333 5334 5335 5336 5337 5338 5339 5339 5340 5341 5342 5343 5344 5345 5346 5347 - 5348 5349 5350 5351 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 - 5363 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5375 5376 - 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5387 5388 5389 5390 5391 - 5392 5393 5394 5395 5396 5397 5398 5399 5399 5400 5401 5402 5403 5404 5405 5406 - 5407 5408 5409 5410 5411 5412 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 - 5422 5423 5424 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 - 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5449 5450 - 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5461 5462 5463 5464 5465 - 5466 5467 5468 5469 5470 5471 5472 5473 5474 5474 5475 5476 5477 5478 5479 5480 - 5481 5482 5483 5484 5485 5486 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 - 5496 5497 5498 5499 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 - 5511 5512 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5524 - 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5537 5538 5539 - 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5550 5551 5552 5553 5554 - 5555 5556 5557 5558 5559 5560 5561 5562 5563 5563 5564 5565 5566 5567 5568 5569 - 5570 5571 5572 5573 5574 5575 5576 5576 5577 5578 5579 5580 5581 5582 5583 5584 - 5585 5586 5587 5588 5589 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 - 5600 5601 5602 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 - 5615 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5628 - 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5641 5642 5643 - 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5654 5655 5656 5657 5658 - 5659 5660 5661 5662 5663 5664 5665 5666 5667 5667 5668 5669 5670 5671 5672 5673 - 5674 5675 5676 5677 5678 5679 5680 5681 5681 5682 5683 5684 5685 5686 5687 5688 - 5689 5690 5691 5692 5693 5694 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 - 5704 5705 5706 5707 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 - 5719 5720 5721 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 - 5734 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5747 - 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5761 5762 - 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5774 5775 5776 5777 - 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5788 5789 5790 5791 5792 - 5793 5794 5795 5796 5797 5798 5799 5800 5801 5801 5802 5803 5804 5805 5806 5807 - 5808 5809 5810 5811 5812 5813 5814 5815 5815 5816 5817 5818 5819 5820 5821 5822 - 5823 5824 5825 5826 5827 5828 5829 5829 5830 5831 5832 5833 5834 5835 5836 5837 - 5838 5839 5840 5841 5842 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 - 5853 5854 5855 5856 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 - 5868 5869 5870 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 - 5883 5884 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 - 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5911 - 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5925 5926 - 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5939 5940 5941 - 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5953 5954 5955 5956 - 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5967 5968 5969 5970 5971 - 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5981 5982 5983 5984 5985 5986 - 5987 5988 5989 5990 5991 5992 5993 5994 5995 5995 5996 5997 5998 5999 6000 6001 - 6002 6003 6004 6005 6006 6007 6008 6009 6009 6010 6011 6012 6013 6014 6015 6016 - 6017 6018 6019 6020 6021 6022 6023 6023 6024 6025 6026 6027 6028 6029 6030 6031 - 6032 6033 6034 6035 6036 6037 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 - 6047 6048 6049 6050 6051 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 - 6062 6063 6064 6065 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 - 6077 6078 6079 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 - 6092 6093 6094 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 - 6107 6108 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 - 6122 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 - 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6150 - 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6165 - 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6179 6180 - 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6193 6194 6195 - 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6208 6209 6210 - 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6222 6223 6224 6225 - 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6236 6237 6238 6239 6240 - 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6251 6252 6253 6254 6255 - 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6265 6266 6267 6268 6269 6270 - 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6280 6281 6282 6283 6284 6285 - 6286 6287 6288 6289 6290 6291 6292 6293 6294 6294 6295 6296 6297 6298 6299 6300 - 6301 6302 6303 6304 6305 6306 6307 6308 6308 6309 6310 6311 6312 6313 6314 6315 - 6316 6317 6318 6319 6320 6321 6322 6323 6323 6324 6325 6326 6327 6328 6329 6330 - 6331 6332 6333 6334 6335 6336 6337 6337 6338 6339 6340 6341 6342 6343 6344 6345 - 6346 6347 6348 6349 6350 6351 6352 6352 6353 6354 6355 6356 6357 6358 6359 6360 - 6361 6362 6363 6364 6365 6366 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 - 6376 6377 6378 6379 6380 6381 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 - 6391 6392 6393 6394 6395 6396 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 - 6406 6407 6408 6409 6410 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 - 6421 6422 6423 6424 6425 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 - 6436 6437 6438 6439 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 - 6451 6452 6453 6454 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 - 6466 6467 6468 6469 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 - 6481 6482 6483 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 - 6496 6497 6498 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 - 6511 6512 6513 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 - 6526 6527 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 - 6541 6542 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 - 6556 6557 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 - 6571 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 - 6586 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 - 6601 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 - 6616 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 - 6631 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 - 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 - 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 - 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 - 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 - 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6719 - 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6734 - 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6749 - 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6764 - 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6779 - 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6794 - 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6809 - 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6824 - 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6839 - 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6854 - 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6869 - 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6883 6884 - 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6898 6899 - 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6913 6914 - 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6928 6929 - 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6943 6944 - 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6958 6959 - 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6973 6974 - 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6988 6989 - 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7003 7004 - 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7018 7019 - 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7034 - 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7049 - 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7064 - 7065 7066 7067 7068 7069 7070 7071 7072 7073 7074 7075 7076 7077 7078 7079 7079 - 7080 7081 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 7092 7093 7094 7094 - 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7109 - 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 7124 7124 - 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 7139 - 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7154 - 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7169 - 7170 7171 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7184 - 7185 7186 7187 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7199 - 7200 7201 7202 7203 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 - 7215 7216 7217 7218 7219 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 - 7230 7231 7232 7233 7234 7235 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 - 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 - 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270 7271 7272 7273 7274 7275 - 7275 7276 7277 7278 7279 7280 7281 7282 7283 7284 7285 7286 7287 7288 7289 7290 - 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 7303 7304 7305 - 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 7316 7317 7318 7319 7320 - 7321 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 - 7336 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 - 7351 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 - 7366 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 7380 - 7381 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 - 7396 7397 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 - 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 - 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 - 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 - 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 - 7475 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 - 7491 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 - 7507 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 - 7523 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 - 7539 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 - 7555 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 - 7571 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 - 7587 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 - 7603 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 - 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 - 7635 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 - 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 - 7667 7668 7669 7670 7671 7672 7673 7674 7675 7676 7677 7678 7679 7680 7681 7682 - 7683 7684 7685 7686 7687 7688 7689 7690 7691 7692 7693 7694 7695 7696 7697 7698 - 7699 7700 7701 7702 7703 7704 7705 7706 7707 7708 7709 7710 7711 7712 7713 7714 - 7715 7716 7717 7718 7719 7720 7721 7722 7723 7724 7725 7726 7727 7728 7729 7730 - 7731 7732 7733 7734 7735 7736 7737 7738 7739 7740 7741 7742 7743 7744 7745 7746 - 7747 7748 7749 7750 7751 7752 7753 7754 7755 7756 7757 7758 7759 7760 7761 7762 - 7763 7764 7765 7766 7767 7768 7769 7770 7771 7772 7773 7774 7775 7776 7777 7778 - 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 - 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 7810 - 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 7821 7822 7823 7824 7825 7826 - 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 - 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 7854 7855 7856 7857 7858 - 7859 7860 7861 7862 7863 7864 7865 7866 7867 7868 7869 7870 7871 7872 7873 7874 - 7875 7876 7877 7878 7879 7880 7881 7882 7883 7884 7885 7886 7887 7888 7889 7890 - 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905 7906 - 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 - 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 - 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 - 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 - 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986>; + 0 4338 4338 4338 4338 4338 4338 4338 4339 4339 4339 4339 4339 4339 4339 4339 + 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 4339 + 4339 4339 4339 4339 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 4340 + 4341 4341 4341 4341 4341 4341 4341 4341 4341 4342 4342 4342 4342 4342 4342 4342 + 4342 4343 4343 4343 4343 4343 4343 4343 4344 4344 4344 4344 4344 4344 4345 4345 + 4345 4345 4345 4345 4346 4346 4346 4346 4346 4347 4347 4347 4347 4347 4348 4348 + 4348 4348 4348 4349 4349 4349 4349 4350 4350 4350 4350 4351 4351 4351 4351 4352 + 4352 4352 4352 4353 4353 4353 4353 4354 4354 4354 4354 4355 4355 4355 4356 4356 + 4356 4357 4357 4357 4357 4358 4358 4358 4359 4359 4359 4360 4360 4360 4361 4361 + 4361 4362 4362 4362 4363 4363 4363 4364 4364 4364 4365 4365 4365 4366 4366 4366 + 4367 4367 4368 4368 4368 4369 4369 4369 4370 4370 4371 4371 4371 4372 4372 4373 + 4373 4373 4374 4374 4375 4375 4375 4376 4376 4377 4377 4378 4378 4378 4379 4379 + 4380 4380 4381 4381 4381 4382 4382 4383 4383 4384 4384 4385 4385 4385 4386 4386 + 4387 4387 4388 4388 4389 4389 4390 4390 4391 4391 4392 4392 4393 4393 4394 4394 + 4395 4395 4395 4396 4396 4397 4397 4398 4398 4399 4400 4400 4401 4401 4402 4402 + 4403 4403 4404 4404 4405 4405 4406 4406 4407 4407 4408 4408 4409 4409 4410 4411 + 4411 4412 4412 4413 4413 4414 4414 4415 4415 4416 4417 4417 4418 4418 4419 4419 + 4420 4420 4421 4422 4422 4423 4423 4424 4424 4425 4426 4426 4427 4427 4428 4428 + 4429 4430 4430 4431 4431 4432 4433 4433 4434 4434 4435 4436 4436 4437 4437 4438 + 4439 4439 4440 4440 4441 4442 4442 4443 4443 4444 4445 4445 4446 4446 4447 4448 + 4448 4449 4450 4450 4451 4451 4452 4453 4453 4454 4455 4455 4456 4456 4457 4458 + 4458 4459 4460 4460 4461 4462 4462 4463 4463 4464 4465 4465 4466 4467 4467 4468 + 4469 4469 4470 4471 4471 4472 4473 4473 4474 4475 4475 4476 4476 4477 4478 4478 + 4479 4480 4480 4481 4482 4482 4483 4484 4484 4485 4486 4486 4487 4488 4488 4489 + 4490 4490 4491 4492 4493 4493 4494 4495 4495 4496 4497 4497 4498 4499 4499 4500 + 4501 4501 4502 4503 4503 4504 4505 4506 4506 4507 4508 4508 4509 4510 4510 4511 + 4512 4512 4513 4514 4515 4515 4516 4517 4517 4518 4519 4519 4520 4521 4522 4522 + 4523 4524 4524 4525 4526 4527 4527 4528 4529 4529 4530 4531 4531 4532 4533 4534 + 4534 4535 4536 4536 4537 4538 4539 4539 4540 4541 4542 4542 4543 4544 4544 4545 + 4546 4547 4547 4548 4549 4549 4550 4551 4552 4552 4553 4554 4555 4555 4556 4557 + 4557 4558 4559 4560 4560 4561 4562 4563 4563 4564 4565 4566 4566 4567 4568 4568 + 4569 4570 4571 4571 4572 4573 4574 4574 4575 4576 4577 4577 4578 4579 4580 4580 + 4581 4582 4583 4583 4584 4585 4585 4586 4587 4588 4588 4589 4590 4591 4591 4592 + 4593 4594 4594 4595 4596 4597 4597 4598 4599 4600 4600 4601 4602 4603 4603 4604 + 4605 4606 4606 4607 4608 4609 4610 4610 4611 4612 4613 4613 4614 4615 4616 4616 + 4617 4618 4619 4619 4620 4621 4622 4622 4623 4624 4625 4625 4626 4627 4628 4629 + 4629 4630 4631 4632 4632 4633 4634 4635 4635 4636 4637 4638 4638 4639 4640 4641 + 4642 4642 4643 4644 4645 4645 4646 4647 4648 4648 4649 4650 4651 4652 4652 4653 + 4654 4655 4655 4656 4657 4658 4659 4659 4660 4661 4662 4662 4663 4664 4665 4665 + 4666 4667 4668 4669 4669 4670 4671 4672 4672 4673 4674 4675 4676 4676 4677 4678 + 4679 4679 4680 4681 4682 4683 4683 4684 4685 4686 4687 4687 4688 4689 4690 4690 + 4691 4692 4693 4694 4694 4695 4696 4697 4697 4698 4699 4700 4701 4701 4702 4703 + 4704 4705 4705 4706 4707 4708 4708 4709 4710 4711 4712 4712 4713 4714 4715 4716 + 4716 4717 4718 4719 4720 4720 4721 4722 4723 4723 4724 4725 4726 4727 4727 4728 + 4729 4730 4731 4731 4732 4733 4734 4735 4735 4736 4737 4738 4739 4739 4740 4741 + 4742 4742 4743 4744 4745 4746 4746 4747 4748 4749 4750 4750 4751 4752 4753 4754 + 4754 4755 4756 4757 4758 4758 4759 4760 4761 4762 4762 4763 4764 4765 4766 4766 + 4767 4768 4769 4770 4770 4771 4772 4773 4774 4774 4775 4776 4777 4778 4778 4779 + 4780 4781 4782 4782 4783 4784 4785 4786 4786 4787 4788 4789 4790 4790 4791 4792 + 4793 4794 4794 4795 4796 4797 4798 4798 4799 4800 4801 4802 4802 4803 4804 4805 + 4806 4806 4807 4808 4809 4810 4811 4811 4812 4813 4814 4815 4815 4816 4817 4818 + 4819 4819 4820 4821 4822 4823 4823 4824 4825 4826 4827 4827 4828 4829 4830 4831 + 4831 4832 4833 4834 4835 4836 4836 4837 4838 4839 4840 4840 4841 4842 4843 4844 + 4844 4845 4846 4847 4848 4848 4849 4850 4851 4852 4853 4853 4854 4855 4856 4857 + 4857 4858 4859 4860 4861 4861 4862 4863 4864 4865 4866 4866 4867 4868 4869 4870 + 4870 4871 4872 4873 4874 4874 4875 4876 4877 4878 4879 4879 4880 4881 4882 4883 + 4883 4884 4885 4886 4887 4887 4888 4889 4890 4891 4892 4892 4893 4894 4895 4896 + 4896 4897 4898 4899 4900 4901 4901 4902 4903 4904 4905 4905 4906 4907 4908 4909 + 4910 4910 4911 4912 4913 4914 4914 4915 4916 4917 4918 4919 4919 4920 4921 4922 + 4923 4923 4924 4925 4926 4927 4928 4928 4929 4930 4931 4932 4932 4933 4934 4935 + 4936 4937 4937 4938 4939 4940 4941 4941 4942 4943 4944 4945 4946 4946 4947 4948 + 4949 4950 4950 4951 4952 4953 4954 4955 4955 4956 4957 4958 4959 4959 4960 4961 + 4962 4963 4964 4964 4965 4966 4967 4968 4968 4969 4970 4971 4972 4973 4973 4974 + 4975 4976 4977 4978 4978 4979 4980 4981 4982 4982 4983 4984 4985 4986 4987 4987 + 4988 4989 4990 4991 4992 4992 4993 4994 4995 4996 4996 4997 4998 4999 5000 5001 + 5001 5002 5003 5004 5005 5006 5006 5007 5008 5009 5010 5010 5011 5012 5013 5014 + 5015 5015 5016 5017 5018 5019 5020 5020 5021 5022 5023 5024 5024 5025 5026 5027 + 5028 5029 5029 5030 5031 5032 5033 5034 5034 5035 5036 5037 5038 5039 5039 5040 + 5041 5042 5043 5043 5044 5045 5046 5047 5048 5048 5049 5050 5051 5052 5053 5053 + 5054 5055 5056 5057 5058 5058 5059 5060 5061 5062 5062 5063 5064 5065 5066 5067 + 5067 5068 5069 5070 5071 5072 5072 5073 5074 5075 5076 5077 5077 5078 5079 5080 + 5081 5082 5082 5083 5084 5085 5086 5086 5087 5088 5089 5090 5091 5091 5092 5093 + 5094 5095 5096 5096 5097 5098 5099 5100 5101 5101 5102 5103 5104 5105 5106 5106 + 5107 5108 5109 5110 5111 5111 5112 5113 5114 5115 5116 5116 5117 5118 5119 5120 + 5120 5121 5122 5123 5124 5125 5125 5126 5127 5128 5129 5130 5130 5131 5132 5133 + 5134 5135 5135 5136 5137 5138 5139 5140 5140 5141 5142 5143 5144 5145 5145 5146 + 5147 5148 5149 5150 5150 5151 5152 5153 5154 5155 5155 5156 5157 5158 5159 5160 + 5160 5161 5162 5163 5164 5165 5165 5166 5167 5168 5169 5170 5170 5171 5172 5173 + 5174 5175 5175 5176 5177 5178 5179 5179 5180 5181 5182 5183 5184 5184 5185 5186 + 5187 5188 5189 5189 5190 5191 5192 5193 5194 5194 5195 5196 5197 5198 5199 5199 + 5200 5201 5202 5203 5204 5204 5205 5206 5207 5208 5209 5209 5210 5211 5212 5213 + 5214 5214 5215 5216 5217 5218 5219 5219 5220 5221 5222 5223 5224 5224 5225 5226 + 5227 5228 5229 5229 5230 5231 5232 5233 5234 5234 5235 5236 5237 5238 5239 5239 + 5240 5241 5242 5243 5244 5244 5245 5246 5247 5248 5249 5250 5250 5251 5252 5253 + 5254 5255 5255 5256 5257 5258 5259 5260 5260 5261 5262 5263 5264 5265 5265 5266 + 5267 5268 5269 5270 5270 5271 5272 5273 5274 5275 5275 5276 5277 5278 5279 5280 + 5280 5281 5282 5283 5284 5285 5285 5286 5287 5288 5289 5290 5290 5291 5292 5293 + 5294 5295 5295 5296 5297 5298 5299 5300 5300 5301 5302 5303 5304 5305 5305 5306 + 5307 5308 5309 5310 5310 5311 5312 5313 5314 5315 5316 5316 5317 5318 5319 5320 + 5321 5321 5322 5323 5324 5325 5326 5326 5327 5328 5329 5330 5331 5331 5332 5333 + 5334 5335 5336 5336 5337 5338 5339 5340 5341 5341 5342 5343 5344 5345 5346 5346 + 5347 5348 5349 5350 5351 5351 5352 5353 5354 5355 5356 5357 5357 5358 5359 5360 + 5361 5362 5362 5363 5364 5365 5366 5367 5367 5368 5369 5370 5371 5372 5372 5373 + 5374 5375 5376 5377 5377 5378 5379 5380 5381 5382 5382 5383 5384 5385 5386 5387 + 5387 5388 5389 5390 5391 5392 5393 5393 5394 5395 5396 5397 5398 5398 5399 5400 + 5401 5402 5403 5403 5404 5405 5406 5407 5408 5408 5409 5410 5411 5412 5413 5413 + 5414 5415 5416 5417 5418 5419 5419 5420 5421 5422 5423 5424 5424 5425 5426 5427 + 5428 5429 5429 5430 5431 5432 5433 5434 5434 5435 5436 5437 5438 5439 5439 5440 + 5441 5442 5443 5444 5444 5445 5446 5447 5448 5449 5450 5450 5451 5452 5453 5454 + 5455 5455 5456 5457 5458 5459 5460 5460 5461 5462 5463 5464 5465 5465 5466 5467 + 5468 5469 5470 5471 5471 5472 5473 5474 5475 5476 5476 5477 5478 5479 5480 5481 + 5481 5482 5483 5484 5485 5486 5486 5487 5488 5489 5490 5491 5492 5492 5493 5494 + 5495 5496 5497 5497 5498 5499 5500 5501 5502 5502 5503 5504 5505 5506 5507 5507 + 5508 5509 5510 5511 5512 5512 5513 5514 5515 5516 5517 5518 5518 5519 5520 5521 + 5522 5523 5523 5524 5525 5526 5527 5528 5528 5529 5530 5531 5532 5533 5534 5534 + 5535 5536 5537 5538 5539 5539 5540 5541 5542 5543 5544 5544 5545 5546 5547 5548 + 5549 5549 5550 5551 5552 5553 5554 5555 5555 5556 5557 5558 5559 5560 5560 5561 + 5562 5563 5564 5565 5565 5566 5567 5568 5569 5570 5570 5571 5572 5573 5574 5575 + 5576 5576 5577 5578 5579 5580 5581 5581 5582 5583 5584 5585 5586 5586 5587 5588 + 5589 5590 5591 5592 5592 5593 5594 5595 5596 5597 5597 5598 5599 5600 5601 5602 + 5602 5603 5604 5605 5606 5607 5607 5608 5609 5610 5611 5612 5613 5613 5614 5615 + 5616 5617 5618 5618 5619 5620 5621 5622 5623 5623 5624 5625 5626 5627 5628 5629 + 5629 5630 5631 5632 5633 5634 5634 5635 5636 5637 5638 5639 5639 5640 5641 5642 + 5643 5644 5645 5645 5646 5647 5648 5649 5650 5650 5651 5652 5653 5654 5655 5655 + 5656 5657 5658 5659 5660 5661 5661 5662 5663 5664 5665 5666 5666 5667 5668 5669 + 5670 5671 5671 5672 5673 5674 5675 5676 5677 5677 5678 5679 5680 5681 5682 5682 + 5683 5684 5685 5686 5687 5687 5688 5689 5690 5691 5692 5693 5693 5694 5695 5696 + 5697 5698 5698 5699 5700 5701 5702 5703 5703 5704 5705 5706 5707 5708 5709 5709 + 5710 5711 5712 5713 5714 5714 5715 5716 5717 5718 5719 5719 5720 5721 5722 5723 + 5724 5725 5725 5726 5727 5728 5729 5730 5730 5731 5732 5733 5734 5735 5735 5736 + 5737 5738 5739 5740 5741 5741 5742 5743 5744 5745 5746 5746 5747 5748 5749 5750 + 5751 5751 5752 5753 5754 5755 5756 5757 5757 5758 5759 5760 5761 5762 5762 5763 + 5764 5765 5766 5767 5768 5768 5769 5770 5771 5772 5773 5773 5774 5775 5776 5777 + 5778 5778 5779 5780 5781 5782 5783 5784 5784 5785 5786 5787 5788 5789 5789 5790 + 5791 5792 5793 5794 5794 5795 5796 5797 5798 5799 5800 5800 5801 5802 5803 5804 + 5805 5805 5806 5807 5808 5809 5810 5811 5811 5812 5813 5814 5815 5816 5816 5817 + 5818 5819 5820 5821 5821 5822 5823 5824 5825 5826 5827 5827 5828 5829 5830 5831 + 5832 5832 5833 5834 5835 5836 5837 5838 5838 5839 5840 5841 5842 5843 5843 5844 + 5845 5846 5847 5848 5848 5849 5850 5851 5852 5853 5854 5854 5855 5856 5857 5858 + 5859 5859 5860 5861 5862 5863 5864 5864 5865 5866 5867 5868 5869 5870 5870 5871 + 5872 5873 5874 5875 5875 5876 5877 5878 5879 5880 5881 5881 5882 5883 5884 5885 + 5886 5886 5887 5888 5889 5890 5891 5892 5892 5893 5894 5895 5896 5897 5897 5898 + 5899 5900 5901 5902 5902 5903 5904 5905 5906 5907 5908 5908 5909 5910 5911 5912 + 5913 5913 5914 5915 5916 5917 5918 5919 5919 5920 5921 5922 5923 5924 5924 5925 + 5926 5927 5928 5929 5929 5930 5931 5932 5933 5934 5935 5935 5936 5937 5938 5939 + 5940 5940 5941 5942 5943 5944 5945 5946 5946 5947 5948 5949 5950 5951 5951 5952 + 5953 5954 5955 5956 5957 5957 5958 5959 5960 5961 5962 5962 5963 5964 5965 5966 + 5967 5967 5968 5969 5970 5971 5972 5973 5973 5974 5975 5976 5977 5978 5978 5979 + 5980 5981 5982 5983 5984 5984 5985 5986 5987 5988 5989 5989 5990 5991 5992 5993 + 5994 5995 5995 5996 5997 5998 5999 6000 6000 6001 6002 6003 6004 6005 6005 6006 + 6007 6008 6009 6010 6011 6011 6012 6013 6014 6015 6016 6016 6017 6018 6019 6020 + 6021 6022 6022 6023 6024 6025 6026 6027 6027 6028 6029 6030 6031 6032 6033 6033 + 6034 6035 6036 6037 6038 6038 6039 6040 6041 6042 6043 6043 6044 6045 6046 6047 + 6048 6049 6049 6050 6051 6052 6053 6054 6054 6055 6056 6057 6058 6059 6060 6060 + 6061 6062 6063 6064 6065 6065 6066 6067 6068 6069 6070 6071 6071 6072 6073 6074 + 6075 6076 6076 6077 6078 6079 6080 6081 6082 6082 6083 6084 6085 6086 6087 6087 + 6088 6089 6090 6091 6092 6093 6093 6094 6095 6096 6097 6098 6098 6099 6100 6101 + 6102 6103 6103 6104 6105 6106 6107 6108 6109 6109 6110 6111 6112 6113 6114 6114 + 6115 6116 6117 6118 6119 6120 6120 6121 6122 6123 6124 6125 6125 6126 6127 6128 + 6129 6130 6131 6131 6132 6133 6134 6135 6136 6136 6137 6138 6139 6140 6141 6142 + 6142 6143 6144 6145 6146 6147 6147 6148 6149 6150 6151 6152 6153 6153 6154 6155 + 6156 6157 6158 6158 6159 6160 6161 6162 6163 6164 6164 6165 6166 6167 6168 6169 + 6169 6170 6171 6172 6173 6174 6175 6175 6176 6177 6178 6179 6180 6180 6181 6182 + 6183 6184 6185 6185 6186 6187 6188 6189 6190 6191 6191 6192 6193 6194 6195 6196 + 6196 6197 6198 6199 6200 6201 6202 6202 6203 6204 6205 6206 6207 6207 6208 6209 + 6210 6211 6212 6213 6213 6214 6215 6216 6217 6218 6218 6219 6220 6221 6222 6223 + 6224 6224 6225 6226 6227 6228 6229 6229 6230 6231 6232 6233 6234 6235 6235 6236 + 6237 6238 6239 6240 6240 6241 6242 6243 6244 6245 6246 6246 6247 6248 6249 6250 + 6251 6251 6252 6253 6254 6255 6256 6257 6257 6258 6259 6260 6261 6262 6262 6263 + 6264 6265 6266 6267 6268 6268 6269 6270 6271 6272 6273 6273 6274 6275 6276 6277 + 6278 6279 6279 6280 6281 6282 6283 6284 6284 6285 6286 6287 6288 6289 6290 6290 + 6291 6292 6293 6294 6295 6295 6296 6297 6298 6299 6300 6301 6301 6302 6303 6304 + 6305 6306 6306 6307 6308 6309 6310 6311 6312 6312 6313 6314 6315 6316 6317 6317 + 6318 6319 6320 6321 6322 6323 6323 6324 6325 6326 6327 6328 6328 6329 6330 6331 + 6332 6333 6334 6334 6335 6336 6337 6338 6339 6339 6340 6341 6342 6343 6344 6345 + 6345 6346 6347 6348 6349 6350 6350 6351 6352 6353 6354 6355 6356 6356 6357 6358 + 6359 6360 6361 6361 6362 6363 6364 6365 6366 6367 6367 6368 6369 6370 6371 6372 + 6372 6373 6374 6375 6376 6377 6378 6378 6379 6380 6381 6382 6383 6383 6384 6385 + 6386 6387 6388 6389 6389 6390 6391 6392 6393 6394 6394 6395 6396 6397 6398 6399 + 6400 6400 6401 6402 6403 6404 6405 6405 6406 6407 6408 6409 6410 6411 6411 6412 + 6413 6414 6415 6416 6416 6417 6418 6419 6420 6421 6422 6422 6423 6424 6425 6426 + 6427 6427 6428 6429 6430 6431 6432 6433 6433 6434 6435 6436 6437 6438 6438 6439 + 6440 6441 6442 6443 6444 6444 6445 6446 6447 6448 6449 6449 6450 6451 6452 6453 + 6454 6455 6455 6456 6457 6458 6459 6460 6460 6461 6462 6463 6464 6465 6466 6466 + 6467 6468 6469 6470 6471 6471 6472 6473 6474 6475 6476 6477 6477 6478 6479 6480 + 6481 6482 6482 6483 6484 6485 6486 6487 6488 6488 6489 6490 6491 6492 6493 6493 + 6494 6495 6496 6497 6498 6499 6499 6500 6501 6502 6503 6504 6504 6505 6506 6507 + 6508 6509 6510 6510 6511 6512 6513 6514 6515 6516 6516 6517 6518 6519 6520 6521 + 6521 6522 6523 6524 6525 6526 6527 6527 6528 6529 6530 6531 6532 6532 6533 6534 + 6535 6536 6537 6538 6538 6539 6540 6541 6542 6543 6543 6544 6545 6546 6547 6548 + 6549 6549 6550 6551 6552 6553 6554 6554 6555 6556 6557 6558 6559 6560 6560 6561 + 6562 6563 6564 6565 6565 6566 6567 6568 6569 6570 6571 6571 6572 6573 6574 6575 + 6576 6576 6577 6578 6579 6580 6581 6582 6582 6583 6584 6585 6586 6587 6587 6588 + 6589 6590 6591 6592 6593 6593 6594 6595 6596 6597 6598 6598 6599 6600 6601 6602 + 6603 6604 6604 6605 6606 6607 6608 6609 6610 6610 6611 6612 6613 6614 6615 6615 + 6616 6617 6618 6619 6620 6621 6621 6622 6623 6624 6625 6626 6626 6627 6628 6629 + 6630 6631 6632 6632 6633 6634 6635 6636 6637 6637 6638 6639 6640 6641 6642 6643 + 6643 6644 6645 6646 6647 6648 6648 6649 6650 6651 6652 6653 6654 6654 6655 6656 + 6657 6658 6659 6659 6660 6661 6662 6663 6664 6665 6665 6666 6667 6668 6669 6670 + 6670 6671 6672 6673 6674 6675 6676 6676 6677 6678 6679 6680 6681 6681 6682 6683 + 6684 6685 6686 6687 6687 6688 6689 6690 6691 6692 6693 6693 6694 6695 6696 6697 + 6698 6698 6699 6700 6701 6702 6703 6704 6704 6705 6706 6707 6708 6709 6709 6710 + 6711 6712 6713 6714 6715 6715 6716 6717 6718 6719 6720 6720 6721 6722 6723 6724 + 6725 6726 6726 6727 6728 6729 6730 6731 6731 6732 6733 6734 6735 6736 6737 6737 + 6738 6739 6740 6741 6742 6742 6743 6744 6745 6746 6747 6748 6748 6749 6750 6751 + 6752 6753 6754 6754 6755 6756 6757 6758 6759 6759 6760 6761 6762 6763 6764 6765 + 6765 6766 6767 6768 6769 6770 6770 6771 6772 6773 6774 6775 6776 6776 6777 6778 + 6779 6780 6781 6781 6782 6783 6784 6785 6786 6787 6787 6788 6789 6790 6791 6792 + 6792 6793 6794 6795 6796 6797 6798 6798 6799 6800 6801 6802 6803 6803 6804 6805 + 6806 6807 6808 6809 6809 6810 6811 6812 6813 6814 6815 6815 6816 6817 6818 6819 + 6820 6820 6821 6822 6823 6824 6825 6826 6826 6827 6828 6829 6830 6831 6831 6832 + 6833 6834 6835 6836 6837 6837 6838 6839 6840 6841 6842 6842 6843 6844 6845 6846 + 6847 6848 6848 6849 6850 6851 6852 6853 6853 6854 6855 6856 6857 6858 6859 6859 + 6860 6861 6862 6863 6864 6865 6865 6866 6867 6868 6869 6870 6870 6871 6872 6873 + 6874 6875 6876 6876 6877 6878 6879 6880 6881 6881 6882 6883 6884 6885 6886 6887 + 6887 6888 6889 6890 6891 6892 6892 6893 6894 6895 6896 6897 6898 6898 6899 6900 + 6901 6902 6903 6903 6904 6905 6906 6907 6908 6909 6909 6910 6911 6912 6913 6914 + 6915 6915 6916 6917 6918 6919 6920 6920 6921 6922 6923 6924 6925 6926 6926 6927 + 6928 6929 6930 6931 6931 6932 6933 6934 6935 6936 6937 6937 6938 6939 6940 6941 + 6942 6942 6943 6944 6945 6946 6947 6948 6948 6949 6950 6951 6952 6953 6953 6954 + 6955 6956 6957 6958 6959 6959 6960 6961 6962 6963 6964 6965 6965 6966 6967 6968 + 6969 6970 6970 6971 6972 6973 6974 6975 6976 6976 6977 6978 6979 6980 6981 6981 + 6982 6983 6984 6985 6986 6987 6987 6988 6989 6990 6991 6992 6992 6993 6994 6995 + 6996 6997 6998 6998 6999 7000 7001 7002 7003 7004 7004 7005 7006 7007 7008 7009 + 7009 7010 7011 7012 7013 7014 7015 7015 7016 7017 7018 7019 7020 7020 7021 7022 + 7023 7024 7025 7026 7026 7027 7028 7029 7030 7031 7031 7032 7033 7034 7035 7036 + 7037 7037 7038 7039 7040 7041 7042 7043 7043 7044 7045 7046 7047 7048 7048 7049 + 7050 7051 7052 7053 7054 7054 7055 7056 7057 7058 7059 7059 7060 7061 7062 7063 + 7064 7065 7065 7066 7067 7068 7069 7070 7070 7071 7072 7073 7074 7075 7076 7076 + 7077 7078 7079 7080 7081 7082 7082 7083 7084 7085 7086 7087 7088 7089 7090 7091 + 7092 7093 7094 7095 7096 7097 7098 7099 7100 7101 7102 7103 7104 7105 7106 7107 + 7108 7109 7110 7111 7112 7113 7114 7115 7116 7117 7118 7119 7120 7121 7122 7123 + 7124 7125 7126 7127 7128 7129 7130 7131 7132 7133 7134 7135 7136 7137 7138 7139 + 7140 7141 7142 7143 7144 7145 7146 7147 7148 7149 7150 7151 7152 7153 7154 7155 + 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171 + 7172 7173 7174 7175 7176 7177 7178 7179 7180 7181 7182 7183 7184 7185 7186 7187 + 7188 7189 7190 7191 7192 7193 7194 7195 7196 7197 7198 7199 7200 7201 7202 7203 + 7204 7205 7206 7207 7208 7209 7210 7211 7212 7213 7214 7215 7216 7217 7218 7219 + 7220 7221 7222 7223 7224 7225 7226 7227 7228 7229 7230 7231 7232 7233 7234 7235 + 7236 7237 7238 7239 7240 7241 7242 7243 7244 7245 7246 7247 7248 7249 7250 7251 + 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 + 7268 7269 7270 7271 7272 7273 7274 7275 7276 7277 7278 7279 7280 7281 7282 7283 + 7284 7285 7286 7287 7288 7289 7290 7291 7292 7293 7294 7295 7296 7297 7298 7299 + 7300 7301 7302 7303 7304 7305 7306 7307 7308 7309 7310 7311 7312 7313 7314 7315 + 7316 7317 7318 7319 7320 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 + 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 + 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 + 7364 7365 7366 7367 7368 7369 7370 7371 7372 7373 7374 7375 7376 7377 7378 7379 + 7380 7381 7382 7383 7384 7385 7386 7387 7388 7389 7390 7391 7392 7393 7394 7395 + 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 + 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 + 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437 7438 7439 7440 7441 7442 7443 + 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 + 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 + 7476 7477 7478 7479 7480 7481 7482 7483 7484 7485 7486 7487 7488 7489 7490 7491 + 7492 7493 7494 7495 7496 7497 7498 7499 7500 7501 7502 7503 7504 7505 7506 7507 + 7508 7509 7510 7511 7512 7513 7514 7515 7516 7517 7518 7519 7520 7521 7522 7523 + 7524 7525 7526 7527 7528 7529 7530 7531 7532 7533 7534 7535 7536 7537 7538 7539 + 7540 7541 7542 7543 7544 7545 7546 7547 7548 7549 7550 7551 7552 7553 7554 7555 + 7556 7557 7558 7559 7560 7561 7562 7563 7564 7565 7566 7567 7568 7569 7570 7571 + 7572 7573 7574 7575 7576 7577 7578 7579 7580 7581 7582 7583 7584 7585 7586 7587 + 7588 7589 7590 7591 7592 7593 7594 7595 7596 7597 7598 7599 7600 7601 7602 7603 + 7604 7605 7606 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 + 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 + 7636 7637 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 + 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 7666 7667>; //qcom,mdss-dsi-acl-on-command = [ // 39 01 00 00 00 00 06 F0 55 AA 52 08 00 From 65fc0f1e657fc589f5e8454a37f8fb2821ecbcaa Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 1 Jul 2022 16:30:34 +0800 Subject: [PATCH 0832/1247] arm/dt: miami: delete fod detection because it's not stable arm/dt: Delete fod detection, because it's not stable. Touch can get fps state, cause touch don't report framework boost event. Touch now think fod enable as default. Change-Id: Ib2b1a81e36ae782b22c5615e16cc5fcc0f074dd3 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2320304 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Chuang He Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index ccddbe2a541e..3f868ea36735 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -100,7 +100,6 @@ mmi,power-off-suspend; mmi,enable-gestures; mmi,usb-charger-detection; - mmi,fod_detection; mmi,fod_coords = <540 2159>; }; }; From 539b452c402c4e5015f4618f5911be38d1c1304a Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 1 Jul 2022 05:19:51 -0500 Subject: [PATCH 0833/1247] Revert "(CR): arm/dts: disable ICO for sc89890H" Disable ICO will load to factory cp test failed, because recipe enable main charger FET before cp test. Disable ICO will also load PG=0 when force dpdm. This reverts commit 4be6022443074c148904048f186372574c0cd90a. Change-Id: I23e960c97dce76735d099b5259efbba4cf5facfc Reviewed-on: https://gerrit.mot.com/2320438 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 69fd32a67177..a0318e47e919 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -108,6 +108,7 @@ ti,bq2589x,term-current = <128>; ti,bq2589x,enable-auto-dpdm; ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; ti,bq2589x,vindpm = <4700>; }; From cc710253fd6d0dc27a7b53849048211b50d0c1f9 Mon Sep 17 00:00:00 2001 From: yaozm1 Date: Mon, 4 Jul 2022 17:26:58 +0800 Subject: [PATCH 0834/1247] arm/dts:penang:init audio dts config remove aw882xx and i2s config; add aw87xxx config. Change-Id: Ie921695536de268e688c873c96c59c488da11016 Signed-off-by: yaozm1 Reviewed-on: https://gerrit.mot.com/2322069 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-audio-penang-overlay.dtsi | 71 +++++++++-------------------- 1 file changed, 21 insertions(+), 50 deletions(-) diff --git a/qcom/holi-audio-penang-overlay.dtsi b/qcom/holi-audio-penang-overlay.dtsi index d1412105625e..0ea5199e5ccc 100644 --- a/qcom/holi-audio-penang-overlay.dtsi +++ b/qcom/holi-audio-penang-overlay.dtsi @@ -4,20 +4,6 @@ #include #include -&tlmm{ - aw882xx_irq_default: aw882xx_irq_default { - mux { - pins = "gpio59"; - function = "gpio"; - }; - config { - pins = "gpio59"; - drive-strength = <2>; /* 2 MA */ - bias-pull-up; - }; - }; -}; - &cdc_dmic01_gpios { status = "disabled"; }; @@ -70,19 +56,6 @@ qcom,msm-mi2s-lines = <0>; }; -&q6core { - cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { - compatible = "qcom,msm-cdc-pinctrl"; - pinctrl-names = "aud_active", "aud_sleep"; - pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active - &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; - pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep - &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; - qcom,lpi-gpios; - #gpio-cells = <0>; - }; -}; - &bolero { qcom,num-macros = <3>; qcom,bolero-version = <5>; @@ -247,11 +220,10 @@ }; &holi_snd { - qcom,model = "holi-9370_aw882xx-snd-card"; - qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,model = "holi-9370_aw87xxx-snd-card"; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; - qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + qcom,mi2s-audio-intf = <0>; qcom,audio-routing = "AMIC1", "Analog Mic1", @@ -295,34 +267,33 @@ qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, - <&wcd937x_codec>,<&aw882xxacf>; + <&wcd937x_codec>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", - "wcd937x_codec", "aw882xx_codec"; + "wcd937x_codec"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se10_i2c { +&qupv3_se7_i2c_pins { status = "ok"; - aw882xxacf: aw882xxacf_smartpa@34 { - compatible = "awinic,aw882xxacf_smartpa"; - reg = <0x34>; - pinctrl-names = "default"; - pinctrl-0 = <&aw882xx_irq_default>; - irq-gpio = <&tlmm 59 0x2008>; - dc-flag = <0>; - sound-channel = <0>; - aw-tx-topo-id = <0x1000ff00>; - aw-rx-topo-id = <0x1000ff01>; - aw-rx-port-id = <0x1002>; - aw-tx-port-id = <0x1003>; - aw-re-min = <4000>; - aw-re-max = <30000>; - aw-cali-mode = "aw_attr"; - status = "okay"; - }; + aw887xx_smartpa_0: aw87xxx_pa@58 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x58>; + dev_index = < 0 >; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0xb030>; + status = "okay"; + }; + aw887xx_smartpa_1: aw87xxx_pa@59 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x59>; + dev_index = < 1 >; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0xb032>; + status = "okay"; + }; }; &va_cdc_dma_0_tx { From 91abe94eea8869f72e7224180f8bec57fda54c61 Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Wed, 6 Jul 2022 10:23:48 +0800 Subject: [PATCH 0835/1247] arm/dts: init penang dts init devicetree for penang Change-Id: I3b8996532c29421673a37f8ea1b348618ae367c6 Signed-off-by: zhaoxp3 Reviewed-on: https://gerrit.mot.com/2323933 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/Makefile | 10 +- qcom/blair-moto-penang-base.dts | 45 -- qcom/blair-nopmi-penang-common-overlay.dtsi | 38 - qcom/blair-penang-dvt1-overlay.dts | 203 ------ qcom/blair-penang-dvt2-overlay.dts | 133 ---- qcom/blair-penang-evb2-overlay.dts | 24 - qcom/blair-pm6125-penang-common-overlay.dtsi | 21 - qcom/discrete_charging_penang.dtsi | 356 ++-------- ...y.dtsi => holi-penang-common-overlay.dtsi} | 672 ++++++++++-------- ...erlay.dts => holi-penang-evt1-overlay.dts} | 8 +- qcom/penang-display.dtsi | 314 +------- qcom/penang-fmr-overlay.dtsi | 5 + qcom/penang-fps-overlay.dtsi | 23 +- qcom/penang-sensors.dtsi | 38 - qcom/penang-touchscreen.dtsi | 16 - qcom/penang-wl286xx.dtsi | 74 -- 16 files changed, 489 insertions(+), 1491 deletions(-) delete mode 100644 qcom/blair-moto-penang-base.dts delete mode 100644 qcom/blair-nopmi-penang-common-overlay.dtsi delete mode 100644 qcom/blair-penang-dvt1-overlay.dts delete mode 100644 qcom/blair-penang-dvt2-overlay.dts delete mode 100644 qcom/blair-penang-evb2-overlay.dts delete mode 100644 qcom/blair-pm6125-penang-common-overlay.dtsi rename qcom/{blair-penang-common-overlay.dtsi => holi-penang-common-overlay.dtsi} (64%) rename qcom/{blair-penang-evb1-overlay.dts => holi-penang-evt1-overlay.dts} (75%) create mode 100644 qcom/penang-fmr-overlay.dtsi delete mode 100644 qcom/penang-wl286xx.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 9a93febe658b..9f488872dce8 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -101,15 +101,9 @@ blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_PENANG_DTB) += \ - blair-penang-evb1-overlay.dtbo \ - blair-penang-evb2-overlay.dtbo \ - blair-penang-dvt1-overlay.dtbo \ - blair-penang-dvt2-overlay.dtbo + holi-penang-evt1-overlay.dtbo -blair-penang-evb1-overlay.dtbo-base := blair-moto-penang-base.dtb -blair-penang-evb2-overlay.dtbo-base := blair-moto-penang-base.dtb -blair-penang-dvt1-overlay.dtbo-base := blair-moto-penang-base.dtb -blair-penang-dvt2-overlay.dtbo-base := blair-moto-penang-base.dtb +holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evt1-overlay.dtbo \ diff --git a/qcom/blair-moto-penang-base.dts b/qcom/blair-moto-penang-base.dts deleted file mode 100644 index e9b5f91a2ff2..000000000000 --- a/qcom/blair-moto-penang-base.dts +++ /dev/null @@ -1,45 +0,0 @@ -/* Copyright (c) 2020, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; - -#include "blair.dtsi" - -/ { - qcom,board-id = <0 0>; - channel-id-map = ""; -/* - * Some nodes need labels assigned to appear in __symbols__ - */ - chosen: chosen { }; - aliases: aliases { }; - reserved_memory: reserved-memory { }; - mot_batterydata: qcom,battery-data { }; - utags: utags { }; - hw: hw { }; -}; - -&reserved_memory { - /delete-node/ ramoops; -}; - -&tlmm { - /delete-node/ nfc; -}; - -&firmware { - /delete-node/ android; -}; - -&mdss_dsi_phy0 { - /delete-property/ qcom,dsi-pll-ssc-en; -}; diff --git a/qcom/blair-nopmi-penang-common-overlay.dtsi b/qcom/blair-nopmi-penang-common-overlay.dtsi deleted file mode 100644 index 8d62277fa8a1..000000000000 --- a/qcom/blair-nopmi-penang-common-overlay.dtsi +++ /dev/null @@ -1,38 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#include "blair-penang-common-overlay.dtsi" -#include "blair-nopmi-moto-common-overlay.dtsi" -#include "tcpc_config.dtsi" -#include "discrete-rt-pd-manger.dtsi" -#include "sgm7220.dtsi" -#include "rt9426a.dtsi" -#include "discrete_charging.dtsi" - -&qupv3_se8_i2c { - status = "okay"; - oz8806@2f { - compatible = "o2micro,oz8806"; - reg = <0x2f>; - status = "okay"; - }; - - cw2217@64 { - compatible = "cellwise,cw2217"; - reg = <0x64>; - status = "okay"; - - df-serialnum = "SB18D33989"; - #include "bat_setting/CW_md50-scud-5000mah.dtsi" - #include "bat_setting/CW_md50-amperex-5000mah.dtsi" - }; -}; - diff --git a/qcom/blair-penang-dvt1-overlay.dts b/qcom/blair-penang-dvt1-overlay.dts deleted file mode 100644 index e3343d6a222b..000000000000 --- a/qcom/blair-penang-dvt1-overlay.dts +++ /dev/null @@ -1,203 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "blair-nopmi-penang-common-overlay.dtsi" - -/ { - model = "penang"; - compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xB100>; -}; - -&rt9426a { - interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; -}; -&rt9426a_alert { - mux { - pins = "gpio38"; - function = "gpio"; - }; - - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-up; - }; -}; - -&tlmm { - ets_vcc_high { - mux { - pins = "gpio6"; - }; - - config { - pins = "gpio6"; - }; - }; - - ets_vcc_low { - mux { - pins = "gpio6"; - }; - - config { - pins = "gpio6"; - }; - }; - - nfc_enable_active { - mux { - pins = "gpio48"; - }; - - config { - pins = "gpio48"; - }; - }; - - nfc_enable_suspend { - mux { - pins = "gpio48"; - }; - - config { - pins = "gpio48"; - }; - }; - - sgm7220_en_n: sgm7220_en_n { - mux { - pins = "gpio58"; - function = "gpio"; - }; - - config { - pins = "gpio58"; - drive-strength = <2>; - bias-pull-down; - input-enable; - }; - }; -}; - -&sgm7220 { - pinctrl-names = "default"; - pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; -}; - -&et528 { - egistec,gpio_vcc_en = <&tlmm 6 0x0>; -}; - -&silead { - avdd-gpios = <&tlmm 6 0x0>; -}; - -&qupv3_se7_i2c { - st21nfc@8 { - status = "diabled"; - }; - - nq@28 { - compatible = "qcom,sn-nci"; - mmi,status = "/chosen", "mmi,nfc", "nxp"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 48 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - interrupt-parent = <&tlmm>; - interrupts = <9 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>; - }; -}; - -&sx937x { - Semtech,ref-phases-a = <5>; - Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <0xff>; - Semtech,button-flag = <0x1f>; - Semtech,reg-num = <58>; - Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x886 /*AFE_PARAM_PH0*/ - 0x8034 0x886 /*AFE_PARAM_PH1*/ - 0x8040 0x886 /*AFE_PARAM_PH2*/ - 0x804C 0x8BE /*AFE_PARAM_PH3*/ - 0x8058 0x866 /*AFE_PARAM_PH4*/ - 0x8064 0x86E /*AFE_PARAM_PH5*/ - 0x8070 0x86E /*AFE_PARAM_PH6*/ - 0x807C 0x85E /*AFE_PARAM_PH7*/ - /*set CS3 to hiz, because it used as IRQ pin*/ - 0x8030 0xFFF9FD /*REG_AFEPH_PH0, CS0, ANT1, Bottom center*/ - 0x803C 0xFFD9FF /*REG_AFEPH_PH1, CS4, ANT2, Top right*/ - 0x8048 0xFEF9FF /*REG_AFEPH_PH2, CS5, ANT7, Bottom Right*/ - 0x8054 0xF7F9FF /*REG_AFEPH_PH3, CS6, ANT4, Top Right*/ - 0x8060 0xFFF97F /*REG_AFEPH_PH4, CS2, ANT5, Top center*/ - 0x806C 0xFFF9EF /*REG_AFEPH_PH5, CS1, ANT1/7_REF, Bottom_Ref*/ - 0x8078 0xBFF9FF /*REG_AFEPH_PH6, CS7, ANT4 REF, Middle*/ - 0x8084 0xFFF9FF /*REG_AFEPH_PH7, NOT USE*/ - 0x8098 0x7A36 - 0x80B8 0x7636 - 0x80D8 0x5959 - 0x80F8 0x3939 - 0x8118 0x2C2C - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0x5A40 - 0x80A0 0x1E1E00E1 - 0x80C0 0x404000E2 - 0x80E0 0x222200E1 - 0x8100 0x161600E2 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8090 0x41DB3000 - 0x80B0 0x7FB33000 - 0x80D0 0x40CD3000 - 0x80F0 0x68BD3000 - 0x8110 0x30DD3000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD67000 - 0x8088 0x300005 - 0x80A8 0x300005 - 0x80C8 0x300005 - 0x80E8 0x300005 - 0x8108 0x300005 - 0x8128 0x3600000 - 0x8148 0x3600000 - 0x8168 0x300000 - 0x808C 0x60200060 - 0x80AC 0x60200060 - 0x80CC 0x60200060 - 0x80EC 0x60200060 - 0x810C 0x60200060 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - >; - - status = "ok"; -}; diff --git a/qcom/blair-penang-dvt2-overlay.dts b/qcom/blair-penang-dvt2-overlay.dts deleted file mode 100644 index 24a43f434d19..000000000000 --- a/qcom/blair-penang-dvt2-overlay.dts +++ /dev/null @@ -1,133 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "blair-nopmi-penang-common-overlay.dtsi" - -/ { - model = "penang"; - compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xB200>; -}; - -&rt9426a { - interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; -}; -&rt9426a_alert { - mux { - pins = "gpio38"; - function = "gpio"; - }; - - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-up; - }; -}; - -&tlmm { - ets_vcc_high { - mux { - pins = "gpio6"; - }; - - config { - pins = "gpio6"; - }; - }; - - ets_vcc_low { - mux { - pins = "gpio6"; - }; - - config { - pins = "gpio6"; - }; - }; - - nfc_enable_active { - mux { - pins = "gpio48"; - }; - - config { - pins = "gpio48"; - }; - }; - - nfc_enable_suspend { - mux { - pins = "gpio48"; - }; - - config { - pins = "gpio48"; - }; - }; - - sgm7220_en_n: sgm7220_en_n { - mux { - pins = "gpio58"; - function = "gpio"; - }; - - config { - pins = "gpio58"; - drive-strength = <2>; - bias-pull-down; - input-enable; - }; - }; -}; - -&sgm7220 { - pinctrl-names = "default"; - pinctrl-0 = <&sgm7220_int_n &sgm7220_en_n>; -}; - -&et528 { - egistec,gpio_vcc_en = <&tlmm 6 0x0>; -}; - -&silead { - avdd-gpios = <&tlmm 6 0x0>; -}; - -&qupv3_se7_i2c { - st21nfc@8 { - status = "diabled"; - }; - - nq@28 { - compatible = "qcom,sn-nci"; - mmi,status = "/chosen", "mmi,nfc", "nxp"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 48 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - interrupt-parent = <&tlmm>; - interrupts = <9 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>; - }; -}; - diff --git a/qcom/blair-penang-evb2-overlay.dts b/qcom/blair-penang-evb2-overlay.dts deleted file mode 100644 index 3cd0b51a280d..000000000000 --- a/qcom/blair-penang-evb2-overlay.dts +++ /dev/null @@ -1,24 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ - -/dts-v1/; -/plugin/; - -#include "blair-nopmi-penang-common-overlay.dtsi" - -/ { - model = "penang"; - compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xA200>; -}; - diff --git a/qcom/blair-pm6125-penang-common-overlay.dtsi b/qcom/blair-pm6125-penang-common-overlay.dtsi deleted file mode 100644 index 410bf321b99d..000000000000 --- a/qcom/blair-pm6125-penang-common-overlay.dtsi +++ /dev/null @@ -1,21 +0,0 @@ -/* Copyright (c) 2021, The Linux Foundation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 and - * only version 2 as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - */ -#include "blair-penang-common-overlay.dtsi" -#include "blair-pm6125-moto-common-overlay.dtsi" - -&pm7250b_charger { - dpdm-supply = <&usb2_phy0>; -}; - -&smb1394 { - status = "disabled"; -}; diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 1e22ede4efad..4344874fb5d0 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -9,8 +9,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ - #include +#include "sgm7220.dtsi" +#include "discrete-rt-pd-manger.dtsi" &pm6125_vadc { gpio6_div3{ @@ -32,27 +33,69 @@ &qupv3_se8_i2c { status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + df-serialnum = "SB18D24973"; + #include "bat_setting/CW_nd50-atl-5000mah.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" + }; + + sm5602@71 { + compatible = "sm,sm5602"; + reg = <0x71>; + //interrupt-parent = <&tlmm>; + //interrupts = <38 2>; + //qcom,irq-gpio = <&tlmm 38 0x0>; + + sm,en_temp_ex; + //sm,en_temp_in; + sm,en_batt_det; + sm,iocv_man_mode; + sm,misc = <0x0800>; + sm,aging_ctrl = <0x0121>; + sm,cycle_cfg = <0x7000>; + sm,rsns = <1>; + sm,fg_irq_set = <0x07FF>; + sm,low_soc1 = <1>; + sm,low_soc2 = <15>; + sm,v_l_alarm = <3400>; + sm,v_h_alarm = <4450>; + sm,battery_table_num = <0>; + sm,param_version = <3>; + sm,t_l_alarm_in = <54>; + sm,t_h_alarm_in = <1>; + sm,t_l_alarm_ex = <0xD3D8>; + sm,t_h_alarm_ex = <0x9245>; + sm,shutdown-delay-enable; + + df-serialnum = "SB18D24973"; + #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" + #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" + }; +}; + +&qupv3_se6_i2c { + status = "okay"; sgm4154x: sgm4154x@3B { status = "okay"; compatible = "sgm,sgm41542"; reg = <0x3B>; pinctrl-names = "default"; - pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; - #io-channel-cells = <1>; + pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; io-channel-names = "gpio3_div3"; interrupt-parent = <&tlmm>; interrupts = <12 0>; //irq num base on hardware design - sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design - sgm,chg-en-gpio = <&tlmm 92 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other - mmi,wls-en-gpio = <&tlmm 49 0>; + sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other - dpdm-supply = <&usb2_phy0>; + dpdm-supply = <&qusb_phy0>; mmi,qc3-support; - input-voltage-limit-microvolt = <4700000>; /* sw jeita parameter customer defined*/ enable_sw_jeita; @@ -82,159 +125,6 @@ temp_neg_10_thres = <0>; }; - bq25890: bq25890@6A { - status = "okay"; - compatible = "ti,bq2589x-1"; - reg = <0x6A>; - - pinctrl-names = "default"; - pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; - #io-channel-cells = <1>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; - - bq2589x_irq-gpio = <&tlmm 12 0>; - bq2589x_en-gpio = <&tlmm 92 0>; - mmi,wls-en-gpio = <&tlmm 49 0>; - dpdm-supply = <&usb2_phy0>; - - mmi,qc3-support; - ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ - ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ - ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; - ti,bq2589x,charge-voltage = <4450>; - ti,bq2589x,charge-current = <3000>; - ti,bq2589x,term-current = <128>; - ti,bq2589x,enable-auto-dpdm; - ti,bq2589x,enable-termination; - ti,bq2589x,enable-ico; - ti,bq2589x,use-absolute-vindpm; - ti,bq2589x,vindpm = <4700>; - }; - - mm8013@55 { - compatible = "mitsumi,mm8013c10"; - reg = <0x55>; - status = "okay"; - io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>; - io-channel-names = "batt_therm"; - - pinctrl-names = "default"; - pinctrl-0 = <&pmk8350_gpio1_adc_default>; - - }; - - rt1711h@4e { - dpm_caps { - /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ - dr_check = <2>; - }; - }; - -}; - -&qupv3_se2_i2c { - status = "okay"; - bq25960_master:bq25960-master@66 { - status = "okay"; - compatible = "ti,bq25960-master"; - reg = <0x66>; - sc8541-addr = <0x6B>; - sc8541-name = "sc8541-master"; - #io-channel-cells = <1>; - interrupt-parent = <&tlmm>; - interrupts = <57 0>; - irq-gpio = <&tlmm 57 0>; - }; - -}; - -&qupv3_se8_i2c { - status = "okay"; - bq25960_slave:bq25960-slave@67 { - status = "okay"; - compatible = "ti,bq25960-slave"; - reg = <0x67>; - sc8541-addr = <0x6C>; - sc8541-name = "sc8541-slave"; - #io-channel-cells = <1>; - interrupt-parent = <&tlmm>; - interrupts = <84 0>; - irq-gpio = <&tlmm 84 0>; - }; - -}; - -&qupv3_se2_i2c { - status = "okay"; - cps-wls-charger@30 { - status = "okay"; - compatible = "cps,wls-charger-cps4019"; - reg = <0x30>; - force_wls_pin = <&tlmm 37 0x00>; - cps_wls_int = <&tlmm 38 0x00>; - interrupt-parent = <&tlmm>; - interrupts = <38 0>; - interrupt-names = "cps_wls_int"; - - pinctrl-names = "default"; - pinctrl-0 = <&cps4019_irq>; - - io-channels = <&mmi_discrete_charger PSY_IIO_MMI_OTG_ENABLE>; - io-channel-names = "otg_enable"; - - main-charger-name = "master_chg"; - supplied-from = "battery"; - - wireless-fw-name = "cps4019.hex"; - fw_ver_major = <0>; - fw_ver_minor = <6>; - - use_bl_in_h; - }; -}; - -&tlmm { - sgm4154x_gpio_pins: sgm4154x_gpio_pins { - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - drive-strength = <2>; - bias-pull-up; - input-enable; - }; - }; - bq2589x_irq: bq2589x_irq { - mux { - pins = "gpio12"; - function = "gpio"; - }; - - config { - pins = "gpio12"; - drive-strength = <2>; - bias-pull-up; - input-enable; - }; - }; - - cps4019_irq: cps4019_irq { - mux { - pins = "gpio38"; - function = "gpio"; - }; - - config { - pins = "gpio38"; - drive-strength = <2>; - bias-pull-up; - input-enable; - }; - }; }; &soc { @@ -242,12 +132,11 @@ status = "ok"; compatible = "mmi,mmi-charger"; mmi,enable-charging-limit; - mmi,upper-limit-capacity = <65>; - mmi,lower-limit-capacity = <60>; + mmi,upper-limit-capacity = <70>; + mmi,lower-limit-capacity = <65>; mmi,heartbeat-interval = <5000>; - mmi,dcp-power-max = <7500>; + mmi,dcp-power-max = <10000>; mmi,hvdcp-power-max = <15000>; - mmi,wls-power-max = <5000>; }; mmi_discrete_charger: mmi,discrete-charging { @@ -257,128 +146,41 @@ battery-names = "battery"; supplied-from = "mmi_battery"; - mmi,chrg-iterm-ma = <196>; + mmi,chrg-iterm-ma = <243>; mmi,fg-iterm-ma = <500>; - mmi,batt-profile-fv-mv = <4512>; - mmi,max-fv-mv = <4480>; + mmi,max-fv-mv = <4450>; mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <1200000>; - mmi,wls-max-icl-ua = <1000000>; - mmi,df-serialnum = "SB18D50729"; - mmi,mmi-temp-zones = <0 4200 800 0>, - <10 4250 2000 1000>, - <15 0 2000 2000>, - <45 0 4000 4000>, - <60 4200 4000 0>; - mmi,mmi-ffc-zones = - <15 4480 196 500>, - <25 4512 590 500>, - <35 4512 712 500>, - <45 4512 804 500>, - <60 4480 196 500>; + mmi,df-serialnum = "SB18D24973"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 4000 0>; + mmi,thermal-mitigation = <4000000 3000000 2500000 2000000 1500000 1200000 900000 600000 300000>; - mmi,usb-pd-supported; - mmi,cfg-chgmod-to-fg; - }; - - mmi_chrg: mmi_chrg_manager { - compatible = "mmi,chrg-manager"; - #io-channel-cells = <1>; - io-channels = <&mmi_discrete_charger PSY_IIO_HW_CURRENT_MAX>, - <&mmi_discrete_charger PSY_IIO_USB_CHARGING_ENABLED>, - <&mmi_discrete_charger PSY_IIO_TYPEC_MODE>, - <&mmi_discrete_charger PSY_IIO_INPUT_CURRENT_SETTLED>, - <&mmi_discrete_charger PSY_IIO_PD_ACTIVE>, - <&mmi_discrete_charger PSY_IIO_USB_TERMINATION_ENABLED>, - <&mmi_discrete_charger PSY_IIO_USB_REAL_TYPE>, - <&mmi_discrete_charger PSY_IIO_DP_DM>, - <&mmi_discrete_charger PSY_IIO_MMI_QC3P_POWER>, - <&mmi_discrete_charger PSY_IIO_CP_ENABLE>, - <&bq25960_master PSY_IIO_CP_ENABLE>, - <&bq25960_master PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, - <&bq25960_master PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, - <&bq25960_master PSY_IIO_CP_STATUS1>, - <&bq25960_master PSY_IIO_CP_CLEAR_ERROR>, - <&bq25960_slave PSY_IIO_CP_ENABLE>, - <&bq25960_slave PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, - <&bq25960_slave PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, - <&bq25960_slave PSY_IIO_CP_STATUS1>, - <&bq25960_slave PSY_IIO_CP_CLEAR_ERROR>; - - io-channel-names = "hw_current_max", - "charging_enabled", - "typec_mode", - "input_current_settled", - "pd_active", - "termination_enabled", - "usb_real_type", - "battery_dp_dm", - "usb_qc3p_power", - "mmi_cp_enabled_status", - "cp_enabled", - "cp_input_current_now", - "cp_input_voltage_settled", - "cp_status1", - "cp_clear_error", - "cp_slave_enabled", - "cp_slave_input_current_now", - "cp_slave_input_voltage_settled", - "cp_slave_status1", - "cp_slave_clear_error"; - - // qcom,usbpd-phandle = <&pm7250b_pdphy>; - mmi,pps-volt-steps = <20000>; - mmi,pps-curr-steps = <100000>; - mmi,pd-volt-max = <11000000>; - mmi,pd-curr-max = <6200000>; - mmi,batt-curr-boost = <300000>; - mmi,batt-ovp-lmt = <4550000>; - mmi,typec-middle-current = <2000000>; - mmi,pd-allow-min-current = <1000000>; - mmi,step-first-current-comp = <0>; - mmi,dont-rerun-aicl; - mmi,qc3p-max-ibus-ma = <3000>; - mmi,qc3p-volt-steps = <20000>; - mmi,qc3p-volt-max = <10000000>; - mmi,chrg-temp-zones-num = <5>; - mmi,mmi-chrg-temp-zones = - <0 4200 800 0 0 0 0 0 0>, - <10 4250 2000 4480 1000 0 0 0 0>, - <15 4480 2000 0 0 0 0 0 0>, - <45 4250 12400 4300 8000 4480 6000 4510 4000>, - <60 4200 4000 0 0 0 0 0 0>; - mmi,thermal-mitigation = - <12400000>, - <11000000>, - <10000000>, - <9000000>, - <8000000>, - <7000000>, - <6000000>, - <5000000>, - <4000000>, - <3000000>, - <2000000>, - <1000000>; - charger_device_0 { - chrg-name = "pmic-sw"; - psy-name = "battery"; - charging-curr-limited = <300000>; }; - charger_device_1 { - chrg-name = "cp-master"; - psy-name = "bq25960-master"; - charging-curr-min = <1500000>; +}; + + +&tlmm { + + chg_irq_default: chg_irq_default { + /* IRQ */ + mux { + pins = "gpio59"; + function = "gpio"; }; - charger_device_2 { - chrg-name = "cp-slave"; - psy-name = "bq25960-slave"; - charging-curr-min = <2000000>; + + config { + pins = "gpio59"; + bias-pull-up; + drive-strength = <2>; /* 2 MA */ + input-enable; }; }; }; - diff --git a/qcom/blair-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi similarity index 64% rename from qcom/blair-penang-common-overlay.dtsi rename to qcom/holi-penang-common-overlay.dtsi index 8b9f43e8e7ae..fc48b915705d 100644 --- a/qcom/blair-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -10,18 +10,18 @@ * GNU General Public License for more details. */ #include "holi-audio-penang-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" + #include #include #include "holi-pmic-overlay-pm6125.dtsi" #include "holi-thermal-overlay-pm6125.dtsi" #include "display/holi-sde-display-mtp-pm6125.dtsi" -#include "display/blair-sde-display-mtp.dtsi" #include "penang-fps-overlay.dtsi" #include "penang-display.dtsi" #include "penang-touchscreen.dtsi" -#include "penang-sensors.dtsi" -#include "camera/blair-camera-sensor-mot-penang-overlay.dtsi" -#include "penang-wl286xx.dtsi" +#include "penang-fmr-overlay.dtsi" +#include "discrete_charging_penang.dtsi" #include "moto_therm_sys_temp.dtsi" &wcd937x_codec { @@ -37,8 +37,79 @@ cdc-vdd-mic-bias-supply = <>; }; +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "disabled"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + &tlmm { + nfc { nfc_int_active: nfc_int_active { /* active state */ @@ -72,12 +143,13 @@ nfc_enable_active: nfc_enable_active { mux { - pins = "gpio6"; + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -85,12 +157,13 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio6"; + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -131,72 +204,6 @@ }; }; -/* Dummy LDO reference */ -&sdhc_1 { - status = "ok"; - - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&sdc1_on>; - pinctrl-1 = <&sdc1_off>; - - vdd-supply = <&L24A>; - qcom,vdd-voltage-level = <2960000 2960000>; - qcom,vdd-current-level = <0 570000>; - - vdd-io-supply = <&L11A>; - qcom,vdd-io-always-on; - qcom,vdd-io-lpm-sup; - qcom,vdd-io-voltage-level = <1800000 1800000>; - qcom,vdd-io-current-level = <0 325000>; -}; - -&sdhc_2 { - status = "ok"; - - pinctrl-names = "default", "sleep"; - pinctrl-0 = <&sdc2_on>; - pinctrl-1 = <&sdc2_off>; - - vdd-supply = <&L22A>; - qcom,vdd-voltage-level = <2960000 2960000>; - qcom,vdd-current-level = <0 800000>; - - vdd-io-supply = <&L5A>; - qcom,vdd-io-voltage-level = <1800000 2960000>; - qcom,vdd-io-current-level = <0 22000>; - - cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; -}; - -&ufsphy_mem { - compatible = "qcom,ufs-phy-qmp-v4-yupik"; - - vdda-phy-supply = <&L7A>; - vdda-pll-supply = <&L4A>; - vdda-phy-max-microamp = <85700>; - vdda-pll-max-microamp = <18300>; - - status = "ok"; -}; - -&ufshc_mem { - vdd-hba-supply = <&gcc_ufs_phy_gdsc>; - vdd-hba-fixed-regulator; - - vcc-supply = <&L24A>; - vcc-voltage-level = <2950000 2960000>; - vcc-max-microamp = <800000>; - - vccq2-supply = <&L11A>; - vccq2-max-microamp = <800000>; - vccq2-voltage-level = <1800000 1800000>; - - qcom,vddp-ref-clk-supply = <&L4A>; - qcom,vddp-ref-clk-max-microamp = <100>; - - status = "ok"; -}; - &pmk8350_vadc { pmk8350_qtm_n_therm { reg = ; @@ -231,59 +238,22 @@ }; }; -&pmr735a_gpios { - camera_therm { - camera_therm_default:camera_therm_default { - pins = "gpio3"; - bias-high-impedance; - }; - }; -}; - -&pmr735a_vadc { - status = "ok"; - - pinctrl-names = "default"; - pinctrl-0 = <&camera_therm_default>; - - pmr735a_camera_therm { - reg = ; - label = "pmr735a_camera_therm"; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - qcom,pre-scaling = <1 1>; - }; -}; - -&pmr735a_4{ - pmr735a_adc_tm_iio: adc_tm@3400 { - compatible = "qcom,adc-tm5-iio"; - reg = <0x3400>; - #thermal-sensor-cells = <1>; - #address-cells = <1>; - #size-cells = <0>; - io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; - - pmr735a_camera_therm { - reg = ; - qcom,ratiometric; - qcom,hw-settle-time = <200>; - }; - }; -}; - &qupv3_se7_i2c { status = "ok"; #address-cells = <1>; #size-cells = <0>; st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 6 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; + status = "disabled"; + }; + + nq@28 { + compatible = "qcom,sn-nci"; + mmi,status = "/chosen", "mmi,nfc", "nxp"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; @@ -295,173 +265,14 @@ }; }; -&thermal_zones { - sdm-skin-therm-usr { - status = "disabled"; - }; - rear-cam-therm-usr { - status = "disabled"; - }; - camera-therm-usr { - status = "disabled"; - }; +&pm8008_8 { + status = "disabled"; +}; - quiet-therm-usr { - status = "disabled"; - }; - - pa-therm0-usr { - status = "disabled"; - }; - - pa-therm1-usr { - status = "disabled"; - }; - - xo-therm-usr { - status = "disabled"; - }; - msm_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - cam_flash_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm2 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - pa_therm1 { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - - active-config1 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - xo_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - qtm_n_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; - - qtm_e_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; +&pm8008_9 { + status = "disabled"; }; &soc { @@ -490,11 +301,288 @@ }; }; -/* Primary USB port related QUSB2 PHY */ -&usb2_phy0 { - qcom,param-override-seq = - <0xa6 0x6c /* override_x0 */ - 0x25 0x70 /* override_x1 */ - 0x16 0x74>; /* override x2 */ +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" }; +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + + cam_flash_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; + +&qupv3_se8_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&pm6125_l9>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x8024 0x7F00 + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x8A6 + 0x8034 0x88E + 0x8040 0x8A6 + 0x804C 0x88E + 0x8058 0x88E + 0x8064 0x88E + 0x8070 0x88E + 0x807C 0x88E + 0x8030 0xFFD9FF + 0x803C 0xBFF9FF + 0x8048 0xFFF9FD + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF97F + 0x8078 0xFFF9EF + 0x8084 0xBFF9FF + 0x8098 0x693E + 0x80B8 0x3131 + 0x80D8 0x6833 + 0x80F8 0x2929 + 0x8118 0x4C4C + 0x8138 0x8E + 0x8158 0x8E + 0x8178 0x5A40 + 0x80A0 0x22220001 + 0x80C0 0x1F1F0001 + 0x80E0 0x48540002 + 0x8100 0x1D1D001A + 0x8120 0x1A1A0002 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x10 + 0x8194 0x12 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x2CD87000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x600000 + 0x8148 0x600000 + 0x8168 0x300000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200018 + 0x80EC 0x60200030 + 0x810C 0x60200018 + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 + >; + status = "ok"; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/blair-penang-evb1-overlay.dts b/qcom/holi-penang-evt1-overlay.dts similarity index 75% rename from qcom/blair-penang-evb1-overlay.dts rename to qcom/holi-penang-evt1-overlay.dts index 309ec88cbb1e..587571ac77da 100644 --- a/qcom/blair-penang-evb1-overlay.dts +++ b/qcom/holi-penang-evt1-overlay.dts @@ -13,12 +13,12 @@ /dts-v1/; /plugin/; -#include "blair-pm6125-penang-common-overlay.dtsi" +#include "holi-penang-common-overlay.dtsi" / { model = "penang"; - compatible = "qcom,blair-penang", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xA100>; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA100>; }; diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 554c87e6aeaf..f533c8a22b49 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -1,313 +1,27 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" - -&display_panel_avdd { - /delete-property/ gpio; - /delete-property/ pinctrl-0; -}; - - -&tlmm { - lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { - mux { - pins = "gpio85"; - function = "gpio"; - }; - - config { - pins = "gpio85"; - drive-strength = <8>; - bias-disable = <0>; - output-high; - }; - }; - - lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { - mux { - pins = "gpio86"; - function = "gpio"; - }; - - config { - pins = "gpio86"; - drive-strength = <8>; - bias-disable = <0>; - output-high; - }; - }; -}; - -&soc { - lcd_panel_avdd: lcd_gpio_regulator@1 { - compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avdd"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 85 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&lcd_panel_avdd>; - pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsp_en_default>; - }; - - lcd_panel_avee: lcd_gpio_regulator@2 { - compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avee"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 86 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&lcd_panel_avee>; - pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsn_en_default>; - }; - - dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { - #address-cells = <1>; - #size-cells = <0>; - - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <62000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <30>; - }; - - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <2>; - }; - - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-post-on-sleep = <10>; - }; - }; -}; &sde_dsi { - /delete-property/ lab-supply; - /delete-property/ ibb-supply; - /delete-property/ vddio-supply; - /delete-property/ qcom,dsi-default-panel; - /delete-property/ avdd-supply; - vddio-supply = <&L13A>; - lab-supply = <&lcd_panel_avdd>; - ibb-supply = <&lcd_panel_avee>; - - qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; + qcom,dsi-default-panel = <&mot_dummy_vid_qhd>; }; -&dsi_tm_nt36672e_678_fhdp_120_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; &mot_dummy_vid_qhd { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 - 02 01 02 04 00 0C 12]; - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - -&dsi_csot_nt36672e_678_fhdp_120_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "csot"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - - -&dsi_tianma_nt36672e_678_fhdp_120_video_v1 { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - -&qupv3_se10_i2c { - status = "ok"; - - lcd_backlight@36 { - compatible = "awinic,aw99703-bl"; - reg = <0x36>; - - /* Awinic, aw99703 */ - aw99703,hwen-gpio = <&tlmm 60 0>; - aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ - aw99703,using-lsb; - aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ - aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ - aw99703,switch-freq = <1>; /* 1000kHz(default) */ - aw99703,auto-freq-high = <0x10>; - aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <3>; - aw99703,turn-on-ramp = <0x00>; /* 512us */ - aw99703,turn-off-ramp = <0x04>; /* 8ms */ - aw99703,pwm-trans-dim = <0>; /* 2ms */ - aw99703,i2c-trans-dim = <1>; /* 128ms */ - aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ - aw99703,map-type = <0>; /* 0 exponential, 4 linear */ - aw99703,work-mode = <1>; /* backlight */ - aw99703,default-brightness = <1810>; - - }; -}; - -&qupv3_se10_i2c_sleep { - config { - /delete-property/ bias-disable; - bias-pull-up; - input-enable; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; }; }; diff --git a/qcom/penang-fmr-overlay.dtsi b/qcom/penang-fmr-overlay.dtsi new file mode 100644 index 000000000000..7c8b3bb156eb --- /dev/null +++ b/qcom/penang-fmr-overlay.dtsi @@ -0,0 +1,5 @@ +&tlmm { +}; + +&soc { +}; diff --git a/qcom/penang-fps-overlay.dtsi b/qcom/penang-fps-overlay.dtsi index 364d5a440a08..bfc368bf1c2c 100644 --- a/qcom/penang-fps-overlay.dtsi +++ b/qcom/penang-fps-overlay.dtsi @@ -44,12 +44,12 @@ ets_vcc_high: ets_vcc_high { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio87"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio87"; drive-strength = <2>; /* 2 MA */ output-high; }; @@ -58,12 +58,12 @@ ets_vcc_low: ets_vcc_low { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio87"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio87"; drive-strength = <2>; /* 2 MA */ output-low; }; @@ -136,7 +136,7 @@ interrupts = <17 0x0>; fp-ctrl-power; fp-gpio-vcc-enable; - egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_vcc_en = <&tlmm 87 0x0>; egistec,gpio_irq = <&tlmm 17 0x0>; egistec,gpio_reset = <&tlmm 18 0x0>; pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", @@ -148,17 +148,4 @@ pinctrl-4 = <&ets_vcc_low>; }; - silead: silead { - compatible = "sil,silead_fp"; - status = "ok"; - reg = <0>; - interrupt-parent = <&tlmm>; - interrupts = <17 0x0>; - avdd-gpios = <&tlmm 38 0x0>; - irq-gpios = <&tlmm 17 0x0>; - rst-gpios = <&tlmm 18 0x0>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&fps_rst_active &fps_int_active>; - pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; - }; }; diff --git a/qcom/penang-sensors.dtsi b/qcom/penang-sensors.dtsi index f3426b6eb2ab..14e283ce4728 100755 --- a/qcom/penang-sensors.dtsi +++ b/qcom/penang-sensors.dtsi @@ -11,41 +11,3 @@ * GNU General Public License for more details. */ -&tlmm { - pen_int_default: pen_int_default { - mux { - pins = "gpio84"; - function = "gpio"; - }; - config { - pins = "gpio84"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-no-pull; - }; - }; - - pen_int_sleep: pen_int_sleep { - mux { - pins = "gpio84"; - function = "gpio"; - }; - config { - pins = "gpio84"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-no-pull; - }; - }; -}; - -&soc { - pen_detect{ - compatible = "rohm,bu520xx_pen_detect"; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&pen_int_default>; - pinctrl-1 = <&pen_int_sleep>; - rohm,nirq-gpio=<&tlmm 84 0x02>; - }; -}; - diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index 02bc5dd7c72f..29f16ce98a97 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -73,21 +73,5 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - novatek@0{ - compatible = "novatek,NVT-ts-spi"; - reg = <0x0>; - spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ - novatek,reset-gpio = <&tlmm 21 0x00>; - novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2460>; - novatek,swrst-n8-addr = <0x03F0FE>; - novatek,spi-rd-fast-addr = <0x03F310>; - novatek,report_gesture_key; - novatek,usb_charger; - novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; - novatek,panel-supplier = "tianma","tm","csot"; - panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; - status = "ok"; - }; }; diff --git a/qcom/penang-wl286xx.dtsi b/qcom/penang-wl286xx.dtsi deleted file mode 100644 index 80bd9f868469..000000000000 --- a/qcom/penang-wl286xx.dtsi +++ /dev/null @@ -1,74 +0,0 @@ -&tlmm{ - pmic1_en_default: pmic1_en_default { - mux { - pins = "gpio33"; - function = "gpio"; - }; - config { - pins = "gpio33"; - drive-strength = <2>; - bias-pull-down; - }; - }; -}; - -&gcc { - qcom,critical-devices = <&qupv3_se10_i2c>; -}; - -&qupv3_se10_i2c { - status = "ok"; - - cam_pmic1: wl2864c@29{ - compatible = "semi,wl2864c"; - reg = <0x29>; - semi,cs-gpios = <&tlmm 33 0>; - pinctrl-names = "default"; - pinctrl-0 = <&pmic1_en_default>; - vin1-supply = <&S6A>; - - regulators { - cam_pmic1_ldo1_dvdd1: ldo1 { - regulator-name = "ldo1"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_pmic1_ldo2_dvdd2: ldo2 { - regulator-name = "ldo2"; - regulator-min-microvolt = <600000>; - regulator-max-microvolt = <1800000>; - }; - - cam_pmic1_ldo3_avdd1: ldo3 { - regulator-name = "ldo3"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_pmic1_ldo4_avdd2: ldo4 { - regulator-name = "ldo4"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_pmic1_ldo5_vddaf: ldo5 { - regulator-name = "ldo5"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_pmic1_ldo6_vddois: ldo6 { - regulator-name = "ldo6"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - - cam_pmic1_ldo7_vddio: ldo7 { - regulator-name = "ldo7"; - regulator-min-microvolt = <1200000>; - regulator-max-microvolt = <4300000>; - }; - }; - }; -}; From cae03de2a5456f1c290196b18ac22dc85d1a8077 Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Wed, 6 Jul 2022 05:09:58 -0500 Subject: [PATCH 0836/1247] Revert "(CR): arm/dts: add "qcom,leica-used-i2c" for se7" This reverts commit 90c7753bf8404bda0c20d22ec423a8ccf76b1c9a. Change-Id: I10c8db52ab80e14cffcb4e0e164278c0939da760 Reviewed-on: https://gerrit.mot.com/2324429 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index b5f125b489ce..4f802adc1ac7 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -221,8 +221,6 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; - - qcom,leica-used-i2c; st21nfc@8 { status = "disabled"; }; @@ -576,7 +574,7 @@ }; &gcc { - qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>; + qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; }; &soc { From 9ace0199d7ff3c351247e8118f5b1ee340e23a7c Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Thu, 7 Jul 2022 17:53:33 +0800 Subject: [PATCH 0837/1247] discrete charger driver bringup penang Discrete charger driver bringup at Penang. Change-Id: Iee0f0542ce07648a20e1f4cbe5fdd9ea8cfca83b Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/2325755 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 135 +++++++++++++---------------- qcom/sgm7220-penang.dtsi | 50 +++++++++++ 2 files changed, 108 insertions(+), 77 deletions(-) create mode 100644 qcom/sgm7220-penang.dtsi diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 4344874fb5d0..c2f984a88ab2 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -10,7 +10,7 @@ * GNU General Public License for more details. */ #include -#include "sgm7220.dtsi" +#include "sgm7220-penang.dtsi" #include "discrete-rt-pd-manger.dtsi" &pm6125_vadc { @@ -38,92 +38,60 @@ reg = <0x64>; status = "okay"; + sense_r_mohm = <5>; + factory_mode_ntc_exist = <0>; df-serialnum = "SB18D24973"; #include "bat_setting/CW_nd50-atl-5000mah.dtsi" #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" }; - - sm5602@71 { - compatible = "sm,sm5602"; - reg = <0x71>; - //interrupt-parent = <&tlmm>; - //interrupts = <38 2>; - //qcom,irq-gpio = <&tlmm 38 0x0>; - - sm,en_temp_ex; - //sm,en_temp_in; - sm,en_batt_det; - sm,iocv_man_mode; - sm,misc = <0x0800>; - sm,aging_ctrl = <0x0121>; - sm,cycle_cfg = <0x7000>; - sm,rsns = <1>; - sm,fg_irq_set = <0x07FF>; - sm,low_soc1 = <1>; - sm,low_soc2 = <15>; - sm,v_l_alarm = <3400>; - sm,v_h_alarm = <4450>; - sm,battery_table_num = <0>; - sm,param_version = <3>; - sm,t_l_alarm_in = <54>; - sm,t_h_alarm_in = <1>; - sm,t_l_alarm_ex = <0xD3D8>; - sm,t_h_alarm_ex = <0x9245>; - sm,shutdown-delay-enable; - - df-serialnum = "SB18D24973"; - #include "bat_setting/SM5602_ND50_ATL_Rhodec.dtsi" - #include "bat_setting/SM5602_ND50_JIADE_Rhodec.dtsi" - }; }; -&qupv3_se6_i2c { +&qupv3_se10_i2c { status = "okay"; - sgm4154x: sgm4154x@3B { - status = "okay"; - compatible = "sgm,sgm41542"; - reg = <0x3B>; - pinctrl-names = "default"; - pinctrl-0 = <&gpio6_adc_default &chg_irq_default>; - io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; - io-channel-names = "gpio3_div3"; + sgm41543: sgm41543@0B { + status = "okay"; + compatible = "sgm,sgm41543D"; + reg = <0x0B>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; - interrupt-parent = <&tlmm>; - interrupts = <12 0>; //irq num base on hardware design - sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design - sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + interrupt-parent = <&tlmm>; + interrupts = <59 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design + sgm,chg-en-gpio = <&tlmm 59 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other - dpdm-supply = <&qusb_phy0>; - mmi,qc3-support; + dpdm-supply = <&qusb_phy0>; + mmi,qc3-support; + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; - /* sw jeita parameter customer defined*/ - enable_sw_jeita; - jeita_temp_above_t4_cv = <0>; - jeita_temp_t3_to_t4_cv = <4100000>; - jeita_temp_t2_to_t3_cv = <4350000>; - jeita_temp_t1_to_t2_cv = <4350000>; - jeita_temp_t0_to_t1_cv = <0>; - jeita_temp_below_t0_cv = <0>; + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; - jeita_temp_above_t4_cc_current = <0>; - jeita_temp_t3_to_t4_cc_current = <1000000>; - jeita_temp_t2_to_t3_cc_current = <1250000>; - jeita_temp_t1_to_t2_cc_current = <1000000>; - jeita_temp_below_t0_cc_current = <0>; - - temp_t4_thres = <50>; - temp_t4_thres_minus_x_degree = <48>; - temp_t3_thres = <45>; - temp_t3_thres_minus_x_degree = <45>; - temp_t2_thres = <20>; - temp_t2_thres_plus_x_degree = <15>; - temp_t1_thres = <0>; - temp_t1_thres_plus_x_degree = <0>; - temp_t0_thres = <0>; - temp_t0_thres_plus_x_degree = <2>; - temp_neg_10_thres = <0>; - }; + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; }; @@ -168,9 +136,21 @@ &tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio12"; + function = "gpio"; + }; + config { + pins = "gpio12"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; +/* chg_irq_default: chg_irq_default { - /* IRQ */ mux { pins = "gpio59"; function = "gpio"; @@ -179,8 +159,9 @@ config { pins = "gpio59"; bias-pull-up; - drive-strength = <2>; /* 2 MA */ + drive-strength = <2>; input-enable; }; }; +*/ }; diff --git a/qcom/sgm7220-penang.dtsi b/qcom/sgm7220-penang.dtsi new file mode 100644 index 000000000000..f02e3f4108b8 --- /dev/null +++ b/qcom/sgm7220-penang.dtsi @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2021 motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR tcpcA PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se8_i2c { + status = "okay"; + sgm7220: sgm7220@47 { + compatible = "sgm,usb_type_c_sgm7220"; + reg = <0x47>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + sgm7220-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + sgm7220-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + sgm7220,intr_gpio = <&tlmm 60 0x0>; + sgm7220,intr_gpio_num = <60>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n>; + }; +}; + + +&tlmm { + sgm7220_int_n: sgm7220_int_n { + mux { + pins = "gpio60"; + function = "gpio"; + }; + + config { + pins = "gpio60"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From cc93eb9ba4ca261d749de986c9f6a937535973c3 Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Fri, 8 Jul 2022 14:25:39 +0800 Subject: [PATCH 0838/1247] sgm41543 remove gpio ce pin Chip CE pin always enabled No need initilize. Change-Id: Idfda74d080f55b2d0e022852b73f7e20878a50e6 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/2326778 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index c2f984a88ab2..e599a9d1ac52 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -62,7 +62,7 @@ interrupt-parent = <&tlmm>; interrupts = <59 0>; //irq num base on hardware design sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design - sgm,chg-en-gpio = <&tlmm 59 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + // sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other dpdm-supply = <&qusb_phy0>; mmi,qc3-support; From 92a50c780d4654036d54eb3620ae24bfde367ad1 Mon Sep 17 00:00:00 2001 From: wingte49 Date: Thu, 7 Jul 2022 13:54:50 +0800 Subject: [PATCH 0839/1247] rhodei update jiade battery profile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit found the end-off current is lower than 240ma(specified current) check log found the current is too low when uisoc is 100,lead to the cut-off current is smart than 240ma so the supplier update the jiade battery profile Change-Id: I0ea2667e65b40078129f0dc339b89dacdb9410ef Reviewed-on: https://gerrit.mot.com/2325316 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi index 9867c41bd5dd..6c879f54afb6 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah.dtsi @@ -17,11 +17,11 @@ nd50-jiade-5000mah { config_profile_info = [49 00 00 00 00 00 00 00 9E BE B7 CF C2 C1 91 4F 31 FF FF FF C3 A3 8B 75 - 61 57 4C 8E E6 DE 83 D0 + 61 57 4C 7E CE DE 83 D0 CC C8 D1 D5 D6 D4 D1 CD CC CA CB C1 A0 94 8A 81 76 6D 7A 91 A7 86 5F 72 20 00 57 10 02 B0 5A 00 - 00 00 64 26 D3 4D 00 00 - 00 00 00 00 00 00 00 A5 ]; + 00 00 64 14 D3 4D 00 00 + 00 00 00 00 00 00 00 CD ]; }; From dbb42508624c48b22b12cfe30231c69e705baa3f Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Fri, 8 Jul 2022 18:39:03 +0800 Subject: [PATCH 0840/1247] enable sgm41543 irq function Enable sgm main charger irq function. Change-Id: I91ffbb6574f3612fb1bd8aff19a95c28fe27baa8 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/2327421 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index e599a9d1ac52..c019336e445e 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -138,12 +138,12 @@ &tlmm { sgm4154x_gpio_pins: sgm4154x_gpio_pins { mux { - pins = "gpio12"; + pins = "gpio59"; function = "gpio"; }; config { - pins = "gpio12"; + pins = "gpio59"; drive-strength = <2>; bias-pull-up; input-enable; From 8b4e4bfcfd7f828bee34bf003ad01c6c31ad1302 Mon Sep 17 00:00:00 2001 From: weiweij Date: Fri, 8 Jul 2022 14:01:07 +0800 Subject: [PATCH 0841/1247] wlc: update firmware 0.11 Update cps4019's firmware to v0.11. Add GP2 checking debounce logic.PmicTcc_StateMachine_Level_State_Table Change-Id: I8eb12911e4ec1554f713b640be6a56d67cb69f30 Reviewed-on: https://gerrit.mot.com/2326720 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index a0318e47e919..5d4947fce57c 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -195,7 +195,7 @@ wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; - fw_ver_minor = <8>; + fw_ver_minor = <0xb>; use_bl_in_h; }; From d8dfc1353e183ad71c2ed466b39600721efd9620 Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Mon, 11 Jul 2022 19:02:38 +0800 Subject: [PATCH 0842/1247] arm64/dts:update sar paras for Miami modification: CH2: modifythreshold&usefilter; CH4: modify usefilter; Change-Id: I9d55702054bdf60210db51c07d15833437666c62 Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2329363 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jiacheng Ou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 4f802adc1ac7..35a01986e4ef 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -290,7 +290,7 @@ 0x8084 0xFFF9FF 0x8098 0x5A39 0x80B8 0x5A31 - 0x80D8 0x2121 + 0x80D8 0x1818 0x80F8 0x4747 0x8118 0x1818 0x8138 0xFF @@ -305,9 +305,9 @@ 0x818C 0x8000016 0x8090 0x50DE5000 0x80B0 0x48D45000 - 0x80D0 0x3CD05000 + 0x80D0 0x3CCA5000 0x80F0 0x3CD35000 - 0x8110 0x28E05000 + 0x8110 0x28DD5000 0x8130 0x54AC5000 0x8150 0x54AC5000 0x8170 0x54AC5000 From 178d85a48b467e1fd97477b1aefb5e438d29f9ad Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Tue, 12 Jul 2022 10:08:13 +0800 Subject: [PATCH 0843/1247] dtsi/panel: The panel nt36528 bringup for display Modify: Bringup panel nt36528 panel,add the new panel devicetree. Change-Id: Ieeb02b00e8b12f3eadc97afb828c31e9127dfd86 Reviewed-on: https://gerrit.mot.com/2330101 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...el-mot-djn-nt36528-653-720x1600-video.dtsi | 88 ++++++++ qcom/penang-display.dtsi | 199 ++++++++++++++++-- 2 files changed, 272 insertions(+), 15 deletions(-) create mode 100644 qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi new file mode 100644 index 000000000000..464fda9f9668 --- /dev/null +++ b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi @@ -0,0 +1,88 @@ +&mdss_mdp { + dsi_nt36528_djn_video: qcom,mdss_dsi_nt36528_djn_720x1600_653_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_djn_hd_653_720p_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <341>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 60 + 15 00 00 00 00 00 02 07 00 + 15 00 00 00 00 00 02 08 01 + 15 00 00 00 00 00 02 09 AE + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 51 FF + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 05 00 00 00 14 00 01 28 + 05 01 00 00 3C 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index f533c8a22b49..8ba53917017d 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -1,27 +1,196 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" + +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 00 30 30]; +}; + + +&tlmm { + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; &sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; - qcom,dsi-default-panel = <&mot_dummy_vid_qhd>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_nt36528_djn_video>; }; +&dsi_nt36528_djn_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-bl-default-level = <128>; + qcom,mdss-brightness-max-level = <255>; + + /*qcom,esd-check-enabled;*/ + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 FF]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A + 0B 0A 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; &mot_dummy_vid_qhd { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x09>; - qcom,mdss-dsi-t-clk-pre = <0x15>; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 - 02 01 02 04 00]; - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; }; + + From 7aff948dd2ef527ed2a727e2389063676b4a1711 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Tue, 12 Jul 2022 18:48:33 +0800 Subject: [PATCH 0844/1247] arm/dts: config mmi,i2c-err-wa-dis config mmi,i2c-err-wa-dis to disable i2c error workaround for miami Change-Id: Ia99fa1b0e40ca71bd6cf9365d223f8d26e4a8e2d Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2330969 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 5d4947fce57c..64aa15595417 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -54,6 +54,7 @@ mmi,qc3-support; mmi,wls-max-icl = <1000000>; input-voltage-limit-microvolt = <4700000>; + mmi,i2c-err-wa-dis; /* sw jeita parameter customer defined*/ enable_sw_jeita; From 99b7ee7a1f4b67336de1345c418e18a33c77e8ce Mon Sep 17 00:00:00 2001 From: Yiqiang Feng Date: Tue, 12 Jul 2022 14:56:15 +0800 Subject: [PATCH 0845/1247] arm/dts: miami:remove se7&se8 from gcc critical device Miami: From QC suggest, When an SE belong to regulator controlling,must be added in critical devices. SE7 and SE8 do not belong to this Change-Id: Ic3a7164e266770d3a62a59c5f498b4a06f8995d1 Signed-off-by: Yiqiang Feng Reviewed-on: https://gerrit.mot.com/2332390 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Reviewed-by: Xu Du Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 35a01986e4ef..8846a4d460d9 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -574,7 +574,7 @@ }; &gcc { - qcom,critical-devices = <&qupv3_se10_i2c>, <&qupv3_se7_i2c>, <&qupv3_se8_i2c>; + qcom,critical-devices = <&qupv3_se10_i2c>; }; &soc { From d783409ddbc369aafe69bde74fba860cbedf04fb Mon Sep 17 00:00:00 2001 From: xuwei9 Date: Mon, 11 Jul 2022 16:46:32 +0800 Subject: [PATCH 0846/1247] thermal ntc brignup at penang Thermal ntc brignup at penang Change-Id: I3cb0f191079c22ecb877a872a036a9f8ff371492 Signed-off-by: xuwei9 Reviewed-on: https://gerrit.mot.com/2333370 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 250 +++++++++++++++------------ 1 file changed, 140 insertions(+), 110 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index fc48b915705d..9eea7971d961 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -331,125 +331,155 @@ status = "disabled"; }; - cam_flash_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; - chg_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; pa_therm2 { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; pa_therm1 { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; - quiet_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; - xo_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; - qtm_n_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; - qtm_e_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; - thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + usb_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; From bc566aa13134ccdae3b8a1e8321f32ca7a151f73 Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Tue, 12 Jul 2022 23:07:20 +0800 Subject: [PATCH 0847/1247] arm/dts: The tp dtsi for nt36528 bringup Modify: Bringup tp for nt36528 , add TP bringup Change-Id: Ia32072e6d3f7408678179a95fafc965ce62084f8 Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2331326 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/penang-touchscreen.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index 29f16ce98a97..e229f9aae05f 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -73,5 +73,20 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <720 1600>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; + novatek,panel-supplier = "djn"; + panel = <&dsi_nt36528_djn_video>; + status = "ok"; + }; }; From dc92b2321a0f81b156fe3cec1ee8f7170499287e Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Thu, 14 Jul 2022 20:43:07 +0800 Subject: [PATCH 0848/1247] dtsi/sensor: The vibrator bringup for sensor Modify: Bringup vibrator,modify gpio 101 Signed-off-by: hq_caoqunhui_tmp Change-Id: Ifbd733040b4807ab2a4a0480913a8f528aae6d35 Reviewed-on: https://gerrit.mot.com/2333812 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 9eea7971d961..1a517f0c93a0 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -296,7 +296,7 @@ ldo_vib { compatible = "moto,vibrator-ldo"; - moto,vib-ldo-gpio = <&tlmm 100 0x0>; + moto,vib-ldo-gpio = <&tlmm 101 0x0>; status = "ok"; }; }; From 6b555f37c85c43db282048198f817887a67e9068 Mon Sep 17 00:00:00 2001 From: "[A" Date: Thu, 14 Jul 2022 10:39:10 +0800 Subject: [PATCH 0849/1247] discrete sc89890 charger driver bringup penang discrete sc89890 charger driver bringup at penang Change-Id: I17a83c39ae1e15eec65a1773224b13de0b8f40ad Signed-off-by: Reviewed-on: https://gerrit.mot.com/2333153 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-4850mah.dtsi | 27 ++++++++++++ qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi | 27 ++++++++++++ qcom/discrete_charging_penang.dtsi | 49 +++++++++++++++++++-- 3 files changed, 100 insertions(+), 3 deletions(-) create mode 100644 qcom/bat_setting/CW_nd50-atl-4850mah.dtsi create mode 100644 qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi diff --git a/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi b/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi new file mode 100644 index 000000000000..b9f648984d18 --- /dev/null +++ b/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-atl-4850mah { + serialnum = "SB18D34202"; + fcc_design = <4850>; + ui_full = <97>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A7 B6 BC CA B9 B2 AE 6F + 51 FF FF CF 97 82 68 57 + 50 4F 4D 86 D9 DE E3 E8 + D8 CF D4 D6 D3 D1 CE CA + C6 C5 CC BA 9A 8F 85 7E + 6E 6E 7B 8E A5 8E 67 66 + 80 00 57 10 00 A0 63 00 + 00 00 64 22 C3 5C 00 00 + 00 00 00 00 00 00 00 42 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi new file mode 100644 index 000000000000..09a2487d34fe --- /dev/null +++ b/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-jiade-4850mah { + serialnum = "SB18D45495"; + fcc_design = <4850>; + ui_full = <97>; + config_profile_info = [5A 00 00 00 00 00 00 00 + 9E C0 C3 C6 B9 B6 AA 6D + 47 FF D7 9D 82 6A 5B 52 + 4D 4D 4C 7D D9 DE 8C D2 + CA C9 D1 D5 D4 D2 CF CA + C7 C7 D5 B8 9C 91 89 82 + 7C 7C 85 95 AB 87 67 73 + 80 00 57 10 00 A0 6E 00 + 00 00 64 21 C3 6E 00 00 + 00 00 00 00 00 00 00 F0 ]; +}; diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index c019336e445e..1db2fb4c55d9 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -40,9 +40,9 @@ sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; - df-serialnum = "SB18D24973"; - #include "bat_setting/CW_nd50-atl-5000mah.dtsi" - #include "bat_setting/CW_nd50-jiade-5000mah.dtsi" + df-serialnum = "SB18D34202"; + #include "bat_setting/CW_nd50-atl-4850mah.dtsi" + #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" }; }; @@ -93,6 +93,34 @@ temp_neg_10_thres = <0>; }; + bq25890: bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 59 0>; + //bq2589x_en-gpio = <&tlmm 45 0>; + dpdm-supply = <&qusb_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; + }; &soc { @@ -149,6 +177,21 @@ input-enable; }; }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + /* chg_irq_default: chg_irq_default { mux { From 00f472aa33909d331062d88f2a14221ba1be1132 Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Fri, 15 Jul 2022 14:08:56 +0800 Subject: [PATCH 0850/1247] dts: sar: The SAR SX937X bringup Modify: gpio24 has been used on display_panel_avdd, remove it. Change-Id: Ica0c584140666cfab3270081781202730e593fee Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2334658 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Reviewed-by: Hong Zhang Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 8ba53917017d..08d105465a33 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -1,6 +1,11 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + &mdss_dsi_phy0 { qcom,platform-strength-ctrl = [55 03 30 30 55 03 30 30 From 51146de9f595492d4213a02b5d9a663035879fa4 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Fri, 8 Jul 2022 15:49:42 +0800 Subject: [PATCH 0851/1247] arm/dts : Update pengna fps dts Update pengna fps dts for fpc1533 and ICNF7318AL side fingerprint sensor bring up Change-Id: If5bf3413b73836ab2effae845b42fe1232c9aa3a Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2326963 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/penang-fps-overlay.dtsi | 195 +++++++++++++++-------------------- 1 file changed, 84 insertions(+), 111 deletions(-) diff --git a/qcom/penang-fps-overlay.dtsi b/qcom/penang-fps-overlay.dtsi index bfc368bf1c2c..c78f315d0d18 100644 --- a/qcom/penang-fps-overlay.dtsi +++ b/qcom/penang-fps-overlay.dtsi @@ -1,100 +1,4 @@ &tlmm { - ets_irq_active: egis_irq_active { - /* INTERRUPT */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - input-enable; - }; - }; - - ets_rst_high: ets_rst_high { - /* INTERRUPT */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - output-high; - }; - }; - - ets_rst_low: ets_rst_low { - /* INTERRUPT */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - - ets_vcc_high: ets_vcc_high { - /* INTERRUPT */ - mux { - pins = "gpio87"; - function = "gpio"; - }; - - config { - pins = "gpio87"; - drive-strength = <2>; /* 2 MA */ - output-high; - }; - }; - - ets_vcc_low: ets_vcc_low { - /* INTERRUPT */ - mux { - pins = "gpio87"; - function = "gpio"; - }; - - config { - pins = "gpio87"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - - fps_rst_active: fps_rst_active { - /* active state */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - - fps_rst_suspend: fps_rst_suspend { - /* sleep state */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - }; - }; fps_int_active: fps_int_active { /* active state */ @@ -125,27 +29,96 @@ input-enable; }; }; + + fps_rst_high: fps_rst_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <8>; + output-high; + bias-pull-up; + }; + }; + + fps_rst_low: fps_rst_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + config { + pins = "gpio18"; + drive-strength = <8>; + output-low; + bias-pull-down; + }; + }; + + fps_ldo3_en_active: ldo3_en_active { + /* active state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-high; + }; + }; + + fps_ldo3_en_suspend: ldo3_en_suspend { + /* sleep state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-low; + }; + }; + }; &soc { - et528: et528 { - compatible = "fp-egistec"; + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + fp-gpio-ven = <&tlmm 87 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_int_active>; + pinctrl-1 = < &fps_int_suspend>; + }; + //chipone side fps + fingerprint: chipone7318 { + compatible = "qcom,fingerprint-gpio"; status = "ok"; reg = <0>; interrupt-parent = <&tlmm>; interrupts = <17 0x0>; - fp-ctrl-power; - fp-gpio-vcc-enable; - egistec,gpio_vcc_en = <&tlmm 87 0x0>; - egistec,gpio_irq = <&tlmm 17 0x0>; - egistec,gpio_reset = <&tlmm 18 0x0>; - pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", - "egis_vcc_high", "egis_vcc_low"; - pinctrl-0 = <&ets_rst_high>; - pinctrl-1 = <&ets_rst_low>; - pinctrl-2 = <&ets_irq_active>; - pinctrl-3 = <&ets_vcc_high>; - pinctrl-4 = <&ets_vcc_low>; - }; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; + fp-gpio-power = <&tlmm 87 0x0>; + pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ldo3_en_active","fps_ldo3_en_suspend"; + pinctrl-0 = <&fps_rst_high>; + pinctrl-1 = <&fps_rst_low>; + pinctrl-2 = <&fps_int_active>; + pinctrl-3 = <&fps_ldo3_en_active>; + pinctrl-4 = <&fps_ldo3_en_suspend>; + }; }; + From 5c8b74f4d9aa13b7310bde293a8ea2c577ef268f Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Thu, 14 Jul 2022 20:27:23 +0800 Subject: [PATCH 0852/1247] SAR: The SAR SX937X bringup Modify: Bringup SAR for SX937X , add SAR bringup Change-Id: Ie9c6e044b2560fb78be4ed612191091731aeaddb Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2333797 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hong Zhang Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 1a517f0c93a0..83b5ac27d927 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -498,7 +498,7 @@ interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 24 0x02>; //please fix me - cap_vdd-supply = <&pm6125_l9>; + cap_vdd-supply = <&L9A>; /*use PH4/5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; From ecda1cd196ccf48640592e201897539795345960 Mon Sep 17 00:00:00 2001 From: yaozm1 Date: Thu, 14 Jul 2022 10:25:43 +0800 Subject: [PATCH 0853/1247] arm/dts:update audio dtsi for penang correct audio dts; for pennang evb. Change-Id: I84ed5c4dc6106c3d2c2ac2caa22420a7421fc252 Signed-off-by: yaozm1 Reviewed-on: https://gerrit.mot.com/2333482 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-audio-penang-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-audio-penang-overlay.dtsi b/qcom/holi-audio-penang-overlay.dtsi index 0ea5199e5ccc..cc30ab92f33e 100644 --- a/qcom/holi-audio-penang-overlay.dtsi +++ b/qcom/holi-audio-penang-overlay.dtsi @@ -276,7 +276,7 @@ qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se7_i2c_pins { +&qupv3_se7_i2c { status = "ok"; aw887xx_smartpa_0: aw87xxx_pa@58 { compatible = "awinic,aw87xxx_pa"; From d472754074930b0da5472663c6268ccbec9db469 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Fri, 15 Jul 2022 15:20:58 +0800 Subject: [PATCH 0854/1247] arm/dt: miami: enable resend lbhm off commands feature miami: enable resend-lhbm-off commands feature. Change-Id: I5d50cb060389673ecb1726978b3bcf2d12e56a36 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2334764 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...i-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi index d99efa618f73..62d52eb58345 100644 --- a/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-nt37701-628-1080x2400-dsc-cmd-common-v1.dtsi @@ -73,6 +73,7 @@ qcom,mdss-dsi-hbm-fod-on-command = [ 15 00 00 00 00 00 02 6F 01 39 01 00 00 00 00 05 88 02 1C 08 6F]; +qcom,mdss-dsi-panel-resend-local-hbm-off; qcom,mdss-dsi-panel-local-hbm-enabled; qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x87>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; From 5a5b110c8460097d6853022b704844e15f178986 Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 18 Jul 2022 14:46:08 +0800 Subject: [PATCH 0855/1247] WLC: update WLC IC fw to 0.12 Update WLC IC(cps4019) FW from 0.11 to 0.12. Change-Id: I96b56c1635fb9ea0dd1e8efa2a55858376cccb08 Reviewed-on: https://gerrit.mot.com/2336182 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 64aa15595417..c92f4ca5264b 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -196,7 +196,7 @@ wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; - fw_ver_minor = <0xb>; + fw_ver_minor = <0xC>; use_bl_in_h; }; From b7da4e7ef8b2e14b43a237ac90a8b69b49d199d2 Mon Sep 17 00:00:00 2001 From: zhangjun10 Date: Mon, 18 Jul 2022 13:03:36 +0800 Subject: [PATCH 0856/1247] : arm/dts: bring up NFC pn557 for Penang config dts for NFC pn557 for Penang Change-Id: Ia1e8416fce68e311a589119f359bda71e77bd88b Signed-off-by: zhangjun10 Reviewed-on: https://gerrit.mot.com/2337408 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 83b5ac27d927..a91ed65cc00b 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -242,26 +242,22 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - status = "disabled"; - }; - nq@28 { compatible = "qcom,sn-nci"; - mmi,status = "/chosen", "mmi,nfc", "nxp"; reg = <0x28>; qcom,sn-irq = <&tlmm 9 0x00>; qcom,sn-ven = <&tlmm 48 0x00>; qcom,sn-firm = <&tlmm 8 0x00>; qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; interrupt-parent = <&tlmm>; interrupts = <9 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>; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; }; }; From 81befa71f07ee634cb54d6f66aa816a4be3709f4 Mon Sep 17 00:00:00 2001 From: "[A" Date: Tue, 19 Jul 2022 17:43:17 +0800 Subject: [PATCH 0857/1247] local buy battery curve add local buy battery curve add Change-Id: I9b72f1c2b6018cb7c87f27ff2786d5cdef860757 Signed-off-by: Reviewed-on: https://gerrit.mot.com/2337742 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-local-4850mah.dtsi | 27 +++++++++++++++++++++ qcom/discrete_charging_penang.dtsi | 1 + 2 files changed, 28 insertions(+) create mode 100644 qcom/bat_setting/CW_nd50-local-4850mah.dtsi diff --git a/qcom/bat_setting/CW_nd50-local-4850mah.dtsi b/qcom/bat_setting/CW_nd50-local-4850mah.dtsi new file mode 100644 index 000000000000..2da6965cc847 --- /dev/null +++ b/qcom/bat_setting/CW_nd50-local-4850mah.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-local-4850mah { + serialnum = "SB18D36197"; + fcc_design = <4850>; + ui_full = <97>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A7 B6 BC CA B9 B2 AE 6F + 51 FF FF CF 97 82 68 57 + 50 4F 4D 86 D9 DE E3 E8 + D8 CF D4 D6 D3 D1 CE CA + C6 C5 CC BA 9A 8F 85 7E + 6E 6E 7B 8E A5 8E 67 66 + 80 00 57 10 00 A0 63 00 + 00 00 64 22 C3 5C 00 00 + 00 00 00 00 00 00 00 42 ]; +}; diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 1db2fb4c55d9..a133c2fd4426 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -43,6 +43,7 @@ df-serialnum = "SB18D34202"; #include "bat_setting/CW_nd50-atl-4850mah.dtsi" #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" + #include "bat_setting/CW_nd50-local-4850mah.dtsi" }; }; From 4eaeaa1929f77c15f13cd8aea1146f24579d2f24 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 20 Jul 2022 16:51:22 +0800 Subject: [PATCH 0858/1247] arm64/dts: Update dts to match with driver Why: Update dts to match with driver Change-Id: I4d5a796e197418dca4b177e2a8a1151836eb3c5d Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2339474 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/penang-fps-overlay.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/penang-fps-overlay.dtsi b/qcom/penang-fps-overlay.dtsi index c78f315d0d18..951d04a7ecdc 100644 --- a/qcom/penang-fps-overlay.dtsi +++ b/qcom/penang-fps-overlay.dtsi @@ -57,7 +57,7 @@ }; }; - fps_ldo3_en_active: ldo3_en_active { + fps_ldo3_en_active: fps_ldo3_en_active { /* active state */ mux { pins = "gpio87"; @@ -72,7 +72,7 @@ }; }; - fps_ldo3_en_suspend: ldo3_en_suspend { + fps_ldo3_en_suspend: fps_ldo3_en_suspend { /* sleep state */ mux { pins = "gpio87"; @@ -112,7 +112,7 @@ fp-gpio-int = <&tlmm 17 0x0>; fp-gpio-reset = <&tlmm 18 0x0>; fp-gpio-power = <&tlmm 87 0x0>; - pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ldo3_en_active","fps_ldo3_en_suspend"; + pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ido1p8_en_active","fps_ido1p8_en_suspend"; pinctrl-0 = <&fps_rst_high>; pinctrl-1 = <&fps_rst_low>; From b9081f882fc59fe24f95837c81dc9c411468c2f3 Mon Sep 17 00:00:00 2001 From: weiweij Date: Fri, 22 Jul 2022 11:58:23 +0800 Subject: [PATCH 0859/1247] WLC: update fw version to 0.13 Update WLC charger chip cps4019's firmware version from 0.12 to 0.13 Change-Id: Iac19cf38c14e984339de007a9fa6cbb45a554cfa Reviewed-on: https://gerrit.mot.com/2341717 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index c92f4ca5264b..7e180cee0b9e 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -196,7 +196,7 @@ wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; - fw_ver_minor = <0xC>; + fw_ver_minor = <0xD>; use_bl_in_h; }; From f34390a29a53d3ac09e090534fc90ec665aebf79 Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Mon, 18 Jul 2022 19:46:38 +0800 Subject: [PATCH 0860/1247] arm64/dts: penang: front camera tsp s5k4h7yx03 bring up details: Add camera dtsi to penang dtsi. Change-Id: I105f56d047a9bfe5e336f31a2e2fb1ba4acb5de3 Reviewed-on: https://gerrit.mot.com/2336583 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Reviewed-by: Wang Liu Reviewed-by: Zhuoran Xu Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index a91ed65cc00b..6cf29cfef144 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -21,6 +21,7 @@ #include "penang-display.dtsi" #include "penang-touchscreen.dtsi" #include "penang-fmr-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-penang-overlay.dtsi" #include "discrete_charging_penang.dtsi" #include "moto_therm_sys_temp.dtsi" From 1f7452f423c821597bd5837d4293c1778e20bffe Mon Sep 17 00:00:00 2001 From: chenlj2 Date: Fri, 22 Jul 2022 18:31:38 +0800 Subject: [PATCH 0861/1247] arm64/dts:update sx9375 paras for miami update sx9375 paras for SPORTON authentication modify threshold of PH0,1,2,3,4 Change-Id: Ifff777cb6ff559c4a61f6de2ff921748641ad6dd Signed-off-by: chenlj2 Reviewed-on: https://gerrit.mot.com/2342128 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 8846a4d460d9..5c1bf0476e71 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -288,11 +288,11 @@ 0x806C 0xFFF9EF 0x8078 0xFFF97F 0x8084 0xFFF9FF - 0x8098 0x5A39 - 0x80B8 0x5A31 - 0x80D8 0x1818 - 0x80F8 0x4747 - 0x8118 0x1818 + 0x8098 0x6039 + 0x80B8 0x6531 + 0x80D8 0x1A1A + 0x80F8 0x4C4C + 0x8118 0x1919 0x8138 0xFF 0x8158 0xFF 0x8178 0x5A40 From c08f2c23014b63bb10bcd69b5d1207d140c93d9e Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Thu, 21 Jul 2022 16:07:50 +0800 Subject: [PATCH 0862/1247] dtsi/panel: The panel nt36528 bringup for display Modify: Bringup panel nt36528 panel,add the new panel devicetree. Change-Id: Id23eb97bf3a38d323c40b0abeea127c6139800eb Signed-off-by: hq_caoqunhui_tmp Reviewed-on: https://gerrit.mot.com/2340709 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi | 2 +- qcom/penang-display.dtsi | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi index 464fda9f9668..06aba9153c22 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi @@ -65,7 +65,7 @@ 15 00 00 00 00 00 02 09 AE 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 51 FF + 39 00 00 00 00 00 03 51 00 00 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 08d105465a33..780ece6eec3c 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -137,9 +137,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-bl-max-level = <2047>; qcom,mdss-dsi-bl-default-level = <128>; - qcom,mdss-brightness-max-level = <255>; + qcom,mdss-brightness-max-level = <2047>; /*qcom,esd-check-enabled;*/ qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -162,8 +162,8 @@ qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x1A>; From addfa18654e9b5128d1b6f0a88330fdd090b6d1f Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Mon, 25 Jul 2022 18:17:45 +0800 Subject: [PATCH 0863/1247] arm/dts: miami battery parameter update to 0x0202 miami battery parameter update to 0x0202 Change-Id: I003df78be2f5999fa3a077fad1600c5b9e68a2e2 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/2343648 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 7e180cee0b9e..7bbbc8dc6abb 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -125,8 +125,8 @@ pinctrl-0 = <&pmk8350_gpio1_adc_default>; latest_fw_version = <0x0812>; - first_battery_param_ver = <0x0201>; - second_battery_param_ver = <0x0201>; + first_battery_param_ver = <0x0202>; + second_battery_param_ver = <0x0202>; first_battery_id = <0x0103>; second_battery_id = <0x0102>; From 7e8a11dbd864e7b5f98ce4b78a78a8d7ab35ec60 Mon Sep 17 00:00:00 2001 From: duxu1 Date: Mon, 25 Jul 2022 19:17:22 +0800 Subject: [PATCH 0864/1247] Miami: Remove se10 from critical devices list The camera-se2 is not added into the critical device list, then dead lock happened. There is conflict between different critical devices configs, then cause camera-se2 config not take effect. Remove se10 from critical devices list,since it is not used for regulator controlling. Keep only camera-se added into critical devices list, to fix dead lock issue. Change-Id: I5526a4227f4b8eb382ce35c851362c5684ee1b08 Signed-off-by: duxu1 Reviewed-on: https://gerrit.mot.com/2343679 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiqiang Feng Reviewed-by: Hongshu Lou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-miami-common-overlay.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qcom/blair-miami-common-overlay.dtsi b/qcom/blair-miami-common-overlay.dtsi index 5c1bf0476e71..cdc87e0ad57e 100644 --- a/qcom/blair-miami-common-overlay.dtsi +++ b/qcom/blair-miami-common-overlay.dtsi @@ -573,10 +573,6 @@ }; -&gcc { - qcom,critical-devices = <&qupv3_se10_i2c>; -}; - &soc { gpio_keys { compatible = "gpio-keys"; From f6415d2f3da71293a7bc001628af29db4fb05976 Mon Sep 17 00:00:00 2001 From: yaozm1 Date: Mon, 25 Jul 2022 14:51:35 +0800 Subject: [PATCH 0865/1247] arm/dts:penang:update audio dts for pa algo set correct port id; for aw87xxx algo integration. Change-Id: I14191817e52cfeefe102fe749310cf468dea1d2a Signed-off-by: yaozm1 Reviewed-on: https://gerrit.mot.com/2343291 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-audio-penang-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-audio-penang-overlay.dtsi b/qcom/holi-audio-penang-overlay.dtsi index cc30ab92f33e..36dadf6bbf58 100644 --- a/qcom/holi-audio-penang-overlay.dtsi +++ b/qcom/holi-audio-penang-overlay.dtsi @@ -282,16 +282,16 @@ compatible = "awinic,aw87xxx_pa"; reg = <0x58>; dev_index = < 0 >; - aw-rx-topo-id = <0x1000ff01>; - aw-rx-port-id = <0xb030>; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; status = "okay"; }; aw887xx_smartpa_1: aw87xxx_pa@59 { compatible = "awinic,aw87xxx_pa"; reg = <0x59>; dev_index = < 1 >; - aw-rx-topo-id = <0x1000ff01>; - aw-rx-port-id = <0xb032>; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; status = "okay"; }; }; From 8ca8753efaa73dcd7a9360990cdebd678937f245 Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 25 Jul 2022 17:42:08 +0800 Subject: [PATCH 0866/1247] arm/dt: miami: update roi to 120 line to fix flicker arm/dt: Update roi from 12 line to 120 line, fix specific device flicker, maybe caused by roi region flicker, enlarge the size to include the flicker roi area. Change-Id: I728f1699793adea9d487555901ea13a309f02626 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2343588 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Submit-Approved: Jira Key --- qcom/miami-display.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index 48a4c75bd663..dfec26ebaef6 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -241,7 +241,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 03 02 02 04 00 0C 08]; @@ -251,7 +251,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; @@ -261,7 +261,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; @@ -271,7 +271,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; @@ -322,7 +322,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 03 02 02 04 00 0C 08]; @@ -332,7 +332,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; @@ -342,7 +342,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; @@ -352,7 +352,7 @@ qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; - qcom,panel-roi-alignment = <540 12 8 12 1080 12>; + qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; qcom,mdss-dsi-panel-phy-drive-strength = <255>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; From 0f8376cf0886a6e1bb6177c7e4fadc5728adfd5c Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Tue, 26 Jul 2022 11:28:31 +0800 Subject: [PATCH 0867/1247] arm/dt: miami: enable touch game mode configs arm/dt: Enable touch game mode: idle scan rate and corner grip suspression. Change-Id: If1297c09972c6f9e053c4b3779d625910c13bd14 Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2344461 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index 3f868ea36735..5f45e7dd5e18 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -90,6 +90,8 @@ goodix,panel-max-y = <19200>; goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; + goodix,sample-ctrl; + goodix,edge-ctrl; panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 &mot_csot_nt37701_628_1080x2400_dsc_cmd_v1>; From bf79cef442ad17bbb99bbd6c5a5d3047f07ed7f7 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 27 Jul 2022 11:42:49 +0800 Subject: [PATCH 0868/1247] arm/dts: reduce master cp min charging current reduce master cp min charging current to 1A to optimize charging curve for miami Change-Id: Id7bbd024c7f8300ff4dbd7aed225d4f3a15c27f0 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2345850 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index 7bbbc8dc6abb..f93d6db4a2e6 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -380,7 +380,7 @@ charger_device_1 { chrg-name = "cp-master"; psy-name = "bq25960-master"; - charging-curr-min = <1500000>; + charging-curr-min = <1000000>; }; charger_device_2 { chrg-name = "cp-slave"; From 186314b71c980784e3187faa2ade94144bcbab67 Mon Sep 17 00:00:00 2001 From: "[A" Date: Wed, 27 Jul 2022 17:04:00 +0800 Subject: [PATCH 0869/1247] device eye diagram parameter devie eye diagram parameter Change-Id: Ic50c490661fe2d6e098a5018743080ef305bcfc4 Signed-off-by: Reviewed-on: https://gerrit.mot.com/2346201 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 6cf29cfef144..bf4a068011c6 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -580,11 +580,11 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ + 0x37 0x240 /* TUNE1 */ 0x29 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ From 186e5264d78cf52c1f103f7a3509cf11c79f8ad4 Mon Sep 17 00:00:00 2001 From: "[A" Date: Wed, 27 Jul 2022 17:53:27 +0800 Subject: [PATCH 0870/1247] QC3.0 supports 18W charging qc3.0 supports 18W charging Change-Id: Id0273fd3426d2d896438a7f34d3a5947bf8885fc Signed-off-by: Reviewed-on: https://gerrit.mot.com/2346290 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index a133c2fd4426..e56932a5463c 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -133,7 +133,7 @@ mmi,lower-limit-capacity = <65>; mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; - mmi,hvdcp-power-max = <15000>; + mmi,hvdcp-power-max = <18000>; }; mmi_discrete_charger: mmi,discrete-charging { @@ -149,7 +149,7 @@ mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <1200000>; - mmi,df-serialnum = "SB18D24973"; + mmi,df-serialnum = "SB18D34202"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, <15 0 2500 2500>, From 9dd6106d7d790a540dabaacdeb958d127f7a0f6c Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Sat, 30 Jul 2022 13:41:22 +0800 Subject: [PATCH 0871/1247] dtsi/panel: The panel ft8057 bringup for display Modify: Bringup panel ft8057 panel,add the csot panel devicetree. Change-Id: Ic8f46d465f6e4207ffc5467b70d6532a0428286e Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2349834 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-csot-ft8057-653-720x1600-video.dtsi | 78 +++++++++++++++++++ qcom/penang-display.dtsi | 54 +++++++++++++ 2 files changed, 132 insertions(+) create mode 100644 qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi new file mode 100644 index 000000000000..be6f45e7512d --- /dev/null +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -0,0 +1,78 @@ +&mdss_mdp { + dsi_ft8057_csot_video: qcom,mdss_dsi_ft8057_csot_720x1600_653_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_csot_hd_653_720p_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <341>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 00 00 00 00 00 03 51 00 00 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 14 00 01 28 + 05 01 00 00 3C 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 780ece6eec3c..da69f59dea9a 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" +#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -179,6 +180,59 @@ }; }; +&dsi_ft8057_csot_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <128>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-inverted-dbv; + + /*qcom,esd-check-enabled;*/ + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A + 0B 0A 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 53ac2122eef8e33d06f6be89be5504a6cfcbfb1a Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Sat, 30 Jul 2022 14:54:45 +0800 Subject: [PATCH 0872/1247] arm/dts: The tp dtsi for ft8057 bringup Modify: Bringup tp for ft8057 , add TP bringup Change-Id: I5dee56b70a7bc6a457c625ead4a8823712fabed3 Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2349845 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/penang-touchscreen.dtsi | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index e229f9aae05f..270704b7d0ec 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -73,9 +73,23 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x0>; + spi-max-frequency = <9600000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 720 1600>; + focaltech,report_gesture_key; + focaltech,panel-supplier = "csot"; + panel = <&dsi_ft8057_csot_video>; + }; novatek@0{ compatible = "novatek,NVT-ts-spi"; - reg = <0x0>; + reg = <0x1>; spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ novatek,reset-gpio = <&tlmm 21 0x00>; novatek,irq-gpio = <&tlmm 22 0x2001>; From d04fce887601e8ce36977e16729eccb6933598f8 Mon Sep 17 00:00:00 2001 From: "hq_yexiuyon.wb_tmp" Date: Tue, 2 Aug 2022 18:55:02 +0800 Subject: [PATCH 0873/1247] dtsi/panel: The panel ft8057 fix for display Modify: fix panel ft8057 panel,fix the csot panel devicetree. Change-Id: I13f20e1bc8cdc834e9b9c20c10cd9951aa51c898 Signed-off-by: hq_yexiuyon.wb_tmp Reviewed-on: https://gerrit.mot.com/2351894 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi | 10 +++++----- qcom/penang-display.dtsi | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index be6f45e7512d..afe06ed13704 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -42,14 +42,14 @@ timing@0 { qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; - qcom,mdss-dsi-h-front-porch = <20>; - qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-front-porch = <16>; + qcom,mdss-dsi-h-back-porch = <16>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; - qcom,mdss-dsi-v-back-porch = <20>; - qcom,mdss-dsi-v-front-porch = <341>; - qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-v-back-porch = <28>; + qcom,mdss-dsi-v-front-porch = <350>; + qcom,mdss-dsi-v-pulse-width = <6>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-h-left-border = <0>; qcom,mdss-dsi-h-right-border = <0>; diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index da69f59dea9a..39225fc36037 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -220,13 +220,13 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x1A>; - qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x1E>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; - qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A - 0B 0A 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 24 09 09 1A 18 09 + 09 09 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From 179a170570e695eaaa2de0855c464ef034012fad Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Tue, 2 Aug 2022 21:05:18 +0800 Subject: [PATCH 0874/1247] SAR: The SAR SX937X config update Modify: Update SAR SX937X config Change-Id: Ic0b5d99b382c69c0b6186eab5c63e20a59f87dc8 Reviewed-on: https://gerrit.mot.com/2352081 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 126 ++++++++++++++------------- 1 file changed, 65 insertions(+), 61 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index bf4a068011c6..358cafa1433f 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -504,67 +504,71 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x8A6 - 0x8034 0x88E - 0x8040 0x8A6 - 0x804C 0x88E - 0x8058 0x88E - 0x8064 0x88E - 0x8070 0x88E - 0x807C 0x88E - 0x8030 0xFFD9FF - 0x803C 0xBFF9FF - 0x8048 0xFFF9FD - 0x8054 0xFEF9FF - 0x8060 0xF7F9FF - 0x806C 0xFFF97F - 0x8078 0xFFF9EF - 0x8084 0xBFF9FF - 0x8098 0x693E - 0x80B8 0x3131 - 0x80D8 0x6833 - 0x80F8 0x2929 - 0x8118 0x4C4C - 0x8138 0x8E - 0x8158 0x8E - 0x8178 0x5A40 - 0x80A0 0x22220001 - 0x80C0 0x1F1F0001 - 0x80E0 0x48540002 - 0x8100 0x1D1D001A - 0x8120 0x1A1A0002 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8190 0x10 - 0x8194 0x12 - 0x8090 0x64B45000 - 0x80B0 0x3CD05000 - 0x80D0 0x32D87000 - 0x80F0 0x3CD45000 - 0x8110 0x2CD87000 - 0x8130 0x54AC5000 - 0x8150 0x54AC5000 - 0x8170 0x54AC5000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x600000 - 0x8148 0x600000 - 0x8168 0x300000 - 0x808C 0x60200030 - 0x80AC 0x60200030 - 0x80CC 0x60200018 - 0x80EC 0x60200030 - 0x810C 0x60200018 - 0x812C 0x60200030 - 0x814C 0x60200030 - 0x816C 0x60200030 + 0x4004 0x78 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x857 + 0x8034 0x856 + 0x8040 0x856 + 0x804C 0x857 + 0x8058 0x856 + 0x8064 0x856 + 0x8070 0x856 + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFEF9FF + 0x8048 0xFFD9FF + 0x8054 0xFFF97F + 0x8060 0xBFF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x4831 + 0x80B8 0x3323 + 0x80D8 0x2D23 + 0x80F8 0x5B3C + 0x8118 0x2E2E + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x242400E0 + 0x80C0 0x262600E0 + 0x80E0 0x1E1E00E0 + 0x8100 0x202000E0 + 0x8120 0x1E1E00E0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54AD5000 + 0x80B0 0x2AD87000 + 0x80D0 0x54AE5000 + 0x80F0 0x2AD77000 + 0x8110 0x2AD77000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xE >; status = "ok"; }; From 95403feff78d86993666fc36f07a98dbff1bcef9 Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Thu, 11 Aug 2022 14:24:15 +0800 Subject: [PATCH 0875/1247] SAR: The SAR SX937X config update Modify: Update SAR SX937X config Change-Id: Ibdcecf68db4873cc5cb71cffcb9804bed7d206e0 Reviewed-on: https://gerrit.mot.com/2360405 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 87 ++++++++++++++-------------- 1 file changed, 45 insertions(+), 42 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 358cafa1433f..bbb9463fc0f5 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -504,17 +504,18 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < - 0x4004 0x78 - 0x4008 0x8 + 0x8024 0x7F00 + 0x4004 0x68 + 0x4280 0x0 0x8020 0x32 - 0x8028 0x857 - 0x8034 0x856 - 0x8040 0x856 - 0x804C 0x857 - 0x8058 0x856 - 0x8064 0x856 - 0x8070 0x856 - 0x807C 0x85E + 0x8028 0x856 + 0x8034 0x86E + 0x8040 0x86E + 0x804C 0xE96 + 0x8058 0x86E + 0x8064 0x86E + 0x8070 0x86E + 0x807C 0x85C 0x8030 0xFFF9FD 0x803C 0xFEF9FF 0x8048 0xFFD9FF @@ -523,34 +524,34 @@ 0x806C 0xFFF9EF 0x8078 0xF7F9FF 0x8084 0xFFFFFF - 0x8098 0x4831 - 0x80B8 0x3323 - 0x80D8 0x2D23 - 0x80F8 0x5B3C - 0x8118 0x2E2E - 0x8138 0xC8 - 0x8158 0xC8 - 0x8178 0xC8 - 0x80A0 0x242400E0 - 0x80C0 0x262600E0 - 0x80E0 0x1E1E00E0 - 0x8100 0x202000E0 - 0x8120 0x1E1E00E0 + 0x8098 0x4D34 + 0x80B8 0x4D34 + 0x80D8 0x4D34 + 0x80F8 0x4D34 + 0x8118 0x4D34 + 0x8138 0x0 + 0x8158 0x0 + 0x8178 0x0 + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 0x8140 0x0 0x8160 0x0 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x0 + 0x8190 0x6 0x8194 0x0 - 0x8090 0x54AD5000 - 0x80B0 0x2AD87000 - 0x80D0 0x54AE5000 - 0x80F0 0x2AD77000 - 0x8110 0x2AD77000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD66000 + 0x8090 0x4000 + 0x80B0 0x4000 + 0x80D0 0x4000 + 0x80F0 0x4000 + 0x8110 0x4000 + 0x8130 0x4000 + 0x8150 0x4000 + 0x8170 0x0 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 @@ -558,17 +559,19 @@ 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 - 0x80CC 0x60200018 - 0x80EC 0x60200018 - 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 + 0x8168 0x0 + 0x808C 0x402500 + 0x80AC 0x402500 + 0x80CC 0x402500 + 0x80EC 0x402500 + 0x810C 0x402500 + 0x812C 0x402500 + 0x814C 0x402500 + 0x816C 0x0 + 0x4280 0xF + 0x4280 0xF 0x8024 0x7F7F - 0x4280 0xE + 0x4280 0xe >; status = "ok"; }; From 68519c138c1e903df2c15f5c8161189faae6fbdd Mon Sep 17 00:00:00 2001 From: "[A" Date: Mon, 15 Aug 2022 15:41:55 +0800 Subject: [PATCH 0876/1247] bring up SC2150ACFFR bring up SC2150ACFFR Change-Id: Ic4832aa5fee0de87fbc9fc202d86ebd691b4a5f5 Signed-off-by: Reviewed-on: https://gerrit.mot.com/2362611 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 1 + qcom/rt1711h-penang.dtsi | 179 +++++++++++++++++++++++++++++ 2 files changed, 180 insertions(+) create mode 100644 qcom/rt1711h-penang.dtsi diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index e56932a5463c..0f04e5b829c2 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -10,6 +10,7 @@ * GNU General Public License for more details. */ #include +#include "rt1711h-penang.dtsi" #include "sgm7220-penang.dtsi" #include "discrete-rt-pd-manger.dtsi" diff --git a/qcom/rt1711h-penang.dtsi b/qcom/rt1711h-penang.dtsi new file mode 100644 index 000000000000..cf09369ea878 --- /dev/null +++ b/qcom/rt1711h-penang.dtsi @@ -0,0 +1,179 @@ +/* + * Copyright (c) 2020 Richtek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include + +&qupv3_se8_i2c { + status = "okay"; + rt1711h@4e { + compatible = "richtek,rt1711h"; + reg = <0x4e>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + rt-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + rt-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + rt-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + rt-tcpc,vconn_supply = <1>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + rt1711pd,intr_gpio = <&tlmm 60 0x0>; + rt1711pd,intr_gpio_num = <60>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1711h_int_n>; + pd-data { + pd,vid = <0x29cf>; + pd,pid = <0x1711>; + pd,source-cap-ext = <0x171129cf 0x00000000 0x00000000 + 0x00000000 0x00000000 0x02000000>; + pd,mfrs = "RichtekTCPC"; + + /* + * VSAFE5V = 0, MAX_POWER = 1, CUSTOM = 2, + * MAX_POWER_LV = 0x21, MAX_POWER_LVIC = 0x31 + * MAX_POWER_HV = 0x41, MAX_POWER_HVIC = 0x51 + */ + pd,charging_policy= <0x31>; + + /* + * Fixed 5V, 500 mA <0x00019032> + * Fixed 5V, 1A <0x00019064> + * Fixed 5V, 2A <0x000190c8> + * Fixed 5V, 3A <0x0001912c> + * Fixed 9V, 500 mA <0x0002d032> + * Fixed 9V, 1A <0x0002d064> + * Fixed 9V, 2A <0x0002d0c8> + * Fixed 9V, 3A <0x0002d12c> + * Variable 5-9V, 1A <0x8642d064> + * Variable 5-9V, 2A <0x8642d0c8> + * Variable 5-9V, 3A <0x8642d12c> + * PPS 3V~5.9V, 3A <0xC0761E3C> + */ + pd,source-pdo-size = <1>; + pd,source-pdo-data = <0x00019032>; + pd,sink-pdo-size = <1>; + pd,sink-pdo-data = <0x0001912c>; + + /* + * No DP, host + device + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + * With DP + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd54029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + */ + + pd,id-vdo-size = <6>; + pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + + bat,nr = <1>; + pd,country_nr = <0>; + + bat-info0 { + bat,vid = <0x29cf>; + bat,pid = <0x1711>; + bat,mfrs = "bat1"; + bat,design_cap = <3000>; + }; + + //bat-info1 { + // bat,vid = <0x8abc>; + // bat,pid = <0x5234>; + // bat,mfrs = "bat2"; + // bat,design_cap = <4000>; + //}; + + //country0 { + // pd,country_code = <0x5457>; + // pd,country_len = <2>; /* max len = 26 */ + // pd,country_data = <0xff 0xff>; + //}; + + //country1 { + // pd,country_code = <0x5553>; + // pd,country_len = <3>; /* max len = 26 */ + // pd,country_data = <0xf1 0xf2 0xf3>; + //}; + }; + dpm_caps { + local_dr_power; + local_dr_data; + //local_ext_power; + local_usb_comm; + //local_usb_suspend; + //local_high_cap; + //local_give_back; + local_no_suspend; + local_vconn_supply; + + //attemp_discover_cable_dfp; + attemp_enter_dp_mode; + attemp_discover_cable; + attemp_discover_id; + + /* 0: disable, 1: prefer_snk, 2: prefer_src */ + pr_check = <0>; + //pr_reject_as_source; + //pr_reject_as_sink; + //pr_check_gp_source; + //pr_check_gp_sink; + + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <0>; + //dr_reject_as_dfp; + //dr_reject_as_ufp; + }; + displayport { + /* connection type = "both", "ufp_d", "dfp_d" */ + 1st_connection = "dfp_d"; + 2nd_connection = "dfp_d"; + signal,dp_v13; + //signal,dp_gen2; + //usbr20_not_used; + typec,receptacle; + ufp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + //pin_assignment,mode_c; + //pin_assignment,mode_d; + //pin_assignment,mode_e; + }; + dfp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + pin_assignment,mode_c; + pin_assignment,mode_d; + pin_assignment,mode_e; + //pin_assignment,mode_f; + }; + }; + }; +}; + +&tlmm { + rt1711h_int_n: rt1711h_int_n { + mux { + pins = "gpio60"; + function = "gpio"; + }; + + config { + pins = "gpio60"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From 72abd31fb8514a962a89bc1b2dc5d020a586dbe4 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Mon, 15 Aug 2022 16:24:01 +0800 Subject: [PATCH 0877/1247] display: The lcd backlight shift mode update Modify: update lcd backlight shift mode for the 2nd supply Change-Id: Ida6c2fb1ae362d35a95f6f212b50b68b17c37489 Signed-off-by: hq_caoqunhui_tmp Reviewed-on: https://gerrit.mot.com/2362656 Reviewed-by: Hua Tan SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi | 1 + qcom/penang-display.dtsi | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index afe06ed13704..cf37bb779e5a 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -27,6 +27,7 @@ qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <255>; + qcom,mdss-dsi-bl-level-align = <1>; qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 39225fc36037..0f645cd17f48 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -193,7 +193,6 @@ qcom,mdss-dsi-bl-max-level = <2047>; qcom,mdss-dsi-bl-default-level = <128>; qcom,mdss-brightness-max-level = <2047>; - qcom,mdss-dsi-bl-inverted-dbv; /*qcom,esd-check-enabled;*/ qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From e1777e655c0a5c9307f9399d003b2bf597fb6a4b Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Wed, 17 Aug 2022 14:43:34 +0800 Subject: [PATCH 0878/1247] SAR: The SAR SX937X config update 8/17 Modify: Update SAR SX937X config Change-Id: I351447d2408b3e016f892f3869ed5d8a1c79f9be Reviewed-on: https://gerrit.mot.com/2364915 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 80 ++++++++++++++-------------- 1 file changed, 39 insertions(+), 41 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index bbb9463fc0f5..9b3ce754258b 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -505,17 +505,17 @@ Semtech,reg-num = <61>; Semtech,reg-init = < 0x8024 0x7F00 - 0x4004 0x68 - 0x4280 0x0 + 0x4004 0x78 + 0x4008 0x8 0x8020 0x32 - 0x8028 0x856 + 0x8028 0x88E 0x8034 0x86E - 0x8040 0x86E + 0x8040 0x88E 0x804C 0xE96 - 0x8058 0x86E - 0x8064 0x86E + 0x8058 0x46E + 0x8064 0x88E 0x8070 0x86E - 0x807C 0x85C + 0x807C 0x85E 0x8030 0xFFF9FD 0x803C 0xFEF9FF 0x8048 0xFFD9FF @@ -524,34 +524,34 @@ 0x806C 0xFFF9EF 0x8078 0xF7F9FF 0x8084 0xFFFFFF - 0x8098 0x4D34 - 0x80B8 0x4D34 - 0x80D8 0x4D34 - 0x80F8 0x4D34 - 0x8118 0x4D34 - 0x8138 0x0 - 0x8158 0x0 - 0x8178 0x0 - 0x80A0 0x0 - 0x80C0 0x0 - 0x80E0 0x0 - 0x8100 0x0 - 0x8120 0x0 + 0x8098 0x3F2C + 0x80B8 0x3620 + 0x80D8 0x3821 + 0x80F8 0x2B24 + 0x8118 0x2A2A + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x222200E1 + 0x80C0 0x161600E2 + 0x80E0 0x202000E1 + 0x8100 0x202000E0 + 0x8120 0x202000E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x6 + 0x8190 0x0 0x8194 0x0 - 0x8090 0x4000 - 0x80B0 0x4000 - 0x80D0 0x4000 - 0x80F0 0x4000 - 0x8110 0x4000 - 0x8130 0x4000 - 0x8150 0x4000 - 0x8170 0x0 + 0x8090 0x54AD5000 + 0x80B0 0x2AD87000 + 0x80D0 0x54AE5000 + 0x80F0 0x2AD77000 + 0x8110 0x2AD77000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 @@ -559,19 +559,17 @@ 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 - 0x8168 0x0 - 0x808C 0x402500 - 0x80AC 0x402500 - 0x80CC 0x402500 - 0x80EC 0x402500 - 0x810C 0x402500 - 0x812C 0x402500 - 0x814C 0x402500 - 0x816C 0x0 - 0x4280 0xF - 0x4280 0xF + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F - 0x4280 0xe + 0x4280 0xE >; status = "ok"; }; From cea7ae913c98c16ecb9ed58e8ce76ccac84ae066 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Wed, 17 Aug 2022 15:18:54 +0800 Subject: [PATCH 0879/1247] dtsi/panel: The panel ft8057 init code update Modify: update the panel ft8057 init code Change-Id: I8e279df996f2ae99ea3cd83fc088d6c21d1f88c0 Signed-off-by: hq_caoqunhui_tmp Reviewed-on: https://gerrit.mot.com/2364951 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-csot-ft8057-653-720x1600-video.dtsi | 21 ++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index cf37bb779e5a..3d54d706c3d0 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -58,11 +58,26 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 03 51 00 00 - 15 00 00 00 00 00 02 53 2C - 15 00 00 00 00 00 02 55 01 + 39 01 00 00 00 00 02 00 00 + 39 01 00 00 00 00 04 FF 80 57 01 + 39 01 00 00 00 00 02 00 80 + 39 01 00 00 00 00 03 FF 80 57 + 39 01 00 00 00 00 02 00 B0 + 39 01 00 00 00 00 04 CA 02 02 0B + 39 01 00 00 00 00 02 00 B5 + 39 01 00 00 00 00 02 CA 06 + 39 01 00 00 00 00 02 00 A0 + 39 01 00 00 00 00 04 CA 06 06 06 + 39 01 00 00 00 00 02 00 00 + 39 01 00 00 00 00 04 FF 00 00 00 + 39 01 00 00 00 00 02 00 80 + 39 01 00 00 00 00 03 FF 00 00 + 39 01 00 00 00 00 02 35 00 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 00 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 14 00 01 28 From d58784fc14f66d90ff46ad9e7dd9b0a2946ece3d Mon Sep 17 00:00:00 2001 From: Yuchang Guo Date: Fri, 19 Aug 2022 17:23:53 +0800 Subject: [PATCH 0880/1247] arm/dts:penang:update sx9310 config sx9310: Disable conversion interrupt. Change-Id: I7e5bed3aa10af8b92a8c846ce846ba491cdb5a42 Reviewed-on: https://gerrit.mot.com/2366864 Reviewed-by: Xiangpo Zhao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 9b3ce754258b..0cd643077ef0 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -505,7 +505,7 @@ Semtech,reg-num = <61>; Semtech,reg-init = < 0x8024 0x7F00 - 0x4004 0x78 + 0x4004 0x70 0x4008 0x8 0x8020 0x32 0x8028 0x88E From 6cd068bb409c56019ec8c57eb77b732d3da4e593 Mon Sep 17 00:00:00 2001 From: liujg6 Date: Fri, 5 Aug 2022 10:59:55 +0800 Subject: [PATCH 0881/1247] dts: add init dts files for pnangn [Details] Add initial dts files for penang5G NA Most files are inherited from penang5G ROW but with 2 changes: a. temp removed discrete charging dtsi to make adb works b. temp disabled sar sensor to make reboot/poweroff works Change-Id: I6609dc18faa3106d463146071cb77e635490ddb9 Reviewed-on: https://gerrit.mot.com/2355036 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Xianhong Li Reviewed-on: https://gerrit.mot.com/2368039 Reviewed-by: Wang Wang --- qcom/Makefile | 5 + qcom/discrete_charging_pnangn.dtsi | 211 +++++++++ qcom/holi-audio-pnangn-overlay.dtsi | 365 ++++++++++++++++ qcom/holi-pnangn-common-overlay.dtsi | 619 +++++++++++++++++++++++++++ qcom/holi-pnangn-evt1-overlay.dts | 24 ++ qcom/pnangn-display.dtsi | 255 +++++++++++ qcom/pnangn-fmr-overlay.dtsi | 5 + qcom/pnangn-fps-overlay.dtsi | 124 ++++++ qcom/pnangn-sensors.dtsi | 13 + qcom/pnangn-touchscreen.dtsi | 106 +++++ qcom/sgm7220-pnangn.dtsi | 50 +++ 11 files changed, 1777 insertions(+) create mode 100644 qcom/discrete_charging_pnangn.dtsi create mode 100644 qcom/holi-audio-pnangn-overlay.dtsi create mode 100644 qcom/holi-pnangn-common-overlay.dtsi create mode 100644 qcom/holi-pnangn-evt1-overlay.dts create mode 100644 qcom/pnangn-display.dtsi create mode 100644 qcom/pnangn-fmr-overlay.dtsi create mode 100644 qcom/pnangn-fps-overlay.dtsi create mode 100755 qcom/pnangn-sensors.dtsi create mode 100755 qcom/pnangn-touchscreen.dtsi create mode 100644 qcom/sgm7220-pnangn.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 9f488872dce8..b41807bfa7b5 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -105,6 +105,11 @@ dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_PNANGN_DTB) += \ + holi-pnangn-evt1-overlay.dtbo + +holi-pnangn-evt1-overlay.dtbo-base := holi-moto-base.dtb + dtbo-$(CONFIG_RHODEP_DTB) += \ blair-rhodep-evt1-overlay.dtbo \ blair-rhodep-evt2-overlay.dtbo \ diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi new file mode 100644 index 000000000000..e57299781c94 --- /dev/null +++ b/qcom/discrete_charging_pnangn.dtsi @@ -0,0 +1,211 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include +#include "sgm7220-pnangn.dtsi" +#include "discrete-rt-pd-manger.dtsi" + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + sense_r_mohm = <5>; + factory_mode_ntc_exist = <0>; + df-serialnum = "SB18D34202"; + #include "bat_setting/CW_nd50-atl-4850mah.dtsi" + #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" + #include "bat_setting/CW_nd50-local-4850mah.dtsi" + }; +}; + +&qupv3_se10_i2c { + status = "okay"; + + sgm41543: sgm41543@0B { + status = "okay"; + compatible = "sgm,sgm41543D"; + reg = <0x0B>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <59 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design + // sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&qusb_phy0>; + mmi,qc3-support; + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890: bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 59 0>; + //bq2589x_en-gpio = <&tlmm 45 0>; + dpdm-supply = <&qusb_phy0>; + + mmi,qc3-support; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; + +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <70>; + mmi,lower-limit-capacity = <65>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <18000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; + mmi,df-serialnum = "SB18D34202"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 4000 4000>, + <60 4200 4000 0>; + + mmi,thermal-mitigation = <4000000 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000 300000>; + }; +}; + + +&tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + +/* + chg_irq_default: chg_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + bias-pull-up; + drive-strength = <2>; + input-enable; + }; + }; +*/ +}; diff --git a/qcom/holi-audio-pnangn-overlay.dtsi b/qcom/holi-audio-pnangn-overlay.dtsi new file mode 100644 index 000000000000..36dadf6bbf58 --- /dev/null +++ b/qcom/holi-audio-pnangn-overlay.dtsi @@ -0,0 +1,365 @@ +#include +#include +#include +#include +#include + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,mi2s-audio-intf = <0>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se7_i2c { + status = "ok"; + aw887xx_smartpa_0: aw87xxx_pa@58 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x58>; + dev_index = < 0 >; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; + aw887xx_smartpa_1: aw87xxx_pa@59 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x59>; + dev_index = < 1 >; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi new file mode 100644 index 000000000000..5afb58323bd2 --- /dev/null +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -0,0 +1,619 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-pnangn-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" + +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "pnangn-fps-overlay.dtsi" +#include "pnangn-display.dtsi" +#include "pnangn-touchscreen.dtsi" +#include "pnangn-fmr-overlay.dtsi" +//#include "camera/holi-camera-sensor-mot-penang-overlay.dtsi" +//#include "discrete_charging_pnangn.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "disabled"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + + +&tlmm { + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + + + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 101 0x0>; + status = "ok"; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; + +&qupv3_se8_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&L9A>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x4004 0x78 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x857 + 0x8034 0x856 + 0x8040 0x856 + 0x804C 0x857 + 0x8058 0x856 + 0x8064 0x856 + 0x8070 0x856 + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFEF9FF + 0x8048 0xFFD9FF + 0x8054 0xFFF97F + 0x8060 0xBFF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x4831 + 0x80B8 0x3323 + 0x80D8 0x2D23 + 0x80F8 0x5B3C + 0x8118 0x2E2E + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x242400E0 + 0x80C0 0x262600E0 + 0x80E0 0x1E1E00E0 + 0x8100 0x202000E0 + 0x8120 0x1E1E00E0 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54AD5000 + 0x80B0 0x2AD87000 + 0x80D0 0x54AE5000 + 0x80F0 0x2AD77000 + 0x8110 0x2AD77000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + 0x4280 0xE + >; + status = "disabled"; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-pnangn-evt1-overlay.dts b/qcom/holi-pnangn-evt1-overlay.dts new file mode 100644 index 000000000000..0a9c43ea7da1 --- /dev/null +++ b/qcom/holi-pnangn-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-pnangn-common-overlay.dtsi" + +/ { + model = "pnangn"; + compatible = "qcom,holi-pnangn", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x4E 0xA100>; +}; + diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi new file mode 100644 index 000000000000..39225fc36037 --- /dev/null +++ b/qcom/pnangn-display.dtsi @@ -0,0 +1,255 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" +#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 00 30 30]; +}; + + +&tlmm { + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_nt36528_djn_video>; +}; + +&dsi_nt36528_djn_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <128>; + qcom,mdss-brightness-max-level = <2047>; + + /*qcom,esd-check-enabled;*/ + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A + 0B 0A 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_ft8057_csot_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <128>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-inverted-dbv; + + /*qcom,esd-check-enabled;*/ + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x1E>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 24 09 09 1A 18 09 + 09 09 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + diff --git a/qcom/pnangn-fmr-overlay.dtsi b/qcom/pnangn-fmr-overlay.dtsi new file mode 100644 index 000000000000..7c8b3bb156eb --- /dev/null +++ b/qcom/pnangn-fmr-overlay.dtsi @@ -0,0 +1,5 @@ +&tlmm { +}; + +&soc { +}; diff --git a/qcom/pnangn-fps-overlay.dtsi b/qcom/pnangn-fps-overlay.dtsi new file mode 100644 index 000000000000..951d04a7ecdc --- /dev/null +++ b/qcom/pnangn-fps-overlay.dtsi @@ -0,0 +1,124 @@ +&tlmm { + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_rst_high: fps_rst_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <8>; + output-high; + bias-pull-up; + }; + }; + + fps_rst_low: fps_rst_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + config { + pins = "gpio18"; + drive-strength = <8>; + output-low; + bias-pull-down; + }; + }; + + fps_ldo3_en_active: fps_ldo3_en_active { + /* active state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-high; + }; + }; + + fps_ldo3_en_suspend: fps_ldo3_en_suspend { + /* sleep state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-low; + }; + }; + +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + fp-gpio-ven = <&tlmm 87 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_int_active>; + pinctrl-1 = < &fps_int_suspend>; + }; + //chipone side fps + fingerprint: chipone7318 { + compatible = "qcom,fingerprint-gpio"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; + fp-gpio-power = <&tlmm 87 0x0>; + pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ido1p8_en_active","fps_ido1p8_en_suspend"; + + pinctrl-0 = <&fps_rst_high>; + pinctrl-1 = <&fps_rst_low>; + pinctrl-2 = <&fps_int_active>; + pinctrl-3 = <&fps_ldo3_en_active>; + pinctrl-4 = <&fps_ldo3_en_suspend>; + }; +}; + diff --git a/qcom/pnangn-sensors.dtsi b/qcom/pnangn-sensors.dtsi new file mode 100755 index 000000000000..14e283ce4728 --- /dev/null +++ b/qcom/pnangn-sensors.dtsi @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi new file mode 100755 index 000000000000..270704b7d0ec --- /dev/null +++ b/qcom/pnangn-touchscreen.dtsi @@ -0,0 +1,106 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x0>; + spi-max-frequency = <9600000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 720 1600>; + focaltech,report_gesture_key; + focaltech,panel-supplier = "csot"; + panel = <&dsi_ft8057_csot_video>; + }; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x1>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <720 1600>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; + novatek,panel-supplier = "djn"; + panel = <&dsi_nt36528_djn_video>; + status = "ok"; + }; +}; diff --git a/qcom/sgm7220-pnangn.dtsi b/qcom/sgm7220-pnangn.dtsi new file mode 100644 index 000000000000..f02e3f4108b8 --- /dev/null +++ b/qcom/sgm7220-pnangn.dtsi @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2021 motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR tcpcA PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se8_i2c { + status = "okay"; + sgm7220: sgm7220@47 { + compatible = "sgm,usb_type_c_sgm7220"; + reg = <0x47>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + sgm7220-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + sgm7220-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + sgm7220,intr_gpio = <&tlmm 60 0x0>; + sgm7220,intr_gpio_num = <60>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n>; + }; +}; + + +&tlmm { + sgm7220_int_n: sgm7220_int_n { + mux { + pins = "gpio60"; + function = "gpio"; + }; + + config { + pins = "gpio60"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From 4c6c9cba24c1dd61df84bfdea0c6cfb2a3b6cfd8 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Mon, 8 Aug 2022 17:04:51 +0800 Subject: [PATCH 0882/1247] dts/panel:pnangn: 1st djn panel display driver bringup pnangn: 1st djn + NVT panel djn panel display driver bringup Change-Id: I73fe98073c1cf5fb155911fbdb382bdf6d338b72 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2356941 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jianguo Liu Reviewed-on: https://gerrit.mot.com/2368714 Reviewed-by: Wang Wang --- ...djn-nt36528-653-hdplus-720x1600-video.dtsi | 86 +++++++++++++++++++ qcom/pnangn-display.dtsi | 38 ++++---- 2 files changed, 106 insertions(+), 18 deletions(-) create mode 100644 qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi new file mode 100644 index 000000000000..496887922f57 --- /dev/null +++ b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi @@ -0,0 +1,86 @@ +&mdss_mdp { + dsi_djn_nt36528_hdplus_video: qcom,mdss_dsi_nt36528_djn_hdplus_720x1600_653_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_djn_hdplus_653_720p"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <20>; + qcom,mdss-dsi-v-front-porch = <341>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 15 00 00 00 00 00 02 FF 23 + 15 00 00 00 00 00 02 FB 01 + 15 00 00 00 00 00 02 00 80 //60: 11bit, 80:12bit + 15 00 00 00 00 00 02 07 00 + 15 00 00 00 00 00 02 08 01 + 15 00 00 00 00 00 02 09 AE + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 39 00 00 00 00 00 03 51 00 00 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 15 00 00 00 00 00 02 FF 10 + 15 00 00 00 00 00 02 FB 01 + 05 00 00 00 14 00 01 28 + 05 01 00 00 3C 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 39225fc36037..bd4785d86c80 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -1,6 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" -#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" +#include "dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi" +//#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -19,12 +19,12 @@ &tlmm { lcd_panel_avdd_default: lcd_panel_avdd_default { mux { - pins = "gpio84"; + pins = "gpio85"; function = "gpio"; }; config { - pins = "gpio84"; + pins = "gpio85"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -33,12 +33,12 @@ lcd_panel_avee_default: lcd_panel_avee_default { mux { - pins = "gpio85"; + pins = "gpio86"; function = "gpio"; }; config { - pins = "gpio85"; + pins = "gpio86"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -54,7 +54,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 84 0>; + gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; proxy-supply = <&lcd_panel_avdd>; @@ -68,7 +68,7 @@ regulator-min-microvolt = <5500000>; regulator-max-microvolt = <5500000>; regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 85 0>; + gpio = <&tlmm 86 0>; enable-active-high; regulator-boot-on; proxy-supply = <&lcd_panel_avee>; @@ -125,10 +125,10 @@ ibb-supply = <&lcd_panel_avee>; vddio-supply = <&L13A>; - qcom,dsi-default-panel = <&dsi_nt36528_djn_video>; + qcom,dsi-default-panel = <&dsi_djn_nt36528_hdplus_video>; }; -&dsi_nt36528_djn_video { +&dsi_djn_nt36528_hdplus_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -138,9 +138,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <128>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-max-level = <3500>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <3500>; /*qcom,esd-check-enabled;*/ qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -150,7 +150,7 @@ qcom,mdss-dsi-panel-on-check-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; + qcom,mdss-dsi-panel-supplier = "djn"; qcom,suspend-ulps-enabled; @@ -162,9 +162,9 @@ qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + //qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + //qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x1A>; @@ -180,6 +180,7 @@ }; }; +/* &dsi_ft8057_csot_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -195,7 +196,7 @@ qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-bl-inverted-dbv; - /*qcom,esd-check-enabled;*/ + //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; @@ -232,6 +233,7 @@ }; }; }; +*/ &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; From d663af59015ba3b69c32f2ccf4993fe43dcfff48 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Thu, 11 Aug 2022 14:11:45 +0800 Subject: [PATCH 0883/1247] dts/panel:pnangn: 1st djn panel NVT touch driver bringup pnangn: 1st djn + NVT panel djn panel NVT touch driver bringup Change-Id: Idf1dd4fddee242f3bb5da500775e7d6b2d658131 Signed-off-by: hujing3 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Jianguo Liu Reviewed-on: https://gerrit.mot.com/2368715 Reviewed-by: Wang Wang --- qcom/pnangn-touchscreen.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index 270704b7d0ec..839b48408ebb 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -64,7 +64,7 @@ config { pins = "gpio3"; drive-strength = <6>; - bias-pull-up; + output-high; }; }; }; @@ -73,6 +73,7 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; +/* focaltech@38{ compatible = "focaltech,fts"; reg = <0x0>; @@ -87,6 +88,7 @@ focaltech,panel-supplier = "csot"; panel = <&dsi_ft8057_csot_video>; }; +*/ novatek@0{ compatible = "novatek,NVT-ts-spi"; reg = <0x1>; @@ -100,7 +102,7 @@ novatek,usb_charger; novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "djn"; - panel = <&dsi_nt36528_djn_video>; + panel = <&dsi_djn_nt36528_hdplus_video>; status = "ok"; }; }; From 5f04fe212e84b6bf7e5690c03a15e27f1268af25 Mon Sep 17 00:00:00 2001 From: guoyf2 Date: Tue, 23 Aug 2022 13:42:24 +0800 Subject: [PATCH 0884/1247] arm64/dtsi: pnangn audio bringup changes: config aw88261 dual smartpa Change-Id: I4230e1f524f2f87db01ad0b2872a75b36dcce5ec Signed-off-by: guoyf2 Reviewed-on: https://gerrit.mot.com/2368808 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yunfei Guo Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- ...dio-wcd9370-aw882xx-acf-dual-overlay.dtsi} | 101 ++++++++++++++---- 2 files changed, 82 insertions(+), 21 deletions(-) rename qcom/{holi-audio-pnangn-overlay.dtsi => pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi} (81%) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index 5afb58323bd2..e04ba292ad73 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-audio-pnangn-overlay.dtsi" +#include "pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include "holi-nopmi-moto-common-overlay.dtsi" #include diff --git a/qcom/holi-audio-pnangn-overlay.dtsi b/qcom/pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi similarity index 81% rename from qcom/holi-audio-pnangn-overlay.dtsi rename to qcom/pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index 36dadf6bbf58..8382ac531ace 100644 --- a/qcom/holi-audio-pnangn-overlay.dtsi +++ b/qcom/pnangn-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -4,6 +4,32 @@ #include #include +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + &cdc_dmic01_gpios { status = "disabled"; }; @@ -56,6 +82,19 @@ qcom,msm-mi2s-lines = <0>; }; +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + &bolero { qcom,num-macros = <3>; qcom,bolero-version = <5>; @@ -220,10 +259,11 @@ }; &holi_snd { - qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; - qcom,mi2s-audio-intf = <0>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; qcom,audio-routing = "AMIC1", "Analog Mic1", @@ -267,32 +307,53 @@ qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, - <&wcd937x_codec>; + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", - "wcd937x_codec"; + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se7_i2c { +&qupv3_se10_i2c { status = "ok"; - aw887xx_smartpa_0: aw87xxx_pa@58 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x58>; - dev_index = < 0 >; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; - }; - aw887xx_smartpa_1: aw87xxx_pa@59 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x59>; - dev_index = < 1 >; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_recv_irq_default>; + irq-gpio = <&tlmm 84 0x2008>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; }; }; From 978543da833bab6e7f47e9805e3185ac3715ba15 Mon Sep 17 00:00:00 2001 From: xieqiong2 Date: Wed, 17 Aug 2022 15:53:17 +0800 Subject: [PATCH 0885/1247] arm/dtsi: pnangn: usb: config cclogic for pnangn dts/cc logic rt1715 & sgm7220 config cclogic for pnangn. Change-Id: I2e38670e13122f8230abf9db3dd93eee0a9f71c3 Signed-off-by: shenying2 Reviewed-on: https://gerrit.mot.com/2363429 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: liujian Reviewed-on: https://gerrit.mot.com/2368972 Reviewed-by: Qiong Xie Reviewed-by: Wang Wang --- qcom/discrete_charging_pnangn.dtsi | 1 + qcom/sgm7220-pnangn.dtsi | 14 +-- qcom/tcpc_config_pnangn.dtsi | 179 +++++++++++++++++++++++++++++ 3 files changed, 187 insertions(+), 7 deletions(-) create mode 100644 qcom/tcpc_config_pnangn.dtsi diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index e57299781c94..d6ad95e626fb 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -10,6 +10,7 @@ * GNU General Public License for more details. */ #include +#include "tcpc_config_pnangn.dtsi" #include "sgm7220-pnangn.dtsi" #include "discrete-rt-pd-manger.dtsi" diff --git a/qcom/sgm7220-pnangn.dtsi b/qcom/sgm7220-pnangn.dtsi index f02e3f4108b8..0267bc637b8e 100644 --- a/qcom/sgm7220-pnangn.dtsi +++ b/qcom/sgm7220-pnangn.dtsi @@ -11,11 +11,11 @@ * GNU General Public License for more details. */ -&qupv3_se8_i2c { +&qupv3_se10_i2c { status = "okay"; - sgm7220: sgm7220@47 { + sgm7220: sgm7220@67 { compatible = "sgm,usb_type_c_sgm7220"; - reg = <0x47>; + reg = <0x67>; status = "okay"; tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ /* 1: dfp, 2: ufp */ @@ -25,8 +25,8 @@ sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ /* 2: EMarkOnly, 3: StartOnly */ - sgm7220,intr_gpio = <&tlmm 60 0x0>; - sgm7220,intr_gpio_num = <60>; + sgm7220,intr_gpio = <&tlmm 11 0x0>; + sgm7220,intr_gpio_num = <11>; pinctrl-names = "default"; pinctrl-0 = <&sgm7220_int_n>; }; @@ -36,12 +36,12 @@ &tlmm { sgm7220_int_n: sgm7220_int_n { mux { - pins = "gpio60"; + pins = "gpio11"; function = "gpio"; }; config { - pins = "gpio60"; + pins = "gpio11"; drive-strength = <2>; bias-pull-up; }; diff --git a/qcom/tcpc_config_pnangn.dtsi b/qcom/tcpc_config_pnangn.dtsi new file mode 100644 index 000000000000..cfe35b8a81c1 --- /dev/null +++ b/qcom/tcpc_config_pnangn.dtsi @@ -0,0 +1,179 @@ +/* + * Copyright (c) 2020 Richtek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include + +&qupv3_se10_i2c { + status = "okay"; + rt1711h@4e { + compatible = "richtek,rt1711h"; + reg = <0x4e>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + rt-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + rt-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + rt-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + rt-tcpc,vconn_supply = <1>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + rt1711pd,intr_gpio = <&tlmm 11 0x0>; + rt1711pd,intr_gpio_num = <11>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1711h_int_n>; + pd-data { + pd,vid = <0x29cf>; + pd,pid = <0x1711>; + pd,source-cap-ext = <0x171129cf 0x00000000 0x00000000 + 0x00000000 0x00000000 0x02000000>; + pd,mfrs = "RichtekTCPC"; + + /* + * VSAFE5V = 0, MAX_POWER = 1, CUSTOM = 2, + * MAX_POWER_LV = 0x21, MAX_POWER_LVIC = 0x31 + * MAX_POWER_HV = 0x41, MAX_POWER_HVIC = 0x51 + */ + pd,charging_policy= <0x31>; + + /* + * Fixed 5V, 500 mA <0x00019032> + * Fixed 5V, 1A <0x00019064> + * Fixed 5V, 2A <0x000190c8> + * Fixed 5V, 3A <0x0001912c> + * Fixed 9V, 500 mA <0x0002d032> + * Fixed 9V, 1A <0x0002d064> + * Fixed 9V, 2A <0x0002d0c8> + * Fixed 9V, 3A <0x0002d12c> + * Variable 5-9V, 1A <0x8642d064> + * Variable 5-9V, 2A <0x8642d0c8> + * Variable 5-9V, 3A <0x8642d12c> + * PPS 3V~5.9V, 3A <0xC0761E3C> + */ + pd,source-pdo-size = <1>; + pd,source-pdo-data = <0x00019032>; + pd,sink-pdo-size = <1>; + pd,sink-pdo-data = <0x0001912c>; + + /* + * No DP, host + device + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + * With DP + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd54029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + */ + + pd,id-vdo-size = <6>; + pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + + bat,nr = <1>; + pd,country_nr = <0>; + + bat-info0 { + bat,vid = <0x29cf>; + bat,pid = <0x1711>; + bat,mfrs = "bat1"; + bat,design_cap = <3000>; + }; + + //bat-info1 { + // bat,vid = <0x8abc>; + // bat,pid = <0x5234>; + // bat,mfrs = "bat2"; + // bat,design_cap = <4000>; + //}; + + //country0 { + // pd,country_code = <0x5457>; + // pd,country_len = <2>; /* max len = 26 */ + // pd,country_data = <0xff 0xff>; + //}; + + //country1 { + // pd,country_code = <0x5553>; + // pd,country_len = <3>; /* max len = 26 */ + // pd,country_data = <0xf1 0xf2 0xf3>; + //}; + }; + dpm_caps { + local_dr_power; + local_dr_data; + //local_ext_power; + local_usb_comm; + //local_usb_suspend; + //local_high_cap; + //local_give_back; + local_no_suspend; + local_vconn_supply; + + //attemp_discover_cable_dfp; + attemp_enter_dp_mode; + attemp_discover_cable; + attemp_discover_id; + + /* 0: disable, 1: prefer_snk, 2: prefer_src */ + pr_check = <0>; + //pr_reject_as_source; + //pr_reject_as_sink; + //pr_check_gp_source; + //pr_check_gp_sink; + + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <2>; + //dr_reject_as_dfp; + //dr_reject_as_ufp; + }; + displayport { + /* connection type = "both", "ufp_d", "dfp_d" */ + 1st_connection = "dfp_d"; + 2nd_connection = "dfp_d"; + signal,dp_v13; + //signal,dp_gen2; + //usbr20_not_used; + typec,receptacle; + ufp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + //pin_assignment,mode_c; + //pin_assignment,mode_d; + //pin_assignment,mode_e; + }; + dfp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + pin_assignment,mode_c; + pin_assignment,mode_d; + pin_assignment,mode_e; + //pin_assignment,mode_f; + }; + }; + }; +}; + +&tlmm { + rt1711h_int_n: rt1711h_int_n { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From 6db6f726480e41444e6fd361c195861701fa6a45 Mon Sep 17 00:00:00 2001 From: xieqiong2 Date: Thu, 18 Aug 2022 18:59:51 +0800 Subject: [PATCH 0886/1247] pnangn:change correct gpio for charger ic. Change-Id: I72802b3ebfbb4046f14f8eb1a7ddce09d6608809 Signed-off-by: xieqiong2 Reviewed-on: https://gerrit.mot.com/2366058 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Ying Shen (cherry picked from commit cdf6c689071d5414e29d431fc9bfc2ade062ab14) Reviewed-on: https://gerrit.mot.com/2369044 Reviewed-by: Wang Wang --- qcom/discrete_charging_pnangn.dtsi | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index d6ad95e626fb..a85394dfcb5f 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -62,8 +62,8 @@ io-channel-names = "gpio3_div3"; interrupt-parent = <&tlmm>; - interrupts = <59 0>; //irq num base on hardware design - sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design + interrupts = <12 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 12 0>; //irq num base on hardware design // sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other dpdm-supply = <&qusb_phy0>; @@ -106,7 +106,7 @@ io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; io-channel-names = "gpio3_div3"; - bq2589x_irq-gpio = <&tlmm 59 0>; + bq2589x_irq-gpio = <&tlmm 12 0>; //bq2589x_en-gpio = <&tlmm 45 0>; dpdm-supply = <&qusb_phy0>; @@ -168,12 +168,12 @@ &tlmm { sgm4154x_gpio_pins: sgm4154x_gpio_pins { mux { - pins = "gpio59"; + pins = "gpio12"; function = "gpio"; }; config { - pins = "gpio59"; + pins = "gpio12"; drive-strength = <2>; bias-pull-up; input-enable; @@ -182,12 +182,12 @@ bq2589x_irq: bq2589x_irq { mux { - pins = "gpio59"; + pins = "gpio12"; function = "gpio"; }; config { - pins = "gpio59"; + pins = "gpio12"; drive-strength = <2>; bias-pull-up; input-enable; From dc07d83ec01ee61a19452022e084e69b83d40635 Mon Sep 17 00:00:00 2001 From: xieqiong2 Date: Tue, 23 Aug 2022 16:19:41 +0800 Subject: [PATCH 0887/1247] pnangn:change to 15w for hvdcp. Change-Id: Ic380b98201d27d6025a79d7335dda91b2988c5f7 Signed-off-by: xieqiong2 Reviewed-on: https://gerrit.mot.com/2368959 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Wang Wang (cherry picked from commit cb821b249a41abf156af53c3992d9efe756809de) Reviewed-on: https://gerrit.mot.com/2369045 --- qcom/discrete_charging_pnangn.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index a85394dfcb5f..b6f4439141b5 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -134,7 +134,7 @@ mmi,lower-limit-capacity = <65>; mmi,heartbeat-interval = <5000>; mmi,dcp-power-max = <10000>; - mmi,hvdcp-power-max = <18000>; + mmi,hvdcp-power-max = <15000>; }; mmi_discrete_charger: mmi,discrete-charging { From acf22a6e6b959537640a7eef56fc3edf45e85276 Mon Sep 17 00:00:00 2001 From: longc100 Date: Fri, 12 Aug 2022 16:48:06 +0800 Subject: [PATCH 0888/1247] [pnangn]vibrator bring up update vib gpio to gpio50 update vib gpio to gpio50 Change-Id: I818d7275e848c7048d05bd4aa1f4d0385197ee36 Reviewed-on: https://gerrit.mot.com/2361670 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Zhenghai Pan Reviewed-on: https://gerrit.mot.com/2369503 Reviewed-by: Wang Wang --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index e04ba292ad73..f5f11392dee4 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -293,7 +293,7 @@ ldo_vib { compatible = "moto,vibrator-ldo"; - moto,vib-ldo-gpio = <&tlmm 101 0x0>; + moto,vib-ldo-gpio = <&tlmm 50 0x0>; status = "ok"; }; }; From 37be70d3e4003c574ed9e8f30e58e8e8feadac60 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Tue, 23 Aug 2022 13:57:14 +0800 Subject: [PATCH 0889/1247] dts/panel:pnangn:2nd CSOT panel display driver bringup pnangn:2nd CSOT panel csot display driver bringup Change-Id: I4ca09bdd8158765cffaa3af061d029c679299b44 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2368827 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- ...csot-ft8057-653-hdplus-720x1600-video.dtsi | 76 +++++++++++++++++++ qcom/pnangn-display.dtsi | 18 ++--- 2 files changed, 84 insertions(+), 10 deletions(-) create mode 100644 qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi new file mode 100644 index 000000000000..52a89f14a49f --- /dev/null +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -0,0 +1,76 @@ +&mdss_mdp { + dsi_ft8057_csot_hdplus_video: qcom,mdss_dsi_ft8057_csot_hdplus_720x1600_653_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_csot_hdplus_653_720p"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-color-order = "rgb_swap_rgb"; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-tx-eot-append; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <0 3>, <1 3>, <0 3>, <1 11>; + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <16>; + qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,mdss-dsi-v-back-porch = <28>; + qcom,mdss-dsi-v-front-porch = <350>; + qcom,mdss-dsi-v-pulse-width = <6>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + qcom,mdss-dsi-on-command = + [ + 39 00 00 00 00 00 03 51 00 00 + 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 55 01 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + qcom,mdss-dsi-off-command = [ + 05 00 00 00 14 00 01 28 + 05 01 00 00 3C 00 01 10 + ]; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + + }; +}; diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index bd4785d86c80..4ac0992ad3d4 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -1,6 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi" -//#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" +#include "dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -180,8 +180,7 @@ }; }; -/* -&dsi_ft8057_csot_video { +&dsi_ft8057_csot_hdplus_video { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; @@ -191,9 +190,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-max-level = <255>; qcom,mdss-dsi-bl-default-level = <128>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-brightness-max-level = <255>; qcom,mdss-dsi-bl-inverted-dbv; //qcom,esd-check-enabled; @@ -204,7 +203,7 @@ qcom,mdss-dsi-panel-on-check-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; + qcom,mdss-dsi-panel-supplier = "csot"; qcom,suspend-ulps-enabled; @@ -216,9 +215,9 @@ qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + //qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + //qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0E>; @@ -233,7 +232,6 @@ }; }; }; -*/ &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; From 4c742a3b391d3339f3a9ee5cebad71fd477afe40 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Tue, 23 Aug 2022 13:59:57 +0800 Subject: [PATCH 0890/1247] dts/panel:pnangn:2nd panel FT touch driver bringup pnangn:2nd csot + FT panel FT touch driver bringup Change-Id: I60122f8382e67c75467d776ef3246ea3fb41d4bd Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2368828 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-touchscreen.dtsi | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index 839b48408ebb..a470e1fb309e 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -73,7 +73,6 @@ status = "ok"; pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; -/* focaltech@38{ compatible = "focaltech,fts"; reg = <0x0>; @@ -86,9 +85,9 @@ focaltech,display-coords = <0 0 720 1600>; focaltech,report_gesture_key; focaltech,panel-supplier = "csot"; - panel = <&dsi_ft8057_csot_video>; + panel = <&dsi_ft8057_csot_hdplus_video>; }; -*/ + novatek@0{ compatible = "novatek,NVT-ts-spi"; reg = <0x1>; From 0867511020a4c806f26a909630c252ef95e45004 Mon Sep 17 00:00:00 2001 From: liujian24 Date: Wed, 24 Aug 2022 11:01:31 +0800 Subject: [PATCH 0891/1247] Pnangn:FPS bringup on Pnangn mainline Bringup FPS on Penang NA mainline Merge DTSI code Change-Id: If16c39881d6dd0523dfcce5f5a1cdff240b53fe9 Reviewed-on: https://gerrit.mot.com/2369626 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-fps-overlay.dtsi | 133 ++++++++++++++++++++++++----------- 1 file changed, 93 insertions(+), 40 deletions(-) diff --git a/qcom/pnangn-fps-overlay.dtsi b/qcom/pnangn-fps-overlay.dtsi index 951d04a7ecdc..73bd7262ef1c 100644 --- a/qcom/pnangn-fps-overlay.dtsi +++ b/qcom/pnangn-fps-overlay.dtsi @@ -1,5 +1,4 @@ &tlmm { - fps_int_active: fps_int_active { /* active state */ mux { @@ -15,22 +14,7 @@ }; }; - fps_int_suspend: fps_int_suspend { - /* sleep state */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - - fps_rst_high: fps_rst_high { + fps_rst_active: fps_rst_active { mux { pins = "gpio18"; function = "gpio"; @@ -44,7 +28,7 @@ }; }; - fps_rst_low: fps_rst_low { + fps_rst_suspend: fps_rst_suspend { mux { pins = "gpio18"; function = "gpio"; @@ -57,50 +41,120 @@ }; }; - fps_ldo3_en_active: fps_ldo3_en_active { + fps_ido1p8_en_active: fps_ido1p8_en_active { /* active state */ mux { - pins = "gpio87"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio87"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; output-high; }; }; - fps_ldo3_en_suspend: fps_ldo3_en_suspend { + fps_ido1p8_en_suspend: fps_ido1p8_en_suspend { /* sleep state */ mux { - pins = "gpio87"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio87"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; output-low; }; }; + egis_rst_high: egis_rst_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <8>; + output-high; + bias-pull-up; + }; + }; + + egis_rst_low: egis_rst_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + config { + pins = "gpio18"; + drive-strength = <8>; + output-low; + bias-pull-down; + }; + }; + + egis_irq_active: egis_irq_active { + mux { + pins = "gpio17"; + function = "gpio"; + }; + config { + pins = "gpio17"; + drive-strength = <2>; + bias-disable; + input-enable; + }; + }; + + egis_vcc_high: egis_vcc_high { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-high; + }; + }; + + egis_vcc_low: egis_vcc_low { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; + bias-disable; + output-low; + }; + }; }; &soc { - fpc: fpc_fpc1020 { - compatible = "fpc,fpc1020"; + fp_egistec { status = "ok"; - irq = <&tlmm 17 0>; - rst = <&tlmm 18 0>; - fp-gpio-ven = <&tlmm 87 0>; - interrupt-parent = <&tlmm>; - interrupts = <17 0>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&fps_int_active>; - pinctrl-1 = < &fps_int_suspend>; + compatible = "fp-egistec"; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_irq = <&tlmm 17 0x00>; + egistec,gpio_reset = <&tlmm 18 0x00>; + egistec,gpio_vcc_en = <&tlmm 6 0x00>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active","egis_vcc_high","egis_vcc_low"; + pinctrl-0 = <&egis_rst_high>; + pinctrl-1 = <&egis_rst_low>; + pinctrl-2 = <&egis_irq_active>; + pinctrl-3 = <&egis_vcc_high>; + pinctrl-4 = <&egis_vcc_low>; }; //chipone side fps fingerprint: chipone7318 { @@ -111,14 +165,13 @@ interrupts = <17 0x0>; fp-gpio-int = <&tlmm 17 0x0>; fp-gpio-reset = <&tlmm 18 0x0>; - fp-gpio-power = <&tlmm 87 0x0>; + fp-gpio-power = <&tlmm 6 0x0>; pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ido1p8_en_active","fps_ido1p8_en_suspend"; - - pinctrl-0 = <&fps_rst_high>; - pinctrl-1 = <&fps_rst_low>; + pinctrl-0 = <&fps_rst_active>; + pinctrl-1 = <&fps_rst_suspend>; pinctrl-2 = <&fps_int_active>; - pinctrl-3 = <&fps_ldo3_en_active>; - pinctrl-4 = <&fps_ldo3_en_suspend>; + pinctrl-3 = <&fps_ido1p8_en_active>; + pinctrl-4 = <&fps_ido1p8_en_suspend>; }; }; From a420f71ae0b07ba0d384c38b65b90e401300452f Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 22 Aug 2022 14:14:21 +0800 Subject: [PATCH 0892/1247] wlc: update WLC fw to ver.0.14 Change cps4019's fw version to 0.14 to inform driver the current fw version. Change-Id: I1e226e4848e0854f3c5a2c56541ff2b02928f51b Reviewed-on: https://gerrit.mot.com/2367842 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index f93d6db4a2e6..f8328aaa07af 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -196,7 +196,7 @@ wireless-fw-name = "cps4019.hex"; fw_ver_major = <0>; - fw_ver_minor = <0xD>; + fw_ver_minor = <0xE>; use_bl_in_h; }; From 1e9fd1eed47e2fc46d13e77f31b3a488c53633f2 Mon Sep 17 00:00:00 2001 From: longc100 Date: Thu, 25 Aug 2022 17:08:23 +0800 Subject: [PATCH 0893/1247] arm/dtsi: pnangn: usb: modify pinctrl config for RT1715 issue: power on without usb cable will make rt1715 reset, no adb solution: set qupv3_se10_i2c_sleep input-enable could fix this fix same with https://gerrit.mot.com/#/c/2071582/ Change-Id: I3752be4807045bb46aa9b9369cc630946e5c8e3b Reviewed-on: https://gerrit.mot.com/2371068 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Ying Shen (cherry picked from commit eaaef9fa984a23135f1e7ba2a39cb22668087cdb) Reviewed-on: https://gerrit.mot.com/2371080 Reviewed-by: Wang Wang --- qcom/holi-pnangn-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index f5f11392dee4..4797dc551728 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -480,6 +480,12 @@ }; +&qupv3_se10_i2c_sleep { + config { + input-enable; + }; +}; + &qupv3_se8_i2c { status = "ok"; From bd2c4151b3e6a18be11deecc14a1043576e6904d Mon Sep 17 00:00:00 2001 From: lbh Date: Fri, 26 Aug 2022 14:23:04 +0800 Subject: [PATCH 0894/1247] pnangn/dts:enable sar sensor dts why:sar bringup how:enable dts config Change-Id: I1b2df1b3a673e8fc71e13669edf13104a133727a Signed-off-by: lbh Reviewed-on: https://gerrit.mot.com/2372076 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Reviewed-by: Nan Wu Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index 4797dc551728..a40bdd7955c3 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -576,7 +576,7 @@ 0x8024 0x7F7F 0x4280 0xE >; - status = "disabled"; + status = "ok"; }; }; From fbc9155337f8c699d1328b7d5f15651c04e6cd2d Mon Sep 17 00:00:00 2001 From: longc105 Date: Fri, 26 Aug 2022 00:57:11 +0800 Subject: [PATCH 0895/1247] arm64/dts: Penang5G NA: front camera tsp s5k4h7yx03 bring up details: Add camera dtsi to pnangn dtsi Change-Id: I35d546eb22dd908da8a7d6ac67e323867f51a14f Signed-off-by: longc105 Reviewed-on: https://gerrit.mot.com/2371433 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Liu Reviewed-by: Reviewed-by: Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index a40bdd7955c3..d59e28dfae0b 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "pnangn-display.dtsi" #include "pnangn-touchscreen.dtsi" #include "pnangn-fmr-overlay.dtsi" -//#include "camera/holi-camera-sensor-mot-penang-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-pnangn-overlay.dtsi" //#include "discrete_charging_pnangn.dtsi" #include "moto_therm_sys_temp.dtsi" From 97bc084eed38ad8b1bbe9aefea6c9e074e41a5dc Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 26 Aug 2022 11:42:01 +0800 Subject: [PATCH 0896/1247] Revert "(CR): arm/dts: config mmi,i2c-err-wa-dis" enable i2c error workaround for i2c error before resume Mot-CRs-Fixed:(CR) This reverts commit 6d32616a2b9ba56bd6c1ef94739a020abd245791. Change-Id: If8fa5dbb2eefa24811f290c19d478e6ef4f850c3 Reviewed-on: https://gerrit.mot.com/2371981 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/discrete_charging_miami.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/discrete_charging_miami.dtsi b/qcom/discrete_charging_miami.dtsi index f8328aaa07af..0266c314d6fd 100644 --- a/qcom/discrete_charging_miami.dtsi +++ b/qcom/discrete_charging_miami.dtsi @@ -54,7 +54,6 @@ mmi,qc3-support; mmi,wls-max-icl = <1000000>; input-voltage-limit-microvolt = <4700000>; - mmi,i2c-err-wa-dis; /* sw jeita parameter customer defined*/ enable_sw_jeita; From 1560063279ca27b7d4b2e38505e8849a7a2c73bb Mon Sep 17 00:00:00 2001 From: "[A" Date: Fri, 26 Aug 2022 19:23:27 +0800 Subject: [PATCH 0897/1247] host eye diagram parameter Modify: host eye diagram parameter Change-Id: I29cbd118fc10e1c1aebb24f8b8ae5bb91136efd5 Signed-off-by: Reviewed-on: https://gerrit.mot.com/2372367 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 0cd643077ef0..19f47510ab36 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -606,11 +606,11 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x47 0x240 /* TUNE1 */ + 0x37 0x240 /* TUNE1 */ 0x29 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ From af4346f65e9bd4845828aa41971dc58d18e4e11e Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Mon, 29 Aug 2022 18:45:31 +0800 Subject: [PATCH 0898/1247] display: Enable Panel ESD Check Modify: Set esd check feature enable for nt36528 and ft8057 panel Change-Id: I65079fb3effe5b60a8472043428b6c3a35a46606 Reviewed-on: https://gerrit.mot.com/2373723 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 0f645cd17f48..6b9504ac524d 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -142,7 +142,7 @@ qcom,mdss-dsi-bl-default-level = <128>; qcom,mdss-brightness-max-level = <2047>; - /*qcom,esd-check-enabled;*/ + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; @@ -194,7 +194,7 @@ qcom,mdss-dsi-bl-default-level = <128>; qcom,mdss-brightness-max-level = <2047>; - /*qcom,esd-check-enabled;*/ + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; From b11ca65b7c933d5329bdc4d85665916bfff84585 Mon Sep 17 00:00:00 2001 From: "[A" Date: Fri, 12 Aug 2022 15:01:35 +0800 Subject: [PATCH 0899/1247] set jeita curr val to max 3.6A discrete charger current set Change-Id: Ib770f9e5cb170657d54d0a46e50baa021bc6d994 Signed-off-by: Reviewed-on: https://gerrit.mot.com/2361546 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 0f04e5b829c2..6dc4dff54be1 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -154,8 +154,8 @@ mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, <15 0 2500 2500>, - <45 0 4000 4000>, - <60 4200 4000 0>; + <45 0 3600 3600>, + <60 4200 3600 0>; mmi,thermal-mitigation = <4000000 3000000 2500000 2000000 1500000 From a1dbcef9008108fa7bf994b72cb43aac77265d3c Mon Sep 17 00:00:00 2001 From: longc107 Date: Wed, 31 Aug 2022 15:18:08 +0800 Subject: [PATCH 0900/1247] pnangn/dts:update sar reg config [desc]update sar reg value to adapt antenna for pnangn modify sx9375 reg value Change-Id: I65053e11ed9b90805909753940e86e660b4232e4 Signed-off-by: longc107 Reviewed-on: https://gerrit.mot.com/2375311 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Nan Wu Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 94 ++++++++++++++-------------- 1 file changed, 47 insertions(+), 47 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index d59e28dfae0b..e101194e4646 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -510,70 +510,70 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < - 0x4004 0x78 + 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x857 - 0x8034 0x856 - 0x8040 0x856 - 0x804C 0x857 - 0x8058 0x856 - 0x8064 0x856 - 0x8070 0x856 - 0x807C 0x85E + 0x8028 0x886 + 0x8034 0x886 + 0x8040 0x886 + 0x804C 0x886 + 0x8058 0x886 + 0x8064 0x886 + 0x8070 0x886 + 0x807C 0x88E 0x8030 0xFFF9FD - 0x803C 0xFEF9FF + 0x803C 0xBFF9FF 0x8048 0xFFD9FF - 0x8054 0xFFF97F - 0x8060 0xBFF9FF + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF 0x806C 0xFFF9EF - 0x8078 0xF7F9FF - 0x8084 0xFFFFFF - 0x8098 0x4831 - 0x80B8 0x3323 - 0x80D8 0x2D23 - 0x80F8 0x5B3C - 0x8118 0x2E2E - 0x8138 0xC8 - 0x8158 0xC8 - 0x8178 0xC8 - 0x80A0 0x242400E0 - 0x80C0 0x262600E0 - 0x80E0 0x1E1E00E0 - 0x8100 0x202000E0 - 0x8120 0x1E1E00E0 + 0x8078 0xFFF97F + 0x8084 0xFFF9FF + 0x8098 0x6838 + 0x80B8 0x3A3A + 0x80D8 0x5931 + 0x80F8 0x3737 + 0x8118 0x3C3C + 0x8138 0x8E + 0x8158 0x8E + 0x8178 0x5A40 + 0x80A0 0x21240001 + 0x80C0 0x20200001 + 0x80E0 0x14160002 + 0x8100 0x37380002 + 0x8120 0x36360002 0x8140 0x0 0x8160 0x0 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x54AD5000 - 0x80B0 0x2AD87000 - 0x80D0 0x54AE5000 - 0x80F0 0x2AD77000 - 0x8110 0x2AD77000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD66000 + 0x8190 0x10 + 0x8194 0x12 + 0x8090 0x64B45000 + 0x80B0 0x3CD05000 + 0x80D0 0x32D87000 + 0x80F0 0x3CD45000 + 0x8110 0x2CD87000 + 0x8130 0x54AC5000 + 0x8150 0x54AC5000 + 0x8170 0x54AC5000 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 + 0x8108 0x400000 + 0x8128 0x600000 + 0x8148 0x600000 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 + 0x808C 0x60200030 + 0x80AC 0x60200030 0x80CC 0x60200018 - 0x80EC 0x60200018 + 0x80EC 0x60200030 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 - 0x8024 0x7F7F + 0x812C 0x60200030 + 0x814C 0x60200030 + 0x816C 0x60200030 + 0x8024 0x7F00 0x4280 0xE >; status = "ok"; From 0d472d28fb6bc9fd4782a9201aa15ef0e0551a00 Mon Sep 17 00:00:00 2001 From: "[A" Date: Thu, 1 Sep 2022 11:03:46 +0800 Subject: [PATCH 0901/1247] 18W charging set sgm4154x iindpm comp 100mA Modify: 18W charging set sgm4154x iindpm comp 100mA Change-Id: I52d1dcde0a16791221028d93cb0610645b88e2e5 Reviewed-on: https://gerrit.mot.com/2375937 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 6dc4dff54be1..a97f7162668a 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -68,6 +68,7 @@ dpdm-supply = <&qusb_phy0>; mmi,qc3-support; + sgm,18w_iindpm_comp; enable_sw_jeita; jeita_temp_above_t4_cv = <0>; jeita_temp_t3_to_t4_cv = <4100000>; From ff399e754ee9e1f6b94cd765397d52119f8da8d1 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Thu, 1 Sep 2022 14:38:00 +0800 Subject: [PATCH 0902/1247] dtsi/panel: Modify nt36528 panel MIPI CLK to 569MHZ Modify: modify the panel MIPI CLK Change-Id: I45948cb9329a8564c8dcf072d740bcba03db9032 Reviewed-on: https://gerrit.mot.com/2376079 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi index 06aba9153c22..6202dcce4711 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi @@ -43,7 +43,7 @@ qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; qcom,mdss-dsi-h-front-porch = <20>; - qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-back-porch = <60>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; From 5627aea18e87233bf30d1361a8d13d23cfe3dd0f Mon Sep 17 00:00:00 2001 From: hujing3 Date: Thu, 1 Sep 2022 17:42:24 +0800 Subject: [PATCH 0903/1247] dts/pnangn: display HBM support pnangn: update HBM configs Change-Id: I97ba74bcda3bb864eaa5f9e20a895a6d7e2ffd00 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2376258 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 4ac0992ad3d4..1046a6f3d93e 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -161,10 +161,10 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90 120>; - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - //qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - //qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x1A>; @@ -214,10 +214,10 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90 120>; - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; - //qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; - //qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0F]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0E>; From 646f2f5410632627e2c801bf16eaaffc498e9d3a Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Tue, 6 Sep 2022 10:42:12 +0800 Subject: [PATCH 0904/1247] arm/dtsi: panel: modify djn nt36528 panel default brightness modify djn nt36528 panel default brightness for penang Change-Id: I7000b23d1cee9601f7acaf7f261ea1db4cea7d8e Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2378757 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 6b9504ac524d..44beea77d2a5 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -139,7 +139,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <128>; + qcom,mdss-dsi-bl-default-level = <932>; qcom,mdss-brightness-max-level = <2047>; qcom,esd-check-enabled; From d13db06c0c3f7408d1672862c05307693d4bf497 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 7 Sep 2022 16:49:39 +0800 Subject: [PATCH 0905/1247] dts/pnangn: disable gesture configs pnangn not support gesture disable gesture configs Change-Id: Ib7d373765af2b3fe7b0b04e738b2ac9e30aeedbe Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2379960 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 4 ++-- qcom/pnangn-touchscreen.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 1046a6f3d93e..548a66b60203 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -154,7 +154,7 @@ qcom,suspend-ulps-enabled; - qcom,tp_state_check_enable; + //qcom,tp_state_check_enable; qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; @@ -207,7 +207,7 @@ qcom,suspend-ulps-enabled; - qcom,tp_state_check_enable; + //qcom,tp_state_check_enable; qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index a470e1fb309e..aaa93196aae0 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -83,7 +83,7 @@ focaltech,irq-gpio = <&tlmm 22 0x2008>; focaltech,max-touch-number = <10>; focaltech,display-coords = <0 0 720 1600>; - focaltech,report_gesture_key; + //focaltech,report_gesture_key; focaltech,panel-supplier = "csot"; panel = <&dsi_ft8057_csot_hdplus_video>; }; @@ -97,7 +97,7 @@ novatek,def-max-resolution = <720 1600>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; - novatek,report_gesture_key; + //novatek,report_gesture_key; novatek,usb_charger; novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "djn"; From 0291ad132a52c8396ce0e43563e9f2576e263fa3 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Mon, 22 Aug 2022 13:48:17 +0800 Subject: [PATCH 0906/1247] dts/panel:pnangn:2nd csot panel backlight support 12 bit pnangn:2nd csot panel backlight support 12 bit pick from sandbox (CR): 2367814 Change-Id: I0b71de93310cc3c861a924fbab4707c3823cb039 Reviewed-on: https://gerrit.mot.com/2379998 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...i-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi | 8 +++++++- qcom/pnangn-display.dtsi | 8 ++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index 52a89f14a49f..800cf7036895 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -55,7 +55,13 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 00 00 + 39 00 00 00 00 00 04 FF 80 57 01 + 15 01 00 00 00 00 02 00 80 + 39 00 00 00 00 00 03 FF 80 57 + 15 01 00 00 00 00 02 00 B2 + 15 01 00 00 00 00 02 CA 0C + 39 00 00 00 00 00 03 51 07 07 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 548a66b60203..500b446bdefb 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -190,10 +190,10 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <255>; - qcom,mdss-dsi-bl-default-level = <128>; - qcom,mdss-brightness-max-level = <255>; - qcom,mdss-dsi-bl-inverted-dbv; + qcom,mdss-dsi-bl-max-level = <3500>; + qcom,mdss-dsi-bl-default-level = <2047>; + qcom,mdss-brightness-max-level = <3500>; + qcom,mdss-dsi-bl-level-align = <2>; //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From fcc2c4ef57173c5c15b2626d5a7617e7058f198d Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 7 Sep 2022 17:52:11 +0800 Subject: [PATCH 0907/1247] dts/panel:pnangn:display: update max brightness pnangn: update max brightness Change-Id: Ic16484ea1b2fb220e1d075db09673d5fb8371301 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2380014 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 500b446bdefb..da102e02b964 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -138,9 +138,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <3500>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <3500>; + qcom,mdss-dsi-bl-max-level = <3276>; + qcom,mdss-dsi-bl-default-level = <1478>; + qcom,mdss-brightness-max-level = <3276>; /*qcom,esd-check-enabled;*/ qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -190,9 +190,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <3500>; - qcom,mdss-dsi-bl-default-level = <2047>; - qcom,mdss-brightness-max-level = <3500>; + qcom,mdss-dsi-bl-max-level = <3276>; + qcom,mdss-dsi-bl-default-level = <1478>; + qcom,mdss-brightness-max-level = <3276>; qcom,mdss-dsi-bl-level-align = <2>; //qcom,esd-check-enabled; From ab84778dd73d7c80210291285d3988171e8719cb Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Thu, 8 Sep 2022 10:16:55 +0800 Subject: [PATCH 0908/1247] dts/panel: penang: Enable Display hbm Modfiy: Enable hbm for nt36528/ft8057 panel. Change-Id: I7cb37bcde01ecf000a3a211fec8a1dcde94fd98e Reviewed-on: https://gerrit.mot.com/2380251 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-csot-ft8057-653-720x1600-video.dtsi | 2 +- ...el-mot-djn-nt36528-653-720x1600-video.dtsi | 2 +- qcom/penang-display.dtsi | 30 +++++++++++-------- 3 files changed, 20 insertions(+), 14 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index 3d54d706c3d0..df12bfc7ea17 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -76,7 +76,7 @@ 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 53 24 15 01 00 00 00 00 02 55 00 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi index 6202dcce4711..c39a3c6a0da0 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi @@ -66,7 +66,7 @@ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 39 00 00 00 00 00 03 51 00 00 - 15 00 00 00 00 00 02 53 2C + 15 00 00 00 00 00 02 53 24 15 00 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 44beea77d2a5..52801c719716 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -138,9 +138,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <932>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -161,10 +161,13 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90 120>; - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x1A>; @@ -190,9 +193,9 @@ qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <128>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -213,10 +216,13 @@ qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,dsi-supported-dfps-list = <60 90 120>; - qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; - qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 cc 0c]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0E>; From 7c7096b5a7e422d77dbc21e148316adc5b15ac55 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Thu, 8 Sep 2022 18:14:14 +0800 Subject: [PATCH 0909/1247] dts/touch: Set the pinctrl config of pull down tp-rst Modify: Set pinctrl config Change-Id: I0ea39608a4edeb1f421e8831df79347900cefee6 Reviewed-on: https://gerrit.mot.com/2380619 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/penang-touchscreen.dtsi | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index 270704b7d0ec..564051342507 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -64,7 +64,35 @@ config { pins = "gpio3"; drive-strength = <6>; - bias-pull-up; + output-low; + }; + }; + + touch_reset_mux { + touch_reset_active: touch_reset_active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + touch_reset_suspend: touch_reset_suspend { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; }; }; }; @@ -85,6 +113,11 @@ focaltech,display-coords = <0 0 720 1600>; focaltech,report_gesture_key; focaltech,panel-supplier = "csot"; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&touch_reset_active>; + pinctrl-1 = <&touch_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; panel = <&dsi_ft8057_csot_video>; }; novatek@0{ From d71decf23dbc14f235f3db263048e68d3bf77075 Mon Sep 17 00:00:00 2001 From: djw Date: Thu, 8 Sep 2022 19:11:53 +0800 Subject: [PATCH 0910/1247] dts/panel:power on/off reset sequence pnangn:fix power on/off reset sequence add power off reset always on and power off pull down Change-Id: I38eb13b4bc9444cb7a6d2398a50b201859953065 Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2380674 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index da102e02b964..53aa87cf56e1 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -141,6 +141,7 @@ qcom,mdss-dsi-bl-max-level = <3276>; qcom,mdss-dsi-bl-default-level = <1478>; qcom,mdss-brightness-max-level = <3276>; + qcom,platform-reset-gpio-always-on; /*qcom,esd-check-enabled;*/ qcom,mdss-dsi-panel-status-check-mode = "reg_read"; @@ -194,6 +195,9 @@ qcom,mdss-dsi-bl-default-level = <1478>; qcom,mdss-brightness-max-level = <3276>; qcom,mdss-dsi-bl-level-align = <2>; + qcom,platform-reset-gpio-always-on; + qcom,mdss-panel-on-rst-pull-down; + //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; From 5c74285ddcbcd6da19f54919320f48f595dbcb41 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Tue, 13 Sep 2022 16:34:03 +0800 Subject: [PATCH 0911/1247] dts/panel: penang: Set HBM control by 51cmd Modfiy: Enable 51cmd control for nt36528/ft8057 panel. Change-Id: I6b8bceefe6ba29575a2cf0a7c86b79b1ce1bd945 Reviewed-on: https://gerrit.mot.com/2382992 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 52801c719716..9a4ff65b545d 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -163,6 +163,7 @@ //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; @@ -218,6 +219,7 @@ //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; From fca9969a4f78ac609f960ce1e254390ffb355c71 Mon Sep 17 00:00:00 2001 From: djw Date: Wed, 14 Sep 2022 14:10:18 +0800 Subject: [PATCH 0912/1247] kernel/dts:pnangn:open 2nd FT8057 dimming pnangn:open 2nd FT8057 dimming add and open 2nd FT8057 backlight dimming Change-Id: Ie53a6d9cfade7c74f422e8a19b7505e91c15f0fb Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2383689 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index 800cf7036895..c737e7c8c554 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -61,6 +61,8 @@ 39 00 00 00 00 00 03 FF 80 57 15 01 00 00 00 00 02 00 B2 15 01 00 00 00 00 02 CA 0C + 15 01 00 00 00 00 02 00 B5 + 15 01 00 00 00 00 02 CA 04 39 00 00 00 00 00 03 51 07 07 15 00 00 00 00 00 02 53 2C 15 00 00 00 00 00 02 55 01 From 226cf7329738e7d32bb0bb2e4d2bfb20670c6704 Mon Sep 17 00:00:00 2001 From: xieqiong2 Date: Thu, 25 Aug 2022 13:06:48 +0800 Subject: [PATCH 0913/1247] dtsi:enable charge discrete. enable discrete charge for EVT phase Change-Id: I969eeb0ea4d5e79609b2ad6d423efcc1b2fc8d03 Signed-off-by: xieqiong2 Reviewed-on: https://gerrit.mot.com/2370885 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Ying Shen Reviewed-on: https://gerrit.mot.com/2370897 Reviewed-by: Wang Wang --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index e101194e4646..fdafc32e70bc 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -22,7 +22,7 @@ #include "pnangn-touchscreen.dtsi" #include "pnangn-fmr-overlay.dtsi" #include "camera/holi-camera-sensor-mot-pnangn-overlay.dtsi" -//#include "discrete_charging_pnangn.dtsi" +#include "discrete_charging_pnangn.dtsi" #include "moto_therm_sys_temp.dtsi" &wcd937x_codec { From 92b72de12d994478ab52f7d453da8f140ee184e0 Mon Sep 17 00:00:00 2001 From: lbh Date: Thu, 15 Sep 2022 17:29:44 +0800 Subject: [PATCH 0914/1247] pnangn:add thermal configs Change-Id: I4a2696c1ede73196cdd70195037c3b7d5bf3e144 WHY:pnangn:thermal zones need config HOW:fix pnangn devicetree dtsi file Reviewed-on: https://gerrit.mot.com/2384747 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index fdafc32e70bc..b65c9be4ce15 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -347,7 +347,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -377,7 +377,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -392,7 +392,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -422,7 +422,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { From dc0b20534a7c7732728e9e60eac27a6d831b5b3f Mon Sep 17 00:00:00 2001 From: lbh Date: Fri, 16 Sep 2022 17:56:35 +0800 Subject: [PATCH 0915/1247] pnangn cw2217 add atl adn scud battery profile Change-Id: Ib52551c0a657cb769083a7e2c45d26d9Montanaffd6f Reviewed-on: https://gerrit.mot.com/2385554 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- .../CW_nh50-atl-4850mah-5mohm.dtsi | 27 +++++++++++++++++++ .../CW_nh50-scud-4850mah-5mohm.dtsi | 27 +++++++++++++++++++ qcom/discrete_charging_pnangn.dtsi | 12 +++++---- 3 files changed, 61 insertions(+), 5 deletions(-) create mode 100644 qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi create mode 100644 qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi diff --git a/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi b/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi new file mode 100644 index 000000000000..42eff422bed5 --- /dev/null +++ b/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nh50-atl-4850mah { + serialnum = "SB18D69208"; + fcc_design = <4850>; + ui_full = <97>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A4 C5 9B D0 BC BE 9E 63 + 38 FF FF FF A5 8D 74 62 + 57 53 4E 8A DC DE F6 ED + D6 CF D4 D6 D4 D2 CE CA + C6 C5 CC BB 9B 8E 85 7B + 6A 66 76 90 AA 8C 5D 65 + 80 00 AB 10 00 A0 60 00 + 00 00 64 23 C3 56 00 00 + 00 00 00 00 00 00 00 45]; +}; diff --git a/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi b/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi new file mode 100644 index 000000000000..2306abc335c6 --- /dev/null +++ b/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nh50-scud-4850mah { + serialnum = "SB18D69209"; + fcc_design = <4850>; + ui_full = <97>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A9 C0 C7 C5 BA B4 A1 63 + 42 FD D8 A4 8B 77 65 58 + 52 50 4D 77 D9 DE 99 D5 + C8 C9 D1 D4 D3 D2 CF CB + C8 C9 D5 B7 9D 92 8A 83 + 7B 7A 85 94 AA 86 64 73 + 80 00 AB 10 00 A0 73 00 + 00 00 64 21 C3 77 00 00 + 00 00 00 00 00 00 00 6B]; +}; diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index b6f4439141b5..7d0f8ad7be5e 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -41,10 +41,12 @@ sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; - df-serialnum = "SB18D34202"; - #include "bat_setting/CW_nd50-atl-4850mah.dtsi" - #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" - #include "bat_setting/CW_nd50-local-4850mah.dtsi" + df-serialnum = "SB18D69208"; + //#include "bat_setting/CW_nd50-atl-4850mah.dtsi" + //#include "bat_setting/CW_nd50-jiade-4850mah.dtsi" + //#include "bat_setting/CW_nd50-local-4850mah.dtsi" + #include "bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi" + #include "bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi" }; }; @@ -150,7 +152,7 @@ mmi,max-fcc-ma = <4000>; mmi,demo-fv-mv = <4000>; mmi,otg-cl-ua = <1200000>; - mmi,df-serialnum = "SB18D34202"; + mmi,df-serialnum = "SB18D69208"; mmi,mmi-temp-zones = <0 4200 1000 0>, <10 4250 2500 1000>, <15 0 2500 2500>, From 48c968059a2f2d14802069ba816db983592bbf9a Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Mon, 19 Sep 2022 16:06:13 +0800 Subject: [PATCH 0916/1247] arm/dts: panel: modify the brightness min level for penang modify the brightness min level as 13 for penang Change-Id: Ifa5ce00778ddcaa7c31006e070029dcb1fe8806a Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2386312 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index 9a4ff65b545d..f3dfd4189289 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -137,7 +137,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-min-level = <13>; qcom,mdss-dsi-bl-max-level = <1650>; qcom,mdss-dsi-bl-default-level = <745>; qcom,mdss-brightness-max-level = <1650>; @@ -193,7 +193,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-min-level = <13>; qcom,mdss-dsi-bl-max-level = <1650>; qcom,mdss-dsi-bl-default-level = <745>; qcom,mdss-brightness-max-level = <1650>; From 5fd4efca8091b054d0e414ef4be31fa9171f4db3 Mon Sep 17 00:00:00 2001 From: Christian Bernard Gioia Date: Thu, 15 Sep 2022 07:53:43 -0300 Subject: [PATCH 0917/1247] dtsi: include soc temp node for cypfr include soc temp node on cypfr's device tree to avoid thermal engine errors Change-Id: I387dbba7c7b7f24bfd99505b9a01ae9107fa2bd6 Reviewed-on: https://gerrit.mot.com/2384805 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-cypfr-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-cypfr-common-overlay.dtsi b/qcom/blair-cypfr-common-overlay.dtsi index c950164bbaf1..3e89b8cf3d34 100644 --- a/qcom/blair-cypfr-common-overlay.dtsi +++ b/qcom/blair-cypfr-common-overlay.dtsi @@ -27,6 +27,7 @@ #include "blair-cypfr-fmr-overlay.dtsi" #include #include "discrete-rt-pd-manger.dtsi" +#include "moto_therm_sys_temp.dtsi" /* Primary USB port related QUSB2 PHY */ &usb2_phy0 { From cd21718c9a3a944734fcf70548d1b11eefa40e18 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Tue, 20 Sep 2022 11:35:51 +0800 Subject: [PATCH 0918/1247] dts/touch: Modify the touch spi sequence Modify: Set CS pin high in spi idle state Change-Id: I1720f31c89571ce3a8ea072e6b12135a36c8c268 Reviewed-on: https://gerrit.mot.com/2386962 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/penang-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index 564051342507..62b552f19730 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -64,7 +64,7 @@ config { pins = "gpio3"; drive-strength = <6>; - output-low; + bias-bus-hold; }; }; From 1ae191d9cfeb34863257aa5c0cf66cdf13137d1f Mon Sep 17 00:00:00 2001 From: Yuchang Guo Date: Tue, 20 Sep 2022 18:05:51 +0800 Subject: [PATCH 0919/1247] penang:sar:update sar config penang:sar: Update sar config tuning on dvt1. Change-Id: I629b89842db5e79884505ee0d5aa75e3b39d0624 Reviewed-on: https://gerrit.mot.com/2387291 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Reviewed-by: Yuchang Guo Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 19f47510ab36..88fade8e70e4 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -504,7 +504,6 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < - 0x8024 0x7F00 0x4004 0x70 0x4008 0x8 0x8020 0x32 @@ -528,15 +527,15 @@ 0x80B8 0x3620 0x80D8 0x3821 0x80F8 0x2B24 - 0x8118 0x2A2A + 0x8118 0x263C 0x8138 0xC8 0x8158 0xC8 0x8178 0xC8 0x80A0 0x222200E1 - 0x80C0 0x161600E2 - 0x80E0 0x202000E1 + 0x80C0 0x141400E2 + 0x80E0 0x232300E1 0x8100 0x202000E0 - 0x8120 0x202000E2 + 0x8120 0x2F2F00E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -544,11 +543,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x54AD5000 - 0x80B0 0x2AD87000 - 0x80D0 0x54AE5000 - 0x80F0 0x2AD77000 - 0x8110 0x2AD77000 + 0x8090 0x54C45000 + 0x80B0 0x2AE27000 + 0x80D0 0x54D45000 + 0x80F0 0x2AE27000 + 0x8110 0x2AE27000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD66000 @@ -569,7 +568,6 @@ 0x814C 0x60200018 0x816C 0x60200018 0x8024 0x7F7F - 0x4280 0xE >; status = "ok"; }; From 0de83cac82a9ef6c4d752f9ff9a82d5d1cb69e9a Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Tue, 20 Sep 2022 14:25:30 +0800 Subject: [PATCH 0920/1247] dts/panel: Modify Display CABC command Modfiy: Cost-ft8057 panel CABC command need add 26h. Change-Id: I98f76f8f1ea85a682e20f5fda0b9fb92bb3e7fd8 Reviewed-on: https://gerrit.mot.com/2387056 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...panel-mot-csot-ft8057-653-720x1600-video.dtsi | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index df12bfc7ea17..12170b8ce8f8 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -32,11 +32,18 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command = [ + 15 01 00 00 00 00 02 55 03 + 15 01 00 00 00 00 02 26 02]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command = [ + 15 01 00 00 00 00 02 55 01 + 15 01 00 00 00 00 02 26 02]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command = [ + 15 01 00 00 00 00 02 55 00 + 15 01 00 00 00 00 02 26 01 + ]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; qcom,mdss-dsi-display-timings { @@ -77,7 +84,8 @@ 05 01 00 00 14 00 01 29 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 24 - 15 01 00 00 00 00 02 55 00 + 15 01 00 00 00 00 02 55 01 + 15 01 00 00 00 00 02 26 02 ]; qcom,mdss-dsi-off-command = [ 05 00 00 00 14 00 01 28 From e66cd8cd84e7dee87256c54adfa8e51eabec89a2 Mon Sep 17 00:00:00 2001 From: lbh Date: Tue, 20 Sep 2022 17:11:49 +0800 Subject: [PATCH 0921/1247] pnangn:2nd fg rt9426a add kernel code Change-Id: If2a8c83034097c9825e44db414b3afc8833eeaf3 Reviewed-on: https://gerrit.mot.com/2387233 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bat_setting/RT_md50-atl-5000mah.dtsi | 94 +++++++++++++++++++++++ qcom/discrete_charging_pnangn.dtsi | 1 + qcom/rt9426a-pnangn.dtsi | 47 ++++++++++++ 3 files changed, 142 insertions(+) create mode 100644 qcom/bat_setting/RT_md50-atl-5000mah.dtsi create mode 100644 qcom/rt9426a-pnangn.dtsi diff --git a/qcom/bat_setting/RT_md50-atl-5000mah.dtsi b/qcom/bat_setting/RT_md50-atl-5000mah.dtsi new file mode 100644 index 000000000000..9d47bc8c71e6 --- /dev/null +++ b/qcom/bat_setting/RT_md50-atl-5000mah.dtsi @@ -0,0 +1,94 @@ +/* + * Copyright (C) 2021 MediaTek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +md50-amperex-5000mah { + serialnum = "SB18D33989"; + /* add for aging cv */ + rt,fcc_design = <5000>; + rt,fcc = <5000 5000 5000 5000 5000>; + rt,fg_fc_vth = <0x9e 0x9e 0x9e 0x9e 0x9e>; + rt,init_ocv_table = <3400 3485 3571 3614 3657 3683 3683 3686 3690 3695 + 3699 3704 3708 3712 3717 3721 3726 3731 3736 3740 + 3745 3750 3754 3759 3764 3767 3771 3775 3778 3782 + 3786 3789 3793 3797 3800 3804 3808 3811 3815 3819 + 3822 3827 3831 3835 3840 3844 3849 3853 3857 3863 + 3869 3875 3882 3888 3895 3905 3915 3925 3935 3946 + 3956 3966 3976 3985 3995 4005 4014 4024 4033 4043 + 4053 4062 4073 4083 4094 4105 4116 4127 4138 4149 + 4160 4171 4182 4193 4204 4215 4227 4238 4249 4260 + 4271 4283 4294 4305 4312 4318 4325 4331 4338 4344 4351>; + rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 81 00 00 + 40 24 00 00 FB 3E 00 20 FB 0A 1D 32 12 07 5A 5A + 00 82 00 02 00 02 00 40 00 40 88 13 88 13 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 + 15 0E 48 44 9E 64 05 41 19 07 B6 12 23 32 03 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 25 0F + 20 16 03 0B 0B 0B 0A 0A 01 FE 07 07 07 07 07 F5 + EB F6 F6 F6 F7 F7 B9 98 80 80 80 A9 A9 80 80 00 + 76 02 C0 48 0A 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 06 05 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88]; + rt,fg_ocv_table0 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table1 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table2 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table3 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; + rt,fg_ocv_table4 = <0x0013 0x49C0 0x5500 0x594C 0x5C12 0x5C19 0x5CF8 0x5E18 + 0x5F94 0x6083 0x6161 0x6253 0x6338 0x65A3 0x67DD 0x693B + 0x6A68 0x6BAA 0x6CC6 0x706D 0x2D00 0x044C 0x0223 0x0007 + 0x0039 0x003C 0x002F 0x0038 0x0052 0x0083 0x0083 0x007B + 0x008B 0x008F 0x008F 0x008F 0x0052 0x0176 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003C 0x0078 0x2277 0x047F 0x0442 + 0x0576 0x048B 0x0320 0x01F5 0x01F4 0x0217 0x01D8 0x01CA + 0x01CA 0x01CA 0x031B 0x00AF 0x0F15 0x0000 0x0000 0x0000>; +}; + diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index 7d0f8ad7be5e..4b2a90bf97ee 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -13,6 +13,7 @@ #include "tcpc_config_pnangn.dtsi" #include "sgm7220-pnangn.dtsi" #include "discrete-rt-pd-manger.dtsi" +#include "rt9426a-pnangn.dtsi" &pm6125_vadc { gpio6_div3{ diff --git a/qcom/rt9426a-pnangn.dtsi b/qcom/rt9426a-pnangn.dtsi new file mode 100644 index 000000000000..5bebc27ac4cb --- /dev/null +++ b/qcom/rt9426a-pnangn.dtsi @@ -0,0 +1,47 @@ +#include + +&qupv3_se8_i2c { + status = "okay"; + rt9426a: rt9426a@55 { + compatible = "richtek,rt9426a"; + reg = <0x55>; + status = "okay"; + interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; + pinctrl-names = "default"; + pinctrl-0 = <&rt9426a_alert>; + rt,dtsi_version = <01 1012>; + rt,para_version = <0x0000>; + rt,battery_type = <4400>; + rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV + rt,temp_source = <1>; // 0:AP 1:FG_TEMP 2:FG_INTT; 3:FG_AT + rt,curr_source = <2>; // 0:AP 1:FG_CURR 2:FG_AI + rt,offset_interpolation_order = <2 2>; + rt,soc_offset_size = <2 1>; + rt,soc_offset_data = <0 250 0 1000 250 0>; + rt,rs_ic_setting = <500>; /* unit:0.01mR ; 500x0.01 = 5.0mR */ + rt,rs_schematic = <500>; /* unit:0.01mR ; 500x0.01 = 5.0mR */ + + /* add for aging cv ; 2021-01-18 */ + rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ + + df-serialnum = "SB18D33989"; + #include "bat_setting/RT_md50-atl-5000mah.dtsi" + //#include "bat_setting/RT_md50-scud-5000mah.dtsi" + + }; +}; + +&tlmm { + rt9426a_alert: rt9426a_alert { + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; From 7064f318c7eed884763c388f925d6ce4154a8ed8 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Fri, 23 Sep 2022 15:34:42 +0800 Subject: [PATCH 0922/1247] Touch/Penang: Fix the Nt36528 Panel display resume slowly Modify: Delete NT36528 Touch edge cmd Change-Id: Ib29e914296b2f72c10bcae93bbbbdab8a64b6ce2 Reviewed-on: https://gerrit.mot.com/2390137 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/penang-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/penang-touchscreen.dtsi b/qcom/penang-touchscreen.dtsi index 62b552f19730..5809a4e7b59b 100755 --- a/qcom/penang-touchscreen.dtsi +++ b/qcom/penang-touchscreen.dtsi @@ -131,7 +131,6 @@ novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; novatek,usb_charger; - novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "djn"; panel = <&dsi_nt36528_djn_video>; status = "ok"; From de6f0838742e464afa36d3c1d1030db79d7c975a Mon Sep 17 00:00:00 2001 From: "[A" Date: Mon, 26 Sep 2022 09:35:25 +0800 Subject: [PATCH 0923/1247] adjust the battery full in advance parameter Modify: adjust the battery full in advance parameter Change-Id: I8e63172a734bfbf557cc5229acbe0bd1c82e256a Signed-off-by: Reviewed-on: https://gerrit.mot.com/2391119 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-4850mah.dtsi | 2 +- qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi b/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi index b9f648984d18..cce1381e2af2 100644 --- a/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi @@ -13,7 +13,7 @@ nd50-atl-4850mah { serialnum = "SB18D34202"; fcc_design = <4850>; - ui_full = <97>; + ui_full = <100>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F 51 FF FF CF 97 82 68 57 diff --git a/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi index 09a2487d34fe..bea2888d6b92 100644 --- a/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi @@ -13,7 +13,7 @@ nd50-jiade-4850mah { serialnum = "SB18D45495"; fcc_design = <4850>; - ui_full = <97>; + ui_full = <98>; config_profile_info = [5A 00 00 00 00 00 00 00 9E C0 C3 C6 B9 B6 AA 6D 47 FF D7 9D 82 6A 5B 52 From 9779dca53bdbcc1815e47ce4e1ed898b1fca6d8a Mon Sep 17 00:00:00 2001 From: zhangjun10 Date: Wed, 28 Sep 2022 11:21:29 +0800 Subject: [PATCH 0924/1247] : dts/nfc: change nfc VEN GPIO from 48 to 6 this change only for DVT2 later hardware and only for JP SKU SN110P Change-Id: Iae2d29cb49ed188243b3630bc341aba9ab1b5c52 Signed-off-by: zhangjun10 Reviewed-on: https://gerrit.mot.com/2393097 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/Makefile | 2 + qcom/holi-penang-dvt2-jp-overlay.dts | 78 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 qcom/holi-penang-dvt2-jp-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index b41807bfa7b5..e5bed529fe87 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -101,9 +101,11 @@ blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_PENANG_DTB) += \ + holi-penang-dvt2-jp-overlay.dtbo \ holi-penang-evt1-overlay.dtbo holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-penang-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_PNANGN_DTB) += \ holi-pnangn-evt1-overlay.dtbo diff --git a/qcom/holi-penang-dvt2-jp-overlay.dts b/qcom/holi-penang-dvt2-jp-overlay.dts new file mode 100644 index 000000000000..a7fbb9d5c1a1 --- /dev/null +++ b/qcom/holi-penang-dvt2-jp-overlay.dts @@ -0,0 +1,78 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <(6<<8) 0xB200>; +}; + +&tlmm { + + nfc { + sn110_enable_active: sn110_enable_active { + mux { + /* 6: Enable, 8: Firmware*/ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + sn110_enable_suspend: sn110_enable_suspend { + mux { + /* 6: Enable, 8: Firmware */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &sn110_enable_active>; + pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; + }; +}; From e80626a600043b3d9e766c6e073cacc9ed49e397 Mon Sep 17 00:00:00 2001 From: xiewen3 Date: Thu, 29 Sep 2022 13:25:37 +0800 Subject: [PATCH 0925/1247] arm64/dts: Remove mcd dts config. arm64/dts: Penang 5G don't support mcd, so remove mcd dts config. Change-Id: I350b46d58a5d781866ac0a6b205ec747da07543c Signed-off-by: xiewen3 Reviewed-on: https://gerrit.mot.com/2394251 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 88fade8e70e4..c3778d171dbe 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -296,6 +296,10 @@ moto,vib-ldo-gpio = <&tlmm 101 0x0>; status = "ok"; }; + + mcd { + status = "disabled"; + }; }; &mot_batterydata { From 80cb8fb2d3ed6053c151f84f3f744b667111bd25 Mon Sep 17 00:00:00 2001 From: "[A" Date: Wed, 28 Sep 2022 17:10:56 +0800 Subject: [PATCH 0926/1247] add new Battery ID Modify: add new Battery ID Change-Id: Ie6b98c50ebf44e12a70295af07dc79c5c6d4bded Signed-off-by: Reviewed-on: https://gerrit.mot.com/2393408 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi | 27 +++++++++++++++++++ .../CW_nd50-jiade-4850mah_new.dtsi | 27 +++++++++++++++++++ qcom/discrete_charging_penang.dtsi | 2 ++ 3 files changed, 56 insertions(+) create mode 100644 qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi create mode 100644 qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi diff --git a/qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi b/qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi new file mode 100644 index 000000000000..f03806a3f5ee --- /dev/null +++ b/qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-atl-4850mah_new { + serialnum = "SB18D69208"; + fcc_design = <4850>; + ui_full = <100>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A7 B6 BC CA B9 B2 AE 6F + 51 FF FF CF 97 82 68 57 + 50 4F 4D 86 D9 DE E3 E8 + D8 CF D4 D6 D3 D1 CE CA + C6 C5 CC BA 9A 8F 85 7E + 6E 6E 7B 8E A5 8E 67 66 + 80 00 57 10 00 A0 63 00 + 00 00 64 22 C3 5C 00 00 + 00 00 00 00 00 00 00 42 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi b/qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi new file mode 100644 index 000000000000..cd7c9f92814c --- /dev/null +++ b/qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-jiade-4850mah_new { + serialnum = "SB18D69209"; + fcc_design = <4850>; + ui_full = <98>; + config_profile_info = [5A 00 00 00 00 00 00 00 + 9E C0 C3 C6 B9 B6 AA 6D + 47 FF D7 9D 82 6A 5B 52 + 4D 4D 4C 7D D9 DE 8C D2 + CA C9 D1 D5 D4 D2 CF CA + C7 C7 D5 B8 9C 91 89 82 + 7C 7C 85 95 AB 87 67 73 + 80 00 57 10 00 A0 6E 00 + 00 00 64 21 C3 6E 00 00 + 00 00 00 00 00 00 00 F0 ]; +}; diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index a97f7162668a..37a61a5a1d14 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -43,7 +43,9 @@ factory_mode_ntc_exist = <0>; df-serialnum = "SB18D34202"; #include "bat_setting/CW_nd50-atl-4850mah.dtsi" + #include "bat_setting/CW_nd50-atl-4850mah_new.dtsi" #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" + #include "bat_setting/CW_nd50-jiade-4850mah_new.dtsi" #include "bat_setting/CW_nd50-local-4850mah.dtsi" }; }; From 78dc32b1a41f45b2d46137b973895a83de107892 Mon Sep 17 00:00:00 2001 From: longc102 Date: Mon, 3 Oct 2022 15:43:10 +0800 Subject: [PATCH 0927/1247] sgm4154x add led dts code main charger control charger led by stat pin,control by write register. Change-Id: If784a834894d6afc002498ec60ffc7350665815c Signed-off-by: longc102 Reviewed-on: https://gerrit.mot.com/2396293 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_pnangn.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index 4b2a90bf97ee..488207f0c5f9 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -96,6 +96,12 @@ temp_t0_thres = <0>; temp_t0_thres_plus_x_degree = <2>; temp_neg_10_thres = <0>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; }; bq25890: bq25890@6A { From a9283e3bb551c8440da29008b0bcfabfe737b1de Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Sat, 8 Oct 2022 15:29:41 +0800 Subject: [PATCH 0928/1247] Add the recovery scheme of the secondary panel ESD software Modify: Add the recovery scheme of the secondary panel ESD software Change-Id: I56de015efaf24b8be2916b62398619e29f8ffdeb Reviewed-on: https://gerrit.mot.com/2399017 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index f3dfd4189289..c7bf264a6f90 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -200,11 +200,13 @@ qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a + 06 01 00 01 00 00 01 0b + 06 01 00 01 00 00 01 0D]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-on-check-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-panel-status-value = <0x9c>,<0x00>,<0x01>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>,<0x00>,<0x01>; + qcom,mdss-dsi-panel-status-read-length = <1 1 1>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-panel-supplier = "tm"; From 2aa9c66001fcd69c1c9d4600c68c092bf2386205 Mon Sep 17 00:00:00 2001 From: HQ Cam LiJunyu Date: Thu, 29 Sep 2022 16:02:04 +0800 Subject: [PATCH 0929/1247] : camera: change 50m s5kjn1 dvdd GPIO from 6 to 48 this change only for DVT2 later hardware and only for JP SKU SN110P Change-Id: I1a98c51dd1c9a18ab36463197244ea0fd11c6a0f Signed-off-by: HQ Cam LiJunyu Reviewed-on: https://gerrit.mot.com/2394443 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Pengfei Qiao Reviewed-by: Reviewed-by: Wang Liu Reviewed-by: Shuo Wang Reviewed-by: Long Cheng Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 622 ++++++++++++++++++++++++ qcom/holi-penang-dvt2-jp-overlay.dts | 2 +- 2 files changed, 623 insertions(+), 1 deletion(-) create mode 100644 qcom/holi-penang-common-jp-overlay.dtsi diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi new file mode 100644 index 000000000000..ebb9fffd8aba --- /dev/null +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -0,0 +1,622 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-penang-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" + +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "penang-fps-overlay.dtsi" +#include "penang-display.dtsi" +#include "penang-touchscreen.dtsi" +#include "penang-fmr-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-penang-jp-overlay.dtsi" +#include "discrete_charging_penang.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "disabled"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + + +&tlmm { + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + + + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 101 0x0>; + status = "ok"; + }; + + mcd { + status = "disabled"; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; + +&qupv3_se8_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&L9A>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <61>; + Semtech,reg-init = < + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x88E + 0x8034 0x86E + 0x8040 0x88E + 0x804C 0xE96 + 0x8058 0x46E + 0x8064 0x88E + 0x8070 0x86E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFEF9FF + 0x8048 0xFFD9FF + 0x8054 0xFFF97F + 0x8060 0xBFF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x3F2C + 0x80B8 0x3620 + 0x80D8 0x3821 + 0x80F8 0x2B24 + 0x8118 0x263C + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x222200E1 + 0x80C0 0x141400E2 + 0x80E0 0x232300E1 + 0x8100 0x202000E0 + 0x8120 0x2F2F00E2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54C45000 + 0x80B0 0x2AE27000 + 0x80D0 0x54D45000 + 0x80F0 0x2AE27000 + 0x8110 0x2AE27000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + >; + status = "ok"; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-penang-dvt2-jp-overlay.dts b/qcom/holi-penang-dvt2-jp-overlay.dts index a7fbb9d5c1a1..ebbffd24b7ee 100644 --- a/qcom/holi-penang-dvt2-jp-overlay.dts +++ b/qcom/holi-penang-dvt2-jp-overlay.dts @@ -13,7 +13,7 @@ /dts-v1/; /plugin/; -#include "holi-penang-common-overlay.dtsi" +#include "holi-penang-common-jp-overlay.dtsi" / { model = "penang"; From 988cd6aafffe379292d24990941e1d17c4d2eb9e Mon Sep 17 00:00:00 2001 From: wangyq13 Date: Mon, 10 Oct 2022 10:41:49 +0800 Subject: [PATCH 0930/1247] arm/dt: miami: change mipi pin hs strength to 0x66 arm/dt: Change mipi pin hs strength to 0x66. Voltage is 180mV. Change to this value can solve esd recover issue on specific devices. Change-Id: I9567cb876d0b99d66111c477961570a83a4e73cf Signed-off-by: wangyq13 Reviewed-on: https://gerrit.mot.com/2399747 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/miami-display.dtsi | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/qcom/miami-display.dtsi b/qcom/miami-display.dtsi index dfec26ebaef6..ca506074c5f6 100644 --- a/qcom/miami-display.dtsi +++ b/qcom/miami-display.dtsi @@ -167,7 +167,7 @@ //qcom,mdss-dsi-panel-clockrate = <320000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 04 03 02 02 04 00 0C 08]; }; @@ -175,7 +175,7 @@ //qcom,mdss-dsi-panel-clockrate = <400000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -183,7 +183,7 @@ //qcom,mdss-dsi-panel-clockrate = <601000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -191,7 +191,7 @@ //qcom,mdss-dsi-panel-clockrate = <801000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -199,7 +199,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -242,7 +242,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 03 02 02 04 00 0C 08]; }; @@ -252,7 +252,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -262,7 +262,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -272,7 +272,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -280,7 +280,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ @@ -323,7 +323,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 0D 03 03 10 1D 03 03 02 02 04 00 0C 08]; }; @@ -333,7 +333,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 10 03 03 11 1E 04 04 03 02 04 00 0E 08]; }; @@ -343,7 +343,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 16 05 05 14 1F 06 06 06 02 04 00 13 0A]; }; @@ -353,7 +353,7 @@ qcom,default-topology-index = <0>; qcom,partial-update-enabled = "single_roi"; qcom,panel-roi-alignment = <1080 120 1080 120 1080 120>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 1C 07 07 17 15 07 07 08 02 04 00 18 0C]; }; @@ -361,7 +361,7 @@ //qcom,mdss-dsi-panel-clockrate = <961000000>; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; - qcom,mdss-dsi-panel-phy-drive-strength = <255>; + qcom,mdss-dsi-panel-phy-drive-strength = <102>; qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 17 08 08 09 02 04 00 1C 0D]; };*/ From 160624ffd319ba0a6e7b180b2f2152535bf0b9ef Mon Sep 17 00:00:00 2001 From: longch98 Date: Mon, 10 Oct 2022 13:50:57 +0800 Subject: [PATCH 0931/1247] pnangn/dts:sar reg para update 1. Adjust the scanning frequency to minimize the bottom noise 2. Adjust the threshold of trigger distance 3. Adjust the temperature supplement coefficient to meet the requirements of high and low temperature test Change-Id: If86b4e93cfaef1f5d6573030765801f9ac64efad Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2399853 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Reviewed-by: Nan Wu Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 52 +++++++++++++--------------- 1 file changed, 24 insertions(+), 28 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index b65c9be4ce15..cbf2e78b770f 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -510,16 +510,17 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < + 0x8024 0x7F00 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x886 - 0x8034 0x886 - 0x8040 0x886 - 0x804C 0x886 - 0x8058 0x886 - 0x8064 0x886 - 0x8070 0x886 + 0x8028 0x866 + 0x8034 0x866 + 0x8040 0x87E + 0x804C 0x876 + 0x8058 0x8B6 + 0x8064 0x866 + 0x8070 0x866 0x807C 0x88E 0x8030 0xFFF9FD 0x803C 0xBFF9FF @@ -530,30 +531,27 @@ 0x8078 0xFFF97F 0x8084 0xFFF9FF 0x8098 0x6838 - 0x80B8 0x3A3A + 0x80B8 0x4545 0x80D8 0x5931 0x80F8 0x3737 0x8118 0x3C3C 0x8138 0x8E 0x8158 0x8E 0x8178 0x5A40 - 0x80A0 0x21240001 - 0x80C0 0x20200001 - 0x80E0 0x14160002 - 0x8100 0x37380002 - 0x8120 0x36360002 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 + 0x80A0 0x1E1F0001 + 0x80C0 0x22230001 + 0x80E0 0x1B230002 + 0x8100 0x32380002 + 0x8120 0x30360002 0x8188 0x8000015 0x818C 0x8000016 0x8190 0x10 0x8194 0x12 - 0x8090 0x64B45000 - 0x80B0 0x3CD05000 - 0x80D0 0x32D87000 - 0x80F0 0x3CD45000 - 0x8110 0x2CD87000 + 0x8090 0x103E + 0x80B0 0x104D + 0x80D0 0x103E + 0x80F0 0x104D + 0x8110 0x104D 0x8130 0x54AC5000 0x8150 0x54AC5000 0x8170 0x54AC5000 @@ -565,16 +563,14 @@ 0x8128 0x600000 0x8148 0x600000 0x8168 0x300000 - 0x808C 0x60200030 - 0x80AC 0x60200030 - 0x80CC 0x60200018 - 0x80EC 0x60200030 - 0x810C 0x60200018 + 0x808C 0x602000C0 + 0x80AC 0x602000C0 + 0x80CC 0x602000C0 + 0x80EC 0x602000C0 + 0x810C 0x602000C0 0x812C 0x60200030 0x814C 0x60200030 0x816C 0x60200030 - 0x8024 0x7F00 - 0x4280 0xE >; status = "ok"; }; From 47df74496785ab70d17dc89ff265c805c4ab5219 Mon Sep 17 00:00:00 2001 From: djw Date: Sun, 9 Oct 2022 16:26:24 +0800 Subject: [PATCH 0932/1247] (CR) dts/panel:add pnangn bias config add pnangn bias ic i2c config to dtsi Change-Id: I696cbed6d1679f457a85da252054761af85ce06d Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2399493 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 53aa87cf56e1..e69a0bfa422d 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -256,4 +256,14 @@ }; }; +&qupv3_se7_i2c { + status = "ok"; + ocp2138@3e { + compatible = "ocp,i2c_lcd_bias"; + reg = <0x3e>; + i2c-pull-up; + ocp,lcd-bias-enn-gpio = <&tlmm 85 0>; + ocp,lcd-bias-enp-gpio = <&tlmm 86 0>; + }; +}; From cf80276a774d61d4a66c017ef2ceedb5280e1933 Mon Sep 17 00:00:00 2001 From: lbh Date: Tue, 11 Oct 2022 15:52:24 +0800 Subject: [PATCH 0933/1247] pnangn:2nd main charger add led dts code pnangn: chg led support for 2nd charger 2nd main charger add led dts code Change-Id: Id209ff888002641883cacd61fe75de241595bfc1 Reviewed-on: https://gerrit.mot.com/2401218 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_pnangn.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index 488207f0c5f9..d01314f5cc0c 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -130,6 +130,12 @@ ti,bq2589x,enable-termination; ti,bq2589x,enable-ico; ti,bq2589x,use-absolute-vindpm; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; }; }; From 8bb28e37bcce895232ebed862ad9c1f7a9c610ed Mon Sep 17 00:00:00 2001 From: lbh Date: Wed, 12 Oct 2022 15:22:26 +0800 Subject: [PATCH 0934/1247] pnangn:2nd fg rt9426a add battery profile data pnangn:2nd fg rt9426a add 2 battery profile data add atl and scud battery profile in dts Change-Id: I7f54e2d161598b5ee2a77c4d0a8ddfc4931f6232 Reviewed-on: https://gerrit.mot.com/2402299 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- .../RT_nh50-atl-4850mah-5mohm.dtsi | 92 +++++++++++++++++++ .../RT_nh50-scud-4850mah-5mohm.dtsi | 92 +++++++++++++++++++ qcom/rt9426a-pnangn.dtsi | 10 +- 3 files changed, 189 insertions(+), 5 deletions(-) create mode 100644 qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi create mode 100644 qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi diff --git a/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi new file mode 100644 index 000000000000..dfdb4a493a49 --- /dev/null +++ b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nh50-atl-4850mah { + serialnum = "SB18D69208"; + rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 81 00 00 + 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A + 00 82 00 02 00 02 00 40 00 40 5D 12 5D 12 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 + 15 0E 48 44 A2 4C 05 41 19 08 B5 12 23 32 08 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F + 32 19 09 0B 0B 0B 09 09 03 FB 08 08 08 05 05 FC + EA E9 E9 E9 E7 E7 CB 9E E9 E9 E9 88 88 B1 81 00 + 76 02 C0 48 0A 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 07 05 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88]; + rt,init_ocv_table = <3400 3501 3603 3633 3663 3683 3688 3692 3696 3701 + 3705 3710 3714 3719 3723 3727 3731 3735 3739 3743 + 3747 3751 3755 3759 3763 3767 3771 3775 3779 3783 + 3786 3790 3794 3798 3802 3806 3810 3814 3817 3821 + 3825 3830 3835 3839 3844 3849 3854 3859 3863 3869 + 3877 3885 3893 3901 3908 3919 3929 3940 3950 3961 + 3971 3981 3992 4002 4012 4023 4033 4043 4053 4064 + 4074 4084 4095 4106 4118 4129 4140 4152 4163 4174 + 4186 4196 4207 4218 4229 4240 4251 4263 4274 4284 + 4293 4301 4310 4319 4328 4337 4345 4354 4363 4372 4381>; + rt,fcc_design = <5000>; + rt,fcc = <4701 4701 4701 4701 4701>; + rt,fg_fc_vth = <0xA2 0xA2 0xA2 0xA2 0xA2>; + rt,fg_ocv_table0 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 + 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB + 0x6B05 0x6C02 0x6D86 0x706D 0x2B00 0x0517 0x0183 0x0037 + 0x0039 0x0033 0x0031 0x003D 0x0064 0x0086 0x0086 0x0083 + 0x0091 0x008C 0x008E 0x0071 0x0071 0x0129 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0032 0x00A9 0x04AA 0x047D 0x0500 + 0x052C 0x042B 0x0290 0x01EB 0x01EB 0x01F3 0x01C4 0x01D4 + 0x01CE 0x0246 0x0246 0x00DD 0xC224 0x0000 0x0000 0x0000>; + rt,fg_ocv_table1 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 + 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB + 0x6B05 0x6C02 0x6D86 0x706D 0x2B00 0x0517 0x0183 0x0037 + 0x0039 0x0033 0x0031 0x003D 0x0064 0x0086 0x0086 0x0083 + 0x0091 0x008C 0x008E 0x0071 0x0071 0x0129 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0032 0x00A9 0x04AA 0x047D 0x0500 + 0x052C 0x042B 0x0290 0x01EB 0x01EB 0x01F3 0x01C4 0x01D4 + 0x01CE 0x0246 0x0246 0x00DD 0xC224 0x0000 0x0000 0x0000>; + rt,fg_ocv_table2 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 + 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB + 0x6B05 0x6C02 0x6D86 0x706D 0x2B00 0x0517 0x0183 0x0037 + 0x0039 0x0033 0x0031 0x003D 0x0064 0x0086 0x0086 0x0083 + 0x0091 0x008C 0x008E 0x0071 0x0071 0x0129 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0032 0x00A9 0x04AA 0x047D 0x0500 + 0x052C 0x042B 0x0290 0x01EB 0x01EB 0x01F3 0x01C4 0x01D4 + 0x01CE 0x0246 0x0246 0x00DD 0xC224 0x0000 0x0000 0x0000>; + rt,fg_ocv_table3 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 + 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB + 0x6B05 0x6C02 0x6D86 0x706D 0x2B00 0x0517 0x0183 0x0037 + 0x0039 0x0033 0x0031 0x003D 0x0064 0x0086 0x0086 0x0083 + 0x0091 0x008C 0x008E 0x0071 0x0071 0x0129 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0032 0x00A9 0x04AA 0x047D 0x0500 + 0x052C 0x042B 0x0290 0x01EB 0x01EB 0x01F3 0x01C4 0x01D4 + 0x01CE 0x0246 0x0246 0x00DD 0xC224 0x0000 0x0000 0x0000>; + rt,fg_ocv_table4 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 + 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB + 0x6B05 0x6C02 0x6D86 0x706D 0x2B00 0x0517 0x0183 0x0037 + 0x0039 0x0033 0x0031 0x003D 0x0064 0x0086 0x0086 0x0083 + 0x0091 0x008C 0x008E 0x0071 0x0071 0x0129 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x0032 0x00A9 0x04AA 0x047D 0x0500 + 0x052C 0x042B 0x0290 0x01EB 0x01EB 0x01F3 0x01C4 0x01D4 + 0x01CE 0x0246 0x0246 0x00DD 0xC224 0x0000 0x0000 0x0000>; +}; diff --git a/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi new file mode 100644 index 000000000000..1d4be2e35bfb --- /dev/null +++ b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi @@ -0,0 +1,92 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nh50-scud-4850mah { + serialnum = "SB18D69209"; + rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 81 00 00 + 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A + 00 82 00 02 00 02 00 40 00 40 27 12 27 12 04 24 + 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 + 15 0E 48 44 A2 4C 05 41 19 08 B5 12 23 32 08 00 + 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F + 32 19 09 08 08 08 06 06 01 FB 05 05 05 03 03 FD + F3 F6 F6 F6 F5 F5 DF BC F6 F6 F6 A1 A1 81 81 00 + 76 02 C0 48 0A 09 00 00 00 00 00 00 00 00 37 73 + 2D 19 05 FB 00 00 B9 36 96 33 0F 07 0A 05 0B A9 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 + 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88]; + rt,init_ocv_table = <3400 3488 3577 3616 3655 3678 3679 3682 3687 3692 + 3697 3702 3708 3713 3718 3723 3728 3734 3739 3744 + 3749 3755 3760 3765 3770 3774 3779 3783 3787 3791 + 3796 3800 3804 3808 3813 3817 3821 3825 3829 3834 + 3838 3843 3848 3854 3859 3864 3870 3875 3880 3887 + 3894 3901 3909 3916 3924 3933 3943 3952 3962 3973 + 3985 3996 4007 4018 4029 4041 4052 4063 4074 4085 + 4096 4108 4119 4130 4141 4152 4163 4174 4186 4197 + 4208 4219 4231 4242 4253 4264 4275 4286 4297 4306 + 4314 4322 4330 4338 4346 4354 4362 4370 4378 4386 4395>; + rt,fcc_design = <5000>; + rt,fcc = <4647 4647 4647 4647 4647>; + rt,fg_fc_vth = <0xA2 0xA2 0xA2 0xA2 0xA2>; + rt,fg_ocv_table0 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 + 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 + 0x6B97 0x6C7E 0x6DE0 0x706D 0x2B00 0x0473 0x01F0 0x0007 + 0x0042 0x0043 0x0036 0x0044 0x005F 0x0079 0x0091 0x008F + 0x008F 0x0091 0x0089 0x0067 0x0067 0x0105 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003A 0x0084 0x25F9 0x03E3 0x03CF + 0x04B9 0x03C1 0x02B3 0x021C 0x01C5 0x01CB 0x01CB 0x01C3 + 0x01DD 0x027F 0x027F 0x00FB 0xD326 0x0000 0x0000 0x0000>; + rt,fg_ocv_table1 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 + 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 + 0x6B97 0x6C7E 0x6DE0 0x706D 0x2B00 0x0473 0x01F0 0x0007 + 0x0042 0x0043 0x0036 0x0044 0x005F 0x0079 0x0091 0x008F + 0x008F 0x0091 0x0089 0x0067 0x0067 0x0105 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003A 0x0084 0x25F9 0x03E3 0x03CF + 0x04B9 0x03C1 0x02B3 0x021C 0x01C5 0x01CB 0x01CB 0x01C3 + 0x01DD 0x027F 0x027F 0x00FB 0xD326 0x0000 0x0000 0x0000>; + rt,fg_ocv_table2 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 + 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 + 0x6B97 0x6C7E 0x6DE0 0x706D 0x2B00 0x0473 0x01F0 0x0007 + 0x0042 0x0043 0x0036 0x0044 0x005F 0x0079 0x0091 0x008F + 0x008F 0x0091 0x0089 0x0067 0x0067 0x0105 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003A 0x0084 0x25F9 0x03E3 0x03CF + 0x04B9 0x03C1 0x02B3 0x021C 0x01C5 0x01CB 0x01CB 0x01C3 + 0x01DD 0x027F 0x027F 0x00FB 0xD326 0x0000 0x0000 0x0000>; + rt,fg_ocv_table3 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 + 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 + 0x6B97 0x6C7E 0x6DE0 0x706D 0x2B00 0x0473 0x01F0 0x0007 + 0x0042 0x0043 0x0036 0x0044 0x005F 0x0079 0x0091 0x008F + 0x008F 0x0091 0x0089 0x0067 0x0067 0x0105 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003A 0x0084 0x25F9 0x03E3 0x03CF + 0x04B9 0x03C1 0x02B3 0x021C 0x01C5 0x01CB 0x01CB 0x01C3 + 0x01DD 0x027F 0x027F 0x00FB 0xD326 0x0000 0x0000 0x0000>; + rt,fg_ocv_table4 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 + 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 + 0x6B97 0x6C7E 0x6DE0 0x706D 0x2B00 0x0473 0x01F0 0x0007 + 0x0042 0x0043 0x0036 0x0044 0x005F 0x0079 0x0091 0x008F + 0x008F 0x0091 0x0089 0x0067 0x0067 0x0105 0x0013 0xFF80 + 0x0000 0x0200 0x049A 0x0680 0x0E4D 0x17E6 0x281A 0x309A + 0x3600 0x39B3 0x3D33 0x474D 0x4F80 0x5466 0x589A 0x5D1A + 0x6400 0x6900 0x0006 0x003A 0x0084 0x25F9 0x03E3 0x03CF + 0x04B9 0x03C1 0x02B3 0x021C 0x01C5 0x01CB 0x01CB 0x01C3 + 0x01DD 0x027F 0x027F 0x00FB 0xD326 0x0000 0x0000 0x0000>; +}; diff --git a/qcom/rt9426a-pnangn.dtsi b/qcom/rt9426a-pnangn.dtsi index 5bebc27ac4cb..d85706dffe33 100644 --- a/qcom/rt9426a-pnangn.dtsi +++ b/qcom/rt9426a-pnangn.dtsi @@ -9,8 +9,8 @@ interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; - rt,dtsi_version = <01 1012>; - rt,para_version = <0x0000>; + rt,dtsi_version = <01 1005>; + rt,para_version = <0x0001>; rt,battery_type = <4400>; rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV rt,temp_source = <1>; // 0:AP 1:FG_TEMP 2:FG_INTT; 3:FG_AT @@ -24,9 +24,9 @@ /* add for aging cv ; 2021-01-18 */ rt,smooth_soc_en = <0>; /* 0: disable(default) ; 1: enable */ - df-serialnum = "SB18D33989"; - #include "bat_setting/RT_md50-atl-5000mah.dtsi" - //#include "bat_setting/RT_md50-scud-5000mah.dtsi" + df-serialnum = "SB18D69208"; + #include "bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi" + #include "bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi" }; }; From 40740b9123c85c608dd72e7fd35f3731ebc1faef Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Wed, 12 Oct 2022 11:33:58 +0800 Subject: [PATCH 0935/1247] arm64/dts: update thermal mitigation Changes: update thermal mitigation for penang. Change-Id: Iac667e7595f9c68f364aac5dde6affb3bda298a6 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2402142 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 37a61a5a1d14..d25f0b6b8c55 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -160,7 +160,7 @@ <45 0 3600 3600>, <60 4200 3600 0>; - mmi,thermal-mitigation = <4000000 3000000 2500000 + mmi,thermal-mitigation = <3600000 3300000 3000000 2500000 2000000 1500000 1200000 900000 600000 300000>; From 23708b097d9845365b5b8babd553cf9e55770adf Mon Sep 17 00:00:00 2001 From: djw Date: Wed, 12 Oct 2022 16:09:09 +0800 Subject: [PATCH 0936/1247] dts/panel:pnangn:updata 2nd panel init cmd for IC ulps pnangn:updata 2nd panel init cmd updata 2nd dts panel init cmd for IC ulps and fix pwm to 11 bit Change-Id: Ic4b12be0ca245300eddd631c56207f4c99c96215 Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2402366 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...-csot-ft8057-653-hdplus-720x1600-video.dtsi | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index c737e7c8c554..eb73ff401714 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -56,22 +56,24 @@ qcom,mdss-dsi-on-command = [ 15 01 00 00 00 00 02 00 00 - 39 00 00 00 00 00 04 FF 80 57 01 + 39 01 00 00 00 00 04 FF 80 57 01 15 01 00 00 00 00 02 00 80 - 39 00 00 00 00 00 03 FF 80 57 + 39 01 00 00 00 00 03 FF 80 57 15 01 00 00 00 00 02 00 B2 - 15 01 00 00 00 00 02 CA 0C + 15 01 00 00 00 00 02 CA 0B 15 01 00 00 00 00 02 00 B5 15 01 00 00 00 00 02 CA 04 - 39 00 00 00 00 00 03 51 07 07 - 15 00 00 00 00 00 02 53 2C - 15 00 00 00 00 00 02 55 01 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 ]; qcom,mdss-dsi-off-command = [ - 05 00 00 00 14 00 01 28 - 05 01 00 00 3C 00 01 10 + 05 01 00 00 14 00 01 28 + 05 01 00 00 64 00 01 10 + 15 01 00 00 00 00 02 00 00 + 39 01 00 00 00 00 05 F7 5A A5 95 27 ]; qcom,mdss-dsi-t-clk-post = <0x1A>; qcom,mdss-dsi-t-clk-pre = <0x21>; From f4197e8ce8d808b0165fd0bb3e7ec14075a8362c Mon Sep 17 00:00:00 2001 From: YangYi Date: Mon, 17 Oct 2022 10:37:30 +0800 Subject: [PATCH 0937/1247] Penang: update sar coefficients 1017 Penang: update sar settings 1017 Change-Id: If75a28cb095186ac921925403ad713605a2dda02 Signed-off-by: YangYi Reviewed-on: https://gerrit.mot.com/2405093 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yuchang Guo Reviewed-by: Lijun Chen Reviewed-by: Xiangpo Zhao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index c3778d171dbe..7911e7ed6e9b 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -511,11 +511,11 @@ 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x88E - 0x8034 0x86E - 0x8040 0x88E - 0x804C 0xE96 - 0x8058 0x46E + 0x8028 0x1088E + 0x8034 0x486E + 0x8040 0x1088E + 0x804C 0x4E96 + 0x8058 0x446E 0x8064 0x88E 0x8070 0x86E 0x807C 0x85E From 838feca03e3d39c3c38c4276528edc5c966994dd Mon Sep 17 00:00:00 2001 From: hujing3 Date: Fri, 14 Oct 2022 17:51:56 +0800 Subject: [PATCH 0938/1247] dts/panel:pnangn increase min brightness pnangn: increase min brightness according ALS data Change-Id: Iee524b605580702c344b8b1def54cb983bdf0e93 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2404458 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index e69a0bfa422d..4828d5e3b8fd 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -137,7 +137,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-min-level = <26>; qcom,mdss-dsi-bl-max-level = <3276>; qcom,mdss-dsi-bl-default-level = <1478>; qcom,mdss-brightness-max-level = <3276>; @@ -190,7 +190,7 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-min-level = <26>; qcom,mdss-dsi-bl-max-level = <3276>; qcom,mdss-dsi-bl-default-level = <1478>; qcom,mdss-brightness-max-level = <3276>; From 9f051b0a3d1521c25a6c375ade20ebac02b1705a Mon Sep 17 00:00:00 2001 From: "[A" Date: Mon, 17 Oct 2022 10:42:39 +0800 Subject: [PATCH 0939/1247] penang 5g battery capacity is 5000mA Modify: penang 5g battery capacity is 5000mA Change-Id: I86e9142e51bec5cc0fe8ff15fde45b423491a1bc Signed-off-by: Reviewed-on: https://gerrit.mot.com/2405090 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...-4850mah.dtsi => CW_nd50-atl-5000mah-penang5g.dtsi} | 4 ++-- ..._new.dtsi => CW_nd50-atl-5000mah_new-penang5g.dtsi} | 4 ++-- ...850mah.dtsi => CW_nd50-jiade-5000mah-penang5g.dtsi} | 4 ++-- ...ew.dtsi => CW_nd50-jiade-5000mah_new-penang5g.dtsi} | 4 ++-- ...0-local-4850mah.dtsi => CW_nd50-local-5000mah.dtsi} | 4 ++-- qcom/discrete_charging_penang.dtsi | 10 +++++----- 6 files changed, 15 insertions(+), 15 deletions(-) rename qcom/bat_setting/{CW_nd50-atl-4850mah.dtsi => CW_nd50-atl-5000mah-penang5g.dtsi} (96%) rename qcom/bat_setting/{CW_nd50-atl-4850mah_new.dtsi => CW_nd50-atl-5000mah_new-penang5g.dtsi} (96%) rename qcom/bat_setting/{CW_nd50-jiade-4850mah.dtsi => CW_nd50-jiade-5000mah-penang5g.dtsi} (96%) rename qcom/bat_setting/{CW_nd50-jiade-4850mah_new.dtsi => CW_nd50-jiade-5000mah_new-penang5g.dtsi} (95%) rename qcom/bat_setting/{CW_nd50-local-4850mah.dtsi => CW_nd50-local-5000mah.dtsi} (96%) diff --git a/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi similarity index 96% rename from qcom/bat_setting/CW_nd50-atl-4850mah.dtsi rename to qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi index cce1381e2af2..9a25b8cea12e 100644 --- a/qcom/bat_setting/CW_nd50-atl-4850mah.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi @@ -10,9 +10,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -nd50-atl-4850mah { +nd50-atl-5000mah { serialnum = "SB18D34202"; - fcc_design = <4850>; + fcc_design = <5000>; ui_full = <100>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F diff --git a/qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi similarity index 96% rename from qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi rename to qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi index f03806a3f5ee..9e09e22c040a 100644 --- a/qcom/bat_setting/CW_nd50-atl-4850mah_new.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi @@ -10,9 +10,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -nd50-atl-4850mah_new { +nd50-atl-5000mah_new { serialnum = "SB18D69208"; - fcc_design = <4850>; + fcc_design = <5000>; ui_full = <100>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F diff --git a/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi similarity index 96% rename from qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi rename to qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi index bea2888d6b92..f58a39a2ba08 100644 --- a/qcom/bat_setting/CW_nd50-jiade-4850mah.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi @@ -10,9 +10,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -nd50-jiade-4850mah { +nd50-jiade-5000mah { serialnum = "SB18D45495"; - fcc_design = <4850>; + fcc_design = <5000>; ui_full = <98>; config_profile_info = [5A 00 00 00 00 00 00 00 9E C0 C3 C6 B9 B6 AA 6D diff --git a/qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi similarity index 95% rename from qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi rename to qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi index cd7c9f92814c..9b095b49d237 100644 --- a/qcom/bat_setting/CW_nd50-jiade-4850mah_new.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi @@ -10,9 +10,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -nd50-jiade-4850mah_new { +nd50-jiade-5000mah_new { serialnum = "SB18D69209"; - fcc_design = <4850>; + fcc_design = <5000>; ui_full = <98>; config_profile_info = [5A 00 00 00 00 00 00 00 9E C0 C3 C6 B9 B6 AA 6D diff --git a/qcom/bat_setting/CW_nd50-local-4850mah.dtsi b/qcom/bat_setting/CW_nd50-local-5000mah.dtsi similarity index 96% rename from qcom/bat_setting/CW_nd50-local-4850mah.dtsi rename to qcom/bat_setting/CW_nd50-local-5000mah.dtsi index 2da6965cc847..0daea32a6bae 100644 --- a/qcom/bat_setting/CW_nd50-local-4850mah.dtsi +++ b/qcom/bat_setting/CW_nd50-local-5000mah.dtsi @@ -10,9 +10,9 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. * See http://www.gnu.org/licenses/gpl-2.0.html for more details. */ -nd50-local-4850mah { +nd50-local-5000mah { serialnum = "SB18D36197"; - fcc_design = <4850>; + fcc_design = <5000>; ui_full = <97>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index d25f0b6b8c55..9d0268d481fc 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -42,11 +42,11 @@ sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; df-serialnum = "SB18D34202"; - #include "bat_setting/CW_nd50-atl-4850mah.dtsi" - #include "bat_setting/CW_nd50-atl-4850mah_new.dtsi" - #include "bat_setting/CW_nd50-jiade-4850mah.dtsi" - #include "bat_setting/CW_nd50-jiade-4850mah_new.dtsi" - #include "bat_setting/CW_nd50-local-4850mah.dtsi" + #include "bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi" + #include "bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nd50-local-5000mah.dtsi" }; }; From 44ca615110790f5c3288d19705041287c3b518c6 Mon Sep 17 00:00:00 2001 From: lbh Date: Thu, 20 Oct 2022 11:49:54 +0800 Subject: [PATCH 0940/1247] pnangn:1st fg cw2217 change ui_full from 97 to 99 pnangn: 1st fg cw2217 change ui_full from 97 to 99 in dtsi file Change-Id: Idd498087ff1721f633d646337087398c38ba45bd Reviewed-on: https://gerrit.mot.com/2409100 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi | 2 +- qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi b/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi index 42eff422bed5..6d0842c277a1 100644 --- a/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/CW_nh50-atl-4850mah-5mohm.dtsi @@ -13,7 +13,7 @@ nh50-atl-4850mah { serialnum = "SB18D69208"; fcc_design = <4850>; - ui_full = <97>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 A4 C5 9B D0 BC BE 9E 63 38 FF FF FF A5 8D 74 62 diff --git a/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi b/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi index 2306abc335c6..8fa2635e7d47 100644 --- a/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/CW_nh50-scud-4850mah-5mohm.dtsi @@ -13,7 +13,7 @@ nh50-scud-4850mah { serialnum = "SB18D69209"; fcc_design = <4850>; - ui_full = <97>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 A9 C0 C7 C5 BA B4 A1 63 42 FD D8 A4 8B 77 65 58 From afeaeb4715ef9f67b0d1c28c8a3c88f22417643d Mon Sep 17 00:00:00 2001 From: djw Date: Thu, 20 Oct 2022 15:08:22 +0800 Subject: [PATCH 0941/1247] dts/panel:pnangn:update 1st mipi speed pnangn:update 1st mipi speed update 1st proch and timing for mipi speed Change-Id: Id24234d75e897fc8f1024852a9f1f76d3eab64a1 Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2409383 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...i-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi | 2 +- qcom/pnangn-display.dtsi | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi index 496887922f57..5ae6096c6529 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi @@ -41,7 +41,7 @@ qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; qcom,mdss-dsi-h-front-porch = <20>; - qcom,mdss-dsi-h-back-porch = <100>; + qcom,mdss-dsi-h-back-porch = <60>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 4828d5e3b8fd..d134db8088ad 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -168,13 +168,13 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x1A>; - qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x3C>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; - qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A - 0B 0A 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 25 0A 0A 27 24 0A + 0A 0A 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From 1dab9ba7e1d0f59ff8efa76076a3300357656ba0 Mon Sep 17 00:00:00 2001 From: djw Date: Thu, 20 Oct 2022 14:45:30 +0800 Subject: [PATCH 0942/1247] dts/panel:pnangn:update 2nd mipi speed pnangn:update 2nd mipi speed update 2nd proch and timing for mipi speed Change-Id: Icff1d5b402de89b8aa6ee5c50e141d667f796a0c Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2409319 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...i-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi | 4 ++-- qcom/pnangn-display.dtsi | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index eb73ff401714..74c44bc27696 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -40,8 +40,8 @@ timing@0 { qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; - qcom,mdss-dsi-h-front-porch = <16>; - qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-front-porch = <52>; + qcom,mdss-dsi-h-back-porch = <20>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-h-sync-pulse = <0>; diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index d134db8088ad..1725e2fbbd84 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -224,13 +224,13 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-t-clk-post = <0x0E>; - qcom,mdss-dsi-t-clk-pre = <0x1E>; + qcom,mdss-dsi-t-clk-post = <0x0F>; + qcom,mdss-dsi-t-clk-pre = <0x3C>; qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; - qcom,mdss-dsi-panel-phy-timings = [00 24 09 09 1A 18 09 - 09 09 02 04 00]; + qcom,mdss-dsi-panel-phy-timings = [00 25 0A 0A 27 24 0A + 0A 0A 02 04 00]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; From f25d41d3faa7866235f7ecf4fe046494b99b34e4 Mon Sep 17 00:00:00 2001 From: djw Date: Tue, 18 Oct 2022 17:42:37 +0800 Subject: [PATCH 0943/1247] dts/panel:pnangn:update CABC and ESD pnangn:update CABC and ESD update CABC mode for 2nd and enable ESD for 1st and 2nd Change-Id: Ibcd37435b410f3dda6d925925d2679b92845e08b Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2406737 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...mot-csot-ft8057-653-hdplus-720x1600-video.dtsi | 15 ++++++++++++--- qcom/pnangn-display.dtsi | 4 ++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index 74c44bc27696..035af3da7d6f 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -29,11 +29,20 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; - qcom,mdss-dsi-cabc-mv-command = [15 01 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command = [ + 15 01 00 00 00 00 02 55 03 + 15 01 00 00 00 00 02 26 02 + ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 01 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command = [ + 15 01 00 00 00 00 02 55 01 + 15 01 00 00 00 00 02 26 02 + ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command = [ + 15 01 00 00 00 00 02 55 00 + 15 01 00 00 00 00 02 26 01 + ]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; qcom,mdss-dsi-display-timings { diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 1725e2fbbd84..ad9748a5099e 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -143,7 +143,7 @@ qcom,mdss-brightness-max-level = <3276>; qcom,platform-reset-gpio-always-on; - /*qcom,esd-check-enabled;*/ + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; @@ -199,7 +199,7 @@ qcom,mdss-panel-on-rst-pull-down; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; From 1da20d26801b89c622d4100a7e8c602c26c37ac6 Mon Sep 17 00:00:00 2001 From: zhangjun10 Date: Mon, 24 Oct 2022 15:53:20 +0800 Subject: [PATCH 0944/1247] : update NFC gpio for sb dvt2 hardware new sku for sb need update nfc gpio for sb japan dvt2 Change-Id: I8db486db945fafd8fd271fae556a8f8ffa4fa496 Signed-off-by: zhangjun10 Reviewed-on: https://gerrit.mot.com/2412009 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/Makefile | 2 + qcom/holi-penang-dvt2-sb-overlay.dts | 78 ++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 qcom/holi-penang-dvt2-sb-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index e5bed529fe87..9b9325676ab0 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -102,10 +102,12 @@ blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-dvt2-jp-overlay.dtbo \ + holi-penang-dvt2-sb-overlay.dtbo \ holi-penang-evt1-overlay.dtbo holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-penang-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb +holi-penang-dvt2-sb-overlay.dtbo := holi-moto-base.dtb dtbo-$(CONFIG_PNANGN_DTB) += \ holi-pnangn-evt1-overlay.dtbo diff --git a/qcom/holi-penang-dvt2-sb-overlay.dts b/qcom/holi-penang-dvt2-sb-overlay.dts new file mode 100644 index 000000000000..e1f46ebb7134 --- /dev/null +++ b/qcom/holi-penang-dvt2-sb-overlay.dts @@ -0,0 +1,78 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-jp-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <(7<<8) 0xB200>; +}; + +&tlmm { + + nfc { + sn110_enable_active: sn110_enable_active { + mux { + /* 6: Enable, 8: Firmware*/ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + sn110_enable_suspend: sn110_enable_suspend { + mux { + /* 6: Enable, 8: Firmware */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &sn110_enable_active>; + pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; + }; +}; From af6cd2150a0dc0a5825d09be7f9371388ccc59fa Mon Sep 17 00:00:00 2001 From: YangYi Date: Tue, 25 Oct 2022 10:19:34 +0800 Subject: [PATCH 0945/1247] Penang: update sar coefficients 1025 Penang: update sx937x reg num. Change-Id: I4eb6ba0fc2243190478b8839d72c86d030b31d66 Signed-off-by: YangYi Reviewed-on: https://gerrit.mot.com/2412527 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 7911e7ed6e9b..20d0c54028dc 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -506,7 +506,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <64>; Semtech,reg-init = < 0x4004 0x70 0x4008 0x8 From 36e4d3f067a49984d0cc2cf6ff2f8ec11663fd5a Mon Sep 17 00:00:00 2001 From: zhangjun10 Date: Tue, 25 Oct 2022 10:30:42 +0800 Subject: [PATCH 0946/1247] : update makefile missing for dvt2 new sku previous change (CR) missing change fix it Change-Id: Ib6789d3cacb030d1cd0368f27155f6223eb24bbf Signed-off-by: zhangjun10 Reviewed-on: https://gerrit.mot.com/2412538 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/Makefile b/qcom/Makefile index 9b9325676ab0..67c1e76e2702 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -107,7 +107,7 @@ dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-penang-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb -holi-penang-dvt2-sb-overlay.dtbo := holi-moto-base.dtb +holi-penang-dvt2-sb-overlay.dtbo-base := holi-moto-base.dtb dtbo-$(CONFIG_PNANGN_DTB) += \ holi-pnangn-evt1-overlay.dtbo From 9b5d18b725a60e047d3629fb91ed5add0d128bef Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Mon, 24 Oct 2022 14:51:28 +0800 Subject: [PATCH 0947/1247] New channel ID for Ymobile customization. Changes: - ro.carrier=ymobile - channelId=216 (decimal). Change-Id: I3cc460d04bd9c97c65a94c9b48e2116fae8b54b1 Signed-off-by: Zheng yongdong Reviewed-on: https://gerrit.mot.com/2411938 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Kunpeng Chen Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 1caec41a3b9b..b1568b7bc1b9 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -230,7 +230,7 @@ "optus", /* 213 */ "retkr", /* 214 */ "retjio", /* 215 */ - "undefined", /* 216 */ + "ymobile", /* 216 */ "undefined", /* 217 */ "undefined", /* 218 */ "undefined", /* 219 */ From 58329f88aad057d0e389adc255387fddb040a835 Mon Sep 17 00:00:00 2001 From: Yunxian He Date: Fri, 28 Oct 2022 10:05:20 +0800 Subject: [PATCH 0948/1247] Turn on PA ESD protection mechanism modify point: update holi-audio-overlay.dtsi Change-Id: I87e92a5f6d920f7fe5ada910b7d914e576e99e61 Signed-off-by: Yunxian He Reviewed-on: https://gerrit.mot.com/2415691 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhengming Yao Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-audio-penang-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/holi-audio-penang-overlay.dtsi b/qcom/holi-audio-penang-overlay.dtsi index 36dadf6bbf58..651c3840cbe2 100644 --- a/qcom/holi-audio-penang-overlay.dtsi +++ b/qcom/holi-audio-penang-overlay.dtsi @@ -282,6 +282,7 @@ compatible = "awinic,aw87xxx_pa"; reg = <0x58>; dev_index = < 0 >; + esd-enable = "true"; aw-rx-topo-id = <0x1000ff00>; aw-rx-port-id = <0xB030>; status = "okay"; @@ -290,6 +291,7 @@ compatible = "awinic,aw87xxx_pa"; reg = <0x59>; dev_index = < 1 >; + esd-enable = "true"; aw-rx-topo-id = <0x1000ff00>; aw-rx-port-id = <0xB030>; status = "okay"; From aa7a4fb8136c18d7d5fe3354ecfccf471640e2a2 Mon Sep 17 00:00:00 2001 From: "[A" Date: Fri, 21 Oct 2022 17:23:40 +0800 Subject: [PATCH 0949/1247] arm64/dts penang:add IR comp details: add IR comp for charge time Change-Id: I0195c7e96fff9ce86de14cc89c8024cb65825991 Reviewed-on: https://gerrit.mot.com/2411047 SME-Granted: SME Approvals Granted Reviewed-by: SLTApproved: Slta Waiver Reviewed-by: Lei Chen Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 9d0268d481fc..36d9bd9e45d5 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -71,6 +71,8 @@ dpdm-supply = <&qusb_phy0>; mmi,qc3-support; sgm,18w_iindpm_comp; + /* enable dynamic adjust battery voltage */ + enable_dynamic_adjust_batvol; enable_sw_jeita; jeita_temp_above_t4_cv = <0>; jeita_temp_t3_to_t4_cv = <4100000>; From a662b7378a1e639295d36de250ff66e5cce8ce16 Mon Sep 17 00:00:00 2001 From: lbh Date: Fri, 28 Oct 2022 16:39:59 +0800 Subject: [PATCH 0950/1247] pnangn/dts:sar para update 1.adjust the frequency 2.modify the threshold 3.add temperature coefficient for main channel Change-Id: If8d9cf856227b042b1bd30b2da86f3c88ea7b233 Signed-off-by: lbh Reviewed-on: https://gerrit.mot.com/2416064 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Nan Wu Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 74 ++++++++++++++-------------- 1 file changed, 37 insertions(+), 37 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index cbf2e78b770f..419225fcd44a 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -510,18 +510,18 @@ Semtech,button-flag = <0x1f>; Semtech,reg-num = <61>; Semtech,reg-init = < - 0x8024 0x7F00 - 0x4004 0x70 + 0x8024 0x7F7F + 0x4004 0x78 0x4008 0x8 0x8020 0x32 0x8028 0x866 0x8034 0x866 - 0x8040 0x87E - 0x804C 0x876 - 0x8058 0x8B6 - 0x8064 0x866 - 0x8070 0x866 - 0x807C 0x88E + 0x8040 0x85E + 0x804C 0x87E + 0x8058 0x876 + 0x8064 0x85E + 0x8070 0x85E + 0x807C 0x85E 0x8030 0xFFF9FD 0x803C 0xBFF9FF 0x8048 0xFFD9FF @@ -530,44 +530,44 @@ 0x806C 0xFFF9EF 0x8078 0xFFF97F 0x8084 0xFFF9FF - 0x8098 0x6838 - 0x80B8 0x4545 - 0x80D8 0x5931 - 0x80F8 0x3737 - 0x8118 0x3C3C + 0x8098 0x402D + 0x80B8 0x2D2D + 0x80D8 0x5925 + 0x80F8 0x1E1E + 0x8118 0x2929 0x8138 0x8E 0x8158 0x8E 0x8178 0x5A40 - 0x80A0 0x1E1F0001 - 0x80C0 0x22230001 - 0x80E0 0x1B230002 - 0x8100 0x32380002 - 0x8120 0x30360002 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8190 0x10 - 0x8194 0x12 - 0x8090 0x103E - 0x80B0 0x104D - 0x80D0 0x103E - 0x80F0 0x104D - 0x8110 0x104D - 0x8130 0x54AC5000 - 0x8150 0x54AC5000 - 0x8170 0x54AC5000 + 0x80A0 0x202000E1 + 0x80C0 0x202000E2 + 0x80E0 0xE0 + 0x8100 0x2C2C00E3 + 0x8120 0x202000E4 + 0x8188 0x8000005 + 0x818C 0x8000005 + 0x8190 0x8000006 + 0x8194 0x8000006 + 0x8090 0x5300 + 0x80B0 0x5300 + 0x80D0 0x5300 + 0x80F0 0x5300 + 0x8110 0x5300 + 0x8130 0x5300 + 0x8150 0x5300 + 0x8170 0x5300 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 0x80E8 0x300000 - 0x8108 0x400000 + 0x8108 0x300000 0x8128 0x600000 0x8148 0x600000 - 0x8168 0x300000 - 0x808C 0x602000C0 - 0x80AC 0x602000C0 - 0x80CC 0x602000C0 - 0x80EC 0x602000C0 - 0x810C 0x602000C0 + 0x8168 0x500000 + 0x808C 0x60200030 + 0x80AC 0x60200030 + 0x80CC 0x60200030 + 0x80EC 0x60200030 + 0x810C 0x60200030 0x812C 0x60200030 0x814C 0x60200030 0x816C 0x60200030 From d7432b702bf19e7bfe7ef12bb22c6bb718ad1442 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Tue, 1 Nov 2022 16:26:51 +0800 Subject: [PATCH 0951/1247] update nt36528/ft8057 panel init code Details: update nt36528/ft8057 panel init code Change-Id: Ie2a6e9e32b6a0150c53f5c3c6b1ca62e665466bb Reviewed-on: https://gerrit.mot.com/2417828 Reviewed-by: SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-csot-ft8057-653-720x1600-video.dtsi | 37 ++++++------------- ...el-mot-djn-nt36528-653-720x1600-video.dtsi | 23 ++++-------- 2 files changed, 19 insertions(+), 41 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi index 12170b8ce8f8..947235b07218 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi @@ -63,34 +63,19 @@ qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-on-command = - [ - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 04 FF 80 57 01 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 03 FF 80 57 - 39 01 00 00 00 00 02 00 B0 - 39 01 00 00 00 00 04 CA 02 02 0B - 39 01 00 00 00 00 02 00 B5 - 39 01 00 00 00 00 02 CA 06 - 39 01 00 00 00 00 02 00 A0 - 39 01 00 00 00 00 04 CA 06 06 06 - 39 01 00 00 00 00 02 00 00 - 39 01 00 00 00 00 04 FF 00 00 00 - 39 01 00 00 00 00 02 00 80 - 39 01 00 00 00 00 03 FF 00 00 - 39 01 00 00 00 00 02 35 00 - 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 - 39 01 00 00 00 00 03 51 00 00 - 15 01 00 00 00 00 02 53 24 + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 02 35 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 24 15 01 00 00 00 00 02 55 01 15 01 00 00 00 00 02 26 02 - ]; - qcom,mdss-dsi-off-command = [ - 05 00 00 00 14 00 01 28 - 05 01 00 00 3C 00 01 10 - ]; + ]; + qcom,mdss-dsi-off-command =[ + 05 01 00 00 14 00 01 28 + 05 01 00 00 78 00 01 10 + ]; qcom,mdss-dsi-t-clk-post = <0x1A>; qcom,mdss-dsi-t-clk-pre = <0x21>; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi index c39a3c6a0da0..ea69ce0eb41a 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi @@ -55,22 +55,15 @@ qcom,mdss-dsi-h-right-border = <0>; qcom,mdss-dsi-v-top-border = <0>; qcom,mdss-dsi-v-bottom-border = <0>; - qcom,mdss-dsi-on-command = - [ - 15 00 00 00 00 00 02 FF 23 - 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 00 60 - 15 00 00 00 00 00 02 07 00 - 15 00 00 00 00 00 02 08 01 - 15 00 00 00 00 00 02 09 AE - 15 00 00 00 00 00 02 FF 10 - 15 00 00 00 00 00 02 FB 01 - 39 00 00 00 00 00 03 51 00 00 - 15 00 00 00 00 00 02 53 24 - 15 00 00 00 00 00 02 55 01 - 05 01 00 00 78 00 01 11 + qcom,mdss-dsi-on-command = [ + 15 01 00 00 00 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 24 + 15 01 00 00 00 00 02 55 01 05 01 00 00 14 00 01 29 - ]; + 05 01 00 00 78 00 01 11 + ]; qcom,mdss-dsi-off-command = [ 15 00 00 00 00 00 02 FF 10 15 00 00 00 00 00 02 FB 01 From 548b55954b9260e9c16e32f4a16f003ab86ab08c Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Thu, 3 Nov 2022 14:03:51 +0800 Subject: [PATCH 0952/1247] arm64/dts:change the thermal mitigation current Changes, modify the thermal mitigation current for thermal conf. Change-Id: I0c75793be5b2dce0e1b0d8b18cfb6c2dc1fbb124 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2419638 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 36d9bd9e45d5..508f0ada3bd3 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -165,7 +165,7 @@ mmi,thermal-mitigation = <3600000 3300000 3000000 2500000 2000000 1500000 1200000 900000 - 600000 300000>; + 500000 300000>; }; }; From d1bc19fa0f044f4fd54de3bb75942ff01397636d Mon Sep 17 00:00:00 2001 From: longch98 Date: Wed, 26 Oct 2022 17:37:32 +0800 Subject: [PATCH 0953/1247] (CR) dts/panel:pnangn:update 1st panel 11 bit init code pnangn:update 1st panel 11 bit init code and the brightness settings Change-Id: I139f0a57228964e55120c31e49361f77f1e76886 Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2414106 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Reviewed-by: Jing Hu Submit-Approved: Jira Key --- ...djn-nt36528-653-hdplus-720x1600-video.dtsi | 21 +++++++--------- qcom/pnangn-display.dtsi | 24 +++++++++---------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi index 5ae6096c6529..b77ccdeea3a1 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi @@ -55,19 +55,14 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ - 15 00 00 00 00 00 02 FF 23 - 15 00 00 00 00 00 02 FB 01 - 15 00 00 00 00 00 02 00 80 //60: 11bit, 80:12bit - 15 00 00 00 00 00 02 07 00 - 15 00 00 00 00 00 02 08 01 - 15 00 00 00 00 00 02 09 AE - 15 00 00 00 00 00 02 FF 10 - 15 00 00 00 00 00 02 FB 01 - 39 00 00 00 00 00 03 51 00 00 - 15 00 00 00 00 00 02 53 2C - 15 00 00 00 00 00 02 55 01 - 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 + 15 01 00 00 01 00 02 FF 10 + 15 01 00 00 00 00 02 FB 01 + 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 53 2C + 15 01 00 00 00 00 02 55 01 + 05 01 00 00 0A 00 01 29 + 05 01 00 00 64 00 01 11 + ]; qcom,mdss-dsi-off-command = [ 15 00 00 00 00 00 02 FF 10 diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index ad9748a5099e..41384c1672e9 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -137,10 +137,10 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <26>; - qcom,mdss-dsi-bl-max-level = <3276>; - qcom,mdss-dsi-bl-default-level = <1478>; - qcom,mdss-brightness-max-level = <3276>; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1638>; + qcom,mdss-dsi-bl-default-level = <739>; + qcom,mdss-brightness-max-level = <1638>; qcom,platform-reset-gpio-always-on; qcom,esd-check-enabled; @@ -164,8 +164,8 @@ qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 0F FF]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 0C CC]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; @@ -190,10 +190,10 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <26>; - qcom,mdss-dsi-bl-max-level = <3276>; - qcom,mdss-dsi-bl-default-level = <1478>; - qcom,mdss-brightness-max-level = <3276>; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1638>; + qcom,mdss-dsi-bl-default-level = <739>; + qcom,mdss-brightness-max-level = <1638>; qcom,mdss-dsi-bl-level-align = <2>; qcom,platform-reset-gpio-always-on; qcom,mdss-panel-on-rst-pull-down; @@ -220,8 +220,8 @@ qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0F]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 7F 0F]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 66 06]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; From 9bc1b495768f9dbf0617201c19a657192a1cb257 Mon Sep 17 00:00:00 2001 From: "[A" Date: Thu, 3 Nov 2022 13:25:43 +0800 Subject: [PATCH 0954/1247] optimize ui_full for charge time Details: optimize ui_full for charge time Change-Id: I3f1b27c6d30b1c792f2a0da695509f538b1ab0b2 Reviewed-on: https://gerrit.mot.com/2419601 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi | 2 +- qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi index 9a25b8cea12e..7d4cf51ee67c 100644 --- a/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi @@ -13,7 +13,7 @@ nd50-atl-5000mah { serialnum = "SB18D34202"; fcc_design = <5000>; - ui_full = <100>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F 51 FF FF CF 97 82 68 57 diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi index 9e09e22c040a..75ec79841d29 100644 --- a/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi +++ b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi @@ -13,7 +13,7 @@ nd50-atl-5000mah_new { serialnum = "SB18D69208"; fcc_design = <5000>; - ui_full = <100>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 A7 B6 BC CA B9 B2 AE 6F 51 FF FF CF 97 82 68 57 From 23aa5333b5e69499fc58f8e635567f077448ff92 Mon Sep 17 00:00:00 2001 From: djw Date: Fri, 4 Nov 2022 18:04:02 +0800 Subject: [PATCH 0955/1247] dts/usb:pnangn:update usb eye diagram pnangn:update usb eye diagram update bias_control2 to 0x19 Change-Id: I0d6e1ce84d24439f97a82f00df0cffaf8d15b54b Reviewed-on: https://gerrit.mot.com/2421370 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Shen Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index 419225fcd44a..a59eb91a8ce8 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -607,7 +607,7 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x1f 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x19 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ From 63b6acb474c71333b99005d3a19f85528d92e3a8 Mon Sep 17 00:00:00 2001 From: Yuchang Guo Date: Sat, 5 Nov 2022 10:46:06 +0800 Subject: [PATCH 0956/1247] dts/sar: update config for jp sku dts/sar: Update config for jp sku. Change-Id: If5b4d738e45ba46b1be8cbccf782b1ef228f6eaf Reviewed-on: https://gerrit.mot.com/2421957 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index ebb9fffd8aba..6d7d7948f530 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -506,16 +506,16 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <61>; + Semtech,reg-num = <64>; Semtech,reg-init = < 0x4004 0x70 0x4008 0x8 0x8020 0x32 - 0x8028 0x88E - 0x8034 0x86E - 0x8040 0x88E - 0x804C 0xE96 - 0x8058 0x46E + 0x8028 0x1088E + 0x8034 0x486E + 0x8040 0x1088E + 0x804C 0x4E96 + 0x8058 0x446E 0x8064 0x88E 0x8070 0x86E 0x807C 0x85E From 0d3587a55f7fb2f30bc5c8d7746190f0f6c56aa3 Mon Sep 17 00:00:00 2001 From: djw Date: Sun, 6 Nov 2022 12:47:00 +0800 Subject: [PATCH 0957/1247] dts/arm: pnangn: update usb eye diagram pnangn:update usb eye diagram update tune1/2/5 to 0x63. 0x01, 0x11 Change-Id: I1b7d9267d664e2b28395d3c2a4d84947081c4df4 Reviewed-on: https://gerrit.mot.com/2422028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Ying Shen Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index a59eb91a8ce8..bfcf959ab5d1 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -586,15 +586,15 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x19 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x37 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ + 0x63 0x240 /* TUNE1 */ + 0x01 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ - 0x03 0x250 /* TUNE5 */ + 0x11 0x250 /* TUNE5 */ 0x30 0x23c /* CHG_CTRL2 */ 0x22 0x210>; /* PWR_CTRL1 */ From 9aceecb9d9401098de995aa92bed0b9d3b91a794 Mon Sep 17 00:00:00 2001 From: panzh2 Date: Tue, 8 Nov 2022 10:00:49 +0800 Subject: [PATCH 0958/1247] [Penang NA] remove nfc related device tree Penang NA doesn't support NFC Remove the nfc related nodes in device tree Change-Id: Ib0d319a9dde984fd58128d84ce5157401e693327 Signed-off-by: panzh2 Reviewed-on: https://gerrit.mot.com/2423303 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 121 --------------------------- 1 file changed, 121 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index bfcf959ab5d1..6457229927e1 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -108,103 +108,6 @@ status = "ok"; }; - -&tlmm { - - nfc { - nfc_int_active: nfc_int_active { - /* active state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_int_suspend: nfc_int_suspend { - /* sleep state */ - mux { - /* GPIO 9: NFC Read Interrupt */ - pins = "gpio9"; - function = "gpio"; - }; - - config { - pins = "gpio9"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_active: nfc_enable_active { - mux { - /* 48: Enable, 8: Firmware*/ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - nfc_enable_suspend: nfc_enable_suspend { - mux { - /* 48: Enable, 8: Firmware */ - pins = "gpio48"; - function = "gpio"; - }; - - config { - pins = "gpio48"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - }; - }; - - - nfc_clk_req_active: nfc_clk_req_active { - /* active state */ - mux { - /* GPIO 7: NFC CLK Req*/ - pins = "gpio7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - - nfc_clk_req_suspend: nfc_clk_req_suspend { - /* sleep state */ - mux { - /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; - function = "gpio"; - }; - - config { - pins = "gpio7"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - }; -}; - &pmk8350_vadc { pmk8350_qtm_n_therm { reg = ; @@ -239,30 +142,6 @@ }; }; -&qupv3_se7_i2c { - status = "ok"; - #address-cells = <1>; - #size-cells = <0>; - nq@28 { - compatible = "qcom,sn-nci"; - reg = <0x28>; - qcom,sn-irq = <&tlmm 9 0x00>; - qcom,sn-ven = <&tlmm 48 0x00>; - qcom,sn-firm = <&tlmm 8 0x00>; - qcom,sn-clkreq = <&tlmm 7 0x00>; - qcom,sn-vdd-1p8-supply = <&L9A>; - qcom,sn-vdd-1p8-voltage = <1800000 1800000>; - qcom,sn-vdd-1p8-current = <157000>; - interrupt-parent = <&tlmm>; - interrupts = <9 0>; - interrupt-names = "nfc_irq"; - pinctrl-names = "nfc_active", "nfc_suspend"; - pinctrl-0 = <&nfc_int_active &nfc_enable_active>; - pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; - }; -}; - - &pm8008_8 { status = "disabled"; From e90e2e68920f87bb938a0864a53161c4f1c7e081 Mon Sep 17 00:00:00 2001 From: hq_caoqunhui_tmp Date: Mon, 7 Nov 2022 17:15:53 +0800 Subject: [PATCH 0959/1247] Modify 2nd panel kernel vsp/vsn power up sequence Details: Modify 2nd panel kernel vsp/vsn power up sequence Change-Id: Ib7057f6d10b93bae92311febbc90602165989998 Reviewed-on: https://gerrit.mot.com/2422532 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/penang-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/penang-display.dtsi b/qcom/penang-display.dtsi index c7bf264a6f90..8021d23c9089 100644 --- a/qcom/penang-display.dtsi +++ b/qcom/penang-display.dtsi @@ -98,6 +98,7 @@ qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; qcom,supply-pre-on-sleep = <3>; + qcom,supply-post-on-sleep = <1>; }; qcom,panel-supply-entry@2 { From c1e9057bc72ca6511e38f7658bdd1c9a491920e4 Mon Sep 17 00:00:00 2001 From: "[A" Date: Thu, 3 Nov 2022 17:31:03 +0800 Subject: [PATCH 0960/1247] optimize ui_full for charge time Details: optimize ui_full for 2nd battery charge time Change-Id: Ife5a6e955edd9decc3cc1bac1b0bd1863c7c2def Reviewed-on: https://gerrit.mot.com/2419887 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi | 2 +- qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi | 2 +- qcom/discrete_charging_penang.dtsi | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi index f58a39a2ba08..d5eda43699cb 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi @@ -13,7 +13,7 @@ nd50-jiade-5000mah { serialnum = "SB18D45495"; fcc_design = <5000>; - ui_full = <98>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 9E C0 C3 C6 B9 B6 AA 6D 47 FF D7 9D 82 6A 5B 52 diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi index 9b095b49d237..4c78cc6ec8cc 100644 --- a/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi @@ -13,7 +13,7 @@ nd50-jiade-5000mah_new { serialnum = "SB18D69209"; fcc_design = <5000>; - ui_full = <98>; + ui_full = <99>; config_profile_info = [5A 00 00 00 00 00 00 00 9E C0 C3 C6 B9 B6 AA 6D 47 FF D7 9D 82 6A 5B 52 diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 508f0ada3bd3..b9e569dd781a 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -116,6 +116,8 @@ dpdm-supply = <&qusb_phy0>; mmi,qc3-support; + /* enable dynamic adjust battery voltage */ + enable_dynamic_adjust_batvol; ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; From b23f5c29cb6958c051c569bb109742c87e19b9e4 Mon Sep 17 00:00:00 2001 From: longch98 Date: Tue, 8 Nov 2022 15:34:05 +0800 Subject: [PATCH 0961/1247] dts/panel:pnangn:update 2nd panel brightness settings pnangn:update 2nd panel brightness settings Change-Id: Ie3d4cdf40800fa540bb6f140b0a185955b9940a1 Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2423614 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 41384c1672e9..97f880a07cf1 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -190,10 +190,10 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <13>; - qcom,mdss-dsi-bl-max-level = <1638>; - qcom,mdss-dsi-bl-default-level = <739>; - qcom,mdss-brightness-max-level = <1638>; + qcom,mdss-dsi-bl-min-level = <26>; + qcom,mdss-dsi-bl-max-level = <3276>; + qcom,mdss-dsi-bl-default-level = <1478>; + qcom,mdss-brightness-max-level = <3276>; qcom,mdss-dsi-bl-level-align = <2>; qcom,platform-reset-gpio-always-on; qcom,mdss-panel-on-rst-pull-down; @@ -220,8 +220,8 @@ qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 7F 0F]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 66 06]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0F]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; From ee91014b55e3e9a7092c2814afc6addd0a61d829 Mon Sep 17 00:00:00 2001 From: "[A" Date: Fri, 11 Nov 2022 16:31:21 +0800 Subject: [PATCH 0962/1247] dynamic adjust vindpm Details: dynamic adjust vindpm and host eye modify Change-Id: Ibfd9ae12c01e2343913a0bf8bad38478399c74ea Reviewed-on: https://gerrit.mot.com/2427512 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Zonghua Liu Reviewed-by: Wei Xu Submit-Approved: Lu Lu Reviewed-by: Wang Wang --- qcom/discrete_charging_penang.dtsi | 5 +++++ qcom/holi-penang-common-overlay.dtsi | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index b9e569dd781a..24584436dcad 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -73,6 +73,8 @@ sgm,18w_iindpm_comp; /* enable dynamic adjust battery voltage */ enable_dynamic_adjust_batvol; + /* enable dynamic adjust vindpm */ + enable_dynamic_adjust_vindpm; enable_sw_jeita; jeita_temp_above_t4_cv = <0>; jeita_temp_t3_to_t4_cv = <4100000>; @@ -118,6 +120,9 @@ mmi,qc3-support; /* enable dynamic adjust battery voltage */ enable_dynamic_adjust_batvol; + /* enable dynamic adjust vindpm */ + enable_dynamic_adjust_vindpm; + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index 20d0c54028dc..d7bdc570d03a 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -613,7 +613,7 @@ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ 0x37 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ + 0x2a 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ 0x03 0x250 /* TUNE5 */ From 66d378e2918d291974330be4d11ef7e8fbbf714c Mon Sep 17 00:00:00 2001 From: longch98 Date: Fri, 11 Nov 2022 16:53:04 +0800 Subject: [PATCH 0963/1247] dts/panel:pnangn:update panel power on sepuence pnangn:update panel power on sequence and the timing of avdd and avee Change-Id: I882ab9360edf33599a07ece7ccba02aa1fcba165 Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2427547 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi | 2 +- qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi | 4 ++-- qcom/pnangn-display.dtsi | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi index 035af3da7d6f..dc15b82b01f9 100644 --- a/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-csot-ft8057-653-hdplus-720x1600-video.dtsi @@ -75,7 +75,7 @@ 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 - 05 01 00 00 78 00 01 11 + 05 01 00 00 64 00 01 11 05 01 00 00 14 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi index b77ccdeea3a1..cfc69ff7c354 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi @@ -60,8 +60,8 @@ 39 01 00 00 00 00 03 51 00 00 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 - 05 01 00 00 0A 00 01 29 - 05 01 00 00 64 00 01 11 + 05 01 00 00 00 00 01 29 + 05 01 00 00 5A 00 01 11 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 97f880a07cf1..c02c15643fd2 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -97,7 +97,7 @@ qcom,supply-max-voltage = <5500000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; - qcom,supply-pre-on-sleep = <3>; + qcom,supply-post-on-sleep = <3>; }; qcom,panel-supply-entry@2 { From 9cdd32c5831115286e186d0a1a4936c8edd70364 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 15 Nov 2022 11:01:58 +0800 Subject: [PATCH 0964/1247] arm64/dts: bring up usb_therm changes, bring up usb_therm for jpsb. Change-Id: I921b72416cf3b55a4aa9e25fe1bae571682c1176 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2429706 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Reviewed-by: Lei Chen Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index 6d7d7948f530..ac9bca5c14f3 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -441,7 +441,7 @@ polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -483,7 +483,6 @@ }; }; - &qupv3_se8_i2c { status = "ok"; From 4d1f8496add6c45c1be3ffda7377cb944dda904c Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Wed, 16 Nov 2022 15:50:01 +0800 Subject: [PATCH 0965/1247] arm64/dts: rename usb_therm to conn_therm To compatiable for tcmd test, rename the usb_therm to conn_therm. Change-Id: Ib1f46031304a21cdbc0122c0cd8addcf9614b94c Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2430772 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index ac9bca5c14f3..cce0d706074e 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -437,7 +437,7 @@ }; }; - usb_therm { + conn_therm { polling-delay-passive = <5000>; polling-delay = <20000>; thermal-governor = "user_space"; From 0fc60d7c2e4f6dbc9f5be226cb168291542f283e Mon Sep 17 00:00:00 2001 From: lbh Date: Tue, 15 Nov 2022 20:14:21 +0800 Subject: [PATCH 0966/1247] pnangn:2nd fuel gauge rt9426a update para for 100% soc vendor offer new para shorten 100% soc time Change-Id: I4dd711e7823f4c34c43ac99abb08ec51ff240039 Reviewed-on: https://gerrit.mot.com/2430268 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi | 2 +- qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi | 2 +- qcom/rt9426a-pnangn.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi index dfdb4a493a49..b65435960cba 100644 --- a/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi @@ -16,7 +16,7 @@ nh50-atl-4850mah { 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A 00 82 00 02 00 02 00 40 00 40 5D 12 5D 12 04 24 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 - 15 0E 48 44 A2 4C 05 41 19 08 B5 12 23 32 08 00 + 15 0E 48 44 A2 77 05 41 19 08 B5 12 23 32 08 00 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F 32 19 09 0B 0B 0B 09 09 03 FB 08 08 08 05 05 FC EA E9 E9 E9 E7 E7 CB 9E E9 E9 E9 88 88 B1 81 00 diff --git a/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi index 1d4be2e35bfb..d4e151538934 100644 --- a/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi @@ -16,7 +16,7 @@ nh50-scud-4850mah { 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A 00 82 00 02 00 02 00 40 00 40 27 12 27 12 04 24 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 - 15 0E 48 44 A2 4C 05 41 19 08 B5 12 23 32 08 00 + 15 0E 48 44 A2 77 05 41 19 08 B5 12 23 32 08 00 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F 32 19 09 08 08 08 06 06 01 FB 05 05 05 03 03 FD F3 F6 F6 F6 F5 F5 DF BC F6 F6 F6 A1 A1 81 81 00 diff --git a/qcom/rt9426a-pnangn.dtsi b/qcom/rt9426a-pnangn.dtsi index d85706dffe33..a934b188b305 100644 --- a/qcom/rt9426a-pnangn.dtsi +++ b/qcom/rt9426a-pnangn.dtsi @@ -9,7 +9,7 @@ interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; - rt,dtsi_version = <01 1005>; + rt,dtsi_version = <02 1111>; rt,para_version = <0x0001>; rt,battery_type = <4400>; rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV From 6dc64c2d000dce80e554f90a0206931c504d5f8f Mon Sep 17 00:00:00 2001 From: djw Date: Thu, 17 Nov 2022 21:13:47 +0800 Subject: [PATCH 0967/1247] dts/panel:pnangn:I2C SE7 keep high when sleep in details: I2C SE7 keep high when sleep in Change-Id: I8a25bcf1df0c06326e8ddc1c801b3914a011299e Signed-off-by: djw Reviewed-on: https://gerrit.mot.com/2432435 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index c02c15643fd2..f7f4b7bcdf3b 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -267,3 +267,11 @@ ocp,lcd-bias-enp-gpio = <&tlmm 86 0>; }; }; + +&qupv3_se7_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From c9a669c5caa5ce32436feb3f21f1f042eec340d6 Mon Sep 17 00:00:00 2001 From: longc107 Date: Tue, 8 Nov 2022 18:36:57 +0800 Subject: [PATCH 0968/1247] arm64/dts: Penang5G NA:Modify camera i2c power supply detail: Remove L13A from display dtsi file, Add L13A to camera dtsi, and add it to power on & down sequence. Change-Id: I8977187b7d53b522d173ef415fcd8683766ed8bc Signed-off-by: longc107 Reviewed-on: https://gerrit.mot.com/2423858 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index f7f4b7bcdf3b..b167115dc7c8 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -123,7 +123,6 @@ lab-supply = <&lcd_panel_avdd>; ibb-supply = <&lcd_panel_avee>; - vddio-supply = <&L13A>; qcom,dsi-default-panel = <&dsi_djn_nt36528_hdplus_video>; }; From 08d7912900c3f643834fa401f815ad2ed9e0d03e Mon Sep 17 00:00:00 2001 From: longch98 Date: Wed, 23 Nov 2022 11:36:04 +0800 Subject: [PATCH 0969/1247] dts/panel:pnangn:update 2nd panel brightness settings to 11bits pnangn:update 2nd panel brightness settings to 11bits Change-Id: Ide5ef36bdc7ad192e1fb4691983a25a6e62ada1a Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2437069 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index b167115dc7c8..a01f32696404 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -188,11 +188,12 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; + qcom,mdss-dsi-bl-level-shift-left-1bit; - qcom,mdss-dsi-bl-min-level = <26>; - qcom,mdss-dsi-bl-max-level = <3276>; - qcom,mdss-dsi-bl-default-level = <1478>; - qcom,mdss-brightness-max-level = <3276>; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1638>; + qcom,mdss-dsi-bl-default-level = <739>; + qcom,mdss-brightness-max-level = <1638>; qcom,mdss-dsi-bl-level-align = <2>; qcom,platform-reset-gpio-always-on; qcom,mdss-panel-on-rst-pull-down; @@ -219,8 +220,8 @@ qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0F]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 7F 0F]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 66 06]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; From 64642b4a2112a775d88586aeb35c8c232395edc9 Mon Sep 17 00:00:00 2001 From: yy Date: Fri, 18 Nov 2022 17:07:46 +0800 Subject: [PATCH 0970/1247] dtsi: add receiver ntc add receiver ntc for pnangn. Change-Id: Ibec4e70ae2737b0b7b9c6367ebb757f8f28c59e7 Reviewed-on: https://gerrit.mot.com/2433535 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 55 ++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index 6457229927e1..bd926a1a63f9 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -184,6 +184,47 @@ #include "qg-batterydata-jk50-scud-5000mah.dtsi" }; +&pmr735a_gpios { + receiver_therm { + receiver_therm_default:receiver_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&receiver_therm_default>; + + pmr735a_receiver_therm { + reg = ; + label = "pmr735a_receiver_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_receiver_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -357,6 +398,20 @@ }; }; + receiver_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; }; &qupv3_se10_i2c_sleep { From c211029eeefbc96fabc4dffa063f08d11ffeb21f Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Thu, 24 Nov 2022 13:53:36 +0800 Subject: [PATCH 0971/1247] arm64/dts: bring up usb_therm toggle mosfet Changes, add gpio to control the mosfet and enable the mosfet toggle function. Change-Id: I73273784bc966d4d6596b6e87e26279916ca61b3 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2438744 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index cce0d706074e..e066813f3acd 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -483,6 +483,12 @@ }; }; + +&mmi_discrete_charger { + mmi,usb-mosfet-supported; + mmi,mos-en-gpio = <&tlmm 58 0>; +}; + &qupv3_se8_i2c { status = "ok"; From 0e865028e31ca039c68e39542cdc053486b54090 Mon Sep 17 00:00:00 2001 From: "[A" Date: Tue, 29 Nov 2022 17:12:35 +0800 Subject: [PATCH 0972/1247] host eye diagram parameter for jp penang Details: host eye diagram parameter for jp penang Change-Id: I208bbf63191380e4781013ec76d7a73079bb244a Reviewed-on: https://gerrit.mot.com/2444102 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index e066813f3acd..78030aeed699 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -618,7 +618,7 @@ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ 0x37 0x240 /* TUNE1 */ - 0x29 0x244 /* TUNE2 */ + 0x2a 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ 0x03 0x250 /* TUNE5 */ From 7dd710fd178b0a61ad13c221c0ed720bb0b2311d Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 30 Nov 2022 15:32:54 +0800 Subject: [PATCH 0973/1247] dts/panel:pnangn: 2nd csot panel HBM brightness update pnangn:update 2nd panel 2nd csot panel HBM brightness update Change-Id: Ibcd65d33c5cfcc228d256dc58b9dae42e47daf7f Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2446413 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index a01f32696404..1c2b775b7359 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -220,8 +220,8 @@ qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-only"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 7F 0F]; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 66 06]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 CC 0C]; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-t-clk-post = <0x0F>; From fcb0f941b5ea3c9cca4219383fee0b3b825f0750 Mon Sep 17 00:00:00 2001 From: longch98 Date: Thu, 1 Dec 2022 14:18:14 +0800 Subject: [PATCH 0974/1247] dts/panel:pnangn:optimize 1st panel dimming pnangn:add 0x68 reg settings for optimizing dimming Change-Id: I6ce59bd12ff434703c21ce226e099103af00aa41 Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2447610 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jing Hu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi index cfc69ff7c354..13b7a3069f53 100644 --- a/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-djn-nt36528-653-hdplus-720x1600-video.dtsi @@ -58,6 +58,7 @@ 15 01 00 00 01 00 02 FF 10 15 01 00 00 00 00 02 FB 01 39 01 00 00 00 00 03 51 00 00 + 15 01 00 00 00 00 02 68 04 15 01 00 00 00 00 02 53 2C 15 01 00 00 00 00 02 55 01 05 01 00 00 00 00 01 29 From afbacfa540d6c7c3307cc5bb23cf90e15943e4e3 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 7 Dec 2022 16:56:55 +0800 Subject: [PATCH 0975/1247] dts/pnangn: 1st djn NVT panel remove useless TP edge config pnangn: 1st djn + NVT panel remove useless touch edge config, which also impact resume KPI Change-Id: Iffec3e987165f38d2937ffe63f5d02c7c64f802f Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2453657 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/pnangn-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index aaa93196aae0..12d6241fcf03 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -99,7 +99,6 @@ novatek,spi-rd-fast-addr = <0x03F310>; //novatek,report_gesture_key; novatek,usb_charger; - novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "djn"; panel = <&dsi_djn_nt36528_hdplus_video>; status = "ok"; From 1c906f78135081057ff6bb25069680986e0fdc5f Mon Sep 17 00:00:00 2001 From: longch98 Date: Fri, 9 Dec 2022 14:24:47 +0800 Subject: [PATCH 0976/1247] dts/usb:pnangn:update usb eye diagram-2 pnangn:update usb eye diagram update bias_control2 to 0x14 Change-Id: Ia9ac01f3a8bfdb8233c590b2de9bbb3779905052 Signed-off-by: longch98 Reviewed-on: https://gerrit.mot.com/2455836 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Shen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index bd926a1a63f9..b6691659a90d 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -520,15 +520,15 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x19 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x14 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ - 0x63 0x240 /* TUNE1 */ - 0x01 0x244 /* TUNE2 */ + 0x47 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ - 0x11 0x250 /* TUNE5 */ + 0x03 0x250 /* TUNE5 */ 0x30 0x23c /* CHG_CTRL2 */ 0x22 0x210>; /* PWR_CTRL1 */ @@ -541,7 +541,7 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x19 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x14 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ From eacc9cef35a26019bbafb2d7c351ce834be461f9 Mon Sep 17 00:00:00 2001 From: lbh Date: Mon, 12 Dec 2022 16:38:09 +0800 Subject: [PATCH 0977/1247] pnangn:2nd fg rt9426a update para for soc from 96% break to 100% 2nd fg rt9426a soc from 96% break to 100% update profile Change-Id: I177e3bf9dd2e5b92234c7fcff810f4ad15be107f Reviewed-on: https://gerrit.mot.com/2458526 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi | 6 +++--- qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi | 6 +++--- qcom/rt9426a-pnangn.dtsi | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi index b65435960cba..c1c88d093a31 100644 --- a/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/RT_nh50-atl-4850mah-5mohm.dtsi @@ -14,12 +14,12 @@ nh50-atl-4850mah { serialnum = "SB18D69208"; rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 81 00 00 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A - 00 82 00 02 00 02 00 40 00 40 5D 12 5D 12 04 24 + 00 82 00 02 00 02 00 40 00 40 94 11 94 11 04 24 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 15 0E 48 44 A2 77 05 41 19 08 B5 12 23 32 08 00 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F 32 19 09 0B 0B 0B 09 09 03 FB 08 08 08 05 05 FC - EA E9 E9 E9 E7 E7 CB 9E E9 E9 E9 88 88 B1 81 00 + EA E9 E9 E9 CF CF B3 86 E9 E9 E9 86 86 86 86 00 76 02 C0 48 0A 09 00 00 00 00 00 00 00 00 37 73 2D 19 05 FB 00 00 B9 36 96 33 0F 07 07 05 0B A9 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 @@ -37,7 +37,7 @@ nh50-atl-4850mah { 4186 4196 4207 4218 4229 4240 4251 4263 4274 4284 4293 4301 4310 4319 4328 4337 4345 4354 4363 4372 4381>; rt,fcc_design = <5000>; - rt,fcc = <4701 4701 4701 4701 4701>; + rt,fcc = <4500 4500 4500 4500 4500>; rt,fg_fc_vth = <0xA2 0xA2 0xA2 0xA2 0xA2>; rt,fg_ocv_table0 = <0x0013 0x4A40 0x5500 0x5A17 0x5C0D 0x5C41 0x5D20 0x5E16 0x5FA6 0x60AB 0x61B9 0x62B0 0x639A 0x6631 0x6884 0x69DB diff --git a/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi index d4e151538934..b2ef9e62a37a 100644 --- a/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi +++ b/qcom/bat_setting/RT_nh50-scud-4850mah-5mohm.dtsi @@ -14,12 +14,12 @@ nh50-scud-4850mah { serialnum = "SB18D69209"; rt,fg_extreg_table = [80 80 46 79 A7 BB 58 02 AA 85 5F 40 88 81 00 00 40 24 00 00 FB 3E 00 20 7F 0A 1D 32 12 07 5A 5A - 00 82 00 02 00 02 00 40 00 40 27 12 27 12 04 24 + 00 82 00 02 00 02 00 40 00 40 7B 11 7B 11 04 24 64 00 5F 0B 64 00 5F 0B FF 00 00 14 00 00 5A B7 15 0E 48 44 A2 77 05 41 19 08 B5 12 23 32 08 00 13 88 24 82 77 AD 04 73 12 A3 52 68 57 64 1F 0F 32 19 09 08 08 08 06 06 01 FB 05 05 05 03 03 FD - F3 F6 F6 F6 F5 F5 DF BC F6 F6 F6 A1 A1 81 81 00 + F3 F6 F6 F6 CD CD B7 94 F6 F6 F6 80 80 80 80 00 76 02 C0 48 0A 09 00 00 00 00 00 00 00 00 37 73 2D 19 05 FB 00 00 B9 36 96 33 0F 07 0A 05 0B A9 32 32 88 88 32 32 88 88 32 32 88 88 32 32 88 88 @@ -37,7 +37,7 @@ nh50-scud-4850mah { 4208 4219 4231 4242 4253 4264 4275 4286 4297 4306 4314 4322 4330 4338 4346 4354 4362 4370 4378 4386 4395>; rt,fcc_design = <5000>; - rt,fcc = <4647 4647 4647 4647 4647>; + rt,fcc = <4475 4475 4475 4475 4475>; rt,fg_fc_vth = <0xA2 0xA2 0xA2 0xA2 0xA2>; rt,fg_ocv_table0 = <0x0013 0x4A40 0x5500 0x5973 0x5BF8 0x5BFE 0x5CFF 0x5E42 0x5FF9 0x611B 0x621A 0x62FB 0x63F8 0x66C9 0x6912 0x6A76 diff --git a/qcom/rt9426a-pnangn.dtsi b/qcom/rt9426a-pnangn.dtsi index a934b188b305..34d3fdfe57ac 100644 --- a/qcom/rt9426a-pnangn.dtsi +++ b/qcom/rt9426a-pnangn.dtsi @@ -9,7 +9,7 @@ interrupts-extended = <&tlmm 38 IRQ_TYPE_LEVEL_LOW>; pinctrl-names = "default"; pinctrl-0 = <&rt9426a_alert>; - rt,dtsi_version = <02 1111>; + rt,dtsi_version = <03 1208>; rt,para_version = <0x0001>; rt,battery_type = <4400>; rt,volt_source = <1>; // 0:AP 1:FG_VBAT 2:FG_OCV; 3:FG_AV From e8bb7d9a7d1a46dc1b290401593e1429455f26fd Mon Sep 17 00:00:00 2001 From: lbh Date: Thu, 1 Dec 2022 12:20:37 +0800 Subject: [PATCH 0978/1247] pnangn:2nd main charger sc8989 disable adc conversion 2nd main charger sc8989 disable adc conversion, add dtsi config value to prevent current leak Change-Id: Ib5571bb9929667774126aa52a729029f5189abe6 Reviewed-on: https://gerrit.mot.com/2447459 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging_pnangn.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index d01314f5cc0c..c72ca8a6a3b4 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -120,6 +120,7 @@ dpdm-supply = <&qusb_phy0>; mmi,qc3-support; + sc,sc8989_adc_stop; ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; From 743d18dc50c1165db60c6d85c96ee6c3f13220eb Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Wed, 4 Jan 2023 13:21:03 +0800 Subject: [PATCH 0979/1247] arm/dts:only enable usb mosfet for softbank Changes, Only enable usb mosfet toggle function for japan softbank. Change-Id: Ic61de72a1e6ac0256a14bae3225dd99966c9b567 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2476322 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Reviewed-by: Wei Xu Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 5 ----- qcom/holi-penang-dvt2-sb-overlay.dts | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index 78030aeed699..c50947bf1017 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -484,11 +484,6 @@ }; -&mmi_discrete_charger { - mmi,usb-mosfet-supported; - mmi,mos-en-gpio = <&tlmm 58 0>; -}; - &qupv3_se8_i2c { status = "ok"; diff --git a/qcom/holi-penang-dvt2-sb-overlay.dts b/qcom/holi-penang-dvt2-sb-overlay.dts index e1f46ebb7134..691536e70cb0 100644 --- a/qcom/holi-penang-dvt2-sb-overlay.dts +++ b/qcom/holi-penang-dvt2-sb-overlay.dts @@ -76,3 +76,8 @@ pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; }; }; + +&mmi_discrete_charger { + mmi,usb-mosfet-supported; + mmi,mos-en-gpio = <&tlmm 58 0>; +}; From f6daa8e6b57944e332ac3c0a775b5708f4b80a24 Mon Sep 17 00:00:00 2001 From: lbh Date: Thu, 5 Jan 2023 12:20:26 +0800 Subject: [PATCH 0980/1247] dts/usb:pnangn:update usb eye diagram-3 pnangn:update usb eye diagram update bias_control2 to 0x16 Change-Id: I137491578a79c991ac1d4f06f16be0e54b12991d Reviewed-on: https://gerrit.mot.com/2477487 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Shen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index b6691659a90d..a056936f24b1 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -520,7 +520,7 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x14 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ From c5dc36d61a8b7314297ec23541de6fd1185972e7 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 4 Jan 2023 15:04:57 +0800 Subject: [PATCH 0981/1247] kernel/dts: pnangn enable single tap pnangn: 1st & 2nd touch enable single tap feature Change-Id: I178c4a22bc662ecfbf1f1f434384166f8c0eaa26 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2476464 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 4 ++-- qcom/pnangn-touchscreen.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 1c2b775b7359..04d784ac745d 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -154,7 +154,7 @@ qcom,suspend-ulps-enabled; - //qcom,tp_state_check_enable; + qcom,tp_state_check_enable; qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; @@ -211,7 +211,7 @@ qcom,suspend-ulps-enabled; - //qcom,tp_state_check_enable; + qcom,tp_state_check_enable; qcom,platform-need-execute-shutdown; qcom,mdss-dsi-pan-enable-dynamic-fps; diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index 12d6241fcf03..0f2e1e14e81d 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -83,7 +83,7 @@ focaltech,irq-gpio = <&tlmm 22 0x2008>; focaltech,max-touch-number = <10>; focaltech,display-coords = <0 0 720 1600>; - //focaltech,report_gesture_key; + focaltech,report_gesture_key; focaltech,panel-supplier = "csot"; panel = <&dsi_ft8057_csot_hdplus_video>; }; @@ -97,7 +97,7 @@ novatek,def-max-resolution = <720 1600>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; - //novatek,report_gesture_key; + novatek,report_gesture_key; novatek,usb_charger; novatek,panel-supplier = "djn"; panel = <&dsi_djn_nt36528_hdplus_video>; From ae67286bce997254f66971beb0adb68233bbb3a0 Mon Sep 17 00:00:00 2001 From: lbh Date: Wed, 28 Dec 2022 18:25:28 +0800 Subject: [PATCH 0982/1247] kernel/dts:pnangn:2nd FT8057 brightness shift issue pnangn:fix brightness shift issue by mdss-dsi-bl-level-align = 1 Change-Id: I73747001658ab575b9a95bcce485a35dfb570381 Signed-off-by: lbh Reviewed-on: https://gerrit.mot.com/2472354 Reviewed-by: Jing Hu SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/pnangn-display.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/pnangn-display.dtsi b/qcom/pnangn-display.dtsi index 04d784ac745d..beeaa016ade8 100644 --- a/qcom/pnangn-display.dtsi +++ b/qcom/pnangn-display.dtsi @@ -188,13 +188,12 @@ qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-level-shift-left-1bit; qcom,mdss-dsi-bl-min-level = <13>; qcom,mdss-dsi-bl-max-level = <1638>; qcom,mdss-dsi-bl-default-level = <739>; qcom,mdss-brightness-max-level = <1638>; - qcom,mdss-dsi-bl-level-align = <2>; + qcom,mdss-dsi-bl-level-align = <1>; qcom,platform-reset-gpio-always-on; qcom,mdss-panel-on-rst-pull-down; From e1b9ffa4f3f0216884d45cd7980f27b0d095af9b Mon Sep 17 00:00:00 2001 From: shenying2 Date: Wed, 11 Jan 2023 17:31:34 +0800 Subject: [PATCH 0983/1247] dts/usb:pnangn:update usb eye diagram-4 pnangn:update usb eye diagram update host bias_control2 to 0x19 Change-Id: I443e0bc52692999b5a339dbeccf94d64336421b6 Signed-off-by: shenying2 Reviewed-on: https://gerrit.mot.com/2483045 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ying Shen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-pnangn-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-pnangn-common-overlay.dtsi b/qcom/holi-pnangn-common-overlay.dtsi index a056936f24b1..cd9e29a5345f 100644 --- a/qcom/holi-pnangn-common-overlay.dtsi +++ b/qcom/holi-pnangn-common-overlay.dtsi @@ -541,7 +541,7 @@ 0x0a 0x184 /* PLL_LOCK_DELAY */ 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ - 0x14 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x19 0x198 /* PLL_BIAS_CONTROL_2 */ 0x21 0x214 /* PWR_CTRL2 */ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ From 91fee1e4832d93296f22dfc09a81214585b27d99 Mon Sep 17 00:00:00 2001 From: liujian24 Date: Mon, 16 Jan 2023 14:15:32 +0800 Subject: [PATCH 0984/1247] Pnangn:Enable Egis FPS overheat protection Support Egis FPS overheat protection Add node of display to check screen on/off Change-Id: I966189b1fc601f30d1fca012b3b479e37449cfc5 Reviewed-on: https://gerrit.mot.com/2488262 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-fps-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/pnangn-fps-overlay.dtsi b/qcom/pnangn-fps-overlay.dtsi index 73bd7262ef1c..9103da993771 100644 --- a/qcom/pnangn-fps-overlay.dtsi +++ b/qcom/pnangn-fps-overlay.dtsi @@ -155,6 +155,8 @@ pinctrl-2 = <&egis_irq_active>; pinctrl-3 = <&egis_vcc_high>; pinctrl-4 = <&egis_vcc_low>; + panel = <&dsi_ft8057_csot_hdplus_video + &dsi_djn_nt36528_hdplus_video>; }; //chipone side fps fingerprint: chipone7318 { From 62eb12a9821a31270beca17a046b80439c2472c3 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Mon, 16 Jan 2023 13:25:41 +0800 Subject: [PATCH 0985/1247] arm/dts: poll the usb_therm temp every 1s Changes, Poll the usb_therm temp every 1s. Change-Id: I65377cdc95b1ec9975be4501e301f2da26646db1 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2488219 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-penang-common-jp-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index c50947bf1017..05821b60cecf 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -438,8 +438,8 @@ }; conn_therm { - polling-delay-passive = <5000>; - polling-delay = <20000>; + polling-delay-passive = <1000>; + polling-delay = <1000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; From 7d6b01d44ff2704fa7924128e968a6a3d83ea822 Mon Sep 17 00:00:00 2001 From: liujian Date: Wed, 18 Jan 2023 05:33:00 -0600 Subject: [PATCH 0986/1247] Revert "(CR) Pnangn:Enable Egis FPS overheat protection" This reverts commit 4541142644fe8435a506d842792e1202208cae45. Vendor report there is issue in v0.1.9 Change-Id: I9a9796485daab69ce1582f2044cc7ca28c6d38b2 Reviewed-on: https://gerrit.mot.com/2490869 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-fps-overlay.dtsi | 2 -- 1 file changed, 2 deletions(-) diff --git a/qcom/pnangn-fps-overlay.dtsi b/qcom/pnangn-fps-overlay.dtsi index 9103da993771..73bd7262ef1c 100644 --- a/qcom/pnangn-fps-overlay.dtsi +++ b/qcom/pnangn-fps-overlay.dtsi @@ -155,8 +155,6 @@ pinctrl-2 = <&egis_irq_active>; pinctrl-3 = <&egis_vcc_high>; pinctrl-4 = <&egis_vcc_low>; - panel = <&dsi_ft8057_csot_hdplus_video - &dsi_djn_nt36528_hdplus_video>; }; //chipone side fps fingerprint: chipone7318 { From b79172fed17fd4058130a84f554439661233bb27 Mon Sep 17 00:00:00 2001 From: hujing3 Date: Wed, 15 Feb 2023 15:31:21 +0800 Subject: [PATCH 0987/1247] kernel/dts:pnangn: 1st NVT touch add pm wait when resume with single tap pnangn: 1st djn NVT panel NVT touch add wait config when resume with single tap, to avoid SPI conflict Change-Id: Ie6698c1044797da2e617c1866c42f370ef3aaa32 Signed-off-by: hujing3 Reviewed-on: https://gerrit.mot.com/2512312 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/pnangn-touchscreen.dtsi b/qcom/pnangn-touchscreen.dtsi index 0f2e1e14e81d..6f684b615ffc 100755 --- a/qcom/pnangn-touchscreen.dtsi +++ b/qcom/pnangn-touchscreen.dtsi @@ -98,6 +98,7 @@ novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; novatek,report_gesture_key; + novatek,gesture-wait-pm; novatek,usb_charger; novatek,panel-supplier = "djn"; panel = <&dsi_djn_nt36528_hdplus_video>; From 38d09cf644d8d3c09c4889e51e85cfb53f3355f7 Mon Sep 17 00:00:00 2001 From: Sandeep Singh Date: Mon, 27 Feb 2023 13:54:30 +0530 Subject: [PATCH 0988/1247] ARM: dts: msm: Enable psf feature for holi Enable psf feature for holi in which icnss driver will update chain 0 regulator voltage based on battery voltage level. Change-Id: Ib48be5dd050900ecd4e44d8031a8b9691eff3eb5 Moto-CRs-Fixed: (CR) Reviewed-on: https://gerrit.mot.com/2524236 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yue Sun Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index bb69a576a024..f3a1f1daf8f8 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -3211,6 +3211,7 @@ qcom,wlan-msa-fixed-region = <&pil_wlan_mem>; qcom,iommu-dma-addr-pool = <0xa0000000 0x10000000>; qcom,iommu-geometry = <0xa0000000 0x10010000>; + qcom,psf-supported; vdd-cx-mx-supply = <&L4A>; vdd-1.8-xo-supply = <&L7A>; vdd-1.3-rfa-supply = <&L2E>; From 12ae39d4a565d38181381ccbe2fd1e4f832e34e8 Mon Sep 17 00:00:00 2001 From: Tarciano Facco Pegoraro Date: Tue, 28 Feb 2023 14:12:17 -0300 Subject: [PATCH 0989/1247] dts: Add new channelIds for Demo Mode The following new channelIds are necessary for Demo mode: - ro.carrier=demogb / channelId=109 (decimal): for UK; - ro.carrier=retdemo / channelid=110 (decimal): general demo mode for Europe. Change-Id: Idcbbc56b6e20046443ec0f8568a20ccb4dae9ce7 Signed-off-by: Tarciano Facco Pegoraro Reviewed-on: https://gerrit.mot.com/2523949 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Alessandro Ramos Bernardes Dias Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index b1568b7bc1b9..214266b80899 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -123,8 +123,8 @@ "veoneu", /* 106 */ "openeu", /* 107 */ "reteu2", /* 108 */ - "undefined", /* 109 */ - "undefined", /* 110 */ + "demogb", /* 109 */ + "retdemo", /* 110 */ "undefined", /* 111 */ "undefined", /* 112 */ "undefined", /* 113 */ From f5a4efe6eb078f855dad4390115b8a1a3c0ce541 Mon Sep 17 00:00:00 2001 From: liujian24 Date: Tue, 7 Mar 2023 10:43:48 +0800 Subject: [PATCH 0990/1247] Pnangn:Upgrade Egis SDK to v1.0.10 Upgrade Egis SDK to v1.0.10 on Pnangn Add necessary dts config to support v1.0.10 Change-Id: Idf5876c275069b84b8d132db2be8a464ac7e8a93 Reviewed-on: https://gerrit.mot.com/2530520 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: liujian Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/pnangn-fps-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/pnangn-fps-overlay.dtsi b/qcom/pnangn-fps-overlay.dtsi index 73bd7262ef1c..9103da993771 100644 --- a/qcom/pnangn-fps-overlay.dtsi +++ b/qcom/pnangn-fps-overlay.dtsi @@ -155,6 +155,8 @@ pinctrl-2 = <&egis_irq_active>; pinctrl-3 = <&egis_vcc_high>; pinctrl-4 = <&egis_vcc_low>; + panel = <&dsi_ft8057_csot_hdplus_video + &dsi_djn_nt36528_hdplus_video>; }; //chipone side fps fingerprint: chipone7318 { From 55b4412211c8df946d9e37e1712224e881e36177 Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Tue, 14 Mar 2023 13:31:52 +0800 Subject: [PATCH 0991/1247] arm/dts: init dts for bangkk Change-Id: Ibcefaddd34d7ba5c9098427cdf4afff6643d8b2b Signed-off-by: zhaoxp3 Reviewed-on: https://gerrit.mot.com/2538314 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: tongkun1 --- qcom/Makefile | 5 + qcom/bangkk-display.dtsi | 313 ++++++++++++ qcom/bangkk-fps-overlay.dtsi | 164 ++++++ qcom/bangkk-sensors.dtsi | 51 ++ qcom/bangkk-touchscreen.dtsi | 93 ++++ qcom/bangkk-wl286xx.dtsi | 74 +++ qcom/blair-bangkk-common-overlay.dtsi | 500 +++++++++++++++++++ qcom/blair-bangkk-evb1-overlay.dts | 24 + qcom/blair-moto-bangkk-base.dts | 45 ++ qcom/blair-pm6125-bangkk-common-overlay.dtsi | 21 + 10 files changed, 1290 insertions(+) create mode 100644 qcom/bangkk-display.dtsi create mode 100644 qcom/bangkk-fps-overlay.dtsi create mode 100755 qcom/bangkk-sensors.dtsi create mode 100755 qcom/bangkk-touchscreen.dtsi create mode 100644 qcom/bangkk-wl286xx.dtsi create mode 100644 qcom/blair-bangkk-common-overlay.dtsi create mode 100644 qcom/blair-bangkk-evb1-overlay.dts create mode 100644 qcom/blair-moto-bangkk-base.dts create mode 100644 qcom/blair-pm6125-bangkk-common-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 67c1e76e2702..87cbeb2eb4bc 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -100,6 +100,11 @@ blair-milanf-evb2-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt1-overlay.dtbo-base := blair-moto-milanf-base.dtb blair-milanf-dvt2-overlay.dtbo-base := blair-moto-milanf-base.dtb +dtbo-$(CONFIG_BANGKK_DTB) += \ + blair-bangkk-evb1-overlay.dtbo + +blair-bangkk-evb1-overlay.dtbo-base := blair-moto-bangkk-base.dtb + dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-dvt2-jp-overlay.dtbo \ holi-penang-dvt2-sb-overlay.dtbo \ diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi new file mode 100644 index 000000000000..554c87e6aeaf --- /dev/null +++ b/qcom/bangkk-display.dtsi @@ -0,0 +1,313 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" +#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + + +&tlmm { + lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { + mux { + pins = "gpio86"; + function = "gpio"; + }; + + config { + pins = "gpio86"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsp_en_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 86 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_bias_vsn_en_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <62000>; + qcom,supply-disable-load = <80>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <30>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-post-on-sleep = <10>; + }; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vddio-supply = <&L13A>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + + qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; +}; + +&dsi_tm_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_csot_nt36672e_678_fhdp_120_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "csot"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + +&dsi_tianma_nt36672e_678_fhdp_120_video_v1 { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1024>; + qcom,mdss-brightness-max-level = <2047>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,tp_state_check_enable; + + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 + 07 07 02 04 00 1A 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + lcd_backlight@36 { + compatible = "awinic,aw99703-bl"; + reg = <0x36>; + + /* Awinic, aw99703 */ + aw99703,hwen-gpio = <&tlmm 60 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; + + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/bangkk-fps-overlay.dtsi b/qcom/bangkk-fps-overlay.dtsi new file mode 100644 index 000000000000..364d5a440a08 --- /dev/null +++ b/qcom/bangkk-fps-overlay.dtsi @@ -0,0 +1,164 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio38"; + function = "gpio"; + }; + + config { + pins = "gpio38"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&soc { + et528: et528 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + + silead: silead { + compatible = "sil,silead_fp"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + avdd-gpios = <&tlmm 38 0x0>; + irq-gpios = <&tlmm 17 0x0>; + rst-gpios = <&tlmm 18 0x0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi new file mode 100755 index 000000000000..f3426b6eb2ab --- /dev/null +++ b/qcom/bangkk-sensors.dtsi @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi new file mode 100755 index 000000000000..02bc5dd7c72f --- /dev/null +++ b/qcom/bangkk-touchscreen.dtsi @@ -0,0 +1,93 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x0>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <1080 2460>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; + novatek,panel-supplier = "tianma","tm","csot"; + panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; + status = "ok"; + }; + +}; diff --git a/qcom/bangkk-wl286xx.dtsi b/qcom/bangkk-wl286xx.dtsi new file mode 100644 index 000000000000..80bd9f868469 --- /dev/null +++ b/qcom/bangkk-wl286xx.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi new file mode 100644 index 000000000000..d6307cf45401 --- /dev/null +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -0,0 +1,500 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-bangkk-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "bangkk-fps-overlay.dtsi" +#include "bangkk-display.dtsi" +#include "bangkk-touchscreen.dtsi" +#include "bangkk-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-bangkk-overlay.dtsi" +#include "bangkk-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + st21nfc@8 { + compatible = "st,st21nfc"; + mmi,status = "/chosen", "mmi,nfc", "st"; + status = "ok"; + reg = <0x08>; + st,irq_gpio = <&tlmm 9 0x00>; + st,reset_gpio = <&tlmm 6 0x00>; + st,clkreq_gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "ok"; + }; +}; + +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + diff --git a/qcom/blair-bangkk-evb1-overlay.dts b/qcom/blair-bangkk-evb1-overlay.dts new file mode 100644 index 000000000000..a1123b52debf --- /dev/null +++ b/qcom/blair-bangkk-evb1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-bangkk-common-overlay.dtsi" + +/ { + model = "bangkk"; + compatible = "qcom,blair-bangkk", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA100>; +}; + diff --git a/qcom/blair-moto-bangkk-base.dts b/qcom/blair-moto-bangkk-base.dts new file mode 100644 index 000000000000..27713afa7129 --- /dev/null +++ b/qcom/blair-moto-bangkk-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-pm6125-bangkk-common-overlay.dtsi b/qcom/blair-pm6125-bangkk-common-overlay.dtsi new file mode 100644 index 000000000000..5a152b48afa2 --- /dev/null +++ b/qcom/blair-pm6125-bangkk-common-overlay.dtsi @@ -0,0 +1,21 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-milanf-common-overlay.dtsi" +#include "blair-pm6125-moto-common-overlay.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; From 824ba9fdd7908697fac99a7a9f1782ca9fdcdb1d Mon Sep 17 00:00:00 2001 From: Yunxian He Date: Thu, 16 Mar 2023 16:54:16 +0800 Subject: [PATCH 0992/1247] arm/dts: nfc gpio changes for samsung RN4V bringup update NFC_IRQ update NFC_ENABLE, NFC_CLK_REQ Change-Id: Idb92af2dbcca9b7c39abfefcee09452cae668f88 Signed-off-by: Yunxian He Reviewed-on: https://gerrit.mot.com/2542132 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 28 +++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index d6307cf45401..8f470bb83a94 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -72,12 +72,12 @@ nfc_enable_active: nfc_enable_active { mux { - pins = "gpio6"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -85,12 +85,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio6"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio6"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -117,7 +117,7 @@ /* sleep state */ mux { /* GPIO 7: NFC CLK Req */ - pins = "gpi7"; + pins = "gpio7"; function = "gpio"; }; @@ -276,15 +276,14 @@ status = "ok"; #address-cells = <1>; #size-cells = <0>; - st21nfc@8 { - compatible = "st,st21nfc"; - mmi,status = "/chosen", "mmi,nfc", "st"; - status = "ok"; - reg = <0x08>; - st,irq_gpio = <&tlmm 9 0x00>; - st,reset_gpio = <&tlmm 6 0x00>; - st,clkreq_gpio = <&tlmm 7 0x00>; - interrupt-parent = <&tlmm>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 135 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; interrupts = <9 0>; interrupt-names = "nfc_irq"; pinctrl-names = "nfc_active", "nfc_suspend"; @@ -292,6 +291,7 @@ &nfc_clk_req_active>; pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend &nfc_clk_req_suspend>; + clock-names = "OSC_NFC"; }; }; From e1ff4fecae3643ff0b45ad3b201483c3822b02a2 Mon Sep 17 00:00:00 2001 From: Yunxian He Date: Fri, 17 Mar 2023 11:50:17 +0800 Subject: [PATCH 0993/1247] arm/dts: nfc gpio change for samsung RN4V bringup main change: update NFC_ENABLE Change-Id: I0b94985a9997fa0cae9fb3d5a8ec2cc5a09ca9da Signed-off-by: Yunxian He Reviewed-on: https://gerrit.mot.com/2543157 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 8f470bb83a94..b6046434d0ad 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -72,12 +72,12 @@ nfc_enable_active: nfc_enable_active { mux { - pins = "gpio48"; + pins = "gpio101"; function = "gpio"; }; config { - pins = "gpio48"; + pins = "gpio101"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -85,12 +85,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio48"; + pins = "gpio101"; function = "gpio"; }; config { - pins = "gpio48"; + pins = "gpio101"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -279,7 +279,7 @@ sec-nfc@27 { compatible = "sec-nfc"; reg = <0x27>; - sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,ven-gpio = <&tlmm 101 0x00>; sec-nfc,firm-gpio = <&tlmm 135 0x00>; sec-nfc,irq-gpio = <&tlmm 9 0x00>; sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; From 75e3076d5624564c4d7fde8def78352ca1eeb938 Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Mon, 20 Mar 2023 17:49:58 +0800 Subject: [PATCH 0994/1247] arm/dts: update device bangkk update bangkk common dtsi Change-Id: I52bb0ee41bbd61b48516ee81a2f2b48aef3bd864 Signed-off-by: zhaoxp3 Reviewed-on: https://gerrit.mot.com/2545945 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 1 - qcom/blair-pm6125-bangkk-common-overlay.dtsi | 2 +- qcom/holi-audio-bangkk-overlay.dtsi | 394 +++++++++++++++++++ 3 files changed, 395 insertions(+), 2 deletions(-) create mode 100644 qcom/holi-audio-bangkk-overlay.dtsi diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index b6046434d0ad..1fefa49b4db7 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -20,7 +20,6 @@ #include "bangkk-display.dtsi" #include "bangkk-touchscreen.dtsi" #include "bangkk-sensors.dtsi" -#include "camera/blair-camera-sensor-mot-bangkk-overlay.dtsi" #include "bangkk-wl286xx.dtsi" #include "moto_therm_sys_temp.dtsi" diff --git a/qcom/blair-pm6125-bangkk-common-overlay.dtsi b/qcom/blair-pm6125-bangkk-common-overlay.dtsi index 5a152b48afa2..571ee83d1d85 100644 --- a/qcom/blair-pm6125-bangkk-common-overlay.dtsi +++ b/qcom/blair-pm6125-bangkk-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "blair-milanf-common-overlay.dtsi" +#include "blair-bangkk-common-overlay.dtsi" #include "blair-pm6125-moto-common-overlay.dtsi" &pm7250b_charger { diff --git a/qcom/holi-audio-bangkk-overlay.dtsi b/qcom/holi-audio-bangkk-overlay.dtsi new file mode 100644 index 000000000000..d1412105625e --- /dev/null +++ b/qcom/holi-audio-bangkk-overlay.dtsi @@ -0,0 +1,394 @@ +#include +#include +#include +#include +#include + +&tlmm{ + aw882xx_irq_default: aw882xx_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + config { + pins = "gpio59"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&q6core { + cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active + &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; + pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep + &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>,<&aw882xxacf>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec", "aw882xx_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&aw882xx_irq_default>; + irq-gpio = <&tlmm 59 0x2008>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1002>; + aw-tx-port-id = <0x1003>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From f883e83801edf254d91765dd68eb02ce42944b05 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Wed, 22 Mar 2023 14:37:06 +0800 Subject: [PATCH 0995/1247] arm/dts:add audio sound cards and aw87360 dts config 1.add sound cards dts config 2.add audio pa aw87360 dts config Change-Id: Ia9da54bc79097dd5416f86eceb419b35479e38ad Reviewed-on: https://gerrit.mot.com/2549042 Reviewed-by: Zhengming Yao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-audio-bangkk-overlay.dtsi | 73 +++++++++-------------------- 1 file changed, 23 insertions(+), 50 deletions(-) diff --git a/qcom/holi-audio-bangkk-overlay.dtsi b/qcom/holi-audio-bangkk-overlay.dtsi index d1412105625e..35719dac138d 100644 --- a/qcom/holi-audio-bangkk-overlay.dtsi +++ b/qcom/holi-audio-bangkk-overlay.dtsi @@ -4,20 +4,6 @@ #include #include -&tlmm{ - aw882xx_irq_default: aw882xx_irq_default { - mux { - pins = "gpio59"; - function = "gpio"; - }; - config { - pins = "gpio59"; - drive-strength = <2>; /* 2 MA */ - bias-pull-up; - }; - }; -}; - &cdc_dmic01_gpios { status = "disabled"; }; @@ -70,19 +56,6 @@ qcom,msm-mi2s-lines = <0>; }; -&q6core { - cdc_sec_mi2s_gpios: cdc_sec_mi2s_gpios { - compatible = "qcom,msm-cdc-pinctrl"; - pinctrl-names = "aud_active", "aud_sleep"; - pinctrl-0 = <&lpi_i2s2_sck_active &lpi_i2s2_ws_active - &lpi_i2s2_sd0_active &lpi_i2s2_sd1_active>; - pinctrl-1 = <&lpi_i2s2_sck_sleep &lpi_i2s2_ws_sleep - &lpi_i2s2_sd0_sleep &lpi_i2s2_sd1_sleep>; - qcom,lpi-gpios; - #gpio-cells = <0>; - }; -}; - &bolero { qcom,num-macros = <3>; qcom,bolero-version = <5>; @@ -247,11 +220,10 @@ }; &holi_snd { - qcom,model = "holi-9370_aw882xx-snd-card"; - qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; + qcom,model = "holi-9370_aw87xxx-snd-card"; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; - qcom,sec-mi2s-gpios = <&cdc_sec_mi2s_gpios>; + qcom,mi2s-audio-intf = <0>; qcom,audio-routing = "AMIC1", "Analog Mic1", @@ -295,34 +267,35 @@ qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, - <&wcd937x_codec>,<&aw882xxacf>; + <&wcd937x_codec>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", - "wcd937x_codec", "aw882xx_codec"; + "wcd937x_codec"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se10_i2c { +&qupv3_se2_i2c { status = "ok"; - aw882xxacf: aw882xxacf_smartpa@34 { - compatible = "awinic,aw882xxacf_smartpa"; - reg = <0x34>; - pinctrl-names = "default"; - pinctrl-0 = <&aw882xx_irq_default>; - irq-gpio = <&tlmm 59 0x2008>; - dc-flag = <0>; - sound-channel = <0>; - aw-tx-topo-id = <0x1000ff00>; - aw-rx-topo-id = <0x1000ff01>; - aw-rx-port-id = <0x1002>; - aw-tx-port-id = <0x1003>; - aw-re-min = <4000>; - aw-re-max = <30000>; - aw-cali-mode = "aw_attr"; - status = "okay"; - }; + aw887xx_smartpa_0: aw87xxx_pa@58 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x58>; + dev_index = < 0 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; + aw887xx_smartpa_1: aw87xxx_pa@59 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x59>; + dev_index = < 1 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; }; &va_cdc_dma_0_tx { From a7a76d43d75df95a2bc8325d4bf245cfdd3295df Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 22 Mar 2023 11:59:47 +0800 Subject: [PATCH 0996/1247] dts/display: bangkok: add csot vtdr6115 panel 1. csot + vtdr6115 + 655 + ramless 2. Bangkok make diplsy bringup with this panel Change-Id: I556d0238a8da2c8f24b465fb4529f35e080959e2 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2548958 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 293 +++++++----------- qcom/bangkk-touchscreen.dtsi | 2 +- ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 108 +++++++ 3 files changed, 225 insertions(+), 178 deletions(-) create mode 100644 qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 554c87e6aeaf..5f5a198d5b1c 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -1,7 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-csot-nt36672e-678-1080x2460-video.dtsi" -#include "dsi-panel-mot-tm-nt36672e-678-1080x2460-video-v1.dtsi" +#include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -10,28 +8,42 @@ &tlmm { - lcd_bias_vsp_en_default: lcd_bias_vsp_en_default { + display_panel_vddio_default: display_panel_vddio_default { mux { - pins = "gpio85"; + pins = "gpio102"; function = "gpio"; }; config { - pins = "gpio85"; + pins = "gpio102"; drive-strength = <8>; bias-disable = <0>; output-high; }; }; - lcd_bias_vsn_en_default: lcd_bias_vsn_en_default { + display_panel_vci_default: display_panel_vci_default { mux { - pins = "gpio86"; + pins = "gpio84"; function = "gpio"; }; config { - pins = "gpio86"; + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + display_panel_dvdd_default: display_panel_dvdd_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; drive-strength = <8>; bias-disable = <0>; output-high; @@ -40,69 +52,93 @@ }; &soc { - lcd_panel_avdd: lcd_gpio_regulator@1 { + display_panel_vddio: display_gpio_regulator@1 { compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avdd"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; + regulator-name = "display_panel_vddio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 102 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&display_panel_vddio>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&display_panel_vddio_default>; + }; + + display_panel_vci: display_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "display_panel_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&display_panel_vci>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&display_panel_vci_default>; + }; + + display_panel_dvdd: display_gpio_regulator@3 { + compatible = "qti-regulator-fixed"; + regulator-name = "display_panel_dvdd"; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1250000>; regulator-enable-ramp-delay = <233>; gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; - proxy-supply = <&lcd_panel_avdd>; + proxy-supply = <&display_panel_dvdd>; + qcom,proxy-consumer-enable; pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsp_en_default>; - }; - - lcd_panel_avee: lcd_gpio_regulator@2 { - compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_avee"; - regulator-min-microvolt = <5500000>; - regulator-max-microvolt = <5500000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 86 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&lcd_panel_avee>; - pinctrl-names = "default"; - pinctrl-0 = <&lcd_bias_vsn_en_default>; + pinctrl-0 = <&display_panel_dvdd_default>; }; dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { #address-cells = <1>; #size-cells = <0>; - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <62000>; - qcom,supply-disable-load = <80>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <30>; - }; + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-off-sleep = <1>; + }; - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "lab"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <2>; - }; + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <0>; + qcom,supply-post-off-sleep = <2>; + }; - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "ibb"; - qcom,supply-min-voltage = <5500000>; - qcom,supply-max-voltage = <6000000>; - qcom,supply-enable-load = <100000>; - qcom,supply-disable-load = <100>; - qcom,supply-post-on-sleep = <10>; - }; + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <1>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <0>; + qcom,supply-post-off-sleep = <2>; + }; }; }; @@ -113,52 +149,46 @@ /delete-property/ qcom,dsi-default-panel; /delete-property/ avdd-supply; - vddio-supply = <&L13A>; - lab-supply = <&lcd_panel_avdd>; - ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&display_panel_vddio>; + vci-supply = <&display_panel_vci>; + dvdd-supply = <&display_panel_dvdd>; - qcom,dsi-default-panel = <&dsi_nt36672e_fhd_plus_144_video>; + qcom,dsi-default-panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; }; -&dsi_tm_nt36672e_678_fhdp_120_video { + +&mot_csot_vtdr6115_655_1080x2400_dsc_vid{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-inverted-dbv; - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; - qcom,esd-check-enabled; + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; + qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 23 08 + 08 09 02 04 00 1C 0D]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; @@ -183,97 +213,6 @@ }; }; -&dsi_csot_nt36672e_678_fhdp_120_video { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "csot"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - - -&dsi_tianma_nt36672e_678_fhdp_120_video_v1 { - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_i2c"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1024>; - qcom,mdss-brightness-max-level = <2047>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-panel-supplier = "tm"; - - qcom,tp_state_check_enable; - - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 02 51 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 02 51 CC]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1A 07 06 22 21 07 - 07 07 02 04 00 1A 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - &qupv3_se10_i2c { status = "ok"; diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 02bc5dd7c72f..9cc71ced18c3 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -86,7 +86,7 @@ novatek,usb_charger; novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; novatek,panel-supplier = "tianma","tm","csot"; - panel = <&dsi_tianma_nt36672e_678_fhdp_120_video_v1 &dsi_tm_nt36672e_678_fhdp_120_video &dsi_csot_nt36672e_678_fhdp_120_video>; + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; status = "ok"; }; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi new file mode 100644 index 000000000000..54003ead5ba1 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -0,0 +1,108 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_csot_vtdr6115_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_csot_vtdr6115_655_1080x2400_dsc_vid { + qcom,mdss-dsi-panel-name = + "mipi_moto_vid_csot_1080p_dsc_667"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <154>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + //qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + + qcom,mdss-dsi-bl-min-level = <3>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>;//4200000 + + qcom,mdss-dsi-panel-blackness-level = <3515>;//3230 + + qcom,mdss-dsi-display-timings { + timing@0 { + cell-index = <0>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <32>; + qcom,mdss-dsi-h-back-porch = <32>; + qcom,mdss-dsi-h-pulse-width = <32>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <8>; + qcom,mdss-dsi-v-front-porch = <3444>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 02 03 01 + 39 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 02 55 10 + 39 01 00 00 00 00 02 59 09 + 39 01 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 03 FF 5A 80 + 39 01 00 00 00 00 02 65 0E + 39 01 00 00 00 00 02 F9 B9 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 65 03 + 39 01 00 00 00 00 02 F4 03 + 39 01 00 00 00 00 02 65 08 + 39 01 00 00 00 00 03 F6 51 44 + 39 01 00 00 00 00 03 FF 5A 00 + 39 01 00 00 00 00 03 F0 AA 00 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + }; + }; + }; +}; From 2e6b7b33a2de8d557246f6d162ae95d085754251 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Thu, 23 Mar 2023 12:02:30 +0800 Subject: [PATCH 0997/1247] : arm64/dts : Update fps dts for bangkok 1. Update fps dts per bangkok HW design. 2. Disable ldo vibrator temporarily for fps bring up. 3. Add tz_gpio node to filter the gpio that can not be accessed by AP Change-Id: I114ea75eb9c10414f009d061f83bc9727e4cd7c0 Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2550376 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-fps-overlay.dtsi | 74 +++------------------------ qcom/blair-bangkk-common-overlay.dtsi | 11 +++- 2 files changed, 16 insertions(+), 69 deletions(-) diff --git a/qcom/bangkk-fps-overlay.dtsi b/qcom/bangkk-fps-overlay.dtsi index 364d5a440a08..3e82631392f1 100644 --- a/qcom/bangkk-fps-overlay.dtsi +++ b/qcom/bangkk-fps-overlay.dtsi @@ -44,12 +44,12 @@ ets_vcc_high: ets_vcc_high { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio100"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio100"; drive-strength = <2>; /* 2 MA */ output-high; }; @@ -58,77 +58,28 @@ ets_vcc_low: ets_vcc_low { /* INTERRUPT */ mux { - pins = "gpio38"; + pins = "gpio100"; function = "gpio"; }; config { - pins = "gpio38"; + pins = "gpio100"; drive-strength = <2>; /* 2 MA */ output-low; }; }; - fps_rst_active: fps_rst_active { - /* active state */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - fps_rst_suspend: fps_rst_suspend { - /* sleep state */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - }; - }; - fps_int_active: fps_int_active { - /* active state */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; - fps_int_suspend: fps_int_suspend { - /* sleep state */ - mux { - pins = "gpio17"; - function = "gpio"; - }; - config { - pins = "gpio17"; - drive-strength = <2>; /* 2 MA */ - bias-disable; - input-enable; - }; - }; }; &soc { - et528: et528 { + EL721: EL721 { compatible = "fp-egistec"; status = "ok"; reg = <0>; @@ -136,7 +87,7 @@ interrupts = <17 0x0>; fp-ctrl-power; fp-gpio-vcc-enable; - egistec,gpio_vcc_en = <&tlmm 38 0x0>; + egistec,gpio_vcc_en = <&tlmm 100 0x0>; egistec,gpio_irq = <&tlmm 17 0x0>; egistec,gpio_reset = <&tlmm 18 0x0>; pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", @@ -148,17 +99,4 @@ pinctrl-4 = <&ets_vcc_low>; }; - silead: silead { - compatible = "sil,silead_fp"; - status = "ok"; - reg = <0>; - interrupt-parent = <&tlmm>; - interrupts = <17 0x0>; - avdd-gpios = <&tlmm 38 0x0>; - irq-gpios = <&tlmm 17 0x0>; - rst-gpios = <&tlmm 18 0x0>; - pinctrl-names = "default", "suspend"; - pinctrl-0 = <&fps_rst_active &fps_int_active>; - pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; - }; }; diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 1fefa49b4db7..1302232c0b36 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -485,7 +485,16 @@ ldo_vib { compatible = "moto,vibrator-ldo"; moto,vib-ldo-gpio = <&tlmm 100 0x0>; - status = "ok"; + status = "disabled"; + }; + + qcom,tz_gpio { + compatible = "qcom,tz_gpio"; + tlmm-tz = <0>, + <13>, + <14>, + <15>, + <16>; }; }; From 6b1062bcd7a0d107711b2445d38186314d077a4d Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 23 Mar 2023 16:20:56 +0800 Subject: [PATCH 0998/1247] Thermal NTC bring up 1.add chg_therm thermal_zone 2.modify cam_flash_therm adc channel Change-Id: I2ff56a796f888c03119d26150bad63d3644d23f3 Reviewed-on: https://gerrit.mot.com/2550642 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 31 +++++++++++++++------------ 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 1302232c0b36..cbc690276c89 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -322,6 +322,9 @@ xo-therm-usr { status = "disabled"; }; + chg-skin-therm-usr { + status = "disabled"; + }; msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -338,25 +341,25 @@ }; chg_therm { - polling-delay-passive = <0>; - polling-delay = <0>; - thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; - wake-capable-sensor; - trips { - active-config0 { - temperature = <125000>; - hysteresis = <1000>; - type = "passive"; - }; - }; - }; + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; cam_flash_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmr735a_adc_tm_iio ADC7_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; wake-capable-sensor; trips { active-config0 { From ee536d6d7aa6674ef6eaa390489c8cb60d993c51 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 23 Mar 2023 19:56:20 +0800 Subject: [PATCH 0999/1247] dts/display: enable hbm mode Add suport for dc_hybird_threshold for bangkok, there is a threshold that swith hybird mode to DC mode. When backight is not large than this threshold, we must set the register(0x51) to the threshold, let backlight enter DC mode. Change-Id: I6b25829808533c7e4068df1f57ad1eff6564e59e Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2550944 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 288 ++++++++++++++++++ 1 file changed, 288 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 54003ead5ba1..10e1a7a15102 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -48,6 +48,294 @@ qcom,mdss-dsi-panel-blackness-level = <3515>;//3230 + qcom,mdss-dsi-dc-off-command = [ + 39 01 00 00 00 00 02 5E 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dc-on-command = [ + 39 01 00 00 00 00 02 5E 01]; + qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 40 00 00 03 51 0F FF + 39 00 00 40 00 00 02 62 00 + 39 00 00 40 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 40 00 00 03 51 0F FF + 39 00 00 40 00 00 02 62 00 + 39 00 00 40 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 40 00 00 03 F0 AA 13 + 39 00 00 40 00 00 02 C6 01 + 39 00 00 40 00 00 03 63 03 FF + 39 00 00 40 00 00 03 51 06 8F + 39 01 00 00 00 00 02 62 03]; + + qcom,mdss-dsi-panel-local-hbm-enabled; + qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1679>; //0x068f + qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; + qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; + qcom,mdss-dsi-panel-local-hbm-alpha-table = < + 0 172 173 173 174 174 174 175 175 175 176 176 176 177 177 177 + 177 178 178 178 179 179 179 180 180 180 181 181 181 181 182 182 + 182 182 183 183 183 184 184 184 185 185 185 186 186 186 187 187 + 187 187 187 188 188 188 189 189 189 190 190 190 191 191 191 191 + 191 192 192 192 193 193 193 194 194 194 194 195 195 195 196 196 + 196 196 197 197 197 197 198 198 198 199 199 199 199 200 200 200 + 200 201 201 201 201 202 202 202 203 203 203 203 204 204 204 205 + 205 205 205 205 206 206 206 206 207 207 207 208 208 208 208 209 + 209 209 209 210 210 210 210 211 211 211 211 212 212 212 212 213 + 213 213 213 214 214 214 214 215 215 215 215 216 216 216 216 217 + 217 217 217 217 218 218 218 219 219 219 219 220 220 220 220 221 + 221 221 221 221 222 222 222 222 223 223 223 223 224 224 224 224 + 224 225 225 225 225 226 226 226 226 227 227 227 227 228 228 228 + 228 228 229 229 229 229 230 230 230 230 231 231 231 231 231 232 + 232 232 232 232 233 233 233 233 234 234 234 234 235 235 235 235 + 235 236 236 236 236 236 237 237 237 237 238 238 238 238 239 239 + 239 239 239 240 240 240 240 240 241 241 241 241 242 242 242 242 + 242 243 243 243 243 243 244 244 244 244 245 245 245 245 245 246 + 246 246 246 246 247 247 247 247 247 248 248 248 248 249 249 249 + 249 249 249 250 250 250 250 251 251 251 251 251 252 252 252 252 + 252 253 253 253 253 253 254 254 254 254 254 255 255 255 255 256 + 256 256 256 256 256 257 257 257 257 257 258 258 258 258 259 259 + 259 259 259 259 260 260 260 260 260 261 261 261 261 261 262 262 + 262 262 263 264 264 265 266 266 267 267 268 269 269 270 270 271 + 271 272 272 273 273 274 274 275 276 276 277 277 278 279 279 280 + 280 280 281 281 282 283 283 284 284 285 285 286 286 287 288 288 + 288 289 289 290 290 291 291 292 292 293 294 294 295 295 296 296 + 296 297 297 298 298 299 299 300 300 301 302 302 303 303 304 304 + 304 305 305 306 306 307 307 308 308 309 309 310 310 311 311 312 + 312 312 313 313 314 314 315 315 316 316 317 317 318 318 319 319 + 319 320 320 321 321 322 322 323 323 324 324 324 325 325 326 326 + 326 327 327 328 328 329 329 330 330 331 331 332 332 332 333 333 + 333 334 334 335 335 336 336 337 337 338 338 338 339 339 340 340 + 340 341 341 342 342 343 343 343 344 344 345 345 346 346 347 347 + 347 347 348 348 349 349 350 350 350 351 351 352 352 353 353 353 + 353 354 354 355 355 356 356 356 357 357 358 358 359 359 360 360 + 360 361 362 362 363 364 364 365 366 366 367 368 368 369 370 370 + 370 371 372 372 373 374 374 375 376 376 377 378 378 379 379 380 + 380 381 381 382 383 383 384 385 385 386 386 387 388 388 389 389 + 389 390 391 391 392 393 393 394 394 395 396 396 397 397 398 399 + 399 399 400 400 401 402 402 403 403 404 405 405 406 406 407 408 + 408 408 409 409 410 410 411 412 412 413 413 414 414 415 416 416 + 416 417 417 418 418 419 420 420 421 421 422 422 423 424 424 425 + 425 425 426 426 427 427 428 429 429 430 430 431 431 432 432 433 + 433 433 434 435 435 436 436 437 437 438 438 439 439 440 440 441 + 441 442 442 443 443 444 444 445 445 446 446 447 447 448 448 449 + 449 449 450 450 451 451 452 453 453 454 454 455 455 456 456 457 + 457 457 458 458 459 459 460 460 461 461 462 462 463 463 464 464 + 464 465 465 466 466 467 467 468 468 469 469 470 470 471 471 472 + 472 472 473 473 474 474 475 475 476 476 477 477 477 478 478 479 + 479 479 480 480 481 481 482 482 483 483 484 484 485 485 486 486 + 486 487 487 488 488 488 489 489 490 490 491 491 492 492 493 494 + 494 494 495 496 496 497 498 499 499 500 501 501 502 503 503 504 + 504 505 506 506 507 508 508 509 510 510 511 512 512 513 514 514 + 514 515 516 516 517 518 518 519 520 520 521 522 522 523 524 524 + 524 525 526 526 527 528 528 529 530 530 531 532 532 533 534 534 + 534 535 536 536 537 537 538 539 539 540 541 541 542 543 543 544 + 544 544 545 546 546 547 548 548 549 550 550 551 551 552 553 553 + 553 554 554 555 556 556 557 558 558 559 559 560 561 561 562 562 + 562 563 564 564 565 565 566 567 567 568 568 569 570 570 571 571 + 571 572 573 573 574 574 575 576 576 577 577 578 579 579 580 580 + 580 581 582 582 583 583 584 584 585 586 586 587 587 588 588 589 + 589 590 590 591 591 592 592 593 594 594 595 595 596 596 597 598 + 598 598 599 599 600 600 601 602 602 603 603 604 604 605 605 606 + 606 607 607 608 608 609 609 610 610 611 612 612 613 613 614 614 + 614 615 615 616 616 617 618 618 619 619 620 620 621 621 622 622 + 622 623 623 624 625 625 626 626 627 627 628 628 629 629 630 630 + 630 631 631 632 633 633 634 634 635 635 636 636 637 637 638 638 + 638 639 639 640 640 641 641 642 642 643 644 644 645 645 646 646 + 646 647 647 648 648 649 649 650 650 651 651 652 652 653 653 654 + 654 654 655 655 656 656 657 657 658 658 659 659 660 660 661 661 + 661 662 662 663 663 664 664 665 665 666 666 667 667 668 668 669 + 669 669 670 670 671 671 672 672 673 673 674 674 675 675 676 677 + 677 678 679 679 680 681 682 682 683 684 685 686 686 687 688 689 + 689 689 690 691 692 692 693 694 695 695 696 697 698 698 699 700 + 700 701 701 702 703 704 704 705 706 707 707 708 709 710 710 711 + 711 712 713 713 714 715 715 716 717 718 718 719 720 721 721 722 + 722 723 723 724 725 726 726 727 728 728 729 730 731 731 732 733 + 733 733 734 735 736 736 737 738 738 739 740 740 741 742 743 743 + 743 744 745 745 746 747 747 748 749 750 750 751 752 752 753 754 + 754 754 755 756 756 757 758 758 759 760 760 761 762 763 763 764 + 764 765 765 766 767 767 768 769 769 770 771 771 772 773 773 774 + 774 775 775 776 777 777 778 779 779 780 781 781 782 782 783 784 + 784 784 785 786 786 787 788 788 789 790 790 791 792 792 793 794 + 794 794 795 795 796 797 797 798 799 799 800 801 801 802 802 803 + 803 804 804 805 806 806 807 808 808 809 809 810 811 811 812 813 + 813 813 814 814 815 816 816 817 818 818 819 819 820 821 821 822 + 822 823 823 824 824 825 826 826 827 827 828 829 829 830 831 831 + 831 832 832 833 834 834 835 835 836 837 837 838 838 839 840 840 + 840 841 841 842 843 843 844 844 845 846 846 847 847 848 849 849 + 849 850 850 851 852 852 853 853 854 855 855 856 856 857 857 858 + 858 859 859 860 860 861 862 862 863 863 864 864 865 866 866 867 + 867 867 868 869 869 870 870 871 871 872 873 873 874 874 875 875 + 875 876 877 877 878 878 879 879 880 881 881 882 882 883 883 884 + 884 885 885 886 886 887 887 888 888 889 890 890 891 891 892 892 + 892 893 894 894 895 895 896 896 897 897 898 899 899 900 900 901 + 901 901 902 902 903 904 904 905 905 906 906 907 907 908 908 909 + 909 910 910 911 911 912 912 913 913 914 914 915 916 916 917 917 + 917 918 918 919 919 920 920 921 922 922 923 923 924 924 925 925 + 925 926 926 927 927 928 928 929 930 930 931 931 932 932 933 933 + 933 934 934 935 935 936 936 937 938 938 939 939 940 940 941 941 + 941 942 942 943 943 944 944 945 945 946 946 947 947 948 949 949 + 949 950 950 951 951 952 952 953 953 954 954 955 955 956 956 957 + 957 957 958 958 959 959 960 960 961 961 962 962 963 963 964 964 + 964 965 966 966 967 967 968 968 969 969 970 970 971 971 972 972 + 972 973 973 974 974 975 975 976 976 977 977 978 978 979 979 980 + 980 980 981 981 982 982 983 983 984 984 985 985 986 986 987 987 + 987 988 988 989 989 990 990 991 991 992 992 993 993 994 994 995 + 995 995 996 996 996 997 997 998 998 999 999 1000 1000 1001 1001 1002 + 1002 1002 1003 1003 1004 1004 1005 1005 1006 1006 1007 1007 1008 1008 1009 1009 + 1009 1010 1010 1011 1011 1012 1012 1013 1013 1013 1014 1014 1015 1015 1016 1016 + 1016 1017 1017 1018 1018 1019 1019 1020 1020 1021 1021 1022 1022 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023>; + qcom,mdss-dsi-display-timings { timing@0 { cell-index = <0>; From 3eea82b5f203fd4b0f9584e4c21aeb845a10b331 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Tue, 21 Mar 2023 10:32:50 +0800 Subject: [PATCH 1000/1247] arm/dts: Bangkok TP bring up add bangkok focaltech tp driver,add the focaltech driver dtsi condfig. Change-Id: Ie0ef617bc2d4f0a99025e1dae6eab42e167d9666 Signed-off-by: LiZidong Reviewed-on: https://gerrit.mot.com/2551043 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 37 ++++++++++++++++++++++-------------- 1 file changed, 23 insertions(+), 14 deletions(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 9cc71ced18c3..4c38563a9303 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -71,23 +71,32 @@ &qupv3_se0_spi { status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - novatek@0{ - compatible = "novatek,NVT-ts-spi"; + + focaltech@0{ + compatible = "focaltech,fts"; reg = <0x0>; - spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ - novatek,reset-gpio = <&tlmm 21 0x00>; - novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <1080 2460>; - novatek,swrst-n8-addr = <0x03F0FE>; - novatek,spi-rd-fast-addr = <0x03F310>; - novatek,report_gesture_key; - novatek,usb_charger; - novatek,edge_cmd = /bits/ 8 <0x72 0x01 0x00>; - novatek,panel-supplier = "tianma","tm","csot"; + //mmi,status = "/chosen","vtdr6115"; + mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"; + spi-max-frequency = <6000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,vdd-gpio = <&tlmm 11 0x00>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x02008>; + vcc_i2c-supply = <&L13A>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 17280 38400>; + + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; status = "ok"; - }; - + }; }; From e92d77aa18cfe1508582a9735f54909fa691132b Mon Sep 17 00:00:00 2001 From: tinno_huandong_tmp Date: Wed, 22 Mar 2023 19:11:43 +0800 Subject: [PATCH 1001/1247] Bangkok5G: Camera EVB Device Tree setup detail: 1.add devicetree file for all cameras Change-Id: I90b6c5f62a5b02815c9e67cc52cfbf3215431339 Signed-off-by: tinno_huandong_tmp Reviewed-on: https://gerrit.mot.com/2549325 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Yongqin Wan Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index cbc690276c89..45046b082d21 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -20,6 +20,7 @@ #include "bangkk-display.dtsi" #include "bangkk-touchscreen.dtsi" #include "bangkk-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-bangkk-overlay.dtsi" #include "bangkk-wl286xx.dtsi" #include "moto_therm_sys_temp.dtsi" From 45087c42601d0736d7ca43c7f4800f644f4f4dd6 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Sat, 25 Mar 2023 00:11:00 +0800 Subject: [PATCH 1002/1247] Charger bring up for bangkk 1.add new charger dtsi file for bangkk charging bringup 2.include new charger dtsi in bangkk config Change-Id: I576d9d72bb588d62e772ee71bb3bf333e06b967d Signed-off-by: liuzhen Reviewed-on: https://gerrit.mot.com/2553298 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 214 +++++++++++++++++++ qcom/blair-pm6125-bangkk-common-overlay.dtsi | 1 + 2 files changed, 215 insertions(+) create mode 100644 qcom/bangkk-charger.dtsi diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi new file mode 100644 index 000000000000..9a866cd50428 --- /dev/null +++ b/qcom/bangkk-charger.dtsi @@ -0,0 +1,214 @@ + +#include + + +&mot_batterydata { + df-serialnum = "SB18D17151"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-ng50-atl-5000mah.dtsi" + #include "qg-batterydata-ng50-swd-5000mah.dtsi" +}; + +&pm7250b_charger { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now", + "cp_input_voltage_now"; + qcom,fcc-max-ua = <6000000>; + qcom,fv-max-uv = <4480000>; + qcom,dcp-curr-max = <1500000>; + qcom,otg-cl-ua = <1000000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000>; + mmi,qc3p-support; + /delete-property/ qcom,fcc-stepping-enable; + +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <25 0 4000 4000>, + <35 0 4000 4000>, + <45 0 4000 4000>, + <60 4200 4000 0>; + qcom,mmi-ffc-zones = <4450 243 575>, + <4450 243 575>, + <4450 243 575>, + <4480 575 939>, + <4480 635 1038>, + <4480 661 1086>, + <4450 243 575>; + + qcom,iterm-ma = <243>; + mmi,enable-factory-mode-aicl; +}; + +&pm7250b_qg { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>, + <&mmi_chrg PSY_IIO_CP_ENABLE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done", + "cp_charging_enabled"; + mmi,cp-use-internal-qg; + qcom,qg-iterm-ma = <500>; +}; + +&qupv3_se10_i2c { + status = "okay"; + bq25960_standalone:bq25960-standalone@6A { + status = "okay"; + compatible = "ti,bq25960-standalone"; + reg = <0x6A>; + sc8541-addr = <0x6A>; + sc8541-name = "sc8541-master"; + #io-channel-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; + irq-gpio = <&tlmm 12 0>; + }; +}; + +&soc { + mmi_chrg: mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CHARGING_ENABLED>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + /*qc3p start*/ + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_MMI_QC3P_POWER>, + /*qc3p end*/ + <&bq25960_standalone PSY_IIO_CP_ENABLE>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_standalone PSY_IIO_CP_STATUS1>, + <&bq25960_standalone PSY_IIO_CP_CLEAR_ERROR>, + <&pm7250b_mmi PSY_IIO_CP_ENABLE>; + + io-channel-names = "usb_hw_current_max", + "charging_enabled", + "usb_typec_mode", + "usb_input_current_settled", + "usb_pd_active", + /*qc3p start*/ + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", + /*qc3p end*/ + "cp_enable", + "cp_input_current_now", + "cp_input_voltage_now", + "cp_status1", + "cp_clear_error", + "mmi_cp_enabled_status"; + + qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <10000000>; + mmi,pd-curr-max = <3000000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4550000>; + mmi,pl-chrg-vbatt-min = <3600000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + /*qc3p start*/ + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + /*qc3p end*/ + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 1000 0 0>, + <10 4250 3000 4450 1000>, + <15 4450 3000 0 0>, + <45 4350 5800 4480 4000>, + <60 4200 4000 0 0>; + mmi,thermal-mitigation = + <5800000>, + <5000000>, + <4000000>, + <3500000>, + <3000000>, + <2000000>, + <1000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "battery"; + charging-curr-limited = <500000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "bq25960-standalone"; + charging-curr-min = <2000000>; + }; + }; +}; + diff --git a/qcom/blair-pm6125-bangkk-common-overlay.dtsi b/qcom/blair-pm6125-bangkk-common-overlay.dtsi index 571ee83d1d85..0b0c3ffb3980 100644 --- a/qcom/blair-pm6125-bangkk-common-overlay.dtsi +++ b/qcom/blair-pm6125-bangkk-common-overlay.dtsi @@ -11,6 +11,7 @@ */ #include "blair-bangkk-common-overlay.dtsi" #include "blair-pm6125-moto-common-overlay.dtsi" +#include "bangkk-charger.dtsi" &pm7250b_charger { dpdm-supply = <&usb2_phy0>; From 61e6140a27044828de67741c4c8c9fd0a0d99dd4 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Fri, 24 Mar 2023 16:33:04 +0800 Subject: [PATCH 1003/1247] sar sensor bring up 2/2 1.sar sensor bring up 2.modify sx937x dts Change-Id: I64131eb879fbfce3f4c30dc7bb2678616cb4d09f Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2552555 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 107 +++++++++++++++++++++ qcom/blair-pm6125-moto-common-overlay.dtsi | 8 +- 2 files changed, 111 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index f3426b6eb2ab..8a9720a9d1a1 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -49,3 +49,110 @@ }; }; +&qupv3_se2_i2c { + status = "okay"; + Semtech_sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + Semtech,power-supply-type = <0>; + cap_vdd-supply = <&L12A>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <58 0x02>; + Semtech,nirq-gpio = <&tlmm 58 0x02>; + /*use PH5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <64>; + Semtech,reg-init = < + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x88F + 0x8034 0x88E + 0x8040 0x88F + 0x804C 0x88E + 0x8058 0x88E + 0x8064 0x88E + 0x8070 0x88E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xBFF9FF + 0x8048 0xFFF97F + 0x8054 0xFFD9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF9EF + 0x8078 0xFEF9FF + 0x8084 0xFFFFFF + 0x8098 0x4831 + 0x80B8 0x3323 + 0x80D8 0x2D23 + 0x80F8 0x5B34 + 0x8118 0x2E23 + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0xE1 + 0x80C0 0xE2 + 0x80E0 0xE1 + 0x8100 0x202000E0 + 0x8120 0xE2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54C45000 + 0x80B0 0x2AD87000 + 0x80D0 0x54D85000 + 0x80F0 0x2AD77000 + 0x8110 0x2AD77000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + >; + }; + awinic_sar@12 { + /* common node */ + compatible = "awinic,aw_sar"; + reg = < 0x12 >; + //aw_sar,regulator-power-supply = <1>; + sar-num = < 0 >; + interrupt-parent = < &tlmm >; + interrupts = <58 0>; + irq-gpio = <&tlmm 58 0>; + cap_vdd-supply = <&L12A>; + channel_use_flag = <0xff>; + aw_sar,use_plug_cail; + aw_sar,update_fw; + /* private node belongs to aw963xx */ + start-mode = < 1 >; // 0: start in rom 1: start in ram + irq-mux = < 2 >; // set csx as irq pin. config this field when connect to aw96308/aw96310 + status = "okay"; + }; +}; + diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 182565d4cbb9..5933dc664cd5 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -67,11 +67,11 @@ &tlmm { sar_int_default: sar_int_default { mux { - pins = "gpio24"; + pins = "gpio58"; function = "gpio"; }; config { - pins = "gpio24"; + pins = "gpio58"; num-grp-pins = <1>; drive-strength = <2>; bias-pull-up; @@ -80,11 +80,11 @@ sar_int_sleep: sar_int_sleep { mux { - pins = "gpio24"; + pins = "gpio58"; function = "gpio"; }; config { - pins = "gpio24"; + pins = "gpio58"; num-grp-pins = <1>; drive-strength = <2>; bias-pull-up; From 0daf3e7c80d2fa02668228cded5c000b7d4e3dc2 Mon Sep 17 00:00:00 2001 From: caoqian4 Date: Thu, 23 Mar 2023 17:14:11 +0800 Subject: [PATCH 1004/1247] Makefile:add config for penang5g row sm4375 update makefile and add dtsi for penangb to build pass Change-Id: I663bfcb5500a981207c644fc577ffff72645ffd5 Signed-off-by: caoqian4 Reviewed-on: https://gerrit.mot.com/2550756 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Submit-Approved: Jira Key Tested-by: Jira Key Reviewed-by: Lu Lu (cherry picked from commit 91768443c939590ac1fb9902fa738db95c3d1fb6) Reviewed-on: https://gerrit.mot.com/2552225 Reviewed-by: Xiangpo Zhao --- qcom/Makefile | 9 + .../CW_nd50-atl-5000mah-penangb5g.dtsi | 27 + .../CW_nd50-atl-5000mah_new-penangb5g.dtsi | 27 + .../CW_nd50-jiade-5000mah-penangb5g.dtsi | 27 + .../CW_nd50-jiade-5000mah_new-penangb5g.dtsi | 27 + qcom/discrete_charging_penangb.dtsi | 224 +++++++ qcom/holi-audio-penangb-overlay.dtsi | 367 +++++++++++ qcom/holi-penangb-common-jp-overlay.dtsi | 622 ++++++++++++++++++ qcom/holi-penangb-common-overlay.dtsi | 622 ++++++++++++++++++ qcom/holi-penangb-dvt2-jp-overlay.dts | 78 +++ qcom/holi-penangb-dvt2-sb-overlay.dts | 83 +++ qcom/holi-penangb-evt1-overlay.dts | 24 + qcom/penangb-display.dtsi | 265 ++++++++ qcom/penangb-fmr-overlay.dtsi | 5 + qcom/penangb-fps-overlay.dtsi | 124 ++++ qcom/penangb-sensors.dtsi | 13 + qcom/penangb-touchscreen.dtsi | 138 ++++ qcom/rt1711h-penangb.dtsi | 179 +++++ qcom/sgm7220-penangb.dtsi | 50 ++ 19 files changed, 2911 insertions(+) create mode 100644 qcom/bat_setting/CW_nd50-atl-5000mah-penangb5g.dtsi create mode 100644 qcom/bat_setting/CW_nd50-atl-5000mah_new-penangb5g.dtsi create mode 100644 qcom/bat_setting/CW_nd50-jiade-5000mah-penangb5g.dtsi create mode 100644 qcom/bat_setting/CW_nd50-jiade-5000mah_new-penangb5g.dtsi create mode 100644 qcom/discrete_charging_penangb.dtsi create mode 100644 qcom/holi-audio-penangb-overlay.dtsi create mode 100644 qcom/holi-penangb-common-jp-overlay.dtsi create mode 100644 qcom/holi-penangb-common-overlay.dtsi create mode 100644 qcom/holi-penangb-dvt2-jp-overlay.dts create mode 100644 qcom/holi-penangb-dvt2-sb-overlay.dts create mode 100644 qcom/holi-penangb-evt1-overlay.dts create mode 100644 qcom/penangb-display.dtsi create mode 100644 qcom/penangb-fmr-overlay.dtsi create mode 100644 qcom/penangb-fps-overlay.dtsi create mode 100755 qcom/penangb-sensors.dtsi create mode 100755 qcom/penangb-touchscreen.dtsi create mode 100644 qcom/rt1711h-penangb.dtsi create mode 100644 qcom/sgm7220-penangb.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 87cbeb2eb4bc..b6b8ab44f2b5 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -114,6 +114,15 @@ holi-penang-evt1-overlay.dtbo-base := holi-moto-base.dtb holi-penang-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb holi-penang-dvt2-sb-overlay.dtbo-base := holi-moto-base.dtb +dtbo-$(CONFIG_PENANGB_DTB) += \ + holi-penangb-dvt2-jp-overlay.dtbo \ + holi-penangb-dvt2-sb-overlay.dtbo \ + holi-penangb-evt1-overlay.dtbo + +holi-penangb-evt1-overlay.dtbo-base := holi-moto-base.dtb +holi-penangb-dvt2-jp-overlay.dtbo-base := holi-moto-base.dtb +holi-penangb-dvt2-sb-overlay.dtbo-base := holi-moto-base.dtb + dtbo-$(CONFIG_PNANGN_DTB) += \ holi-pnangn-evt1-overlay.dtbo diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah-penangb5g.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah-penangb5g.dtsi new file mode 100644 index 000000000000..7d4cf51ee67c --- /dev/null +++ b/qcom/bat_setting/CW_nd50-atl-5000mah-penangb5g.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-atl-5000mah { + serialnum = "SB18D34202"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A7 B6 BC CA B9 B2 AE 6F + 51 FF FF CF 97 82 68 57 + 50 4F 4D 86 D9 DE E3 E8 + D8 CF D4 D6 D3 D1 CE CA + C6 C5 CC BA 9A 8F 85 7E + 6E 6E 7B 8E A5 8E 67 66 + 80 00 57 10 00 A0 63 00 + 00 00 64 22 C3 5C 00 00 + 00 00 00 00 00 00 00 42 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-atl-5000mah_new-penangb5g.dtsi b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penangb5g.dtsi new file mode 100644 index 000000000000..75ec79841d29 --- /dev/null +++ b/qcom/bat_setting/CW_nd50-atl-5000mah_new-penangb5g.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-atl-5000mah_new { + serialnum = "SB18D69208"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + A7 B6 BC CA B9 B2 AE 6F + 51 FF FF CF 97 82 68 57 + 50 4F 4D 86 D9 DE E3 E8 + D8 CF D4 D6 D3 D1 CE CA + C6 C5 CC BA 9A 8F 85 7E + 6E 6E 7B 8E A5 8E 67 66 + 80 00 57 10 00 A0 63 00 + 00 00 64 22 C3 5C 00 00 + 00 00 00 00 00 00 00 42 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah-penangb5g.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah-penangb5g.dtsi new file mode 100644 index 000000000000..d5eda43699cb --- /dev/null +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah-penangb5g.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-jiade-5000mah { + serialnum = "SB18D45495"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + 9E C0 C3 C6 B9 B6 AA 6D + 47 FF D7 9D 82 6A 5B 52 + 4D 4D 4C 7D D9 DE 8C D2 + CA C9 D1 D5 D4 D2 CF CA + C7 C7 D5 B8 9C 91 89 82 + 7C 7C 85 95 AB 87 67 73 + 80 00 57 10 00 A0 6E 00 + 00 00 64 21 C3 6E 00 00 + 00 00 00 00 00 00 00 F0 ]; +}; diff --git a/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penangb5g.dtsi b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penangb5g.dtsi new file mode 100644 index 000000000000..4c78cc6ec8cc --- /dev/null +++ b/qcom/bat_setting/CW_nd50-jiade-5000mah_new-penangb5g.dtsi @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2021 Motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + * See http://www.gnu.org/licenses/gpl-2.0.html for more details. + */ +nd50-jiade-5000mah_new { + serialnum = "SB18D69209"; + fcc_design = <5000>; + ui_full = <99>; + config_profile_info = [5A 00 00 00 00 00 00 00 + 9E C0 C3 C6 B9 B6 AA 6D + 47 FF D7 9D 82 6A 5B 52 + 4D 4D 4C 7D D9 DE 8C D2 + CA C9 D1 D5 D4 D2 CF CA + C7 C7 D5 B8 9C 91 89 82 + 7C 7C 85 95 AB 87 67 73 + 80 00 57 10 00 A0 6E 00 + 00 00 64 21 C3 6E 00 00 + 00 00 00 00 00 00 00 F0 ]; +}; diff --git a/qcom/discrete_charging_penangb.dtsi b/qcom/discrete_charging_penangb.dtsi new file mode 100644 index 000000000000..24584436dcad --- /dev/null +++ b/qcom/discrete_charging_penangb.dtsi @@ -0,0 +1,224 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include +#include "rt1711h-penang.dtsi" +#include "sgm7220-penang.dtsi" +#include "discrete-rt-pd-manger.dtsi" + +&pm6125_vadc { + gpio6_div3{ + reg = ; + label = "gpio3_div3"; + qcom,pre-scaling = <1 3>; + }; +}; + +&pm6125_gpios { + gpio6_adc{ + gpio6_adc_default:gpio6_adc_default{ + pins = "gpio6"; + function = "normal"; + bias-high-impedance; + }; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + cw2217@64 { + compatible = "cellwise,cw2217"; + reg = <0x64>; + status = "okay"; + + sense_r_mohm = <5>; + factory_mode_ntc_exist = <0>; + df-serialnum = "SB18D34202"; + #include "bat_setting/CW_nd50-atl-5000mah-penang5g.dtsi" + #include "bat_setting/CW_nd50-atl-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah-penang5g.dtsi" + #include "bat_setting/CW_nd50-jiade-5000mah_new-penang5g.dtsi" + #include "bat_setting/CW_nd50-local-5000mah.dtsi" + }; +}; + +&qupv3_se10_i2c { + status = "okay"; + + sgm41543: sgm41543@0B { + status = "okay"; + compatible = "sgm,sgm41543D"; + reg = <0x0B>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm4154x_gpio_pins &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + interrupt-parent = <&tlmm>; + interrupts = <59 0>; //irq num base on hardware design + sgm,irq-gpio = <&tlmm 59 0>; //irq num base on hardware design + // sgm,chg-en-gpio = <&tlmm 45 0>; //gpio num base on hardware design 1.MTK parent node name is pio 2.QUALCOMM parent node name is tlmm or other + + dpdm-supply = <&qusb_phy0>; + mmi,qc3-support; + sgm,18w_iindpm_comp; + /* enable dynamic adjust battery voltage */ + enable_dynamic_adjust_batvol; + /* enable dynamic adjust vindpm */ + enable_dynamic_adjust_vindpm; + enable_sw_jeita; + jeita_temp_above_t4_cv = <0>; + jeita_temp_t3_to_t4_cv = <4100000>; + jeita_temp_t2_to_t3_cv = <4350000>; + jeita_temp_t1_to_t2_cv = <4350000>; + jeita_temp_t0_to_t1_cv = <0>; + jeita_temp_below_t0_cv = <0>; + + jeita_temp_above_t4_cc_current = <0>; + jeita_temp_t3_to_t4_cc_current = <1000000>; + jeita_temp_t2_to_t3_cc_current = <1250000>; + jeita_temp_t1_to_t2_cc_current = <1000000>; + jeita_temp_below_t0_cc_current = <0>; + + temp_t4_thres = <50>; + temp_t4_thres_minus_x_degree = <48>; + temp_t3_thres = <45>; + temp_t3_thres_minus_x_degree = <45>; + temp_t2_thres = <20>; + temp_t2_thres_plus_x_degree = <15>; + temp_t1_thres = <0>; + temp_t1_thres_plus_x_degree = <0>; + temp_t0_thres = <0>; + temp_t0_thres_plus_x_degree = <2>; + temp_neg_10_thres = <0>; + }; + + bq25890: bq25890@6A { + status = "okay"; + compatible = "ti,bq2589x-1"; + reg = <0x6A>; + + pinctrl-names = "default"; + pinctrl-0 = <&bq2589x_irq &gpio6_adc_default>; + #io-channel-cells = <1>; + io-channels = <&pm6125_vadc ADC5_GPIO3_DIV3>; + io-channel-names = "gpio3_div3"; + + bq2589x_irq-gpio = <&tlmm 59 0>; + //bq2589x_en-gpio = <&tlmm 45 0>; + dpdm-supply = <&qusb_phy0>; + + mmi,qc3-support; + /* enable dynamic adjust battery voltage */ + enable_dynamic_adjust_batvol; + /* enable dynamic adjust vindpm */ + enable_dynamic_adjust_vindpm; + + ti,bq2589x,vbus-volt-high-level = <8700>;/* tune adapter to output 9v */ + ti,bq2589x,vbus-volt-low-level = <4400>;/* tune adapter to output 5v */ + ti,bq2589x,vbat-min-volt-to-tuneup = <3000>; + ti,bq2589x,charge-voltage = <4450>; + ti,bq2589x,charge-current = <3000>; + ti,bq2589x,term-current = <128>; + ti,bq2589x,enable-auto-dpdm; + ti,bq2589x,enable-termination; + ti,bq2589x,enable-ico; + ti,bq2589x,use-absolute-vindpm; + }; + +}; + +&soc { + mmi_charger: mmi,charger { + status = "ok"; + compatible = "mmi,mmi-charger"; + mmi,enable-charging-limit; + mmi,upper-limit-capacity = <70>; + mmi,lower-limit-capacity = <65>; + mmi,heartbeat-interval = <5000>; + mmi,dcp-power-max = <10000>; + mmi,hvdcp-power-max = <18000>; + }; + + mmi_discrete_charger: mmi,discrete-charging { + status = "ok"; + compatible = "mmi,mmi-discrete-charger"; + #io-channel-cells = <1>; + battery-names = "battery"; + supplied-from = "mmi_battery"; + + mmi,chrg-iterm-ma = <243>; + mmi,fg-iterm-ma = <500>; + mmi,max-fv-mv = <4450>; + mmi,max-fcc-ma = <4000>; + mmi,demo-fv-mv = <4000>; + mmi,otg-cl-ua = <1200000>; + mmi,df-serialnum = "SB18D34202"; + mmi,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 2500 1000>, + <15 0 2500 2500>, + <45 0 3600 3600>, + <60 4200 3600 0>; + + mmi,thermal-mitigation = <3600000 3300000 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 500000 300000>; + }; +}; + + +&tlmm { + sgm4154x_gpio_pins: sgm4154x_gpio_pins { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + + bq2589x_irq: bq2589x_irq { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + drive-strength = <2>; + bias-pull-up; + input-enable; + }; + }; + +/* + chg_irq_default: chg_irq_default { + mux { + pins = "gpio59"; + function = "gpio"; + }; + + config { + pins = "gpio59"; + bias-pull-up; + drive-strength = <2>; + input-enable; + }; + }; +*/ +}; diff --git a/qcom/holi-audio-penangb-overlay.dtsi b/qcom/holi-audio-penangb-overlay.dtsi new file mode 100644 index 000000000000..651c3840cbe2 --- /dev/null +++ b/qcom/holi-audio-penangb-overlay.dtsi @@ -0,0 +1,367 @@ +#include +#include +#include +#include +#include + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,mi2s-audio-intf = <0>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se7_i2c { + status = "ok"; + aw887xx_smartpa_0: aw87xxx_pa@58 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x58>; + dev_index = < 0 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; + aw887xx_smartpa_1: aw87xxx_pa@59 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x59>; + dev_index = < 1 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; diff --git a/qcom/holi-penangb-common-jp-overlay.dtsi b/qcom/holi-penangb-common-jp-overlay.dtsi new file mode 100644 index 000000000000..05821b60cecf --- /dev/null +++ b/qcom/holi-penangb-common-jp-overlay.dtsi @@ -0,0 +1,622 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-penang-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" + +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "penang-fps-overlay.dtsi" +#include "penang-display.dtsi" +#include "penang-touchscreen.dtsi" +#include "penang-fmr-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-penang-jp-overlay.dtsi" +#include "discrete_charging_penang.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "disabled"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + + +&tlmm { + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + + + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 101 0x0>; + status = "ok"; + }; + + mcd { + status = "disabled"; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + conn_therm { + polling-delay-passive = <1000>; + polling-delay = <1000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; + +&qupv3_se8_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&L9A>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <64>; + Semtech,reg-init = < + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x1088E + 0x8034 0x486E + 0x8040 0x1088E + 0x804C 0x4E96 + 0x8058 0x446E + 0x8064 0x88E + 0x8070 0x86E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFEF9FF + 0x8048 0xFFD9FF + 0x8054 0xFFF97F + 0x8060 0xBFF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x3F2C + 0x80B8 0x3620 + 0x80D8 0x3821 + 0x80F8 0x2B24 + 0x8118 0x263C + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x222200E1 + 0x80C0 0x141400E2 + 0x80E0 0x232300E1 + 0x8100 0x202000E0 + 0x8120 0x2F2F00E2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54C45000 + 0x80B0 0x2AE27000 + 0x80D0 0x54D45000 + 0x80F0 0x2AE27000 + 0x8110 0x2AE27000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + >; + status = "ok"; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x2a 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-penangb-common-overlay.dtsi b/qcom/holi-penangb-common-overlay.dtsi new file mode 100644 index 000000000000..d7bdc570d03a --- /dev/null +++ b/qcom/holi-penangb-common-overlay.dtsi @@ -0,0 +1,622 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-penang-overlay.dtsi" +#include "holi-nopmi-moto-common-overlay.dtsi" + +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "penang-fps-overlay.dtsi" +#include "penang-display.dtsi" +#include "penang-touchscreen.dtsi" +#include "penang-fmr-overlay.dtsi" +#include "camera/holi-camera-sensor-mot-penang-overlay.dtsi" +#include "discrete_charging_penang.dtsi" +#include "moto_therm_sys_temp.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "disabled"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v3"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <62900>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + + +&tlmm { + + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + /* 48: Enable, 8: Firmware*/ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + /* 48: Enable, 8: Firmware */ + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpi7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 48 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; + }; +}; + + + +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 101 0x0>; + status = "ok"; + }; + + mcd { + status = "disabled"; + }; +}; + +&mot_batterydata { + df-serialnum = "SB18C77591"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-jk50-atl-5000mah.dtsi" + #include "qg-batterydata-jk50-scud-5000mah.dtsi" +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + rear-cam-therm-usr { + status = "disabled"; + }; + camera-therm-usr { + status = "disabled"; + }; + quiet-therm-usr { + status = "disabled"; + }; + pa-therm0-usr { + status = "disabled"; + }; + pa-therm1-usr { + status = "disabled"; + }; + xo-therm-usr { + status = "disabled"; + }; + + msm_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + usb_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_n_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + +}; + +&qupv3_se8_i2c { + + status = "ok"; + + sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_default>; + pinctrl-1 = <&sar_int_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <24 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 24 0x02>; + //please fix me + cap_vdd-supply = <&L9A>; + /*use PH4/5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + Semtech,reg-num = <64>; + Semtech,reg-init = < + 0x4004 0x70 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x1088E + 0x8034 0x486E + 0x8040 0x1088E + 0x804C 0x4E96 + 0x8058 0x446E + 0x8064 0x88E + 0x8070 0x86E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFEF9FF + 0x8048 0xFFD9FF + 0x8054 0xFFF97F + 0x8060 0xBFF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x3F2C + 0x80B8 0x3620 + 0x80D8 0x3821 + 0x80F8 0x2B24 + 0x8118 0x263C + 0x8138 0xC8 + 0x8158 0xC8 + 0x8178 0xC8 + 0x80A0 0x222200E1 + 0x80C0 0x141400E2 + 0x80E0 0x232300E1 + 0x8100 0x202000E0 + 0x8120 0x2F2F00E2 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x54C45000 + 0x80B0 0x2AE27000 + 0x80D0 0x54D45000 + 0x80F0 0x2AE27000 + 0x8110 0x2AE27000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 + 0x8024 0x7F7F + >; + status = "ok"; + }; +}; + +&qusb_phy0 { + qcom,qusb-phy-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x29 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ + + qcom,qusb-phy-host-init-seq = + /* */ + <0x23 0x210 /* PWR_CTRL1 */ + 0x03 0x04 /* PLL_ANALOG_CONTROLS_TWO */ + 0x7c 0x18c /* PLL_CLOCK_INVERTERS */ + 0x80 0x2c /* PLL_CMODE */ + 0x0a 0x184 /* PLL_LOCK_DELAY */ + 0x19 0xb4 /* PLL_DIGITAL_TIMERS_TWO */ + 0x40 0x194 /* PLL_BIAS_CONTROL_1 */ + 0x16 0x198 /* PLL_BIAS_CONTROL_2 */ + 0x21 0x214 /* PWR_CTRL2 */ + 0x08 0x220 /* IMP_CTRL1 */ + 0x58 0x224 /* IMP_CTRL2 */ + 0x37 0x240 /* TUNE1 */ + 0x2a 0x244 /* TUNE2 */ + 0xca 0x248 /* TUNE3 */ + 0x04 0x24c /* TUNE4 */ + 0x03 0x250 /* TUNE5 */ + 0x30 0x23c /* CHG_CTRL2 */ + 0x22 0x210>; /* PWR_CTRL1 */ +}; diff --git a/qcom/holi-penangb-dvt2-jp-overlay.dts b/qcom/holi-penangb-dvt2-jp-overlay.dts new file mode 100644 index 000000000000..ebbffd24b7ee --- /dev/null +++ b/qcom/holi-penangb-dvt2-jp-overlay.dts @@ -0,0 +1,78 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-jp-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <(6<<8) 0xB200>; +}; + +&tlmm { + + nfc { + sn110_enable_active: sn110_enable_active { + mux { + /* 6: Enable, 8: Firmware*/ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + sn110_enable_suspend: sn110_enable_suspend { + mux { + /* 6: Enable, 8: Firmware */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &sn110_enable_active>; + pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; + }; +}; diff --git a/qcom/holi-penangb-dvt2-sb-overlay.dts b/qcom/holi-penangb-dvt2-sb-overlay.dts new file mode 100644 index 000000000000..691536e70cb0 --- /dev/null +++ b/qcom/holi-penangb-dvt2-sb-overlay.dts @@ -0,0 +1,83 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-jp-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <(7<<8) 0xB200>; +}; + +&tlmm { + + nfc { + sn110_enable_active: sn110_enable_active { + mux { + /* 6: Enable, 8: Firmware*/ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + sn110_enable_suspend: sn110_enable_suspend { + mux { + /* 6: Enable, 8: Firmware */ + pins = "gpio6"; + function = "gpio"; + }; + + config { + pins = "gpio6"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-firm = <&tlmm 8 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; + interrupts = <9 0>; + interrupt-names = "nfc_irq"; + pinctrl-names = "nfc_active", "nfc_suspend"; + pinctrl-0 = <&nfc_int_active &sn110_enable_active>; + pinctrl-1 = <&nfc_int_suspend &sn110_enable_suspend>; + }; +}; + +&mmi_discrete_charger { + mmi,usb-mosfet-supported; + mmi,mos-en-gpio = <&tlmm 58 0>; +}; diff --git a/qcom/holi-penangb-evt1-overlay.dts b/qcom/holi-penangb-evt1-overlay.dts new file mode 100644 index 000000000000..587571ac77da --- /dev/null +++ b/qcom/holi-penangb-evt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2021, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "holi-penang-common-overlay.dtsi" + +/ { + model = "penang"; + compatible = "qcom,holi-penang", "qcom,holi-moto", "qcom,holi"; + qcom,msm-id = <454 0x10000>, <472 0x10000>; + qcom,board-id = <0x47 0xA100>; +}; + diff --git a/qcom/penangb-display.dtsi b/qcom/penangb-display.dtsi new file mode 100644 index 000000000000..8021d23c9089 --- /dev/null +++ b/qcom/penangb-display.dtsi @@ -0,0 +1,265 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-djn-nt36528-653-720x1600-video.dtsi" +#include "dsi-panel-mot-csot-ft8057-653-720x1600-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&mdss_dsi_phy0 { + qcom,platform-strength-ctrl = [55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 03 30 30 + 55 00 30 30]; +}; + + +&tlmm { + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + + +&soc { + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <5500000>; + regulator-max-microvolt = <5500000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-post-on-sleep = <1>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <5500000>; + qcom,supply-max-voltage = <5500000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; + + qcom,dsi-default-panel = <&dsi_nt36528_djn_video>; +}; + +&dsi_nt36528_djn_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x1A>; + qcom,mdss-dsi-t-clk-pre = <0x21>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 27 25 0A + 0B 0A 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_ft8057_csot_video { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a + 06 01 00 01 00 00 01 0b + 06 01 00 01 00 00 01 0D]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>,<0x00>,<0x01>; + qcom,mdss-dsi-panel-on-check-value = <0x9c>,<0x00>,<0x01>; + qcom,mdss-dsi-panel-status-read-length = <1 1 1>; + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-panel-supplier = "tm"; + + qcom,suspend-ulps-enabled; + + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; + + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,dsi-supported-dfps-list = <60 90 120>; + + //qcom,mdss-dsi-hbm-type = "lcd-dcs-gpio"; + //qcom,platform-hbm-en-gpio = <&tlmm 50 0>; + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 FF 0E]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 cc 0c]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x0E>; + qcom,mdss-dsi-t-clk-pre = <0x1E>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-drive-strength = <0x8C>; + qcom,mdss-dsi-panel-phy-timings = [00 24 09 09 1A 18 09 + 09 09 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-t-clk-post = <0x09>; + qcom,mdss-dsi-t-clk-pre = <0x15>; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + + diff --git a/qcom/penangb-fmr-overlay.dtsi b/qcom/penangb-fmr-overlay.dtsi new file mode 100644 index 000000000000..7c8b3bb156eb --- /dev/null +++ b/qcom/penangb-fmr-overlay.dtsi @@ -0,0 +1,5 @@ +&tlmm { +}; + +&soc { +}; diff --git a/qcom/penangb-fps-overlay.dtsi b/qcom/penangb-fps-overlay.dtsi new file mode 100644 index 000000000000..951d04a7ecdc --- /dev/null +++ b/qcom/penangb-fps-overlay.dtsi @@ -0,0 +1,124 @@ +&tlmm { + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_rst_high: fps_rst_high { + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <8>; + output-high; + bias-pull-up; + }; + }; + + fps_rst_low: fps_rst_low { + mux { + pins = "gpio18"; + function = "gpio"; + }; + config { + pins = "gpio18"; + drive-strength = <8>; + output-low; + bias-pull-down; + }; + }; + + fps_ldo3_en_active: fps_ldo3_en_active { + /* active state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-high; + }; + }; + + fps_ldo3_en_suspend: fps_ldo3_en_suspend { + /* sleep state */ + mux { + pins = "gpio87"; + function = "gpio"; + }; + + config { + pins = "gpio87"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + output-low; + }; + }; + +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + fp-gpio-ven = <&tlmm 87 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_int_active>; + pinctrl-1 = < &fps_int_suspend>; + }; + //chipone side fps + fingerprint: chipone7318 { + compatible = "qcom,fingerprint-gpio"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-gpio-int = <&tlmm 17 0x0>; + fp-gpio-reset = <&tlmm 18 0x0>; + fp-gpio-power = <&tlmm 87 0x0>; + pinctrl-names = "fps_rst_active","fps_rst_suspend","fps_int_active","fps_ido1p8_en_active","fps_ido1p8_en_suspend"; + + pinctrl-0 = <&fps_rst_high>; + pinctrl-1 = <&fps_rst_low>; + pinctrl-2 = <&fps_int_active>; + pinctrl-3 = <&fps_ldo3_en_active>; + pinctrl-4 = <&fps_ldo3_en_suspend>; + }; +}; + diff --git a/qcom/penangb-sensors.dtsi b/qcom/penangb-sensors.dtsi new file mode 100755 index 000000000000..14e283ce4728 --- /dev/null +++ b/qcom/penangb-sensors.dtsi @@ -0,0 +1,13 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + diff --git a/qcom/penangb-touchscreen.dtsi b/qcom/penangb-touchscreen.dtsi new file mode 100755 index 000000000000..5809a4e7b59b --- /dev/null +++ b/qcom/penangb-touchscreen.dtsi @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-bus-hold; + }; + }; + + touch_reset_mux { + touch_reset_active: touch_reset_active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + output-high; + }; + }; + + touch_reset_suspend: touch_reset_suspend { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + focaltech@38{ + compatible = "focaltech,fts"; + reg = <0x0>; + spi-max-frequency = <9600000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x2008>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 720 1600>; + focaltech,report_gesture_key; + focaltech,panel-supplier = "csot"; + pinctrl-names = "pmx_ts_active", "pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&touch_reset_active>; + pinctrl-1 = <&touch_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + panel = <&dsi_ft8057_csot_video>; + }; + novatek@0{ + compatible = "novatek,NVT-ts-spi"; + reg = <0x1>; + spi-max-frequency = <9600000>; /* 4800000,9600000,15000000,19200000 */ + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <720 1600>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; + novatek,report_gesture_key; + novatek,usb_charger; + novatek,panel-supplier = "djn"; + panel = <&dsi_nt36528_djn_video>; + status = "ok"; + }; +}; diff --git a/qcom/rt1711h-penangb.dtsi b/qcom/rt1711h-penangb.dtsi new file mode 100644 index 000000000000..cf09369ea878 --- /dev/null +++ b/qcom/rt1711h-penangb.dtsi @@ -0,0 +1,179 @@ +/* + * Copyright (c) 2020 Richtek Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include + +&qupv3_se8_i2c { + status = "okay"; + rt1711h@4e { + compatible = "richtek,rt1711h"; + reg = <0x4e>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + rt-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + rt-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + rt-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + rt-tcpc,vconn_supply = <1>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + rt1711pd,intr_gpio = <&tlmm 60 0x0>; + rt1711pd,intr_gpio_num = <60>; + pinctrl-names = "default"; + pinctrl-0 = <&rt1711h_int_n>; + pd-data { + pd,vid = <0x29cf>; + pd,pid = <0x1711>; + pd,source-cap-ext = <0x171129cf 0x00000000 0x00000000 + 0x00000000 0x00000000 0x02000000>; + pd,mfrs = "RichtekTCPC"; + + /* + * VSAFE5V = 0, MAX_POWER = 1, CUSTOM = 2, + * MAX_POWER_LV = 0x21, MAX_POWER_LVIC = 0x31 + * MAX_POWER_HV = 0x41, MAX_POWER_HVIC = 0x51 + */ + pd,charging_policy= <0x31>; + + /* + * Fixed 5V, 500 mA <0x00019032> + * Fixed 5V, 1A <0x00019064> + * Fixed 5V, 2A <0x000190c8> + * Fixed 5V, 3A <0x0001912c> + * Fixed 9V, 500 mA <0x0002d032> + * Fixed 9V, 1A <0x0002d064> + * Fixed 9V, 2A <0x0002d0c8> + * Fixed 9V, 3A <0x0002d12c> + * Variable 5-9V, 1A <0x8642d064> + * Variable 5-9V, 2A <0x8642d0c8> + * Variable 5-9V, 3A <0x8642d12c> + * PPS 3V~5.9V, 3A <0xC0761E3C> + */ + pd,source-pdo-size = <1>; + pd,source-pdo-data = <0x00019032>; + pd,sink-pdo-size = <1>; + pd,sink-pdo-data = <0x0001912c>; + + /* + * No DP, host + device + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + * With DP + * pd,id-vdo-size = <6>; + * pd,id-vdo-data = <0xd54029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + */ + + pd,id-vdo-size = <6>; + pd,id-vdo-data = <0xd14029cf 0x0 0x17110000 + 0x41800000 0x0 0x21800000>; + + bat,nr = <1>; + pd,country_nr = <0>; + + bat-info0 { + bat,vid = <0x29cf>; + bat,pid = <0x1711>; + bat,mfrs = "bat1"; + bat,design_cap = <3000>; + }; + + //bat-info1 { + // bat,vid = <0x8abc>; + // bat,pid = <0x5234>; + // bat,mfrs = "bat2"; + // bat,design_cap = <4000>; + //}; + + //country0 { + // pd,country_code = <0x5457>; + // pd,country_len = <2>; /* max len = 26 */ + // pd,country_data = <0xff 0xff>; + //}; + + //country1 { + // pd,country_code = <0x5553>; + // pd,country_len = <3>; /* max len = 26 */ + // pd,country_data = <0xf1 0xf2 0xf3>; + //}; + }; + dpm_caps { + local_dr_power; + local_dr_data; + //local_ext_power; + local_usb_comm; + //local_usb_suspend; + //local_high_cap; + //local_give_back; + local_no_suspend; + local_vconn_supply; + + //attemp_discover_cable_dfp; + attemp_enter_dp_mode; + attemp_discover_cable; + attemp_discover_id; + + /* 0: disable, 1: prefer_snk, 2: prefer_src */ + pr_check = <0>; + //pr_reject_as_source; + //pr_reject_as_sink; + //pr_check_gp_source; + //pr_check_gp_sink; + + /* 0: disable, 1: prefer_ufp, 2: prefer_dfp */ + dr_check = <0>; + //dr_reject_as_dfp; + //dr_reject_as_ufp; + }; + displayport { + /* connection type = "both", "ufp_d", "dfp_d" */ + 1st_connection = "dfp_d"; + 2nd_connection = "dfp_d"; + signal,dp_v13; + //signal,dp_gen2; + //usbr20_not_used; + typec,receptacle; + ufp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + //pin_assignment,mode_c; + //pin_assignment,mode_d; + //pin_assignment,mode_e; + }; + dfp_d { + //pin_assignment,mode_a; + //pin_assignment,mode_b; + pin_assignment,mode_c; + pin_assignment,mode_d; + pin_assignment,mode_e; + //pin_assignment,mode_f; + }; + }; + }; +}; + +&tlmm { + rt1711h_int_n: rt1711h_int_n { + mux { + pins = "gpio60"; + function = "gpio"; + }; + + config { + pins = "gpio60"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + diff --git a/qcom/sgm7220-penangb.dtsi b/qcom/sgm7220-penangb.dtsi new file mode 100644 index 000000000000..f02e3f4108b8 --- /dev/null +++ b/qcom/sgm7220-penangb.dtsi @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2021 motorola Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR tcpcA PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se8_i2c { + status = "okay"; + sgm7220: sgm7220@47 { + compatible = "sgm,usb_type_c_sgm7220"; + reg = <0x47>; + status = "okay"; + tcpc-dual,supported_modes = <0>; /* 0: dfp/ufp, */ + /* 1: dfp, 2: ufp */ + sgm7220-tcpc,name = "type_c_port0"; /* tcpc_device's name */ + sgm7220-tcpc,role_def = <5>; /* 0: Unknown, 1: SNK, 2: SRC */ + /* 3: DRP, 4: Try.SRC, 5: Try.SNK */ + sgm7220-tcpc,rp_level = <0>; /* 0: Default, 1: 1.5, 2: 3.0 */ + sgm7220-tcpc,vconn_supply = <0>; /* 0: Never, 1: Always, */ + /* 2: EMarkOnly, 3: StartOnly */ + sgm7220,intr_gpio = <&tlmm 60 0x0>; + sgm7220,intr_gpio_num = <60>; + pinctrl-names = "default"; + pinctrl-0 = <&sgm7220_int_n>; + }; +}; + + +&tlmm { + sgm7220_int_n: sgm7220_int_n { + mux { + pins = "gpio60"; + function = "gpio"; + }; + + config { + pins = "gpio60"; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + From 2bffd5db0f84c855539932d2b88f968ee3f100a3 Mon Sep 17 00:00:00 2001 From: LiZidong Date: Tue, 28 Mar 2023 20:53:21 +0800 Subject: [PATCH 1005/1247] arm/dts: Bangkok modify for focaltech touch fod focal touch : add touch fod and double tap dtsi Change-Id: Ic8e461c1c031a57aacdcd35cb6ba9ffc52c20c4c Signed-off-by: LiZidong Reviewed-on: https://gerrit.mot.com/2556809 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 4c38563a9303..2fa29057cf74 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -97,6 +97,8 @@ pinctrl-2 = <&pmx_ts_release>; panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + mmi,enable-gestures; + mmi,supported_gesture_type = <0x07>; status = "ok"; }; }; From 0267ee33fee466a40d0fbbdf9c5905b5e7a2f4a3 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 29 Mar 2023 13:50:50 +0800 Subject: [PATCH 1006/1247] dts/display: bangkok: add tianma_nt37703_144hz panel 1. Add tianma nt37703 655 1080*2400 2. Add the drivers and config for this panel Change-Id: Ieb8ecf5edc20d773161fa2dc136e9b0f828e4358 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2558169 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 39 ++++++ ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 119 ++++++++++++++++++ 2 files changed, 158 insertions(+) create mode 100644 qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 5f5a198d5b1c..6c369e614328 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -195,6 +196,44 @@ }; }; +&mot_tm_nt37703_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-inverted-dbv; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + //qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 + 07 08 02 04 00 19 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi new file mode 100644 index 000000000000..0cd5e39a0430 --- /dev/null +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -0,0 +1,119 @@ +&mdss_mdp { + mot_tm_nt37703_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_tm_nt37703_655_1080x2400_dsc_vid { + qcom,mdss-dsi-panel-name = + "mipi_moto_vid_tm_1080p_dsc_nt37703"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <152>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + //qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + + qcom,bklt-dcs-2bytes-enabled; + qcom,mdss-dsi-bl-min-level = <3>; + qcom,mdss-dsi-bl-max-level = <4095>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <4200000>; + + qcom,mdss-dsi-panel-blackness-level = <3230>; + + qcom,mdss-dsi-display-timings { + timing@0 { + cell-index = <0>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <16>; + qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <14>; + qcom,mdss-dsi-v-front-porch = <3488>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 39 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 02 B5 29 + 39 01 00 00 00 00 02 6F 07 + 39 01 00 00 00 00 05 B5 2B 1B 00 32 + 39 01 00 00 00 00 06 88 01 02 1B 08 77 + 39 01 00 00 00 00 02 87 20 + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + 39 01 00 00 00 00 03 90 03 03 + 39 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 39 01 00 00 00 00 02 6F 15 + 39 01 00 00 00 00 03 F8 01 E1 + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 39 01 00 00 00 00 02 6F 17 + 39 01 00 00 00 00 02 F4 02 + 39 01 00 00 00 00 05 FF AA 55 A5 81 + 39 01 00 00 00 00 02 6F 13 + 39 01 00 00 00 00 02 F9 01 + 39 01 00 00 00 00 05 FF AA 55 A5 81 + 39 01 00 00 00 00 02 6F 3C + 39 01 00 00 00 00 02 F5 81 + 39 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 02 2F 03 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 02 6F 03 + 39 01 00 00 00 00 02 C7 47 + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 39 01 00 00 00 00 02 6F C4 + 39 01 00 00 00 00 09 B2 09 84 09 84 09 84 16 D6 + 39 01 00 00 00 00 06 F0 55 AA 52 08 03 + 39 01 00 00 00 00 02 6F 33 + 39 01 00 00 00 00 09 C6 00 18 00 18 00 18 00 18 + 39 01 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 02 2F 83 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + qcom,mdss-dsc-novateck-ic; + }; + }; + }; +}; From 014ebcff666bdbb3b9f1590ba11f600fd135538e Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 30 Mar 2023 14:52:51 +0800 Subject: [PATCH 1007/1247] dts:FM ELAN GPIO47 bring up 1/2 1.add FM ELAN dts config 2.control GPIO47 Change-Id: I91a59a87f756e60ca30a6265a440b128fae5e616 Reviewed-on: https://gerrit.mot.com/2559724 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 1 + qcom/blair-bangkk-fmr-overlay.dtsi | 48 +++++++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 qcom/blair-bangkk-fmr-overlay.dtsi diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 45046b082d21..4c22add5d262 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -23,6 +23,7 @@ #include "camera/blair-camera-sensor-mot-bangkk-overlay.dtsi" #include "bangkk-wl286xx.dtsi" #include "moto_therm_sys_temp.dtsi" +#include "blair-bangkk-fmr-overlay.dtsi" &wcd937x_codec { cdc-vdd-rxtx-supply = <&L9A>; diff --git a/qcom/blair-bangkk-fmr-overlay.dtsi b/qcom/blair-bangkk-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-bangkk-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; From 27c13091de47ed50a14f0a5ecd3f682da9590d5c Mon Sep 17 00:00:00 2001 From: tinno61 Date: Thu, 30 Mar 2023 16:11:32 +0800 Subject: [PATCH 1008/1247] arm/dts: Bangkok goodix tp bring up bangkok tp:addd goodix tp driver and compatible focatech tp Change-Id: I06c6673e799121c9a2fe5fd3e4c8c86a5404199a Reviewed-on: https://gerrit.mot.com/2559857 Reviewed-by: Wei Deng SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 2fa29057cf74..03ffbd1843f8 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -75,9 +75,37 @@ pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - focaltech@0{ - compatible = "focaltech,fts"; + goodix-berlin@0 { + compatible = "goodix,gt9916P"; reg = <0x0>; + spi-max-frequency = <1000000>; + + mmi,status = "/chosen","mmi,panel_name","contains","nt37703"; + //goodix,avdd-name = "avdd"; + goodix,iovdd-name = "iovdd"; + goodix,avdd-gpio = <&tlmm 11 0x0>; + iovdd-supply = <&L13A>; + + panel = <&mot_tm_nt37703_655_1080x2400_dsc_vid>; + + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x0>; + goodix,irq-flags = <2>; + goodix,panel-max-x = <17280>; + goodix,panel-max-y = <38400>; + goodix,panel-max-w = <255>; + + goodix,panel-max-p = <4096>; + goodix,pen-enable; + goodix.sleep-enable; + goodix,firmware-name = "goodix_firmware.bin"; + goodix,config-name = "goodix_cfg_group.bin"; + status = "ok"; + }; + + focaltech@1{ + compatible = "focaltech,fts"; + reg = <0x1>; //mmi,status = "/chosen","vtdr6115"; mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"; spi-max-frequency = <6000000>; From a8f70667ad810aee6a6e34cd7c07f98cf64d6acf Mon Sep 17 00:00:00 2001 From: zhangchao Date: Fri, 31 Mar 2023 15:02:25 +0800 Subject: [PATCH 1009/1247] arm/dts:EVT change aw87360 I2C to qupv3_se8_i2c 1.EVT change aw87360 I2C config 2.use qupv3_se8_i2c Change-Id: Ica30c934ecd19c1efcf2b88b7f70e868f48e905c Reviewed-on: https://gerrit.mot.com/2561430 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhengming Yao Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/holi-audio-bangkk-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-audio-bangkk-overlay.dtsi b/qcom/holi-audio-bangkk-overlay.dtsi index 35719dac138d..27d3c21b2659 100644 --- a/qcom/holi-audio-bangkk-overlay.dtsi +++ b/qcom/holi-audio-bangkk-overlay.dtsi @@ -276,7 +276,7 @@ qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se2_i2c { +&qupv3_se8_i2c { status = "ok"; aw887xx_smartpa_0: aw87xxx_pa@58 { compatible = "awinic,aw87xxx_pa"; From dc97738235849a4119de8c4513e8756cea484af0 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Fri, 31 Mar 2023 11:57:25 +0800 Subject: [PATCH 1010/1247] Update of semtech sar parameters 1.update semtech sar parameters 2.EVT Change sar i2c gpio(se8) Change-Id: I30d3612c8c30319ad9f9ce610b18ed497b269653 Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2561126 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 121 +++++++++++++-------- qcom/blair-pm6125-moto-common-overlay.dtsi | 8 +- 2 files changed, 78 insertions(+), 51 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 8a9720a9d1a1..542db363df0a 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -37,6 +37,31 @@ bias-no-pull; }; }; + sar_int_bangkk_default: sar_int_bangkk_default { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_bangkk_sleep: sar_int_bangkk_sleep { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; }; &soc { @@ -49,7 +74,7 @@ }; }; -&qupv3_se2_i2c { +&qupv3_se8_i2c { status = "okay"; Semtech_sx937x@2c { compatible = "Semtech,sx937x"; @@ -57,8 +82,8 @@ Semtech,power-supply-type = <0>; cap_vdd-supply = <&L12A>; pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_default>; - pinctrl-1 = <&sar_int_sleep>; + pinctrl-0 = <&sar_int_bangkk_default>; + pinctrl-1 = <&sar_int_bangkk_sleep>; interrupt-parent = <&tlmm>; interrupts = <58 0x02>; Semtech,nirq-gpio = <&tlmm 58 0x02>; @@ -68,19 +93,19 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; - Semtech,reg-num = <64>; + Semtech,reg-num = <66>; Semtech,reg-init = < - 0x4004 0x70 + 0x4004 0x78 0x4008 0x8 0x8020 0x32 - 0x8028 0x88F - 0x8034 0x88E - 0x8040 0x88F - 0x804C 0x88E - 0x8058 0x88E - 0x8064 0x88E - 0x8070 0x88E - 0x807C 0x85E + 0x8028 0x45E + 0x8034 0x45E + 0x8040 0x45E + 0x804C 0x45E + 0x8058 0x45E + 0x8064 0x45E + 0x8070 0x45E + 0x807C 0x45E 0x8030 0xFFF9FD 0x803C 0xBFF9FF 0x8048 0xFFF97F @@ -89,19 +114,19 @@ 0x806C 0xFFF9EF 0x8078 0xFEF9FF 0x8084 0xFFFFFF - 0x8098 0x4831 - 0x80B8 0x3323 - 0x80D8 0x2D23 - 0x80F8 0x5B34 - 0x8118 0x2E23 - 0x8138 0xC8 - 0x8158 0xC8 - 0x8178 0xC8 - 0x80A0 0xE1 - 0x80C0 0xE2 - 0x80E0 0xE1 - 0x8100 0x202000E0 - 0x8120 0xE2 + 0x8098 0x9B8D + 0x80B8 0x362D + 0x80D8 0x5A4E + 0x80F8 0xAD8D + 0x8118 0x6E64 + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0xFF + 0x80A0 0x0 + 0x80C0 0x0 + 0x80E0 0x0 + 0x8100 0x0 + 0x8120 0x0 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -109,31 +134,33 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x54C45000 - 0x80B0 0x2AD87000 - 0x80D0 0x54D85000 - 0x80F0 0x2AD77000 - 0x8110 0x2AD77000 - 0x8130 0x2AD67000 - 0x8150 0x2AD67000 - 0x8170 0x2AD66000 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 + 0x8090 0x54AC5300 + 0x80B0 0x54AC5300 + 0x80D0 0x54AC5300 + 0x80F0 0x54AC5300 + 0x8110 0x54AC5300 + 0x8130 0x54AC5300 + 0x8150 0x54AC5300 + 0x8170 0x54AC5300 + 0x8088 0x300001 + 0x80A8 0x300001 + 0x80C8 0x300001 + 0x80E8 0x300001 + 0x8108 0x300001 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 - 0x808C 0x60200018 - 0x80AC 0x60200018 - 0x80CC 0x60200018 - 0x80EC 0x60200018 - 0x810C 0x60200018 - 0x812C 0x60200018 - 0x814C 0x60200018 - 0x816C 0x60200018 + 0x808C 0x60200031 + 0x80AC 0x60200031 + 0x80CC 0x60200031 + 0x80EC 0x60200031 + 0x810C 0x60200031 + 0x812C 0x60200031 + 0x814C 0x60200031 + 0x816C 0x60200031 0x8024 0x7F7F + 0x8274 0x08 + 0x4280 0x0E >; }; awinic_sar@12 { diff --git a/qcom/blair-pm6125-moto-common-overlay.dtsi b/qcom/blair-pm6125-moto-common-overlay.dtsi index 5933dc664cd5..182565d4cbb9 100644 --- a/qcom/blair-pm6125-moto-common-overlay.dtsi +++ b/qcom/blair-pm6125-moto-common-overlay.dtsi @@ -67,11 +67,11 @@ &tlmm { sar_int_default: sar_int_default { mux { - pins = "gpio58"; + pins = "gpio24"; function = "gpio"; }; config { - pins = "gpio58"; + pins = "gpio24"; num-grp-pins = <1>; drive-strength = <2>; bias-pull-up; @@ -80,11 +80,11 @@ sar_int_sleep: sar_int_sleep { mux { - pins = "gpio58"; + pins = "gpio24"; function = "gpio"; }; config { - pins = "gpio58"; + pins = "gpio24"; num-grp-pins = <1>; drive-strength = <2>; bias-pull-up; From e03bbe5006b2766b776e25df69d6c639c6ddd0a0 Mon Sep 17 00:00:00 2001 From: Yunxian He Date: Fri, 31 Mar 2023 18:22:30 +0800 Subject: [PATCH 1011/1247] bangkk: update nfc enable gpio for evt main changes: gpio101 to gpio48 Change-Id: Iced5e192e26ae0b376a0209a6d3e01c9334610fb Signed-off-by: Yunxian He Reviewed-on: https://gerrit.mot.com/2561829 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 4c22add5d262..bfc3948d393e 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -73,12 +73,12 @@ nfc_enable_active: nfc_enable_active { mux { - pins = "gpio101"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio101"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -86,12 +86,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio101"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio101"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -280,7 +280,7 @@ sec-nfc@27 { compatible = "sec-nfc"; reg = <0x27>; - sec-nfc,ven-gpio = <&tlmm 101 0x00>; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; sec-nfc,firm-gpio = <&tlmm 135 0x00>; sec-nfc,irq-gpio = <&tlmm 9 0x00>; sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; From 6f222f07b51573e695ddde1a0d2a80b0aeb67b52 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Mon, 3 Apr 2023 10:34:59 +0800 Subject: [PATCH 1012/1247] dts/display: bangkok: Modify the power off timing 1. Modify 1st vtdr6115 power off timing 2. Fix not being able to light up after turning off the screen issue Change-Id: Ic110fef80bd47418dcccb4132dd8037941b169d0 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2562859 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 6c369e614328..6c094b21ccc1 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -124,7 +124,7 @@ qcom,supply-disable-load = <0>; qcom,supply-pre-on-sleep = <0>; qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <0>; + qcom,supply-pre-off-sleep = <2>; qcom,supply-post-off-sleep = <2>; }; @@ -137,7 +137,7 @@ qcom,supply-disable-load = <0>; qcom,supply-pre-on-sleep = <1>; qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <0>; + qcom,supply-pre-off-sleep = <2>; qcom,supply-post-off-sleep = <2>; }; }; From 225a649f8b3a562a7c8b81fe6ee6ae9dd386b9c2 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Mon, 3 Apr 2023 11:03:48 +0800 Subject: [PATCH 1013/1247] dts/display: bangkok: Modify 1st vtdr6115 init code Add SGM3837 and AW37577E pmic code settings Change-Id: I40636cd6a892ce0052fa36e715db2ecaddb76391 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2562900 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 10e1a7a15102..b0a3ff8acb74 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -363,6 +363,8 @@ 39 01 00 00 00 00 02 55 10 39 01 00 00 00 00 02 59 09 39 01 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 0D 13 19 16 00 0D 16 19 00 00 1B 05 05 13 13 39 01 00 00 00 00 03 FF 5A 80 39 01 00 00 00 00 02 65 0E 39 01 00 00 00 00 02 F9 B9 From 32560c7a7e6f3d4c5153768b7dc312dd0da5c56e Mon Sep 17 00:00:00 2001 From: tinno64 Date: Mon, 3 Apr 2023 16:56:08 +0800 Subject: [PATCH 1014/1247] dts/display: bangkok: enable 2nd hbm mode Enable nt37703 hbm and dc mode Change-Id: Idf94573599c1bc1102aedc8e7ff9daa214a07db0 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2563269 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 0cd5e39a0430..6e584e4a84a8 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -39,6 +39,33 @@ qcom,mdss-dsi-panel-blackness-level = <3230>; + qcom,mdss-dsi-dc-off-command = [ + 39 01 00 00 00 00 03 8B 00 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dc-on-command = [ + 39 01 00 00 00 00 03 8B 00 81]; + qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 40 00 00 02 87 20 + 39 00 00 40 00 00 02 6F 09 + 39 00 00 40 00 00 03 51 00 00 + 39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 40 00 00 02 87 20 + 39 01 00 00 00 00 02 6F 09 + 39 01 00 00 00 00 03 51 00 00]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 40 00 00 02 87 25 + 39 00 00 40 00 00 02 6F 09 + 39 01 00 00 00 00 03 51 8F FF]; + qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-display-timings { timing@0 { cell-index = <0>; From b49519b45636ce90f2bb8e169d28ebe05c28fbe6 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Mon, 3 Apr 2023 15:52:16 +0800 Subject: [PATCH 1015/1247] arm/dts:Bangkok modify devicetree Bangkok : goodix modify compatible gt9916S and add fod feature and remove unnecessary feature Change-Id: Ie82868394345fe27228f48708b1cbd57fc5af263 Reviewed-on: https://gerrit.mot.com/2563179 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 03ffbd1843f8..10e7d13f8d86 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -76,7 +76,7 @@ pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; goodix-berlin@0 { - compatible = "goodix,gt9916P"; + compatible = "goodix,gt9916S"; reg = <0x0>; spi-max-frequency = <1000000>; @@ -96,10 +96,10 @@ goodix,panel-max-w = <255>; goodix,panel-max-p = <4096>; - goodix,pen-enable; - goodix.sleep-enable; goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; + mmi,enable-gestures; + mmi,supported_gesture_type = <0x07>; status = "ok"; }; From 464d765d8b01c8efa675db9e054afa34fbe0e2b3 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 4 Apr 2023 14:30:53 +0800 Subject: [PATCH 1016/1247] dts/display: bangkok: add 2nd panel evt op manual Support SGM3837 and AW37577E pmic code settings Change-Id: I920129cdf03b05d8d26c54371d1ab42862392233 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2564673 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 21 ++++++++++--------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 6e584e4a84a8..5a7e9853905b 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -85,11 +85,16 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 06 F0 55 AA 52 08 00 39 01 00 00 00 00 02 6F 06 - 39 01 00 00 00 00 02 B5 29 + 39 01 00 00 00 00 02 B5 39 39 01 00 00 00 00 02 6F 07 - 39 01 00 00 00 00 05 B5 2B 1B 00 32 + 39 01 00 00 00 00 05 B5 00 27 00 00 + 39 01 00 00 00 00 02 6F 18 + 39 01 00 00 00 00 02 B5 00 + 39 01 00 00 00 00 02 6F 19 + 39 01 00 00 00 00 02 B5 0B + 39 01 00 00 00 00 02 6F 22 + 39 01 00 00 00 00 02 B5 21 39 01 00 00 00 00 06 88 01 02 1B 08 77 39 01 00 00 00 00 02 87 20 39 01 00 00 00 00 05 2A 00 00 04 37 @@ -114,14 +119,10 @@ 39 01 00 00 00 00 06 F0 55 AA 52 08 01 39 01 00 00 00 00 02 6F 03 39 01 00 00 00 00 02 C7 47 + 39 01 00 00 00 00 02 5F 80 39 01 00 00 00 00 06 F0 55 AA 52 08 00 - 39 01 00 00 00 00 02 6F C4 - 39 01 00 00 00 00 09 B2 09 84 09 84 09 84 16 D6 - 39 01 00 00 00 00 06 F0 55 AA 52 08 03 - 39 01 00 00 00 00 02 6F 33 - 39 01 00 00 00 00 09 C6 00 18 00 18 00 18 00 18 - 39 01 00 00 00 00 02 6F 01 - 39 01 00 00 00 00 02 2F 83 + 39 01 00 00 00 00 02 6F 34 + 39 01 00 00 00 00 02 DF 27 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 ]; From 0ea98ed40571323ea77b013c616e5b3cc9b477fb Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Thu, 6 Apr 2023 10:38:02 +0800 Subject: [PATCH 1017/1247] New channel ID for LGU+ customization Changes: - ro.carrier=lguplus - channelId=217 (decimal) Change-Id: Ie582d76b8a108024c298daaec2685cc68439edd1 Signed-off-by: zhengyd2 Reviewed-on: https://gerrit.mot.com/2567025 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 214266b80899..a3e7de2a662f 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -231,7 +231,7 @@ "retkr", /* 214 */ "retjio", /* 215 */ "ymobile", /* 216 */ - "undefined", /* 217 */ + "lguplus", /* 217 */ "undefined", /* 218 */ "undefined", /* 219 */ "undefined", /* 220 */ From 4fccec8d6ab56e0260a956c61d34873e542ce31d Mon Sep 17 00:00:00 2001 From: tinno64 Date: Fri, 7 Apr 2023 19:25:27 +0800 Subject: [PATCH 1018/1247] dts/display:[bangkok] Modify 1st panel timing to reset-mipi with delay of 20ms Fix the issue of inability to display properly after powering off the power supply screen Change-Id: I14c32db0235af1dfda229b419bd9afcd57bff96b Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2569542 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: tongkun1 --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index b0a3ff8acb74..145842b544c8 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -35,7 +35,7 @@ qcom,mdss-dsi-lane-3-state; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; qcom,mdss-dsi-bl-min-level = <3>; qcom,mdss-dsi-bl-max-level = <4095>; From 79225ea0a6cdb9e4e7381ecfa593cc5ee29d50c3 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Fri, 7 Apr 2023 15:33:04 +0800 Subject: [PATCH 1019/1247] dts/display: bangkok: add 1st panel evt op manual add 1st vtdr6115 evt op manual Change-Id: I238b42fe75ae4477957c9ed635e306bfd8006e3f Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2569231 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...si-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 145842b544c8..b78559fa7c5a 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -342,9 +342,9 @@ qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <32>; - qcom,mdss-dsi-h-back-porch = <32>; - qcom,mdss-dsi-h-pulse-width = <32>; + qcom,mdss-dsi-h-front-porch = <22>; + qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-pulse-width = <10>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <8>; qcom,mdss-dsi-v-front-porch = <3444>; @@ -373,9 +373,11 @@ 39 01 00 00 00 00 02 F4 03 39 01 00 00 00 00 02 65 08 39 01 00 00 00 00 03 F6 51 44 + 05 01 00 00 78 00 01 11 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 F3 08 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 - 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 ]; From e94ea8abcda50b71bebf1bfb93081fb735ab71df Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Tue, 11 Apr 2023 16:12:38 +0800 Subject: [PATCH 1020/1247] Secondary supply sarsensor (aw963xx) QCA display channel abnormality 1.int gpio58 config pull up 2.CQA display 5 channel 3.modify interrupt triggering method flag Change-Id: I4fee1e93b226684bfb2f188edb16f785a027e5f3 Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2572097 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key Reviewed-by: Yuchang Guo --- qcom/bangkk-sensors.dtsi | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 542db363df0a..d0a4381a7db3 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -169,11 +169,14 @@ reg = < 0x12 >; //aw_sar,regulator-power-supply = <1>; sar-num = < 0 >; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_bangkk_default>; + pinctrl-1 = <&sar_int_bangkk_sleep>; interrupt-parent = < &tlmm >; - interrupts = <58 0>; - irq-gpio = <&tlmm 58 0>; + interrupts = <58 0x02>; + irq-gpio = <&tlmm 58 0x02>; cap_vdd-supply = <&L12A>; - channel_use_flag = <0xff>; + channel_use_flag = <0x1f>; aw_sar,use_plug_cail; aw_sar,update_fw; /* private node belongs to aw963xx */ From fcf7d004b923751090dca285028bc93447d8c39c Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 12 Apr 2023 14:31:29 +0800 Subject: [PATCH 1021/1247] dts/display: [bangkok]Modify 1st vtdr6115 panel timing add 1st vtdr6115 evt op manual timing Change-Id: I8eee3ad5630c119ee9e6d21a9e6451fa8aa114f8 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2573483 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 6c094b21ccc1..f48be438a80f 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -188,8 +188,8 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 21 08 08 19 23 08 - 08 09 02 04 00 1C 0D]; + qcom,mdss-dsi-panel-phy-timings = [00 1D 08 07 17 22 07 + 08 08 02 04 00 19 0D]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; From 22d97a9c815ba82d33f864f9d7ec9e6efefeaf37 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Wed, 12 Apr 2023 16:52:20 +0800 Subject: [PATCH 1022/1247] dts:add vib long shake time and vol set vib-dis-short-long-val to 70ms. if vib time>70ms ,set vib volt to 2.6v. Change-Id: I9efbd053f9f9f033dea22134c047fb633c4bd7db Reviewed-on: https://gerrit.mot.com/2573667 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index bfc3948d393e..30d9af85069f 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -38,6 +38,12 @@ cdc-vdd-mic-bias-supply = <>; }; +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <2600000>; +}; &tlmm { nfc { From ac44f5e02a860b2e64a468c90c85960c1a85e08d Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 13 Apr 2023 16:27:07 +0800 Subject: [PATCH 1023/1247] dts/display: [bangkok] enable esd check Enable esd checks for 1sd csot and 2nd tm panel Change-Id: Ic2e8c9ee534ef1f3a23570cf0940456549b40484 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2575090 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index f48be438a80f..d81011878ec7 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -178,7 +178,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; @@ -216,7 +216,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; From 2fff4a6e60a693de13c23af7128fd3d4fded6181 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Fri, 14 Apr 2023 01:23:21 -0500 Subject: [PATCH 1024/1247] Revert dts/display: [bangkok] enable esd check Disable esd check This reverts commit 76c1b0c951c604511c3196f149587811a6e19cca. Change-Id: I261f86f46ba7eadfb5a863a277f878864e799eac Reviewed-on: https://gerrit.mot.com/2576429 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index d81011878ec7..f48be438a80f 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -178,7 +178,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - qcom,esd-check-enabled; + //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; @@ -216,7 +216,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - qcom,esd-check-enabled; + //qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; From 0b796b5dbed3798b5e4d5329c987555cde1dac22 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 18 Apr 2023 16:45:33 +0800 Subject: [PATCH 1025/1247] dts/display: [bangkok] enable esd check Enable esd checks for 1sd csot and 2nd tm panel Fix the issue of automatically turning on and off the screen when enable ESD check Change-Id: Ic0efa8a2319e0f60c062dd64200685b8e17eaa45 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2580278 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index f48be438a80f..e70d52cede69 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -178,12 +178,12 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { @@ -216,7 +216,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - //qcom,esd-check-enabled; + qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; From 0579043f110e1acc8d0b0b20867d1a132d7aaf5b Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 19 Apr 2023 16:17:41 +0800 Subject: [PATCH 1026/1247] dts/display: [bangkok] Fix the brightness issue with 2nd panel The max brightness of the 2nd panel screen is relatively dark 2nd screen adjustment brightness flash screen Change-Id: I6872173c75a0ffb0fde87e331b89f29e06b60aa3 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2582076 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 3 +-- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 4 ---- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 3 --- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index e70d52cede69..9bcce87b7dd4 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -205,7 +205,6 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; qcom,mdss-brightness-max-level = <4095>; - qcom,mdss-dsi-bl-inverted-dbv; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-bl-is-exponent; @@ -219,7 +218,7 @@ qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9c>; qcom,mdss-dsi-panel-status-read-length = <1>; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index b78559fa7c5a..d0133e399b2e 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -37,10 +37,6 @@ qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; - qcom,mdss-dsi-bl-min-level = <3>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 17000 15500 30000 8000 3000>; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 5a7e9853905b..5c5b89c04621 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -28,9 +28,6 @@ qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; qcom,bklt-dcs-2bytes-enabled; - qcom,mdss-dsi-bl-min-level = <3>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 From a042515e857972b981e44ed159ea627f6c9ee1db Mon Sep 17 00:00:00 2001 From: liuzhen Date: Tue, 25 Apr 2023 20:28:24 +0800 Subject: [PATCH 1027/1247] add battery curve for bangkk 1.add qb50 battery curve for bangkk 2.modify battery parameters based on battery spec Change-Id: Ie256367b0d221095acf81cc470e4f897e97fec07 Reviewed-on: https://gerrit.mot.com/2589025 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 35 +- qcom/qg-batterydata-qb50-swd-5000mah.dtsi | 1020 +++++++++++++++++++++ 2 files changed, 1037 insertions(+), 18 deletions(-) create mode 100644 qcom/qg-batterydata-qb50-swd-5000mah.dtsi diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 9a866cd50428..5820139571f7 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -3,10 +3,9 @@ &mot_batterydata { - df-serialnum = "SB18D17151"; + df-serialnum = "SB18D87863"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-ng50-atl-5000mah.dtsi" - #include "qg-batterydata-ng50-swd-5000mah.dtsi" + #include "qg-batterydata-qb50-swd-5000mah.dtsi" }; &pm7250b_charger { @@ -61,8 +60,8 @@ "charge_full_design", "time_to_full_now", "cp_input_voltage_now"; - qcom,fcc-max-ua = <6000000>; - qcom,fv-max-uv = <4480000>; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4500000>; qcom,dcp-curr-max = <1500000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 @@ -82,13 +81,13 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4450 243 575>, - <4450 243 575>, - <4450 243 575>, - <4480 575 939>, - <4480 635 1038>, - <4480 661 1086>, - <4450 243 575>; + qcom,mmi-ffc-zones = <4500 243 534>, + <4500 243 534>, + <4500 243 534>, + <4530 534 1250>, + <4530 575 1250>, + <4530 731 1250>, + <4500 243 575>; qcom,iterm-ma = <243>; mmi,enable-factory-mode-aicl; @@ -173,7 +172,7 @@ mmi,pd-volt-max = <10000000>; mmi,pd-curr-max = <3000000>; mmi,batt-curr-boost = <300000>; - mmi,batt-ovp-lmt = <4550000>; + mmi,batt-ovp-lmt = <4580000>; mmi,pl-chrg-vbatt-min = <3600000>; mmi,typec-middle-current = <2000000>; mmi,pd-allow-min-current = <1000000>; @@ -186,11 +185,11 @@ /*qc3p end*/ mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = - <0 4200 1000 0 0>, - <10 4250 3000 4450 1000>, - <15 4450 3000 0 0>, - <45 4350 5800 4480 4000>, - <60 4200 4000 0 0>; + <0 4200 1000 0 0 0 0>, + <10 4250 3000 4500 1000 0 0>, + <15 4500 3000 0 0 0 0>, + <45 4300 5800 4400 5200 4520 4000>, + <60 4200 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, <5000000>, diff --git a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi new file mode 100644 index 000000000000..aecded35dd4f --- /dev/null +++ b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,qb50-swd-5000mah { + /* 6559013_Heyuan_P562A_5000mAH_PM7250B_averaged_MasterSlave_Apr24th2023 */ + serialnum = "SB18D87863"; + qcom,sdam-magic-number = <0x18D87863>; + qcom,max-voltage-uv = <4500000>; + qcom,fg-cc-cv-threshold-uv = <4490000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <3440>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "QB50-SWD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4815 5052 5142 5173 5180>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4850 5065 5129 5129 5136 5128>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44606 44735 44810 44847 44856>, + <44392 44543 44558 44575 44581>, + <44182 44330 44352 44357 44362>, + <43974 44118 44156 44160 44168>, + <43760 43909 43952 43963 43974>, + <43541 43696 43738 43755 43765>, + <43313 43470 43515 43537 43547>, + <43074 43232 43281 43307 43318>, + <42828 42985 43035 43065 43078>, + <42581 42729 42783 42814 42829>, + <42332 42470 42522 42556 42573>, + <42086 42214 42259 42294 42313>, + <41846 41961 42001 42035 42058>, + <41610 41714 41747 41778 41804>, + <41381 41471 41500 41527 41555>, + <41157 41234 41260 41285 41311>, + <40940 41006 41027 41050 41073>, + <40731 40787 40803 40825 40844>, + <40531 40577 40588 40609 40623>, + <40339 40380 40386 40402 40414>, + <40160 40187 40201 40215 40224>, + <39988 39986 39989 40010 40021>, + <39813 39782 39706 39737 39758>, + <39635 39562 39423 39446 39476>, + <39450 39294 39226 39245 39276>, + <39247 39052 39073 39098 39130>, + <39043 38914 38945 38969 38994>, + <38883 38818 38839 38849 38853>, + <38756 38727 38743 38737 38721>, + <38650 38635 38646 38628 38611>, + <38564 38550 38554 38525 38517>, + <38492 38471 38466 38432 38428>, + <38427 38398 38383 38349 38345>, + <38368 38330 38306 38273 38267>, + <38314 38268 38239 38203 38194>, + <38267 38211 38178 38139 38125>, + <38226 38162 38117 38073 38052>, + <38183 38118 38060 38009 37975>, + <38135 38057 37990 37932 37887>, + <38081 37970 37898 37828 37775>, + <38006 37864 37788 37705 37647>, + <37886 37743 37666 37581 37517>, + <37755 37601 37525 37449 37381>, + <37617 37433 37359 37287 37212>, + <37458 37274 37202 37140 37065>, + <37294 37165 37098 37048 36989>, + <37229 37129 37064 37013 36962>, + <37189 37099 37043 36991 36936>, + <37139 37076 37020 36970 36914>, + <37097 37042 36971 36914 36852>, + <37058 36872 36749 36656 36580>, + <37005 36452 36313 36208 36135>, + <36855 35867 35715 35618 35551>, + <36413 35046 34884 34808 34751>, + <35577 33700 33581 33539 33506>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44815 44820 44800 44760 44765 44755>, + <44473 44504 44505 44476 44478 44470>, + <44172 44224 44240 44215 44215 44210>, + <43921 43987 44011 43984 43983 43980>, + <43718 43789 43813 43779 43778 43776>, + <43521 43588 43609 43568 43568 43568>, + <43309 43367 43386 43341 43343 43343>, + <43090 43138 43153 43105 43110 43111>, + <42865 42900 42909 42860 42867 42870>, + <42629 42651 42651 42605 42614 42619>, + <42388 42399 42392 42348 42358 42365>, + <42142 42146 42133 42088 42099 42107>, + <41889 41893 41875 41831 41842 41851>, + <41635 41648 41621 41578 41590 41600>, + <41382 41410 41372 41330 41342 41353>, + <41129 41167 41131 41089 41103 41114>, + <40874 40918 40902 40855 40870 40881>, + <40617 40663 40674 40629 40645 40655>, + <40365 40394 40444 40417 40431 40440>, + <40119 40115 40208 40209 40223 40233>, + <39879 39856 39950 39987 40017 40030>, + <39653 39617 39670 39745 39814 39833>, + <39437 39395 39415 39505 39597 39620>, + <39234 39194 39200 39264 39335 39358>, + <39050 39009 39008 39041 39081 39099>, + <38880 38842 38841 38865 38900 38916>, + <38713 38691 38693 38720 38756 38772>, + <38542 38550 38557 38590 38627 38643>, + <38387 38418 38432 38473 38508 38522>, + <38263 38294 38317 38365 38401 38412>, + <38157 38180 38211 38265 38304 38314>, + <38064 38070 38113 38171 38216 38223>, + <37986 37976 38022 38086 38135 38140>, + <37917 37900 37937 38010 38060 38065>, + <37848 37835 37860 37937 37982 37986>, + <37782 37777 37797 37865 37894 37888>, + <37715 37725 37739 37794 37799 37778>, + <37643 37670 37679 37713 37700 37666>, + <37569 37604 37615 37624 37598 37556>, + <37490 37526 37541 37530 37495 37449>, + <37407 37427 37443 37435 37399 37350>, + <37319 37297 37322 37330 37295 37246>, + <37229 37161 37179 37201 37169 37124>, + <37137 37018 37007 37051 37025 36974>, + <37048 36872 36828 36918 36906 36854>, + <36960 36738 36716 36860 36862 36811>, + <36916 36679 36661 36840 36851 36799>, + <36875 36619 36595 36819 36834 36782>, + <36828 36534 36508 36783 36807 36754>, + <36770 36392 36366 36696 36726 36668>, + <36693 36182 36028 36399 36413 36339>, + <36602 35947 35361 35874 35904 35836>, + <36502 35705 34564 35163 35233 35171>, + <36175 35395 33682 34163 34291 34247>, + <36109 34856 32472 32640 32894 32858>, + <36125 34125 29462 28844 28234 28930>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12831 12165 11676 11314 11172>, + <12834 12127 11611 11248 11106>, + <12819 12096 11589 11225 11083>, + <12785 12072 11558 11204 11072>, + <12757 12045 11530 11186 11059>, + <12729 12018 11508 11171 11049>, + <12703 11993 11487 11158 11041>, + <12677 11972 11469 11148 11034>, + <12646 11954 11454 11139 11029>, + <12608 11935 11442 11132 11026>, + <12558 11912 11430 11128 11024>, + <12519 11892 11421 11125 11023>, + <12503 11874 11418 11122 11022>, + <12491 11864 11416 11120 11021>, + <12481 11861 11414 11118 11021>, + <12455 11859 11411 11117 11021>, + <12431 11858 11409 11117 11021>, + <12428 11860 11408 11117 11022>, + <12433 11862 11407 11119 11023>, + <12438 11864 11408 11121 11025>, + <12452 11866 11413 11123 11026>, + <12466 11868 11415 11124 11027>, + <12466 11872 11414 11124 11028>, + <12466 11878 11412 11124 11029>, + <12467 11886 11415 11125 11031>, + <12472 11892 11422 11129 11034>, + <12477 11894 11428 11133 11037>, + <12483 11895 11432 11137 11040>, + <12488 11896 11435 11141 11043>, + <12494 11901 11441 11145 11046>, + <12502 11908 11447 11149 11050>, + <12515 11915 11454 11153 11053>, + <12523 11923 11459 11158 11056>, + <12525 11931 11465 11163 11059>, + <12526 11939 11474 11168 11063>, + <12530 11948 11485 11173 11068>, + <12539 11959 11492 11180 11073>, + <12552 11972 11496 11187 11077>, + <12568 11987 11502 11195 11082>, + <12587 12007 11513 11200 11087>, + <12601 12024 11526 11206 11092>, + <12611 12032 11537 11213 11098>, + <12630 12039 11547 11220 11102>, + <12674 12046 11549 11225 11105>, + <12675 12062 11554 11230 11107>, + <12713 12070 11570 11236 11112>, + <12703 12067 11572 11237 11112>, + <12737 12055 11568 11238 11113>, + <12719 12057 11572 11243 11115>, + <12698 12081 11577 11247 11120>, + <12709 12084 11586 11255 11125>, + <12728 12095 11596 11259 11129>, + <12750 12128 11613 11269 11137>, + <12761 12139 11631 11286 11148>, + <12761 12139 11631 11286 11148>, + <12761 12139 11631 11286 11148>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10618 10734 10681 10386 10213>, + <10471 10696 10751 10487 10333>, + <10481 10696 10798 10720 10479>, + <10485 10692 10774 10704 10541>, + <10476 10662 10739 10662 10567>, + <10449 10605 10691 10619 10559>, + <10425 10561 10641 10565 10537>, + <10410 10528 10592 10523 10512>, + <10397 10502 10540 10483 10478>, + <10386 10478 10517 10468 10460>, + <10374 10461 10517 10467 10468>, + <10367 10461 10521 10467 10477>, + <10364 10474 10526 10470 10464>, + <10364 10490 10529 10478 10431>, + <10366 10503 10531 10486 10418>, + <10380 10517 10538 10483 10432>, + <10399 10532 10549 10469 10443>, + <10410 10550 10561 10452 10429>, + <10419 10568 10574 10431 10391>, + <10432 10585 10586 10426 10370>, + <10514 10603 10597 10426 10361>, + <10639 10623 10617 10428 10360>, + <10664 10644 10691 10542 10485>, + <10576 10651 10763 10728 10686>, + <10502 10636 10719 10717 10694>, + <10510 10613 10582 10508 10551>, + <10525 10609 10534 10400 10480>, + <10531 10619 10563 10516 10778>, + <10534 10626 10601 10670 11141>, + <10536 10628 10633 10742 11077>, + <10540 10630 10662 10793 10762>, + <10545 10632 10675 10799 10557>, + <10549 10636 10681 10702 10460>, + <10553 10642 10684 10587 10391>, + <10557 10650 10674 10515 10334>, + <10560 10658 10660 10456 10292>, + <10563 10666 10663 10441 10294>, + <10568 10673 10681 10440 10360>, + <10574 10682 10699 10448 10429>, + <10582 10697 10728 10541 10478>, + <10592 10708 10756 10654 10516>, + <10603 10709 10763 10663 10533>, + <10623 10710 10766 10652 10545>, + <10676 10711 10766 10666 10612>, + <10974 10794 10789 10674 10650>, + <10942 10931 10838 10600 10511>, + <10949 10970 10819 10602 10498>, + <10748 10973 10760 10602 10499>, + <10672 11458 10779 10608 10552>, + <10567 11840 10840 10755 10657>, + <10451 11407 10854 10625 10534>, + <10208 11167 10844 10448 10302>, + <10125 10909 10737 10349 10238>, + <10302 10600 10599 10309 10170>, + <10302 10600 10599 10309 10170>, + <10302 10600 10599 10309 10170>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19590 19380 19344 19347 19341>, + <19535 19429 19391 19350 19346>, + <19601 19490 19417 19385 19371>, + <19649 19520 19427 19394 19378>, + <19665 19530 19433 19399 19383>, + <19676 19536 19440 19403 19388>, + <19681 19539 19445 19406 19394>, + <19680 19540 19446 19408 19398>, + <19677 19539 19445 19408 19399>, + <19673 19538 19443 19407 19398>, + <19667 19536 19440 19404 19396>, + <19661 19530 19437 19401 19392>, + <19657 19518 19433 19398 19388>, + <19651 19508 19429 19396 19384>, + <19644 19503 19424 19393 19379>, + <19636 19500 19419 19389 19376>, + <19628 19496 19415 19384 19372>, + <19622 19493 19412 19379 19369>, + <19615 19490 19409 19374 19365>, + <19611 19486 19406 19369 19361>, + <19613 19483 19402 19364 19356>, + <19618 19484 19400 19361 19353>, + <19618 19488 19409 19365 19354>, + <19611 19492 19420 19371 19356>, + <19605 19497 19415 19368 19353>, + <19610 19501 19400 19349 19337>, + <19620 19499 19392 19340 19328>, + <19623 19493 19389 19347 19365>, + <19621 19490 19388 19360 19410>, + <19618 19488 19390 19376 19412>, + <19615 19486 19395 19394 19403>, + <19611 19486 19401 19400 19394>, + <19607 19485 19409 19396 19386>, + <19604 19485 19413 19389 19378>, + <19600 19486 19412 19382 19367>, + <19597 19487 19409 19373 19356>, + <19594 19486 19406 19364 19349>, + <19591 19483 19402 19355 19342>, + <19584 19480 19398 19350 19339>, + <19577 19478 19396 19351 19337>, + <19572 19475 19394 19352 19337>, + <19570 19472 19391 19352 19338>, + <19565 19467 19387 19351 19344>, + <19537 19464 19386 19353 19351>, + <19424 19450 19383 19353 19353>, + <19419 19418 19370 19341 19342>, + <19432 19407 19368 19339 19328>, + <19312 19403 19353 19334 19323>, + <19311 19318 19352 19331 19314>, + <19304 19288 19346 19317 19310>, + <19296 19317 19343 19340 19336>, + <19284 19325 19340 19359 19350>, + <19288 19334 19341 19361 19352>, + <19350 19399 19377 19355 19350>, + <19350 19399 19377 19355 19350>, + <19350 19399 19377 19355 19350>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15352 15180 14965 14853 14835>, + <15762 15300 14994 14830 14800>, + <15666 15242 15042 14901 14863>, + <15512 15153 14979 14872 14844>, + <15381 15064 14916 14835 14815>, + <15256 14979 14872 14808 14793>, + <15156 14917 14833 14785 14774>, + <15080 14869 14802 14763 14755>, + <15019 14831 14777 14742 14735>, + <14968 14799 14755 14727 14723>, + <14923 14774 14734 14719 14719>, + <14885 14754 14719 14713 14716>, + <14854 14740 14711 14708 14714>, + <14827 14730 14706 14702 14711>, + <14804 14723 14701 14698 14707>, + <14781 14717 14697 14694 14704>, + <14763 14712 14692 14691 14700>, + <14755 14707 14688 14687 14697>, + <14751 14703 14683 14684 14694>, + <14745 14699 14679 14679 14690>, + <14729 14696 14674 14674 14684>, + <14709 14697 14674 14671 14681>, + <14705 14703 14716 14708 14714>, + <14716 14715 14774 14773 14775>, + <14730 14765 14801 14800 14798>, + <14752 14815 14819 14814 14806>, + <14780 14814 14822 14817 14808>, + <14792 14796 14810 14800 14762>, + <14797 14780 14791 14770 14704>, + <14800 14766 14773 14741 14692>, + <14797 14754 14754 14709 14689>, + <14789 14743 14736 14692 14686>, + <14781 14733 14718 14685 14681>, + <14774 14725 14704 14680 14677>, + <14766 14718 14695 14676 14673>, + <14758 14712 14688 14673 14669>, + <14749 14706 14685 14670 14666>, + <14739 14700 14682 14668 14664>, + <14728 14696 14681 14668 14663>, + <14716 14694 14684 14676 14674>, + <14707 14692 14688 14686 14689>, + <14700 14687 14687 14686 14687>, + <14697 14680 14683 14681 14678>, + <14698 14675 14680 14681 14680>, + <14754 14662 14671 14678 14678>, + <14742 14659 14654 14659 14654>, + <14729 14663 14649 14655 14657>, + <14863 14661 14651 14646 14650>, + <14862 14753 14640 14628 14635>, + <14868 14780 14640 14631 14626>, + <14873 14751 14662 14645 14646>, + <14884 14761 14681 14646 14655>, + <14883 14761 14686 14651 14661>, + <14858 14712 14658 14662 14671>, + <14858 14712 14658 14662 14671>, + <14858 14712 14658 14662 14671>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <14626 13346 13914 15020 15251>, + <13850 14543 17388 16820 17112>, + <14944 16642 17854 19397 19650>, + <15934 18064 18570 20390 20608>, + <16591 18822 19410 21247 21559>, + <17185 19474 20232 21880 22756>, + <17777 20242 21078 22454 24131>, + <18368 21082 21711 23269 25667>, + <18908 21961 22236 24447 27481>, + <19413 23115 22973 25591 28846>, + <20085 24268 24563 26459 29615>, + <20858 24831 26190 27287 30069>, + <21662 25099 26991 28342 30086>, + <22550 25397 27504 29651 29962>, + <23603 25945 27579 30613 29988>, + <25163 26852 27940 31256 30685>, + <26731 27887 28536 31528 31777>, + <27733 29082 29714 31498 32826>, + <28451 30286 31252 31822 33979>, + <29434 31305 32445 32486 35248>, + <31826 32539 33463 33618 36938>, + <35039 35695 35474 34727 37971>, + <36912 41458 44393 36131 37136>, + <38374 45161 53601 37665 34925>, + <40332 46947 49350 35494 30834>, + <46637 47957 34389 24735 22004>, + <55992 45659 26417 19060 17632>, + <58578 39119 23823 19307 26884>, + <55847 35358 22635 19884 38212>, + <52192 33904 22836 22638 38978>, + <49217 33151 23609 29263 37804>, + <46261 33375 25169 33713 37178>, + <44061 34307 29377 36471 37327>, + <42446 35650 33453 37848 37354>, + <41201 38336 36171 37309 35434>, + <40542 40784 38316 36045 32381>, + <40135 41733 39357 34655 31742>, + <39723 42338 40033 32439 31790>, + <38863 42676 40238 31289 31817>, + <37802 43661 39678 32431 30814>, + <37878 44496 38494 33832 29416>, + <40849 42202 35670 32258 29350>, + <41170 38953 31685 27870 29964>, + <30371 38907 31669 28892 33772>, + <21222 38624 32978 29782 37021>, + <23446 29605 31084 24948 29747>, + <24563 24905 29708 24381 21139>, + <12648 23103 23109 23492 20692>, + <12569 13598 23625 26751 20474>, + <12328 12303 22296 21114 21253>, + <12117 13458 19923 26867 28842>, + <11889 13488 16936 28165 26035>, + <11942 13645 16434 25375 22283>, + <13573 21627 23301 19590 18027>, + <13573 21627 23301 19590 18027>, + <13573 21627 23301 19590 18027>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15583 15067 14769 14625 14588>, + <15689 15112 14784 14602 14562>, + <15638 15089 14806 14645 14598>, + <15555 15049 14776 14633 14590>, + <15479 15001 14745 14618 14579>, + <15403 14951 14723 14606 14572>, + <15339 14915 14703 14596 14566>, + <15286 14885 14686 14586 14560>, + <15240 14859 14669 14576 14552>, + <15198 14836 14655 14568 14545>, + <15160 14816 14643 14562 14541>, + <15127 14798 14632 14557 14538>, + <15099 14782 14625 14553 14534>, + <15074 14770 14620 14548 14530>, + <15052 14763 14614 14544 14526>, + <15030 14758 14609 14540 14522>, + <15014 14754 14604 14535 14518>, + <15006 14749 14600 14531 14515>, + <15001 14746 14597 14527 14512>, + <14997 14742 14593 14523 14508>, + <14994 14740 14590 14518 14502>, + <14991 14741 14590 14515 14499>, + <14991 14747 14614 14535 14515>, + <14994 14756 14644 14566 14543>, + <15000 14782 14650 14572 14549>, + <15013 14805 14652 14571 14545>, + <15033 14805 14652 14569 14543>, + <15042 14797 14646 14565 14543>, + <15046 14790 14638 14560 14543>, + <15048 14785 14633 14557 14540>, + <15047 14781 14628 14554 14534>, + <15045 14778 14625 14551 14528>, + <15043 14775 14623 14546 14523>, + <15040 14774 14621 14541 14518>, + <15038 14774 14618 14536 14511>, + <15037 14774 14615 14531 14504>, + <15035 14774 14614 14526 14499>, + <15035 14774 14612 14521 14494>, + <15035 14774 14612 14519 14493>, + <15037 14777 14615 14524 14497>, + <15039 14780 14618 14529 14503>, + <15048 14781 14618 14530 14504>, + <15053 14782 14617 14529 14504>, + <15054 14784 14618 14531 14508>, + <15039 14779 14616 14530 14510>, + <15041 14767 14605 14517 14494>, + <15043 14765 14602 14515 14489>, + <15041 14762 14597 14508 14482>, + <15042 14759 14592 14499 14472>, + <15042 14760 14591 14495 14466>, + <15043 14768 14602 14513 14489>, + <15049 14782 14613 14526 14503>, + <15063 14795 14621 14532 14509>, + <15092 14819 14636 14537 14515>, + <15092 14819 14636 14537 14515>, + <15092 14819 14636 14537 14515>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6273 5766 5461 5176 4960 4879>, + <6270 5769 5472 5168 4955 4876>, + <6271 5777 5472 5160 4950 4873>, + <6275 5787 5467 5152 4946 4869>, + <6279 5796 5460 5145 4941 4866>, + <6282 5799 5458 5141 4937 4864>, + <6285 5799 5454 5139 4933 4860>, + <6290 5800 5448 5137 4929 4858>, + <6291 5797 5444 5133 4926 4857>, + <6283 5786 5439 5127 4923 4856>, + <6274 5780 5436 5121 4920 4855>, + <6273 5779 5435 5117 4918 4854>, + <6274 5780 5434 5113 4916 4854>, + <6275 5780 5433 5108 4915 4853>, + <6272 5782 5432 5104 4914 4853>, + <6269 5782 5431 5104 4913 4853>, + <6263 5785 5427 5105 4913 4854>, + <6257 5788 5423 5106 4913 4855>, + <6255 5788 5425 5106 4913 4855>, + <6259 5786 5429 5106 4914 4855>, + <6268 5786 5428 5107 4915 4855>, + <6277 5780 5420 5108 4916 4856>, + <6289 5773 5416 5109 4917 4858>, + <6298 5775 5419 5111 4919 4859>, + <6302 5782 5424 5114 4921 4860>, + <6305 5786 5427 5117 4924 4862>, + <6304 5788 5430 5120 4925 4864>, + <6284 5789 5433 5124 4927 4865>, + <6266 5788 5442 5128 4930 4866>, + <6264 5784 5450 5133 4932 4868>, + <6256 5785 5450 5138 4936 4871>, + <6251 5792 5447 5144 4939 4875>, + <6256 5799 5446 5147 4942 4877>, + <6264 5807 5445 5149 4946 4879>, + <6266 5813 5446 5152 4949 4881>, + <6265 5813 5449 5156 4952 4883>, + <6264 5810 5457 5160 4954 4885>, + <6265 5809 5463 5163 4956 4887>, + <6266 5807 5467 5166 4958 4889>, + <6267 5803 5470 5170 4960 4891>, + <6261 5804 5473 5174 4962 4892>, + <6254 5813 5477 5176 4965 4894>, + <6258 5816 5488 5178 4967 4896>, + <6276 5818 5502 5188 4970 4898>, + <6293 5829 5504 5188 4974 4901>, + <6310 5853 5511 5192 4979 4905>, + <6313 5848 5518 5205 4980 4904>, + <6326 5914 5512 5208 4979 4904>, + <6411 5969 5527 5208 4981 4908>, + <6446 6016 5608 5224 4981 4907>, + <6517 5932 5632 5231 4983 4908>, + <6559 5914 5614 5241 4988 4913>, + <6539 5914 5382 5282 4999 4919>, + <6371 5914 5383 5321 5009 4928>, + <6371 5914 5383 5321 5009 4928>, + <6371 5914 5383 5321 5009 4928>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10246 10963 11332 11617 11229 11197>, + <10335 10972 11325 11556 11197 11170>, + <10426 10984 11313 11496 11161 11136>, + <10512 10997 11296 11438 11124 11099>, + <10586 11008 11276 11384 11088 11061>, + <10643 11013 11253 11335 11056 11026>, + <10681 11015 11224 11283 11021 10986>, + <10710 11016 11194 11241 10992 10949>, + <10734 11016 11168 11222 10973 10925>, + <10753 11018 11144 11206 10953 10907>, + <10770 11023 11138 11198 10933 10890>, + <10790 11037 11143 11189 10909 10861>, + <10812 11057 11153 11181 10893 10840>, + <10838 11082 11176 11185 10904 10838>, + <10871 11114 11219 11201 10936 10840>, + <10907 11148 11257 11224 10969 10846>, + <10937 11186 11292 11271 11006 10859>, + <10963 11216 11327 11327 11050 10868>, + <10984 11224 11369 11394 11105 10891>, + <11000 11228 11405 11456 11177 10952>, + <11013 11234 11405 11469 11298 11068>, + <11026 11255 11387 11460 11507 11332>, + <11040 11279 11379 11451 11604 11464>, + <11049 11297 11399 11445 11460 11340>, + <11050 11314 11434 11439 11275 11175>, + <11045 11327 11461 11447 11242 11156>, + <11002 11337 11485 11475 11234 11165>, + <10694 11346 11498 11502 11235 11175>, + <10400 11358 11512 11519 11267 11198>, + <10287 11370 11526 11537 11315 11236>, + <9963 11371 11538 11563 11359 11267>, + <9736 11364 11552 11597 11409 11299>, + <9715 11353 11557 11627 11448 11344>, + <9704 11327 11554 11657 11516 11428>, + <9696 11280 11548 11676 11568 11504>, + <9689 11233 11536 11673 11548 11527>, + <9684 11185 11517 11657 11499 11514>, + <9679 11128 11491 11640 11465 11464>, + <9675 11064 11434 11621 11442 11359>, + <9672 10972 11355 11605 11418 11282>, + <9669 10660 11260 11599 11387 11236>, + <9667 9969 11151 11591 11378 11223>, + <9665 9745 11021 11549 11404 11273>, + <9663 9693 10776 11488 11316 11262>, + <9661 9674 10267 11370 11240 11093>, + <9658 9662 9938 11313 11172 10949>, + <9657 9656 9732 11277 11179 10973>, + <9654 9652 9671 11289 11180 10946>, + <9652 9649 9657 11288 11188 11032>, + <9650 9648 9652 11291 11232 11050>, + <9648 9647 9650 11145 11124 10877>, + <9647 9647 9649 10898 10967 10843>, + <9647 9648 9648 10555 10904 10736>, + <9647 9648 9649 10092 10778 10572>, + <9647 9648 9649 10092 10778 10572>, + <9647 9648 9649 10092 10778 10572>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13438 13349 13313 13288 13278 13276>, + <13442 13353 13316 13289 13278 13276>, + <13450 13359 13318 13291 13279 13277>, + <13458 13364 13321 13292 13280 13278>, + <13465 13369 13323 13293 13280 13278>, + <13468 13371 13325 13294 13281 13279>, + <13468 13372 13327 13295 13282 13280>, + <13467 13372 13328 13296 13283 13281>, + <13467 13372 13328 13297 13284 13282>, + <13465 13372 13329 13298 13285 13283>, + <13463 13372 13329 13299 13285 13283>, + <13460 13370 13329 13299 13286 13284>, + <13457 13368 13329 13299 13286 13284>, + <13453 13367 13328 13299 13287 13285>, + <13448 13367 13326 13299 13288 13286>, + <13443 13367 13326 13300 13289 13287>, + <13437 13366 13326 13301 13291 13288>, + <13430 13364 13326 13301 13292 13289>, + <13423 13360 13325 13300 13293 13289>, + <13417 13354 13324 13298 13293 13290>, + <13411 13349 13322 13297 13293 13291>, + <13405 13346 13317 13297 13292 13291>, + <13399 13343 13313 13295 13290 13290>, + <13394 13340 13311 13293 13286 13284>, + <13390 13338 13309 13291 13281 13278>, + <13386 13337 13308 13289 13280 13278>, + <13382 13336 13308 13288 13280 13278>, + <13377 13335 13307 13288 13280 13278>, + <13373 13333 13307 13289 13279 13278>, + <13372 13331 13307 13289 13278 13277>, + <13372 13329 13306 13289 13278 13277>, + <13373 13327 13306 13288 13279 13277>, + <13380 13326 13305 13288 13279 13277>, + <13390 13325 13305 13288 13280 13278>, + <13402 13326 13305 13289 13281 13279>, + <13417 13327 13306 13289 13281 13279>, + <13436 13332 13306 13289 13281 13279>, + <13460 13337 13307 13289 13280 13279>, + <13491 13341 13309 13288 13280 13279>, + <13530 13345 13310 13287 13280 13279>, + <13583 13350 13312 13288 13281 13280>, + <13648 13357 13313 13288 13281 13280>, + <13724 13373 13317 13288 13280 13280>, + <13822 13415 13318 13286 13279 13278>, + <13959 13484 13314 13286 13277 13276>, + <14178 13716 13341 13289 13283 13282>, + <14352 14103 13390 13292 13288 13285>, + <14599 15185 13520 13297 13290 13287>, + <15191 18133 14031 13301 13292 13289>, + <16643 27704 15750 13305 13292 13289>, + <19982 65535 22102 13303 13287 13285>, + <28174 65535 53371 13308 13286 13285>, + <52455 65535 65535 13327 13291 13288>, + <65535 65535 65535 13441 13297 13297>, + <65535 65535 65535 13441 13297 13297>, + <65535 65535 65535 13441 13297 13297>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16632 16558 16527 16486 16460 16461>, + <16690 16583 16535 16481 16460 16461>, + <16756 16617 16547 16479 16461 16463>, + <16821 16651 16560 16478 16461 16464>, + <16876 16679 16570 16477 16461 16465>, + <16914 16694 16573 16477 16462 16466>, + <16934 16700 16572 16478 16462 16466>, + <16948 16704 16571 16480 16463 16466>, + <16951 16705 16569 16481 16464 16466>, + <16951 16706 16566 16483 16465 16466>, + <16951 16707 16565 16485 16467 16466>, + <16949 16712 16570 16489 16470 16467>, + <16942 16722 16577 16495 16473 16468>, + <16933 16734 16588 16503 16477 16470>, + <16925 16749 16605 16511 16481 16473>, + <16915 16755 16624 16521 16485 16477>, + <16901 16752 16651 16534 16490 16480>, + <16879 16744 16671 16549 16497 16486>, + <16854 16725 16675 16577 16508 16493>, + <16828 16686 16675 16606 16524 16502>, + <16801 16653 16659 16609 16542 16518>, + <16775 16625 16601 16591 16565 16544>, + <16750 16602 16552 16567 16573 16555>, + <16727 16587 16527 16520 16529 16521>, + <16706 16574 16510 16476 16474 16473>, + <16687 16567 16505 16470 16463 16463>, + <16676 16563 16502 16469 16460 16460>, + <16663 16559 16501 16468 16460 16459>, + <16651 16554 16502 16471 16464 16462>, + <16652 16549 16504 16476 16471 16466>, + <16667 16543 16506 16482 16479 16473>, + <16681 16534 16508 16488 16488 16482>, + <16687 16527 16508 16494 16496 16492>, + <16691 16531 16505 16502 16504 16503>, + <16696 16541 16503 16507 16508 16509>, + <16700 16550 16506 16509 16505 16505>, + <16704 16561 16513 16508 16497 16495>, + <16707 16572 16522 16503 16487 16485>, + <16710 16580 16532 16488 16476 16477>, + <16710 16587 16538 16480 16470 16474>, + <16709 16602 16538 16479 16473 16478>, + <16707 16622 16535 16480 16476 16484>, + <16711 16625 16529 16480 16474 16482>, + <16720 16622 16525 16471 16456 16458>, + <16731 16622 16526 16457 16442 16439>, + <16745 16632 16548 16471 16456 16462>, + <16751 16643 16580 16486 16478 16496>, + <16742 16727 16628 16507 16515 16534>, + <16786 17157 16698 16539 16551 16571>, + <16962 19449 17015 16570 16568 16578>, + <17374 32712 20051 16535 16489 16487>, + <18394 65535 48869 16526 16473 16476>, + <22887 65535 65535 16571 16476 16477>, + <19552 65535 65535 16699 16486 16478>, + <19552 65535 65535 16699 16486 16478>, + <19552 65535 65535 16699 16486 16478>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <12998 17346 19805 22868 22257 22082>, + <13988 17846 20427 23058 21935 22074>, + <14956 18528 20978 23076 21560 22022>, + <15872 19219 21414 22953 21179 21933>, + <16707 19749 21695 22721 20834 21816>, + <17433 19945 21780 22404 20571 21676>, + <18066 19890 21684 21634 20389 21337>, + <18632 19777 21472 20706 20182 20928>, + <19066 19617 20989 20111 19767 20687>, + <19408 19322 19998 19504 19055 20500>, + <19673 19043 19141 19067 18351 20201>, + <19849 18760 18455 18199 17564 19426>, + <19974 18545 17846 17299 16933 18674>, + <20125 18728 17284 16758 16693 18354>, + <20377 19554 16802 16152 16596 18160>, + <20676 20516 16745 16018 16629 18144>, + <20945 21825 17338 15738 16716 17888>, + <21218 22856 18308 15511 16641 17579>, + <21425 22962 20321 15673 16280 17108>, + <21619 22952 22762 16097 15872 16494>, + <21829 23000 23649 17426 16245 16705>, + <21910 23318 24061 21256 18771 18186>, + <21924 23566 24203 23871 20852 19484>, + <21946 23395 23891 24730 21938 20110>, + <22117 23059 23495 25225 22608 20569>, + <22464 23026 23324 24490 22292 20812>, + <22385 23390 23170 22344 21527 20979>, + <20182 23598 23103 21486 20570 20947>, + <17965 23497 23209 21986 18953 19647>, + <17010 23368 23349 22356 17773 17994>, + <14796 22957 23478 22082 17758 17325>, + <13329 21925 23755 21716 17932 16931>, + <13286 21120 24108 21790 18284 16917>, + <13323 20628 24562 22358 19477 17819>, + <13395 20093 24852 23079 20799 19130>, + <13528 20205 24771 24164 21736 20538>, + <13635 21824 24625 25340 22428 21866>, + <13701 23155 24682 25446 22677 22546>, + <13774 23400 24853 24661 22990 23163>, + <13818 23512 24905 23897 23185 23466>, + <13841 22111 24540 23511 22922 22878>, + <13854 16808 23863 23104 22461 22520>, + <13662 14892 23371 22522 22150 24512>, + <13253 14447 21205 21484 22321 24809>, + <13052 13691 15428 21288 18837 19127>, + <12891 13252 15267 20078 19522 18388>, + <12813 13343 14551 19668 19948 17297>, + <12915 12515 13972 20069 18202 16129>, + <12441 10739 13470 20152 17557 15803>, + <11358 9442 11783 19947 17384 15779>, + <10316 9035 9647 19917 17652 16955>, + <9699 8885 8905 20438 17838 16302>, + <9385 8778 8792 18776 18600 16070>, + <16908 8722 8738 16528 21194 20404>, + <16908 8722 8738 16528 21194 20404>, + <16908 8722 8738 16528 21194 20404>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5718 5345 5174 5040 4993 4982>, + <5721 5348 5175 5039 4993 4983>, + <5723 5349 5174 5038 4993 4984>, + <5724 5349 5173 5037 4993 4984>, + <5724 5349 5171 5036 4993 4985>, + <5725 5347 5168 5036 4994 4986>, + <5723 5343 5165 5036 4994 4986>, + <5719 5337 5161 5036 4995 4987>, + <5715 5331 5157 5036 4996 4987>, + <5709 5326 5152 5036 4996 4988>, + <5702 5321 5150 5036 4997 4989>, + <5695 5318 5148 5037 4998 4989>, + <5689 5315 5147 5038 4999 4990>, + <5681 5315 5148 5039 5000 4991>, + <5674 5316 5149 5042 5002 4993>, + <5665 5317 5152 5045 5004 4994>, + <5656 5314 5159 5048 5007 4996>, + <5644 5309 5163 5053 5010 4998>, + <5633 5300 5164 5060 5013 5001>, + <5623 5284 5163 5067 5018 5004>, + <5615 5272 5156 5067 5023 5009>, + <5608 5263 5136 5062 5028 5016>, + <5601 5255 5120 5054 5030 5018>, + <5596 5250 5112 5039 5014 5004>, + <5594 5247 5107 5025 4995 4986>, + <5593 5246 5106 5023 4991 4983>, + <5592 5248 5106 5022 4990 4983>, + <5590 5249 5106 5022 4990 4983>, + <5588 5249 5107 5024 4991 4983>, + <5591 5250 5109 5027 4993 4984>, + <5601 5252 5111 5029 4995 4986>, + <5615 5254 5113 5031 4998 4989>, + <5632 5258 5116 5033 5001 4992>, + <5653 5265 5117 5037 5005 4996>, + <5676 5275 5119 5039 5007 4999>, + <5702 5289 5124 5041 5006 4998>, + <5732 5308 5130 5041 5004 4995>, + <5765 5330 5137 5041 5001 4993>, + <5803 5354 5146 5037 4998 4991>, + <5848 5381 5156 5035 4997 4990>, + <5899 5410 5166 5036 4998 4992>, + <5961 5442 5177 5038 5000 4994>, + <6034 5490 5194 5039 4999 4993>, + <6128 5566 5219 5037 4993 4986>, + <6261 5680 5242 5034 4988 4979>, + <6473 5949 5341 5044 4998 4991>, + <6641 6316 5450 5053 5008 5003>, + <6874 7273 5674 5064 5019 5015>, + <7427 9649 6205 5079 5031 5027>, + <8663 17040 7694 5093 5036 5029>, + <11266 49771 13285 5086 5011 5001>, + <17296 65535 42895 5101 5006 4998>, + <34800 65535 65535 5168 5012 5002>, + <65535 65535 65535 5415 5022 5011>, + <65535 65535 65535 5415 5022 5011>, + <65535 65535 65535 5415 5022 5011>; + }; + +}; From b14747a8c49410282a50388d9ff77dcd23bd3f92 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Wed, 26 Apr 2023 12:20:52 +0800 Subject: [PATCH 1028/1247] update semtech sar params && Fix mounting issues 1.update semtech params 2.fix mounting issues Change-Id: I14423c3c38da4a7c37e2e4ec9a5df2130cc19691 Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2589656 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 37 ++++++++++++++++++------------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index d0a4381a7db3..f6bf9c62b9f5 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -79,13 +79,14 @@ Semtech_sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; - Semtech,power-supply-type = <0>; + Semtech,power-supply-type = <1>; cap_vdd-supply = <&L12A>; pinctrl-names = "default","sleep"; pinctrl-0 = <&sar_int_bangkk_default>; pinctrl-1 = <&sar_int_bangkk_sleep>; interrupt-parent = <&tlmm>; interrupts = <58 0x02>; + interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 58 0x02>; /*use PH5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ @@ -114,19 +115,19 @@ 0x806C 0xFFF9EF 0x8078 0xFEF9FF 0x8084 0xFFFFFF - 0x8098 0x9B8D - 0x80B8 0x362D - 0x80D8 0x5A4E - 0x80F8 0xAD8D - 0x8118 0x6E64 + 0x8098 0x6836 + 0x80B8 0x2019 + 0x80D8 0x4D40 + 0x80F8 0x5A23 + 0x8118 0x4637 0x8138 0xFF 0x8158 0xFF 0x8178 0xFF - 0x80A0 0x0 + 0x80A0 0x20200001 0x80C0 0x0 - 0x80E0 0x0 + 0x80E0 0x20200001 0x8100 0x0 - 0x8120 0x0 + 0x8120 0x20200002 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -134,11 +135,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x54AC5300 - 0x80B0 0x54AC5300 - 0x80D0 0x54AC5300 - 0x80F0 0x54AC5300 - 0x8110 0x54AC5300 + 0x8090 0x7C845300 + 0x80B0 0x7C845300 + 0x80D0 0x7C845300 + 0x80F0 0x7C845300 + 0x8110 0x7C845300 0x8130 0x54AC5300 0x8150 0x54AC5300 0x8170 0x54AC5300 @@ -159,7 +160,7 @@ 0x814C 0x60200031 0x816C 0x60200031 0x8024 0x7F7F - 0x8274 0x08 + 0x8274 0x00 0x4280 0x0E >; }; @@ -169,13 +170,11 @@ reg = < 0x12 >; //aw_sar,regulator-power-supply = <1>; sar-num = < 0 >; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_bangkk_default>; - pinctrl-1 = <&sar_int_bangkk_sleep>; interrupt-parent = < &tlmm >; interrupts = <58 0x02>; + interrupt-names = "awinic_irq"; irq-gpio = <&tlmm 58 0x02>; - cap_vdd-supply = <&L12A>; + //vcc0-supply = <&L12A>; channel_use_flag = <0x1f>; aw_sar,use_plug_cail; aw_sar,update_fw; From 771cd40509301a2635a84dcbb0dbaa2b7902c494 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Tue, 25 Apr 2023 20:39:42 +0800 Subject: [PATCH 1029/1247] arm/dts:bangkok add charger mode bangkok:modify focaltech and goodix dtsi for charger mode and power off suspend. Change-Id: I3c044d2e6fb3a1c21a51d6eed132c2047cd4c437 Reviewed-on: https://gerrit.mot.com/2589040 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 10e7d13f8d86..8a8e773b5ee9 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -99,6 +99,8 @@ goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; mmi,enable-gestures; + mmi,power-off-suspend; + mmi,usb-charger-detection; mmi,supported_gesture_type = <0x07>; status = "ok"; }; @@ -126,6 +128,8 @@ panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; mmi,enable-gestures; + mmi,power-off-suspend; + mmi,usb-charger-detection; mmi,supported_gesture_type = <0x07>; status = "ok"; }; From c49f3c5846f435f34490539577a97f496f9c5e74 Mon Sep 17 00:00:00 2001 From: Wei Deng Date: Thu, 27 Apr 2023 22:34:34 -0500 Subject: [PATCH 1030/1247] Revert "(CR):arm/dts:bangkok add charger mode" This reverts commit 8072ed6795297fcac61df8d90dfed8fef2144e2b. to fix resume issue Change-Id: Ib63e98bc6a4e5a65bfa4d382a3b812ebf42c3e90 Reviewed-on: https://gerrit.mot.com/2592062 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 4 ---- 1 file changed, 4 deletions(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 8a8e773b5ee9..10e7d13f8d86 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -99,8 +99,6 @@ goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; mmi,enable-gestures; - mmi,power-off-suspend; - mmi,usb-charger-detection; mmi,supported_gesture_type = <0x07>; status = "ok"; }; @@ -128,8 +126,6 @@ panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; mmi,enable-gestures; - mmi,power-off-suspend; - mmi,usb-charger-detection; mmi,supported_gesture_type = <0x07>; status = "ok"; }; From 7537f95d223c6cb792a95b95e2a8be589928b6d0 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Mon, 24 Apr 2023 17:42:33 +0800 Subject: [PATCH 1031/1247] dts/display:bangkok: Modify panel avdd timing Modify the pmic code with set=0 on the CSOT panel TM panel modify init code Change-Id: I046597f84b8e63a9f5f33a407edb2931adc0af09 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2587344 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Hua Tan Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 46 ++++++++++++++++++- ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 +- ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 1 + 3 files changed, 47 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 9bcce87b7dd4..19f9f3589695 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -141,6 +141,50 @@ qcom,supply-post-off-sleep = <2>; }; }; + + dsi_panel_pwr_supply_ext_bias_nt: dsi_panel_pwr_supply_ext_bias_nt { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-off-sleep = <1>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <1>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + }; }; &sde_dsi { @@ -200,7 +244,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <4095>; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index d0133e399b2e..b1bdbbdf4ea4 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -360,7 +360,7 @@ 39 01 00 00 00 00 02 59 09 39 01 00 00 00 00 02 6C 00 39 01 00 00 00 00 03 F0 AA 10 - 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 0D 13 19 16 00 0D 16 19 00 00 1B 05 05 13 13 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 13 0B 16 00 06 16 0B 00 00 1B 05 05 13 13 39 01 00 00 00 00 03 FF 5A 80 39 01 00 00 00 00 02 65 0E 39 01 00 00 00 00 02 F9 B9 diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 5c5b89c04621..ca980db528bd 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -82,6 +82,7 @@ qcom,mdss-dsi-v-bottom-border = <0>; qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 39 01 00 00 00 00 02 6F 06 39 01 00 00 00 00 02 B5 39 39 01 00 00 00 00 02 6F 07 From b0f4719fc03f36af034260a57623ddfc67289070 Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Fri, 28 Apr 2023 16:27:36 +0800 Subject: [PATCH 1032/1247] arm/dts: display: update max brightness for bangkk set bangkk panel max brightness to 1000 nits 4095 -> 1200 nits 3929 -> 1000 nits Change-Id: I00e9f927545b55126976d91931d0af9a6faa51f2 Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2592382 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 19f9f3589695..f82f88ef0381 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -209,8 +209,8 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; qcom,mdss-dsi-bl-inverted-dbv; qcom,mdss-dsi-no-panel-on-read-support; @@ -247,8 +247,8 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <4095>; - qcom,mdss-brightness-max-level = <4095>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-bl-is-exponent; From 52c38c97e67c2c7c6e695e05100b9da3564b5704 Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Thu, 4 May 2023 16:33:17 +0800 Subject: [PATCH 1033/1247] arm/dts: panel: correct the csot 655 panel name correct the csot 655 panel name for bangkk Change-Id: I8ab258174fba6cf7fb8f9a62d39275d36b48d7b9 Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2596092 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index b1bdbbdf4ea4..90880f7d3b65 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -12,7 +12,7 @@ &mdss_mdp { mot_csot_vtdr6115_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_csot_vtdr6115_655_1080x2400_dsc_vid { qcom,mdss-dsi-panel-name = - "mipi_moto_vid_csot_1080p_dsc_667"; + "mipi_moto_vid_csot_1080p_dsc_655"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,mdss-dsi-panel-physical-type = "oled"; qcom,mdss-dsi-virtual-channel-id = <0>; From bebf7fd2df467bc3383de74dca7e741620d7e289 Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Fri, 5 May 2023 13:11:49 +0800 Subject: [PATCH 1034/1247] arm/dts: display: set the default brightness for bangkk set the default brightness to 1757 for bangkk panel. Change-Id: I5d0203c5b5dc0bb8a5c5dc03d3d74eb1ec3dd2cd Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2597333 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index f82f88ef0381..8e18154038f1 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -211,6 +211,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <3929>; qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; qcom,mdss-dsi-bl-inverted-dbv; qcom,mdss-dsi-no-panel-on-read-support; @@ -249,6 +250,7 @@ qcom,mdss-dsi-bl-min-level = <1>; qcom,mdss-dsi-bl-max-level = <3929>; qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; qcom,mdss-dsi-no-panel-on-read-support; qcom,mdss-dsi-bl-is-exponent; From 1475eab023d94389ecc69cffd554f17d5cd1c5d9 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Fri, 28 Apr 2023 14:53:33 +0800 Subject: [PATCH 1035/1247] arm/dts: set the none ffc parameter Per the battery spec, set the none ffc parameter for normal charging. Change-Id: I3bf526ba1ea40afbf8a61347b4dbc93028dcbbf6 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2592246 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 14 +++++++++----- qcom/qg-batterydata-qb50-swd-5000mah.dtsi | 4 ++-- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 5820139571f7..e5223a4cf5ca 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -61,7 +61,7 @@ "time_to_full_now", "cp_input_voltage_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4500000>; + qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <1500000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 @@ -84,13 +84,17 @@ qcom,mmi-ffc-zones = <4500 243 534>, <4500 243 534>, <4500 243 534>, - <4530 534 1250>, - <4530 575 1250>, - <4530 731 1250>, + <4520 534 1250>, + <4520 575 1250>, + <4520 731 1250>, <4500 243 575>; qcom,iterm-ma = <243>; mmi,enable-factory-mode-aicl; + qcom,noffc-chg-iterm = <243>; + qcom,noffc-chg-iterm-45c = <390>; + qcom,noffc-qg-iterm = <500>; + qcom,noffc-max-fv = <4500>; }; &pm7250b_qg { @@ -188,7 +192,7 @@ <0 4200 1000 0 0 0 0>, <10 4250 3000 4500 1000 0 0>, <15 4500 3000 0 0 0 0>, - <45 4300 5800 4400 5200 4520 4000>, + <45 4300 5800 4400 5200 4510 4000>, <60 4200 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, diff --git a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi index aecded35dd4f..37d88e8c5326 100644 --- a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi +++ b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi @@ -4,8 +4,8 @@ qcom,qb50-swd-5000mah { /* 6559013_Heyuan_P562A_5000mAH_PM7250B_averaged_MasterSlave_Apr24th2023 */ serialnum = "SB18D87863"; qcom,sdam-magic-number = <0x18D87863>; - qcom,max-voltage-uv = <4500000>; - qcom,fg-cc-cv-threshold-uv = <4490000>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <3440>; From ea738f7a2cebaa90dd41bd292e598c37c1376a70 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Thu, 4 May 2023 17:50:43 +0800 Subject: [PATCH 1036/1247] arm/dts:bangkok add tp charger mode bangkok:add focal and goodix tp charger mode Change-Id: I44eacebdf6b6cb8db796eb952939e3ae3274b91a Reviewed-on: https://gerrit.mot.com/2596230 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 10e7d13f8d86..4de4aa0016ca 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -98,6 +98,7 @@ goodix,panel-max-p = <4096>; goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; + mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; status = "ok"; @@ -125,6 +126,7 @@ pinctrl-2 = <&pmx_ts_release>; panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; status = "ok"; From 5c6d2c45e61b359b8466c95c9f9ea492a7f21258 Mon Sep 17 00:00:00 2001 From: Sarannya S Date: Thu, 20 Apr 2023 13:24:52 +0530 Subject: [PATCH 1037/1247] ARM: dts: msm: no APPS wake for Sensors QMI Add 0x190 Sensors QMI service, to QRTR ADSP "no-wake-svc" node. This will ensure any packets intended for Sensor QMI service will not force a wake up on APPS. Mot-CRs-Fixed:(CR) Change-Id: I8c283d66c32312c8572fMontanaa1c9b3852d4ca2d93 Reviewed-on: https://gerrit.mot.com/2590351 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Daniel Finimundi Reviewed-by: Rafael Ortolan Reviewed-by: Joao Pedro Oneti Carvalho Reviewed-by: Tao Sun Submit-Approved: Jira Key --- qcom/blair.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index 226af70439b8..468edb3fb554 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -2286,6 +2286,8 @@ qcom,intents = <0x800 5 0x2000 3 0x4400 2>; + qcom,non-wake-svc = <0x51 + 0x190>; }; qcom,adsp_glink_ssr { From 71ff132ef14d230008990df412fdb0bd6e408ea7 Mon Sep 17 00:00:00 2001 From: tanhua1 Date: Mon, 8 May 2023 17:04:00 +0800 Subject: [PATCH 1038/1247] arm/dts: panel: correct the tm nt37703 655 panel name correct the tm nt37703 655 panel name for color tuning xml for bangkk Change-Id: I4a114abab8e255d2c357e135b745f171db46bc63 Signed-off-by: tanhua1 Reviewed-on: https://gerrit.mot.com/2599702 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index ca980db528bd..3ee9326b7271 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -1,7 +1,7 @@ &mdss_mdp { mot_tm_nt37703_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_tm_nt37703_655_1080x2400_dsc_vid { qcom,mdss-dsi-panel-name = - "mipi_moto_vid_tm_1080p_dsc_nt37703"; + "mipi_moto_vid_tm_1080p_dsc_655"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,mdss-dsi-panel-physical-type = "oled"; qcom,mdss-dsi-virtual-channel-id = <0>; From 4f93a83bdfd2418a9180acdee44c1e768f2d118d Mon Sep 17 00:00:00 2001 From: tinno61 Date: Fri, 5 May 2023 19:15:48 +0800 Subject: [PATCH 1039/1247] arm/dts:bangkok modify tp power off bangkok:add focal and goodix tp power off Change-Id: Ifffec8dd62325f5a5a7c94f0ba0c030665edb334 Reviewed-on: https://gerrit.mot.com/2597828 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 4de4aa0016ca..ea454501622a 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -98,6 +98,7 @@ goodix,panel-max-p = <4096>; goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; + mmi,power-off-suspend; mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; From 76b5b2e5650fa2a3d62b19bfa400cf051f87d3d6 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Mon, 8 May 2023 16:23:09 +0800 Subject: [PATCH 1040/1247] arm/dts:bangkok:modify tp spi frequency bangkok:modify focal and goodix tp spi max frequency to 9.6M Change-Id: Ia918878597de7e9d38acbc2bce030d43161d305c Reviewed-on: https://gerrit.mot.com/2599667 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Deng Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index ea454501622a..89fcd4e37158 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -78,7 +78,7 @@ goodix-berlin@0 { compatible = "goodix,gt9916S"; reg = <0x0>; - spi-max-frequency = <1000000>; + spi-max-frequency = <9600000>; mmi,status = "/chosen","mmi,panel_name","contains","nt37703"; //goodix,avdd-name = "avdd"; @@ -110,7 +110,7 @@ reg = <0x1>; //mmi,status = "/chosen","vtdr6115"; mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"; - spi-max-frequency = <6000000>; + spi-max-frequency = <9600000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2008>; focaltech,vdd-gpio = <&tlmm 11 0x00>; From efa3280122e07f2f7c44ff3b2c9686b7b5083ef6 Mon Sep 17 00:00:00 2001 From: lbh Date: Tue, 9 May 2023 16:01:40 +0800 Subject: [PATCH 1041/1247] [pnangn][charging]:config mmi,i2c-err-wa-dis WHY:i2c error workaround for pnangn may lead to low rate not charging HOW:config mmi,i2c-err-wa-dis to disable i2c error workaround for pnangn Change-Id: Ibc97897b772c4c5572dc5d5155c4073a36eb138a Signed-off-by: lbh Reviewed-on: https://gerrit.mot.com/2601148 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Qiong Xie Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/discrete_charging_pnangn.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_pnangn.dtsi b/qcom/discrete_charging_pnangn.dtsi index c72ca8a6a3b4..0195cc4ed03e 100644 --- a/qcom/discrete_charging_pnangn.dtsi +++ b/qcom/discrete_charging_pnangn.dtsi @@ -71,6 +71,7 @@ dpdm-supply = <&qusb_phy0>; mmi,qc3-support; + mmi,i2c-err-wa-dis; enable_sw_jeita; jeita_temp_above_t4_cv = <0>; jeita_temp_t3_to_t4_cv = <4100000>; From fbe06fef5928c6a5efb368a806f6123228596087 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 9 May 2023 10:53:35 +0800 Subject: [PATCH 1042/1247] dts/panel: bangkk: change the line number after vertical active region Ic start refresh panel 12 lines later than AP. So At the begin of VFP, IC still at the active region. That make esd check at that time, IC will not get hsync, IC can not switch to next line for scanning. that will display a blank line. Change the line number after vertical active region to start command. refer to https://gerrit.mot.com/#/c/2544718/ Change-Id: I6ac9f157436cdddd8d61c0bd5bb823cb6f7b2f42 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2600588 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 3ee9326b7271..0e373cb1b127 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -25,6 +25,7 @@ qcom,mdss-dsi-lane-3-state; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-dma-schedule-line = <15>; qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; qcom,bklt-dcs-2bytes-enabled; From e0ed76cdf5feda3dff8e9e2a9ab53ed30b6e63e8 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 11 May 2023 13:54:58 +0800 Subject: [PATCH 1043/1247] dts/display: Enable refresh rate switching dfps Supports switching between 60Hz and 120Hz refresh rates Change-Id: I66ed0ad2886686e8f1176d388d6fae7d949b3e72 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2603471 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 16 +++++++++++++++- ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 19 +++++++++++++++++++ ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 11 +++++++++++ 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 8e18154038f1..789a4a8fc6b2 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -180,7 +180,7 @@ qcom,supply-enable-load = <300000>; qcom,supply-disable-load = <0>; qcom,supply-pre-on-sleep = <0>; - qcom,supply-post-on-sleep = <2>; + qcom,supply-post-on-sleep = <10>; qcom,supply-pre-off-sleep = <2>; qcom,supply-post-off-sleep = <2>; }; @@ -206,6 +206,13 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dpfs-send-command; + qcom,mdss-dsi-pan-dfps-send-command-with-te-async; + qcom,mdss-dsi-pan-on-fps = <60>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; @@ -245,6 +252,13 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-dfps-send-command-with-te-async; + qcom,mdss-dsi-pan-on-fps = <60>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 90880f7d3b65..0b49790a29e0 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -390,6 +390,25 @@ qcom,mdss-dsc-bit-per-component = <10>; qcom,mdss-dsc-bit-per-pixel = <8>; qcom,mdss-dsc-block-prediction-enable; + + qcom,mdss-dsi-dfps-60-command = [ + 39 00 00 40 00 00 02 6C 00 + 39 00 00 40 00 00 02 62 00]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-90-command = [ + 39 00 00 40 00 00 02 6c 01 + 39 00 00 40 00 00 02 62 01 + 39 00 00 40 00 00 03 F0 AA 10 + 39 00 00 40 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-120-command = [ + 39 00 00 40 00 00 02 6c 01 + 39 00 00 40 00 00 02 62 00 + 39 00 00 40 00 00 03 F0 AA 10 + 39 00 00 40 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; + qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; }; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 0e373cb1b127..d09557abd7be 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -140,6 +140,17 @@ qcom,mdss-dsc-bit-per-pixel = <8>; qcom,mdss-dsc-block-prediction-enable; qcom,mdss-dsc-novateck-ic; + qcom,mdss-dsi-dfps-60-command = [ + 39 01 00 00 00 00 02 2F 03]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-90-command = [ + 39 01 00 00 00 00 02 2F 02]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-120-command = [ + 39 01 00 00 00 00 02 2F 01]; + qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; }; From 1bfa5ae2f395bc6f381b2f94e90ddd6a615b8d3b Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Thu, 11 May 2023 17:14:06 +0800 Subject: [PATCH 1044/1247] arm/dts:optimize the pump entry vbat Changes, optimize the pump entry vbat from 3.6V to 3V. Change-Id: I325c125855e132cc3191ef28217966ab2e1a0a1a Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2603871 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index e5223a4cf5ca..8822198917ed 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -177,7 +177,7 @@ mmi,pd-curr-max = <3000000>; mmi,batt-curr-boost = <300000>; mmi,batt-ovp-lmt = <4580000>; - mmi,pl-chrg-vbatt-min = <3600000>; + mmi,pl-chrg-vbatt-min = <3000000>; mmi,typec-middle-current = <2000000>; mmi,pd-allow-min-current = <1000000>; mmi,step-first-current-comp = <0>; From 08ec7d98bad3a62c85cd8d2db59b652160472d31 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Thu, 11 May 2023 16:22:36 +0800 Subject: [PATCH 1045/1247] arm/dts:bangkok modify tp voltage bangkok:modify L13A voltage to 1.8v for focal and goodix iovdd. Change-Id: Icfc052cd8055e3a7ba936cd3f2d70e8dce5c5354 Reviewed-on: https://gerrit.mot.com/2603828 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Wei Deng Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 89fcd4e37158..970ed16cefa4 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -15,6 +15,13 @@ status = "disabled"; }; +&L13A { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,init-voltage = <1800000>; + status = "okay"; +}; + &qupv3_se0_spi_pins { qupv3_se0_spi_active: qupv3_se0_spi_active { mux { From becacaa74a146cdad86ba341a1d969644d9eaa93 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Wed, 10 May 2023 16:10:05 +0800 Subject: [PATCH 1046/1247] update semtech params-v02 1.reduce sar noise 2.optimize temperature compensation coefficient Change-Id: Ibd7541d6dd0bb3cf460e0a1a589e238a254c4fb4 Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2602318 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index f6bf9c62b9f5..c5b315122dff 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -99,11 +99,11 @@ 0x4004 0x78 0x4008 0x8 0x8020 0x32 - 0x8028 0x45E - 0x8034 0x45E - 0x8040 0x45E - 0x804C 0x45E - 0x8058 0x45E + 0x8028 0x45F + 0x8034 0x45F + 0x8040 0x45F + 0x804C 0x45F + 0x8058 0x45F 0x8064 0x45E 0x8070 0x45E 0x807C 0x45E @@ -116,7 +116,7 @@ 0x8078 0xFEF9FF 0x8084 0xFFFFFF 0x8098 0x6836 - 0x80B8 0x2019 + 0x80B8 0x2015 0x80D8 0x4D40 0x80F8 0x5A23 0x8118 0x4637 @@ -127,7 +127,7 @@ 0x80C0 0x0 0x80E0 0x20200001 0x8100 0x0 - 0x8120 0x20200002 + 0x8120 0x10100000 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -160,7 +160,7 @@ 0x814C 0x60200031 0x816C 0x60200031 0x8024 0x7F7F - 0x8274 0x00 + 0x8274 0x2E040000 0x4280 0x0E >; }; From ad23280fc9a901b3a35d8545b6b573e34f788cc4 Mon Sep 17 00:00:00 2001 From: dengwei1 Date: Thu, 11 May 2023 15:50:02 +0800 Subject: [PATCH 1047/1247] arm/dts: input touch add game feature edge/rate add game feature edge/rate Change-Id: I2012191c194b74fcfaff32c6ae33ac6a554ee8c8 Signed-off-by: dengwei1 Reviewed-on: https://gerrit.mot.com/2603763 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 970ed16cefa4..bd40c728bd2e 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -105,6 +105,8 @@ goodix,panel-max-p = <4096>; goodix,firmware-name = "goodix_firmware.bin"; goodix,config-name = "goodix_cfg_group.bin"; + goodix,edge-ctrl; + goodix,interpolation-ctrl; mmi,power-off-suspend; mmi,usb-charger-detection; mmi,enable-gestures; @@ -126,6 +128,8 @@ vcc_i2c-supply = <&L13A>; focaltech,max-touch-number = <10>; focaltech,display-coords = <0 0 17280 38400>; + focaltech,edge-ctrl; + focaltech,interpolation-ctrl; pinctrl-names = "pmx_ts_active","pmx_ts_suspend", "pmx_ts_release"; From 441bb62c75ea61a5b770fc4b7e7186c65984f26d Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Mon, 15 May 2023 10:56:36 +0800 Subject: [PATCH 1048/1247] update semtech params-v03 1.active the watchdog mechanism 2.adjust the threshold of ch1 Change-Id: Ia72808de046d445973442c9440cd9704b985dd8c Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2606782 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Reviewed-by: Yuchang Guo Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index c5b315122dff..db62e0919f34 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -94,6 +94,7 @@ Semtech,ref-phases-b = <6>; Semtech,ref-phases-c = <0xff>; Semtech,button-flag = <0x1f>; + reinit-on-i2c-failure = <1>; Semtech,reg-num = <66>; Semtech,reg-init = < 0x4004 0x78 @@ -116,18 +117,18 @@ 0x8078 0xFEF9FF 0x8084 0xFFFFFF 0x8098 0x6836 - 0x80B8 0x2015 + 0x80B8 0x372D 0x80D8 0x4D40 - 0x80F8 0x5A23 + 0x80F8 0x5A2D 0x8118 0x4637 0x8138 0xFF 0x8158 0xFF 0x8178 0xFF 0x80A0 0x20200001 - 0x80C0 0x0 + 0x80C0 0x1A1A0002 0x80E0 0x20200001 0x8100 0x0 - 0x8120 0x10100000 + 0x8120 0x20200002 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -135,11 +136,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x7C845300 - 0x80B0 0x7C845300 - 0x80D0 0x7C845300 - 0x80F0 0x7C845300 - 0x8110 0x7C845300 + 0x8090 0x7C845200 + 0x80B0 0x7C845100 + 0x80D0 0x7C845200 + 0x80F0 0x7C845100 + 0x8110 0x7C845100 0x8130 0x54AC5300 0x8150 0x54AC5300 0x8170 0x54AC5300 @@ -151,11 +152,11 @@ 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 - 0x808C 0x60200031 - 0x80AC 0x60200031 - 0x80CC 0x60200031 - 0x80EC 0x60200031 - 0x810C 0x60200031 + 0x808C 0x60200020 + 0x80AC 0x60200010 + 0x80CC 0x60200020 + 0x80EC 0x60200010 + 0x810C 0x60200010 0x812C 0x60200031 0x814C 0x60200031 0x816C 0x60200031 From 8e159e7777613cdeb8e46d5c19373b1c80d9c65a Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 16 May 2023 11:11:30 +0800 Subject: [PATCH 1049/1247] dts/display: 1st csot panel mipi is power on too early 1. 1st csot panel mipi is power on too early 2. Modify 1st csot mipi clk = 450mHz Change-Id: I15757344757bf6241900d0ac4639ce189a4c3695 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2608306 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 789a4a8fc6b2..b5867b94c893 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -240,8 +240,8 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1D 08 07 17 22 07 - 08 08 02 04 00 19 0D]; + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 + 08 08 02 04 00 1A 0D]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 0b49790a29e0..0d04998c8f5d 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -29,6 +29,7 @@ //qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lp11-init; qcom,mdss-dsi-lane-0-state; qcom,mdss-dsi-lane-1-state; qcom,mdss-dsi-lane-2-state; @@ -338,8 +339,8 @@ qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <22>; - qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-front-porch = <26>; + qcom,mdss-dsi-h-back-porch = <30>; qcom,mdss-dsi-h-pulse-width = <10>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <8>; From 08bc070d5e579aaa41d16d0aa462875f35489587 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 18 May 2023 11:21:18 +0800 Subject: [PATCH 1050/1247] dts/display: Modify 1st csot mipi clk = 450mHz Fix inconsistency in mipi clock frequency measurement and configuration Change-Id: I84312d45d638fd051aff616258e6496237ace20d Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2612060 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index b5867b94c893..11ce079d0af1 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -240,6 +240,7 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { + qcom,mdss-dsi-panel-clockrate = <890000000>; qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 08 08 02 04 00 1A 0D]; qcom,display-topology = <1 1 1>; From f56acf5ea197d9478aaecc6b4867812fa6863441 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Fri, 19 May 2023 15:59:32 +0800 Subject: [PATCH 1051/1247] dts/display: revert TM panel dfps send command with te+async" This reverts commit 9493bded33ef1c4e0e5f5dfc1c17218d4776bff1. Send cmd with block mode and swith fps with dimming mode. refer to https://gerrit.mot.com/#/c/2411327/ Change-Id: I4df5e1d64f499cc68b8add6b03aa66938f5c99c9 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2615023 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 11ce079d0af1..6ee11f6d0b04 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -209,7 +209,7 @@ qcom,dsi-supported-dfps-list = <120 90 60>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dpfs-send-command; + qcom,mdss-dsi-pan-dfps-send-command; qcom,mdss-dsi-pan-dfps-send-command-with-te-async; qcom,mdss-dsi-pan-on-fps = <60>; @@ -257,7 +257,6 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-dfps-send-command-with-te-async; qcom,mdss-dsi-pan-on-fps = <60>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; From 2f3a323b18fb1a44e0b2d9a311ff372c56bb3982 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Mon, 22 May 2023 15:57:17 +0800 Subject: [PATCH 1052/1247] update semtech params-v04 1.update semtech params 2.Modify the triggering threshold of ch0 Change-Id: Ib4876223d13a26334ed3b15dea628bd4b655537e Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2616496 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Reviewed-by: Yuchang Guo Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index db62e0919f34..259d43da1dcf 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -116,8 +116,8 @@ 0x806C 0xFFF9EF 0x8078 0xFEF9FF 0x8084 0xFFFFFF - 0x8098 0x6836 - 0x80B8 0x372D + 0x8098 0x6854 + 0x80B8 0x2015 0x80D8 0x4D40 0x80F8 0x5A2D 0x8118 0x4637 From 0d82626df2661bf96b006e44a56830eccb73ca89 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 23 May 2023 15:43:24 +0800 Subject: [PATCH 1053/1247] dts/display: add tm u8 nt37703 panel 1. this is a new tm panel 2. add the drivers and config for this panel 3. modify the dvt2 init code of the csot panel Change-Id: I686e4798515ec58aba66e7847f86617ceedab953 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2617820 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 45 +++++ ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 5 +- ...mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 162 ++++++++++++++++++ 3 files changed, 211 insertions(+), 1 deletion(-) create mode 100644 qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 6ee11f6d0b04..a75882e80d0b 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -293,6 +294,50 @@ }; }; +&mot_tm_u8_nt37703_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 + 07 08 02 04 00 19 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 0d04998c8f5d..a1ce191051e3 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -370,12 +370,15 @@ 39 01 00 00 00 00 02 F4 03 39 01 00 00 00 00 02 65 08 39 01 00 00 00 00 03 F6 51 44 - 05 01 00 00 78 00 01 11 + 05 01 00 00 4B 00 01 11 39 01 00 00 00 00 03 FF 5A 81 39 01 00 00 00 00 02 F3 08 + 39 01 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 07 C5 02 C0 02 95 03 44 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 02 5E 01 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi new file mode 100644 index 000000000000..b4a6a4088d93 --- /dev/null +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -0,0 +1,162 @@ +&mdss_mdp { + mot_tm_u8_nt37703_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_tm_u8_nt37703_655_1080x2400_dsc_vid { + qcom,mdss-dsi-panel-name = + "mipi_moto_vid_tm_u8_1080p_dsc_655"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <152>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + //qcom,mdss-dsi-lane-map = "lane_map_0123"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-dma-schedule-line = <15>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <4200000>; + + qcom,mdss-dsi-panel-blackness-level = <3230>; + + qcom,mdss-dsi-dc-off-command = [ + 39 01 00 00 00 00 03 8B 00 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dc-on-command = [ + 39 01 00 00 00 00 03 8B 00 81]; + qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 40 00 00 02 87 20 + 39 00 00 40 00 00 02 6F 09 + 39 00 00 40 00 00 03 51 00 00 + 39 01 00 00 00 00 03 51 0F FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 40 00 00 02 87 20 + 39 01 00 00 00 00 02 6F 09 + 39 01 00 00 00 00 03 51 00 00]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 40 00 00 02 87 25 + 39 00 00 40 00 00 02 6F 09 + 39 01 00 00 00 00 03 51 8F FF]; + qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; + + qcom,mdss-dsi-display-timings { + timing@0 { + cell-index = <0>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <16>; + qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <14>; + qcom,mdss-dsi-v-front-porch = <3488>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 39 01 00 00 00 00 02 6F 06 + 39 01 00 00 00 00 02 B5 39 + 39 01 00 00 00 00 02 6F 07 + 39 01 00 00 00 00 05 B5 00 35 00 00 + 39 01 00 00 00 00 02 6F 18 + 39 01 00 00 00 00 02 B5 00 + 39 01 00 00 00 00 02 6F 19 + 39 01 00 00 00 00 02 B5 0B + 39 01 00 00 00 00 02 6F 22 + 39 01 00 00 00 00 02 B5 21 + 39 01 00 00 00 00 06 88 01 02 1B 08 77 + 39 01 00 00 00 00 02 87 20 + 39 01 00 00 00 00 05 2A 00 00 04 37 + 39 01 00 00 00 00 05 2B 00 00 09 5F + 39 01 00 00 00 00 03 90 03 03 + 39 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 39 01 00 00 00 00 02 6F 15 + 39 01 00 00 00 00 03 F8 01 E1 + 39 01 00 00 00 00 05 FF AA 55 A5 80 + 39 01 00 00 00 00 02 6F 17 + 39 01 00 00 00 00 02 F4 02 + 39 01 00 00 00 00 05 FF AA 55 A5 81 + 39 01 00 00 00 00 02 6F 13 + 39 01 00 00 00 00 02 F9 01 + 39 01 00 00 00 00 05 FF AA 55 A5 81 + 39 01 00 00 00 00 02 6F 3C + 39 01 00 00 00 00 02 F5 81 + 39 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 02 2F 03 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 02 6F 03 + 39 01 00 00 00 00 02 C7 47 + 39 01 00 00 00 00 02 5F 80 + 39 01 00 00 00 00 06 F0 55 AA 52 08 00 + 39 01 00 00 00 00 02 6F 34 + 39 01 00 00 00 00 02 DF 35 + 05 01 00 00 78 00 01 11 + 05 01 00 00 14 00 01 29 + ]; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <20>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + qcom,mdss-dsc-novateck-ic; + qcom,mdss-dsi-dfps-60-command = [ + 39 01 00 00 00 00 02 2F 03]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-90-command = [ + 39 01 00 00 00 00 02 2F 02]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-120-command = [ + 39 01 00 00 00 00 02 2F 01]; + qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; + }; + }; + }; +}; From 965ec2e2d3f9b7357433402d2b5b0058014cbc07 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Mon, 22 May 2023 17:00:08 +0800 Subject: [PATCH 1054/1247] dts/display: enable check fps before open lhbm feature arm/dt: - check fps before open lhbm refer to https://gerrit.mot.com/#/c/2382979/ Change-Id: I6ef1b1c2b5a533f7567e155523241a6f1c75c8c3 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2616576 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 5 +++++ qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index a1ce191051e3..16c21902dcb7 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -71,6 +71,11 @@ 39 00 00 40 00 00 03 51 06 8F 39 01 00 00 00 00 02 62 03]; + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; + qcom,mdss-dsi-panel-local-hbm-enabled; qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1679>; //0x068f qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index d09557abd7be..475a083030b3 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -64,6 +64,11 @@ 39 01 00 00 00 00 03 51 8F FF]; qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; + qcom,mdss-dsi-display-timings { timing@0 { cell-index = <0>; From b0850fca3a1929501c6534644a6b6e342de05948 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Wed, 24 May 2023 15:59:46 +0800 Subject: [PATCH 1055/1247] arm/dts:modify charger param in bangkk modify some charger parameters for moto safety standard: 1.increase chrg iterm and fg iterm 2.reduce the CV of non-fast charging 3.reduce battery CV Change-Id: If4073177138b22d926b4789630168f451dc4166c Reviewed-on: https://gerrit.mot.com/2619046 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 30 +++++++++++------------ qcom/qg-batterydata-qb50-swd-5000mah.dtsi | 4 +-- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 8822198917ed..44ba0d466a2f 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -61,7 +61,7 @@ "time_to_full_now", "cp_input_voltage_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4520000>; + qcom,fv-max-uv = <4510000>; qcom,dcp-curr-max = <1500000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 @@ -81,20 +81,20 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4500 243 534>, - <4500 243 534>, - <4500 243 534>, - <4520 534 1250>, - <4520 575 1250>, - <4520 731 1250>, - <4500 243 575>; + qcom,mmi-ffc-zones = <4480 260 534>, + <4480 260 534>, + <4480 260 534>, + <4510 560 960>, + <4510 610 960>, + <4510 760 960>, + <4480 260 575>; - qcom,iterm-ma = <243>; + qcom,iterm-ma = <260>; mmi,enable-factory-mode-aicl; - qcom,noffc-chg-iterm = <243>; + qcom,noffc-chg-iterm = <260>; qcom,noffc-chg-iterm-45c = <390>; qcom,noffc-qg-iterm = <500>; - qcom,noffc-max-fv = <4500>; + qcom,noffc-max-fv = <4480>; }; &pm7250b_qg { @@ -189,11 +189,11 @@ /*qc3p end*/ mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = - <0 4200 1000 0 0 0 0>, - <10 4250 3000 4500 1000 0 0>, - <15 4500 3000 0 0 0 0>, + <0 4180 1000 0 0 0 0>, + <10 4230 3000 4480 1000 0 0>, + <15 4480 3000 0 0 0 0>, <45 4300 5800 4400 5200 4510 4000>, - <60 4200 4000 0 0 0 0>; + <60 4180 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, <5000000>, diff --git a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi index 37d88e8c5326..6048584b5841 100644 --- a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi +++ b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi @@ -4,8 +4,8 @@ qcom,qb50-swd-5000mah { /* 6559013_Heyuan_P562A_5000mAH_PM7250B_averaged_MasterSlave_Apr24th2023 */ serialnum = "SB18D87863"; qcom,sdam-magic-number = <0x18D87863>; - qcom,max-voltage-uv = <4520000>; - qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,max-voltage-uv = <4510000>; + qcom,fg-cc-cv-threshold-uv = <4500000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <3440>; From dee3489e5fc009608cacbb6c7455be67d51beb36 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 25 May 2023 17:00:47 +0800 Subject: [PATCH 1056/1247] dts/display revert enable check fps before open lhbm feature 1. revert enable check fps before open lhbm feature 2. csot panel DC off Change-Id: I1fa3e7a866b6b55df435e22295dc5e25226db331 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2620350 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 3 +-- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 16c21902dcb7..947905ec6923 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -71,7 +71,7 @@ 39 00 00 40 00 00 03 51 06 8F 39 01 00 00 00 00 02 62 03]; - qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + //qcom,mdss-dsi-panel-lhbm-wait-fps-valid; qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; @@ -383,7 +383,6 @@ 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 05 01 00 00 14 00 01 29 - 39 01 00 00 00 00 02 5E 01 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 475a083030b3..cbcd94b5761d 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -64,7 +64,7 @@ 39 01 00 00 00 00 03 51 8F FF]; qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + //qcom,mdss-dsi-panel-lhbm-wait-fps-valid; qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; From 7b0a2deb4201932773e9d9e51fffd097c6370a38 Mon Sep 17 00:00:00 2001 From: Gilberto Gambugge Date: Sat, 20 May 2023 01:20:13 -0300 Subject: [PATCH 1057/1247] rhodep/rhodec: update camera device tree path As Rhode 5G+ (rhodep) and Rhode 5G (rhodec) are using camera legacy, the path to include the camera device tree nodes need to be modified. Change-Id: I26b19a14699a89cc868ec784761031d37d229fa9 Reviewed-on: https://gerrit.mot.com/2616000 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Rafael Ortolan Reviewed-by: Rav(CR) Vembu Submit-Approved: Marcelo Pincinato Tested-by: Jira Key --- qcom/blair-rhodep-common-overlay.dtsi | 2 +- qcom/blair-rhodep-dvt2-overlay.dts | 2 +- qcom/holi-rhodec-common-overlay.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/blair-rhodep-common-overlay.dtsi b/qcom/blair-rhodep-common-overlay.dtsi index 8b7a0b254457..ee0fe918cf7c 100644 --- a/qcom/blair-rhodep-common-overlay.dtsi +++ b/qcom/blair-rhodep-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "rhodep-fps-overlay.dtsi" #include "rhodep-display.dtsi" #include "rhodep-touchscreen.dtsi" -#include "camera/blair-camera-sensor-mot-rhodep-overlay.dtsi" +#include "camera-legacy/rhodep/blair-camera-sensor-mot-rhodep-overlay.dtsi" #include "rhodep-wl2868c.dtsi" #include "tcpc_config.dtsi" #include "sgm7220.dtsi" diff --git a/qcom/blair-rhodep-dvt2-overlay.dts b/qcom/blair-rhodep-dvt2-overlay.dts index 808c8c77054d..279ac4a1045b 100644 --- a/qcom/blair-rhodep-dvt2-overlay.dts +++ b/qcom/blair-rhodep-dvt2-overlay.dts @@ -14,7 +14,7 @@ /plugin/; #include "blair-rhodep-common-overlay.dtsi" -#include "camera/blair-camera-sensor-mot-rhodep-dvt2-overlay.dtsi" +#include "camera-legacy/rhodep/blair-camera-sensor-mot-rhodep-dvt2-overlay.dtsi" / { model = "rhodep"; diff --git a/qcom/holi-rhodec-common-overlay.dtsi b/qcom/holi-rhodec-common-overlay.dtsi index 7b9168e06dc6..a2cb9abbbcc2 100644 --- a/qcom/holi-rhodec-common-overlay.dtsi +++ b/qcom/holi-rhodec-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "rhodec-display.dtsi" #include "rhodec-touchscreen.dtsi" #include "rhodec-fmr-overlay.dtsi" -#include "camera/holi-camera-sensor-mot-rhodec-overlay.dtsi" +#include "camera-legacy/rhodec/holi-camera-sensor-mot-rhodec-overlay.dtsi" #include "discrete_charging_holi.dtsi" #include "moto_therm_sys_temp.dtsi" From 845391731375fbf42e5dc8ac2f51e72c1afcd10d Mon Sep 17 00:00:00 2001 From: liuzhen Date: Fri, 26 May 2023 16:01:01 +0800 Subject: [PATCH 1058/1247] arm/dts:modify charger parameters for bangkk Changes, Optimize the charging CV and current for bangkk Change-Id: Idcb90e0f828b64838d11faf344deea91a15888d4 Reviewed-on: https://gerrit.mot.com/2621746 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 28 +++++++++++------------ qcom/qg-batterydata-qb50-swd-5000mah.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 44ba0d466a2f..d3327c0a1bb3 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -61,7 +61,7 @@ "time_to_full_now", "cp_input_voltage_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4510000>; + qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <1500000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 @@ -81,20 +81,20 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4480 260 534>, - <4480 260 534>, - <4480 260 534>, - <4510 560 960>, - <4510 610 960>, - <4510 760 960>, - <4480 260 575>; + qcom,mmi-ffc-zones = <4200 260 534>, + <4500 260 534>, + <4500 260 534>, + <4520 550 960>, + <4520 600 1010>, + <4520 750 1160>, + <4200 260 575>; qcom,iterm-ma = <260>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <260>; qcom,noffc-chg-iterm-45c = <390>; qcom,noffc-qg-iterm = <500>; - qcom,noffc-max-fv = <4480>; + qcom,noffc-max-fv = <4500>; }; &pm7250b_qg { @@ -189,11 +189,11 @@ /*qc3p end*/ mmi,chrg-temp-zones-num = <5>; mmi,mmi-chrg-temp-zones = - <0 4180 1000 0 0 0 0>, - <10 4230 3000 4480 1000 0 0>, - <15 4480 3000 0 0 0 0>, - <45 4300 5800 4400 5200 4510 4000>, - <60 4180 4000 0 0 0 0>; + <0 4200 1000 0 0 0 0>, + <10 4250 3000 4500 1000 0 0>, + <15 4500 3000 0 0 0 0>, + <45 4300 5800 4400 5200 4520 4000>, + <60 4200 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, <5000000>, diff --git a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi index 6048584b5841..37d88e8c5326 100644 --- a/qcom/qg-batterydata-qb50-swd-5000mah.dtsi +++ b/qcom/qg-batterydata-qb50-swd-5000mah.dtsi @@ -4,8 +4,8 @@ qcom,qb50-swd-5000mah { /* 6559013_Heyuan_P562A_5000mAH_PM7250B_averaged_MasterSlave_Apr24th2023 */ serialnum = "SB18D87863"; qcom,sdam-magic-number = <0x18D87863>; - qcom,max-voltage-uv = <4510000>; - qcom,fg-cc-cv-threshold-uv = <4500000>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <3440>; From d87aaa2e3440f2890dcc0473aefb87540621e151 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Fri, 26 May 2023 13:18:47 +0800 Subject: [PATCH 1059/1247] update semtech params-v05 1.fix the issue of ch1 probability not releasing 2.modify bangkk-sensors.dtsi Change-Id: Ic78e53e5e6f4bfcdc8fb744b453327982a5a973b Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2621428 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 259d43da1dcf..5309b0047f90 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -108,18 +108,18 @@ 0x8064 0x45E 0x8070 0x45E 0x807C 0x45E - 0x8030 0xFFF9FD - 0x803C 0xBFF9FF - 0x8048 0xFFF97F - 0x8054 0xFFD9FF - 0x8060 0xF7F9FF - 0x806C 0xFFF9EF - 0x8078 0xFEF9FF - 0x8084 0xFFFFFF - 0x8098 0x6854 - 0x80B8 0x2015 + 0x8030 0x924925 + 0x803C 0xB24924 + 0x8048 0x924964 + 0x8054 0x925924 + 0x8060 0x964924 + 0x806C 0x92492C + 0x8078 0x92C924 + 0x8084 0x924924 + 0x8098 0x685A + 0x80B8 0x2D23 0x80D8 0x4D40 - 0x80F8 0x5A2D + 0x80F8 0x5A47 0x8118 0x4637 0x8138 0xFF 0x8158 0xFF @@ -137,18 +137,18 @@ 0x8190 0x0 0x8194 0x0 0x8090 0x7C845200 - 0x80B0 0x7C845100 + 0x80B0 0x7C845102 0x80D0 0x7C845200 0x80F0 0x7C845100 0x8110 0x7C845100 0x8130 0x54AC5300 0x8150 0x54AC5300 0x8170 0x54AC5300 - 0x8088 0x300001 - 0x80A8 0x300001 - 0x80C8 0x300001 - 0x80E8 0x300001 - 0x8108 0x300001 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 0x8168 0x300000 From f70dc82ddc4591e975156b705d164f7321fa500f Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Mon, 29 May 2023 18:28:44 +0800 Subject: [PATCH 1060/1247] arm/dts:reprot soc to thermal-engige Changes, report the soc to thermal-enginge. Change-Id: I2a626da17f599ea8a27e87b5f92230d0b7068f53 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2624591 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 30d9af85069f..361b67e194e4 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -472,6 +472,12 @@ }; }; }; + soc_usr { + polling-delay-passive = <1000>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&bcl_soc>; + }; }; &soc { From 8392a6169daf8fa144e367923ead49e7cdaea09a Mon Sep 17 00:00:00 2001 From: Yue Sun Date: Tue, 30 May 2023 10:48:39 +0800 Subject: [PATCH 1061/1247] arm/dts: Fix FirmwareDtboVerification#testVerifyOverlay Some overlays in blair-bangkk-common-overlay.dtsi depend on the definition that in the blair-pm6125-bangkk-common-overlay.dtsi hence we should move it to the front. Change-Id: I8efdc43b533cce589716f86479c356b71f42320b Signed-off-by: Yue Sun Reviewed-on: https://gerrit.mot.com/2625501 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/.blair.dtsi.swp | Bin 16384 -> 0 bytes qcom/blair-pm6125-bangkk-common-overlay.dtsi | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 qcom/.blair.dtsi.swp diff --git a/qcom/.blair.dtsi.swp b/qcom/.blair.dtsi.swp deleted file mode 100644 index d179567667d11a72d02c4215f3762b6dd9bb9012..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16384 zcmeI3d5k1g9mg9Gp}|E10ZkNn^y;v?PEB`p&$(AvhS{Bw8FqGNb~!wX>Z;e>m91;4 zs;7H)b|J805Wxh(A~8k-nBWD8E{PEYj}Q-zK>Wv;=pRJoSOgXk5V`!mqo%uhXVxJY zNjBA+&vbSDe!qA8-tWD7zt_Fx!mhCiGT2kd;PsJA=HQb**X=Kpa~{4Xld0<7d~=8i zj{XX3jj(?OdRK}9^8qdEAaY%Lc{vZ%FyQQoiN{aS_Y^E#)^!`JX!EuS@v>DR(}QwEvfs?~(H3 zPfW^Rlk$C1zPCgEs+8}S^4B}$uSoeqZ2!Sz`Ty*w|FsVJ%This?PpI)+W$k!n^JzL zL;jMKe?!X4CnxO>OZnHN{LK#eiyie}pH14oAmx#?KjD<5{CO$APRbh{^1n;@jZ*$j zhx|Dyzgo&~I5k=Rp^oxbeJCk^R?6>?_6IuT&q(<}DIZvsw0~O4zb)m5I^<7Dc}>c{ za$3?}-cH|A52PMQJ&<}J^+4)@)B~vpQV*maNImerc|bQs?%%`mZG8V9=l_p?IFq>@ z%z|y;4Dc7^H1~ol!A{TvP6dx47kU(24~D=X=mjT&XOU+;0`38KgImEh;A+qST_6X} z1s?@(A+I|Go&tXZ4}u54J>aY0Qcwb?fj5vNz6M?e&w=~Fec%>gfs23w&IYSM7Mu(Y zBX@lfJPjTP_ko{+?}3{@1g-!Da3**Kx$xuQE^r;tz*bNMr+^obYyS@X790fE0|!*V z72tE=axe-C;0*8<^83fYkHO8r1{Z=)gEw(@@C^6`_zt)V%!3GoKnG)>8=M86!db>6 z;0NGZ@CC3LoC%Htf5chH1K>7rGq@4l0QP_~7y)_k4r1W1;34oWFb6IHJT`cQX0uuL z_YjTCG6}q<`~<3>013j1-&BQCl%|qei*ncu^|}F-(+z z+7!P8QFPM`n7Gg^kV3PsAYMYxoOgA{G8Ery&_FRfTB%ruMcs%QsD*+oP4{)fislv5 zvHVbRYI}sZ*em4J)ypEnjYUZrA-bKaWS=J zY+T#Eb*m^UpjDV1vsv4UqNP%nXqg^3-Fjfu#F&WYVNiN!?7{U#rHVOa4#EX6!ZQLv-&?DW>wC=V`4V9mXpMsS@CR!d)Y9fm?MW- zPVMZH6IQN?u`p5lQZqI?js*Z?Sz4U3Y|e_J|33=`t39z`tTsH)w%n>>P}}CKs9XWw z^GXsg@yA4n#hpnE@rnZsUS|O&!)tYD?V&Ayi=tPvhbaxi)_pz>FbjE5R;<8j=mA|% z;w!R%=S@b$XV?f-JVCnHJ9`x2y&yjq*ymbU*Mo@PnyveDB`u_?*30g3Z5mj*osbS` z#YL%EGeqII(25&KejS;iS1klW2J61&Z|@~AF!>!Ao2N-EC}k%WU*Xkf~{5OCIVejWJ&B{ z-S&}>CPtbDbJS#A_k#KLB));I4!c1XNNaH8oeTD8_{SISj-81xk`;0DI55hdho9nB zSx0iVSJle(ie^)HQ?alAA`%#N-^Avr2NxP``qZ={YHm`QKyy8#9BwKo17x=!S)0%q zR=!d5LhAB9bc8Voyb}GDD4;>!GI>4ZF#hYxIx{*sqQW)bp&_t4&(L@RAEI z(Y8-cY9klVOkK7H`_69CSW7(L=X=lvcER_e`LY#-dD7oYHcpIQuFY)MCN7wqjtw?% z*tb~V5@NE3DUx-BcLqZT%1K+7(=PmDvO=H+o+q{f*)wjGn`?I`C=ozAD%QuV_sF{YL%@vndYz?yE zxl!QRHVyK43@TOYD8+Lt7`W7kWOI(znj_U~cz*qtMkR{Jl4|&hU0UA8usvhi6dI@k|vPy-a0U>Xd7esCT*2^>bQ&hq%X!4JV5;2KZ` zJHQ6e2YSKj;8o=5e+It+zXU%6_k-_)+rVBh4vL@~dA1Q~~9`8i>8m;i7vZ#iA8J;hEUxLFP@mk!o7){0UslHpmCQ4^pmoB5J@jIIB z@bk1T)S}Hp*J^W34fQyl zD{}bReg(G_G{!&~MOG7%N>K;4rXss*E8W4S$H$BR6)xXyAJ6)HsL!`C7vYMUP_*WEY_q@J@F{?1L&N zfsg$pJEy>oU!P}lL9{P%8`%Z-Arq@yE`7l2;vT^NNwjH16&I5rAA5*NH)OhG6SO^^ zE3!>CKzxwc5i{~|G#dLbb|P)EQ8JpA&*$9vC2C@Tcm-UaXEfzVnKMnL8KK|UfL1Ji z{;Ur0a3-n>8ueTY zO>Ew`EAtK~)TQ>+)-6YBqp$6{Lrj;QVvH@(4BpK)?diT)dwODWI$3tuP>d)*R3pt| zA=eezNJ0CD$hOI`?b?>%nXz3X+UVG}Q9i;;B(e>|Ee#D7STL3CI*pL5*VdDAq)9<5 zqU2hEvqJGD1)5p(6{-jJykZ1;SW}QTvU0L*xi-Fm;YS$lCKWF*s8YcL%T|z*dqIw! zVBjTAAvbpMlC=i@kFTa`_?{>Z&{nyjg0G11zkhL1!#dq*z|JUGnS8v25G!9>i3_oi zO^;F!4nu2&w#e!T_}1)bsjDkh$3xM@`!Spu zu{E)&v!3B4j!+g)QN(Bn1Jlv@S9kbs&SR%1M_BO!TGg;vP@GU#Dpr%4>}!+W5$>k#RoL*t8xVQB_P-!doQby3K6xC}wP> dAv}1GFdJCjY-o9_{^hL(m$&L$-fBQv{RfzFnTG%X diff --git a/qcom/blair-pm6125-bangkk-common-overlay.dtsi b/qcom/blair-pm6125-bangkk-common-overlay.dtsi index 0b0c3ffb3980..12716313a7c9 100644 --- a/qcom/blair-pm6125-bangkk-common-overlay.dtsi +++ b/qcom/blair-pm6125-bangkk-common-overlay.dtsi @@ -9,8 +9,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "blair-bangkk-common-overlay.dtsi" #include "blair-pm6125-moto-common-overlay.dtsi" +#include "blair-bangkk-common-overlay.dtsi" #include "bangkk-charger.dtsi" &pm7250b_charger { From f49907d01d7afb0d0833d66993304e14f8961909 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Tue, 30 May 2023 15:39:32 +0800 Subject: [PATCH 1062/1247] arm/dts:add CV compensation in CV1 and CV2 of ffc charging As recommended by moto SW and HW, add CV compensation in CV1 and CV2 of ffc charging. Change-Id: I66af06c4c09e781df14dbaa8b993ec774f575e7b Reviewed-on: https://gerrit.mot.com/2625930 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index d3327c0a1bb3..2ee2bc6d7b02 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -192,7 +192,7 @@ <0 4200 1000 0 0 0 0>, <10 4250 3000 4500 1000 0 0>, <15 4500 3000 0 0 0 0>, - <45 4300 5800 4400 5200 4520 4000>, + <45 4320 5800 4420 5200 4520 4000>, <60 4200 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, From b6a06032b41811fbd4d0de6d1600fe037150160a Mon Sep 17 00:00:00 2001 From: William Liu Date: Mon, 29 May 2023 23:34:33 +0800 Subject: [PATCH 1063/1247] panel:Fix csot display dsi driver stop issue The dfps commands shall have a last_command flag so the dsi driver do not take the history commands as one package and exceed the 4096 limit remove the qcom,mdss-dsi-pan-dfps-send-command-with-te-async to avoid delay in sending the dsi command Change-Id: Ib75e963ac445fa5ab563cf17c4faf8f455b6bbdd Signed-off-by: William Liu Reviewed-on: https://gerrit.mot.com/2625435 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 1 - qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 6 +++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index a75882e80d0b..b02751661e7a 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -211,7 +211,6 @@ qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-dfps-send-command-with-te-async; qcom,mdss-dsi-pan-on-fps = <60>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 947905ec6923..e7c50f8898af 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -401,21 +401,21 @@ qcom,mdss-dsi-dfps-60-command = [ 39 00 00 40 00 00 02 6C 00 - 39 00 00 40 00 00 02 62 00]; + 39 01 00 00 00 00 02 62 00]; qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-90-command = [ 39 00 00 40 00 00 02 6c 01 39 00 00 40 00 00 02 62 01 39 00 00 40 00 00 03 F0 AA 10 - 39 00 00 40 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-120-command = [ 39 00 00 40 00 00 02 6c 01 39 00 00 40 00 00 02 62 00 39 00 00 40 00 00 03 F0 AA 10 - 39 00 00 40 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; From 6a0357ffdc1ac6313765b4bb775e10b6474268e1 Mon Sep 17 00:00:00 2001 From: tinno61 Date: Wed, 31 May 2023 12:00:12 +0800 Subject: [PATCH 1064/1247] arm/dts:bangkok add panel for touch bangkok:add panel name for goodix touch Change-Id: I715e9296746a6b1d46b819883896f6d37addbbe6 Reviewed-on: https://gerrit.mot.com/2627148 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yan Zhang Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index bd40c728bd2e..2d946272aa78 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -93,7 +93,7 @@ goodix,avdd-gpio = <&tlmm 11 0x0>; iovdd-supply = <&L13A>; - panel = <&mot_tm_nt37703_655_1080x2400_dsc_vid>; + panel = <&mot_tm_nt37703_655_1080x2400_dsc_vid &mot_tm_u8_nt37703_655_1080x2400_dsc_vid>; goodix,reset-gpio = <&tlmm 21 0x0>; goodix,irq-gpio = <&tlmm 22 0x0>; From bcb24d22e7039fee61e94cf3d5af9286de8b2547 Mon Sep 17 00:00:00 2001 From: YangYi Date: Wed, 31 May 2023 15:21:26 +0800 Subject: [PATCH 1065/1247] Bangkok: delete unnecessary node for sx937x Sensors: disable unnecessary node for sx937x Change-Id: I0f376b219f73d88ef3f9d78c0ef63ebac19d8497 Signed-off-by: YangYi Reviewed-on: https://gerrit.mot.com/2627367 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 5309b0047f90..6dd13dc0ca08 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -76,6 +76,11 @@ &qupv3_se8_i2c { status = "okay"; + + sx937x@2c { + status = "disabled"; + }; + Semtech_sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; From e918dde3836dfee44418d51f16dacbd6aa3df6e2 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 31 May 2023 15:17:38 +0800 Subject: [PATCH 1066/1247] dts/display: revert Modify 1st csot mipi clk = 450mHz Fixed 450mHz RF mipi interference revert https://gerrit.mot.com/#/c/2612060/ Change-Id: Ibbefa9f7bbb53e270517529e7b7cd5cd24b10c10 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2627355 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index b02751661e7a..e92e58679641 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -240,7 +240,6 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-clockrate = <890000000>; qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 08 08 02 04 00 1A 0D]; qcom,display-topology = <1 1 1>; From 31770a77abb38bef6b144ca1a913c9f0b2738de1 Mon Sep 17 00:00:00 2001 From: Gilberto Gambugge Date: Tue, 30 May 2023 16:20:20 -0300 Subject: [PATCH 1067/1247] rhodei: update camera device tree path As Rhode 5G India is using camera legacy, the path to include the camera device tree nodes need to be modified. Change-Id: Ie561b2f745915b3395d657130bb2ebad6d24fa69 Reviewed-on: https://gerrit.mot.com/2626601 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Rav(CR) Vembu Tested-by: Jira Key Submit-Approved: Marcelo Pincinato --- qcom/blair-rhodei-common-overlay.dtsi | 2 +- qcom/blair-rhodei-dvt2-overlay.dts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/blair-rhodei-common-overlay.dtsi b/qcom/blair-rhodei-common-overlay.dtsi index 518e7caa60d8..ca714d6b6f2c 100644 --- a/qcom/blair-rhodei-common-overlay.dtsi +++ b/qcom/blair-rhodei-common-overlay.dtsi @@ -21,7 +21,7 @@ #include "rhodei-fps-overlay.dtsi" #include "rhodei-display.dtsi" #include "rhodei-touchscreen.dtsi" -#include "camera/blair-camera-sensor-mot-rhodei-overlay.dtsi" +#include "camera-legacy/rhodei/blair-camera-sensor-mot-rhodei-overlay.dtsi" #include "rhodei-wl2868c.dtsi" #include "discrete_charging_rhodei.dtsi" #include "moto_therm_sys_temp.dtsi" diff --git a/qcom/blair-rhodei-dvt2-overlay.dts b/qcom/blair-rhodei-dvt2-overlay.dts index 4381b1d4144c..872b24731034 100644 --- a/qcom/blair-rhodei-dvt2-overlay.dts +++ b/qcom/blair-rhodei-dvt2-overlay.dts @@ -14,7 +14,7 @@ /plugin/; #include "blair-rhodei-common-overlay.dtsi" -#include "camera/blair-camera-sensor-mot-rhodei-dvt2-overlay.dtsi" +#include "camera-legacy/rhodei/blair-camera-sensor-mot-rhodei-dvt2-overlay.dtsi" / { model = "rhodei"; From 758e310e3cfd171feef9dd3daba1bc3b33d226db Mon Sep 17 00:00:00 2001 From: liyun zhang Date: Thu, 1 Jun 2023 13:41:22 +0800 Subject: [PATCH 1068/1247] arm/dts: init dts for Fogo5G init devicetree for Fogo5G based on bangkk Change-Id: Ic753af1479497ee853667425454e18276aae335d Reviewed-on: https://gerrit.mot.com/2627351 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Xiaojun Ji Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- .gitignore | 1 + qcom/Makefile | 6 + qcom/blair-fogor-common-overlay.dtsi | 524 ++++++++++++++++++++ qcom/blair-fogor-evb1-overlay.dts | 24 + qcom/blair-fogor-fmr-overlay.dtsi | 48 ++ qcom/blair-moto-fogor-base.dts | 45 ++ qcom/blair-pm6125-fogor-common-overlay.dtsi | 22 + qcom/fogor-charger.dtsi | 217 ++++++++ qcom/fogor-display.dtsi | 395 +++++++++++++++ qcom/fogor-fps-overlay.dtsi | 102 ++++ qcom/fogor-sensors.dtsi | 188 +++++++ qcom/fogor-touchscreen.dtsi | 146 ++++++ qcom/fogor-wl286xx.dtsi | 74 +++ qcom/holi-audio-fogor-overlay.dtsi | 367 ++++++++++++++ 14 files changed, 2159 insertions(+) create mode 100644 qcom/blair-fogor-common-overlay.dtsi create mode 100644 qcom/blair-fogor-evb1-overlay.dts create mode 100644 qcom/blair-fogor-fmr-overlay.dtsi create mode 100644 qcom/blair-moto-fogor-base.dts create mode 100644 qcom/blair-pm6125-fogor-common-overlay.dtsi create mode 100644 qcom/fogor-charger.dtsi create mode 100644 qcom/fogor-display.dtsi create mode 100644 qcom/fogor-fps-overlay.dtsi create mode 100755 qcom/fogor-sensors.dtsi create mode 100755 qcom/fogor-touchscreen.dtsi create mode 100644 qcom/fogor-wl286xx.dtsi create mode 100644 qcom/holi-audio-fogor-overlay.dtsi diff --git a/.gitignore b/.gitignore index 411c38ccbf8c..d37df5686951 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ qcom/camera qcom/display bindings/display/qcom +qcom/camera-legacy diff --git a/qcom/Makefile b/qcom/Makefile index b6b8ab44f2b5..073d22a795f6 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -105,6 +105,12 @@ dtbo-$(CONFIG_BANGKK_DTB) += \ blair-bangkk-evb1-overlay.dtbo-base := blair-moto-bangkk-base.dtb +dtbo-$(CONFIG_FOGOR_DTB) += \ + blair-fogor-evb1-overlay.dtbo + +blair-fogor-evb1-overlay.dtbo-base := blair-moto-fogor-base.dtb + + dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-dvt2-jp-overlay.dtbo \ holi-penang-dvt2-sb-overlay.dtbo \ diff --git a/qcom/blair-fogor-common-overlay.dtsi b/qcom/blair-fogor-common-overlay.dtsi new file mode 100644 index 000000000000..137a75c9b65d --- /dev/null +++ b/qcom/blair-fogor-common-overlay.dtsi @@ -0,0 +1,524 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-fogor-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "fogor-fps-overlay.dtsi" +#include "fogor-display.dtsi" +#include "fogor-touchscreen.dtsi" +#include "fogor-sensors.dtsi" +#include "fogor-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "blair-fogor-fmr-overlay.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <2600000>; +}; + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 135 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + clock-names = "OSC_NFC"; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + soc_usr { + polling-delay-passive = <1000>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&bcl_soc>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "disabled"; + }; + + qcom,tz_gpio { + compatible = "qcom,tz_gpio"; + tlmm-tz = <0>, + <13>, + <14>, + <15>, + <16>; + }; +}; + +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + diff --git a/qcom/blair-fogor-evb1-overlay.dts b/qcom/blair-fogor-evb1-overlay.dts new file mode 100644 index 000000000000..6c625b7ce117 --- /dev/null +++ b/qcom/blair-fogor-evb1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-fogor-common-overlay.dtsi" + +/ { + model = "fogor"; + compatible = "qcom,blair-fogor", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>; + qcom,board-id = <0x49 0xA100>; +}; + diff --git a/qcom/blair-fogor-fmr-overlay.dtsi b/qcom/blair-fogor-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-fogor-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; diff --git a/qcom/blair-moto-fogor-base.dts b/qcom/blair-moto-fogor-base.dts new file mode 100644 index 000000000000..27713afa7129 --- /dev/null +++ b/qcom/blair-moto-fogor-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-pm6125-fogor-common-overlay.dtsi b/qcom/blair-pm6125-fogor-common-overlay.dtsi new file mode 100644 index 000000000000..5fa9fe092146 --- /dev/null +++ b/qcom/blair-pm6125-fogor-common-overlay.dtsi @@ -0,0 +1,22 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-fogor-common-overlay.dtsi" +#include "blair-pm6125-moto-common-overlay.dtsi" +#include "fogor-charger.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi new file mode 100644 index 000000000000..d3327c0a1bb3 --- /dev/null +++ b/qcom/fogor-charger.dtsi @@ -0,0 +1,217 @@ + +#include + + +&mot_batterydata { + df-serialnum = "SB18D87863"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-qb50-swd-5000mah.dtsi" +}; + +&pm7250b_charger { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now", + "cp_input_voltage_now"; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4520000>; + qcom,dcp-curr-max = <1500000>; + qcom,otg-cl-ua = <1000000>; + qcom,thermal-mitigation = <3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000>; + mmi,qc3p-support; + /delete-property/ qcom,fcc-stepping-enable; + +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <25 0 4000 4000>, + <35 0 4000 4000>, + <45 0 4000 4000>, + <60 4200 4000 0>; + qcom,mmi-ffc-zones = <4200 260 534>, + <4500 260 534>, + <4500 260 534>, + <4520 550 960>, + <4520 600 1010>, + <4520 750 1160>, + <4200 260 575>; + + qcom,iterm-ma = <260>; + mmi,enable-factory-mode-aicl; + qcom,noffc-chg-iterm = <260>; + qcom,noffc-chg-iterm-45c = <390>; + qcom,noffc-qg-iterm = <500>; + qcom,noffc-max-fv = <4500>; +}; + +&pm7250b_qg { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>, + <&mmi_chrg PSY_IIO_CP_ENABLE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done", + "cp_charging_enabled"; + mmi,cp-use-internal-qg; + qcom,qg-iterm-ma = <500>; +}; + +&qupv3_se10_i2c { + status = "okay"; + bq25960_standalone:bq25960-standalone@6A { + status = "okay"; + compatible = "ti,bq25960-standalone"; + reg = <0x6A>; + sc8541-addr = <0x6A>; + sc8541-name = "sc8541-master"; + #io-channel-cells = <1>; + interrupt-parent = <&tlmm>; + interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; + irq-gpio = <&tlmm 12 0>; + }; +}; + +&soc { + mmi_chrg: mmi_chrg_manager { + compatible = "mmi,chrg-manager"; + #io-channel-cells = <1>; + io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, + <&pm7250b_charger PSY_IIO_CHARGING_ENABLED>, + <&pm7250b_charger PSY_IIO_TYPEC_MODE>, + <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, + <&pm7250b_charger PSY_IIO_PD_ACTIVE>, + /*qc3p start*/ + <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, + <&pm7250b_charger PSY_IIO_DP_DM>, + <&pm7250b_charger PSY_IIO_MMI_QC3P_POWER>, + /*qc3p end*/ + <&bq25960_standalone PSY_IIO_CP_ENABLE>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, + <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, + <&bq25960_standalone PSY_IIO_CP_STATUS1>, + <&bq25960_standalone PSY_IIO_CP_CLEAR_ERROR>, + <&pm7250b_mmi PSY_IIO_CP_ENABLE>; + + io-channel-names = "usb_hw_current_max", + "charging_enabled", + "usb_typec_mode", + "usb_input_current_settled", + "usb_pd_active", + /*qc3p start*/ + "usb_real_type", + "battery_dp_dm", + "usb_qc3p_power", + /*qc3p end*/ + "cp_enable", + "cp_input_current_now", + "cp_input_voltage_now", + "cp_status1", + "cp_clear_error", + "mmi_cp_enabled_status"; + + qcom,usbpd-phandle = <&pm7250b_pdphy>; + mmi,pps-volt-steps = <20000>; + mmi,pps-curr-steps = <100000>; + mmi,pd-volt-max = <10000000>; + mmi,pd-curr-max = <3000000>; + mmi,batt-curr-boost = <300000>; + mmi,batt-ovp-lmt = <4580000>; + mmi,pl-chrg-vbatt-min = <3000000>; + mmi,typec-middle-current = <2000000>; + mmi,pd-allow-min-current = <1000000>; + mmi,step-first-current-comp = <0>; + mmi,dont-rerun-aicl; + /*qc3p start*/ + mmi,qc3p-max-ibus-ma = <3000>; + mmi,qc3p-volt-steps = <20000>; + mmi,qc3p-volt-max = <10000000>; + /*qc3p end*/ + mmi,chrg-temp-zones-num = <5>; + mmi,mmi-chrg-temp-zones = + <0 4200 1000 0 0 0 0>, + <10 4250 3000 4500 1000 0 0>, + <15 4500 3000 0 0 0 0>, + <45 4300 5800 4400 5200 4520 4000>, + <60 4200 4000 0 0 0 0>; + mmi,thermal-mitigation = + <5800000>, + <5000000>, + <4000000>, + <3500000>, + <3000000>, + <2000000>, + <1000000>; + charger_device_0 { + chrg-name = "pmic-sw"; + psy-name = "battery"; + charging-curr-limited = <500000>; + }; + charger_device_1 { + chrg-name = "cp-master"; + psy-name = "bq25960-standalone"; + charging-curr-min = <2000000>; + }; + }; +}; + diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi new file mode 100644 index 000000000000..a75882e80d0b --- /dev/null +++ b/qcom/fogor-display.dtsi @@ -0,0 +1,395 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + + +&tlmm { + display_panel_vddio_default: display_panel_vddio_default { + mux { + pins = "gpio102"; + function = "gpio"; + }; + + config { + pins = "gpio102"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + display_panel_vci_default: display_panel_vci_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + display_panel_dvdd_default: display_panel_dvdd_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + display_panel_vddio: display_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "display_panel_vddio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 102 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&display_panel_vddio>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&display_panel_vddio_default>; + }; + + display_panel_vci: display_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "display_panel_vci"; + regulator-min-microvolt = <3000000>; + regulator-max-microvolt = <3000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&display_panel_vci>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&display_panel_vci_default>; + }; + + display_panel_dvdd: display_gpio_regulator@3 { + compatible = "qti-regulator-fixed"; + regulator-name = "display_panel_dvdd"; + regulator-min-microvolt = <1250000>; + regulator-max-microvolt = <1250000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&display_panel_dvdd>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&display_panel_dvdd_default>; + }; + + dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-off-sleep = <1>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <1>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + }; + + dsi_panel_pwr_supply_ext_bias_nt: dsi_panel_pwr_supply_ext_bias_nt { + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-off-sleep = <1>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "dvdd"; + qcom,supply-min-voltage = <1250000>; + qcom,supply-max-voltage = <1250000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <1>; + qcom,supply-post-on-sleep = <2>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "vci"; + qcom,supply-min-voltage = <3000000>; + qcom,supply-max-voltage = <3000000>; + qcom,supply-enable-load = <300000>; + qcom,supply-disable-load = <0>; + qcom,supply-pre-on-sleep = <0>; + qcom,supply-post-on-sleep = <10>; + qcom,supply-pre-off-sleep = <2>; + qcom,supply-post-off-sleep = <2>; + }; + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + vddio-supply = <&display_panel_vddio>; + vci-supply = <&display_panel_vci>; + dvdd-supply = <&display_panel_dvdd>; + + qcom,dsi-default-panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; +}; + + +&mot_csot_vtdr6115_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-dfps-send-command-with-te-async; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-dsi-bl-inverted-dbv; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-clockrate = <890000000>; + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 + 08 08 02 04 00 1A 0D]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_tm_nt37703_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 + 07 08 02 04 00 19 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_tm_u8_nt37703_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9c>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 + 07 08 02 04 00 19 0C]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&qupv3_se10_i2c { + status = "ok"; + + lcd_backlight@36 { + compatible = "awinic,aw99703-bl"; + reg = <0x36>; + + /* Awinic, aw99703 */ + aw99703,hwen-gpio = <&tlmm 60 0>; + aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ + aw99703,using-lsb; + aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ + aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ + aw99703,switch-freq = <1>; /* 1000kHz(default) */ + aw99703,auto-freq-high = <0x10>; + aw99703,auto-freq-low = <0x05>; + aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ + aw99703,bl-channel = <3>; + aw99703,turn-on-ramp = <0x00>; /* 512us */ + aw99703,turn-off-ramp = <0x04>; /* 8ms */ + aw99703,pwm-trans-dim = <0>; /* 2ms */ + aw99703,i2c-trans-dim = <1>; /* 128ms */ + aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ + aw99703,map-type = <0>; /* 0 exponential, 4 linear */ + aw99703,work-mode = <1>; /* backlight */ + aw99703,default-brightness = <1810>; + + }; +}; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/fogor-fps-overlay.dtsi b/qcom/fogor-fps-overlay.dtsi new file mode 100644 index 000000000000..3e82631392f1 --- /dev/null +++ b/qcom/fogor-fps-overlay.dtsi @@ -0,0 +1,102 @@ +&tlmm { + ets_irq_active: egis_irq_active { + /* INTERRUPT */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + input-enable; + }; + }; + + ets_rst_high: ets_rst_high { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_rst_low: ets_rst_low { + /* INTERRUPT */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + ets_vcc_high: ets_vcc_high { + /* INTERRUPT */ + mux { + pins = "gpio100"; + function = "gpio"; + }; + + config { + pins = "gpio100"; + drive-strength = <2>; /* 2 MA */ + output-high; + }; + }; + + ets_vcc_low: ets_vcc_low { + /* INTERRUPT */ + mux { + pins = "gpio100"; + function = "gpio"; + }; + + config { + pins = "gpio100"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + + + + + + + +}; + +&soc { + EL721: EL721 { + compatible = "fp-egistec"; + status = "ok"; + reg = <0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0x0>; + fp-ctrl-power; + fp-gpio-vcc-enable; + egistec,gpio_vcc_en = <&tlmm 100 0x0>; + egistec,gpio_irq = <&tlmm 17 0x0>; + egistec,gpio_reset = <&tlmm 18 0x0>; + pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", + "egis_vcc_high", "egis_vcc_low"; + pinctrl-0 = <&ets_rst_high>; + pinctrl-1 = <&ets_rst_low>; + pinctrl-2 = <&ets_irq_active>; + pinctrl-3 = <&ets_vcc_high>; + pinctrl-4 = <&ets_vcc_low>; + }; + +}; diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi new file mode 100755 index 000000000000..a0df4cb77529 --- /dev/null +++ b/qcom/fogor-sensors.dtsi @@ -0,0 +1,188 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + sar_int_fogor_default: sar_int_fogor_default { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_fogor_sleep: sar_int_fogor_sleep { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + +&qupv3_se8_i2c { + status = "okay"; + Semtech_sx937x@2c { + compatible = "Semtech,sx937x"; + reg = <0x2c>; + Semtech,power-supply-type = <1>; + cap_vdd-supply = <&L12A>; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_fogor_default>; + pinctrl-1 = <&sar_int_fogor_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <58 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 58 0x02>; + /*use PH5/6 as the reference sensor + set it to 0xff if the ref-phases-x is not used*/ + Semtech,ref-phases-a = <5>; + Semtech,ref-phases-b = <6>; + Semtech,ref-phases-c = <0xff>; + Semtech,button-flag = <0x1f>; + reinit-on-i2c-failure = <1>; + Semtech,reg-num = <66>; + Semtech,reg-init = < + 0x4004 0x78 + 0x4008 0x8 + 0x8020 0x32 + 0x8028 0x45F + 0x8034 0x45F + 0x8040 0x45F + 0x804C 0x45F + 0x8058 0x45F + 0x8064 0x45E + 0x8070 0x45E + 0x807C 0x45E + 0x8030 0x924925 + 0x803C 0xB24924 + 0x8048 0x924964 + 0x8054 0x925924 + 0x8060 0x964924 + 0x806C 0x92492C + 0x8078 0x92C924 + 0x8084 0x924924 + 0x8098 0x685A + 0x80B8 0x2D23 + 0x80D8 0x4D40 + 0x80F8 0x5A47 + 0x8118 0x4637 + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0xFF + 0x80A0 0x20200001 + 0x80C0 0x1A1A0002 + 0x80E0 0x20200001 + 0x8100 0x0 + 0x8120 0x20200002 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x7C845200 + 0x80B0 0x7C845102 + 0x80D0 0x7C845200 + 0x80F0 0x7C845100 + 0x8110 0x7C845100 + 0x8130 0x54AC5300 + 0x8150 0x54AC5300 + 0x8170 0x54AC5300 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200020 + 0x80AC 0x60200010 + 0x80CC 0x60200020 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x60200031 + 0x814C 0x60200031 + 0x816C 0x60200031 + 0x8024 0x7F7F + 0x8274 0x2E040000 + 0x4280 0x0E + >; + }; + awinic_sar@12 { + /* common node */ + compatible = "awinic,aw_sar"; + reg = < 0x12 >; + //aw_sar,regulator-power-supply = <1>; + sar-num = < 0 >; + interrupt-parent = < &tlmm >; + interrupts = <58 0x02>; + interrupt-names = "awinic_irq"; + irq-gpio = <&tlmm 58 0x02>; + //vcc0-supply = <&L12A>; + channel_use_flag = <0x1f>; + aw_sar,use_plug_cail; + aw_sar,update_fw; + /* private node belongs to aw963xx */ + start-mode = < 1 >; // 0: start in rom 1: start in ram + irq-mux = < 2 >; // set csx as irq pin. config this field when connect to aw96308/aw96310 + status = "okay"; + }; +}; + diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi new file mode 100755 index 000000000000..bd40c728bd2e --- /dev/null +++ b/qcom/fogor-touchscreen.dtsi @@ -0,0 +1,146 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&L13A { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,init-voltage = <1800000>; + status = "okay"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + + goodix-berlin@0 { + compatible = "goodix,gt9916S"; + reg = <0x0>; + spi-max-frequency = <9600000>; + + mmi,status = "/chosen","mmi,panel_name","contains","nt37703"; + //goodix,avdd-name = "avdd"; + goodix,iovdd-name = "iovdd"; + goodix,avdd-gpio = <&tlmm 11 0x0>; + iovdd-supply = <&L13A>; + + panel = <&mot_tm_nt37703_655_1080x2400_dsc_vid>; + + goodix,reset-gpio = <&tlmm 21 0x0>; + goodix,irq-gpio = <&tlmm 22 0x0>; + goodix,irq-flags = <2>; + goodix,panel-max-x = <17280>; + goodix,panel-max-y = <38400>; + goodix,panel-max-w = <255>; + + goodix,panel-max-p = <4096>; + goodix,firmware-name = "goodix_firmware.bin"; + goodix,config-name = "goodix_cfg_group.bin"; + goodix,edge-ctrl; + goodix,interpolation-ctrl; + mmi,power-off-suspend; + mmi,usb-charger-detection; + mmi,enable-gestures; + mmi,supported_gesture_type = <0x07>; + status = "ok"; + }; + + focaltech@1{ + compatible = "focaltech,fts"; + reg = <0x1>; + //mmi,status = "/chosen","vtdr6115"; + mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"; + spi-max-frequency = <9600000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2008>; + focaltech,vdd-gpio = <&tlmm 11 0x00>; + focaltech,reset-gpio = <&tlmm 21 0x00>; + focaltech,irq-gpio = <&tlmm 22 0x02008>; + vcc_i2c-supply = <&L13A>; + focaltech,max-touch-number = <10>; + focaltech,display-coords = <0 0 17280 38400>; + focaltech,edge-ctrl; + focaltech,interpolation-ctrl; + + pinctrl-names = "pmx_ts_active","pmx_ts_suspend", + "pmx_ts_release"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; + pinctrl-2 = <&pmx_ts_release>; + + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + mmi,usb-charger-detection; + mmi,enable-gestures; + mmi,supported_gesture_type = <0x07>; + status = "ok"; + }; +}; diff --git a/qcom/fogor-wl286xx.dtsi b/qcom/fogor-wl286xx.dtsi new file mode 100644 index 000000000000..80bd9f868469 --- /dev/null +++ b/qcom/fogor-wl286xx.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; diff --git a/qcom/holi-audio-fogor-overlay.dtsi b/qcom/holi-audio-fogor-overlay.dtsi new file mode 100644 index 000000000000..27d3c21b2659 --- /dev/null +++ b/qcom/holi-audio-fogor-overlay.dtsi @@ -0,0 +1,367 @@ +#include +#include +#include +#include +#include + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,mi2s-audio-intf = <0>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se8_i2c { + status = "ok"; + aw887xx_smartpa_0: aw87xxx_pa@58 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x58>; + dev_index = < 0 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; + aw887xx_smartpa_1: aw87xxx_pa@59 { + compatible = "awinic,aw87xxx_pa"; + reg = <0x59>; + dev_index = < 1 >; + esd-enable = "true"; + aw-rx-topo-id = <0x1000ff00>; + aw-rx-port-id = <0xB030>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From 3a4f16192b0afb9dcc57e2425cd36bec94d36582 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 1 Jun 2023 17:18:52 +0800 Subject: [PATCH 1069/1247] dts/display: Light and dark bars flicker when DUT brightness level is low 1. Update lhbm code 2. Enable qcom,mdss-dsi-panel-lhbm-wait-fps-valid 3. Update lhbm alpha table Change-Id: I5d8dbf8bdd657b96c88c1a458c889c294014442d Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2629624 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 269 +++++++++--------- ...el-mot-tm-nt37703-655-1080x2400-video.dtsi | 25 +- ...mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 23 +- 3 files changed, 150 insertions(+), 167 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index e7c50f8898af..e22c96f406fb 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -53,27 +53,24 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 40 00 00 03 51 0F FF - 39 00 00 40 00 00 02 62 00 - 39 00 00 40 00 00 03 F0 AA 13 + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 40 00 00 03 51 0F FF - 39 00 00 40 00 00 02 62 00 - 39 00 00 40 00 00 03 F0 AA 13 + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ - 39 00 00 40 00 00 03 F0 AA 13 - 39 00 00 40 00 00 02 C6 01 - 39 00 00 40 00 00 03 63 03 FF - 39 00 00 40 00 00 03 51 06 8F + 39 00 00 00 00 00 03 F0 AA 13 + 39 00 00 00 00 00 02 C6 01 + 39 00 00 00 00 00 03 63 03 FF 39 01 00 00 00 00 02 62 03]; - //qcom,mdss-dsi-panel-lhbm-wait-fps-valid; - qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; - qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <68>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <2>; qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; qcom,mdss-dsi-panel-local-hbm-enabled; @@ -81,118 +78,118 @@ qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; qcom,mdss-dsi-panel-local-hbm-alpha-table = < - 0 172 173 173 174 174 174 175 175 175 176 176 176 177 177 177 - 177 178 178 178 179 179 179 180 180 180 181 181 181 181 182 182 - 182 182 183 183 183 184 184 184 185 185 185 186 186 186 187 187 - 187 187 187 188 188 188 189 189 189 190 190 190 191 191 191 191 - 191 192 192 192 193 193 193 194 194 194 194 195 195 195 196 196 - 196 196 197 197 197 197 198 198 198 199 199 199 199 200 200 200 - 200 201 201 201 201 202 202 202 203 203 203 203 204 204 204 205 - 205 205 205 205 206 206 206 206 207 207 207 208 208 208 208 209 - 209 209 209 210 210 210 210 211 211 211 211 212 212 212 212 213 - 213 213 213 214 214 214 214 215 215 215 215 216 216 216 216 217 - 217 217 217 217 218 218 218 219 219 219 219 220 220 220 220 221 - 221 221 221 221 222 222 222 222 223 223 223 223 224 224 224 224 - 224 225 225 225 225 226 226 226 226 227 227 227 227 228 228 228 - 228 228 229 229 229 229 230 230 230 230 231 231 231 231 231 232 - 232 232 232 232 233 233 233 233 234 234 234 234 235 235 235 235 - 235 236 236 236 236 236 237 237 237 237 238 238 238 238 239 239 - 239 239 239 240 240 240 240 240 241 241 241 241 242 242 242 242 - 242 243 243 243 243 243 244 244 244 244 245 245 245 245 245 246 - 246 246 246 246 247 247 247 247 247 248 248 248 248 249 249 249 - 249 249 249 250 250 250 250 251 251 251 251 251 252 252 252 252 - 252 253 253 253 253 253 254 254 254 254 254 255 255 255 255 256 - 256 256 256 256 256 257 257 257 257 257 258 258 258 258 259 259 - 259 259 259 259 260 260 260 260 260 261 261 261 261 261 262 262 - 262 262 263 264 264 265 266 266 267 267 268 269 269 270 270 271 - 271 272 272 273 273 274 274 275 276 276 277 277 278 279 279 280 - 280 280 281 281 282 283 283 284 284 285 285 286 286 287 288 288 - 288 289 289 290 290 291 291 292 292 293 294 294 295 295 296 296 - 296 297 297 298 298 299 299 300 300 301 302 302 303 303 304 304 - 304 305 305 306 306 307 307 308 308 309 309 310 310 311 311 312 - 312 312 313 313 314 314 315 315 316 316 317 317 318 318 319 319 - 319 320 320 321 321 322 322 323 323 324 324 324 325 325 326 326 - 326 327 327 328 328 329 329 330 330 331 331 332 332 332 333 333 - 333 334 334 335 335 336 336 337 337 338 338 338 339 339 340 340 - 340 341 341 342 342 343 343 343 344 344 345 345 346 346 347 347 - 347 347 348 348 349 349 350 350 350 351 351 352 352 353 353 353 - 353 354 354 355 355 356 356 356 357 357 358 358 359 359 360 360 - 360 361 362 362 363 364 364 365 366 366 367 368 368 369 370 370 - 370 371 372 372 373 374 374 375 376 376 377 378 378 379 379 380 - 380 381 381 382 383 383 384 385 385 386 386 387 388 388 389 389 - 389 390 391 391 392 393 393 394 394 395 396 396 397 397 398 399 - 399 399 400 400 401 402 402 403 403 404 405 405 406 406 407 408 - 408 408 409 409 410 410 411 412 412 413 413 414 414 415 416 416 - 416 417 417 418 418 419 420 420 421 421 422 422 423 424 424 425 - 425 425 426 426 427 427 428 429 429 430 430 431 431 432 432 433 - 433 433 434 435 435 436 436 437 437 438 438 439 439 440 440 441 - 441 442 442 443 443 444 444 445 445 446 446 447 447 448 448 449 - 449 449 450 450 451 451 452 453 453 454 454 455 455 456 456 457 - 457 457 458 458 459 459 460 460 461 461 462 462 463 463 464 464 - 464 465 465 466 466 467 467 468 468 469 469 470 470 471 471 472 - 472 472 473 473 474 474 475 475 476 476 477 477 477 478 478 479 - 479 479 480 480 481 481 482 482 483 483 484 484 485 485 486 486 - 486 487 487 488 488 488 489 489 490 490 491 491 492 492 493 494 - 494 494 495 496 496 497 498 499 499 500 501 501 502 503 503 504 - 504 505 506 506 507 508 508 509 510 510 511 512 512 513 514 514 - 514 515 516 516 517 518 518 519 520 520 521 522 522 523 524 524 - 524 525 526 526 527 528 528 529 530 530 531 532 532 533 534 534 - 534 535 536 536 537 537 538 539 539 540 541 541 542 543 543 544 - 544 544 545 546 546 547 548 548 549 550 550 551 551 552 553 553 - 553 554 554 555 556 556 557 558 558 559 559 560 561 561 562 562 - 562 563 564 564 565 565 566 567 567 568 568 569 570 570 571 571 - 571 572 573 573 574 574 575 576 576 577 577 578 579 579 580 580 - 580 581 582 582 583 583 584 584 585 586 586 587 587 588 588 589 - 589 590 590 591 591 592 592 593 594 594 595 595 596 596 597 598 - 598 598 599 599 600 600 601 602 602 603 603 604 604 605 605 606 - 606 607 607 608 608 609 609 610 610 611 612 612 613 613 614 614 - 614 615 615 616 616 617 618 618 619 619 620 620 621 621 622 622 - 622 623 623 624 625 625 626 626 627 627 628 628 629 629 630 630 - 630 631 631 632 633 633 634 634 635 635 636 636 637 637 638 638 - 638 639 639 640 640 641 641 642 642 643 644 644 645 645 646 646 - 646 647 647 648 648 649 649 650 650 651 651 652 652 653 653 654 - 654 654 655 655 656 656 657 657 658 658 659 659 660 660 661 661 - 661 662 662 663 663 664 664 665 665 666 666 667 667 668 668 669 - 669 669 670 670 671 671 672 672 673 673 674 674 675 675 676 677 - 677 678 679 679 680 681 682 682 683 684 685 686 686 687 688 689 - 689 689 690 691 692 692 693 694 695 695 696 697 698 698 699 700 - 700 701 701 702 703 704 704 705 706 707 707 708 709 710 710 711 - 711 712 713 713 714 715 715 716 717 718 718 719 720 721 721 722 - 722 723 723 724 725 726 726 727 728 728 729 730 731 731 732 733 - 733 733 734 735 736 736 737 738 738 739 740 740 741 742 743 743 - 743 744 745 745 746 747 747 748 749 750 750 751 752 752 753 754 - 754 754 755 756 756 757 758 758 759 760 760 761 762 763 763 764 - 764 765 765 766 767 767 768 769 769 770 771 771 772 773 773 774 - 774 775 775 776 777 777 778 779 779 780 781 781 782 782 783 784 - 784 784 785 786 786 787 788 788 789 790 790 791 792 792 793 794 - 794 794 795 795 796 797 797 798 799 799 800 801 801 802 802 803 - 803 804 804 805 806 806 807 808 808 809 809 810 811 811 812 813 - 813 813 814 814 815 816 816 817 818 818 819 819 820 821 821 822 - 822 823 823 824 824 825 826 826 827 827 828 829 829 830 831 831 - 831 832 832 833 834 834 835 835 836 837 837 838 838 839 840 840 - 840 841 841 842 843 843 844 844 845 846 846 847 847 848 849 849 - 849 850 850 851 852 852 853 853 854 855 855 856 856 857 857 858 - 858 859 859 860 860 861 862 862 863 863 864 864 865 866 866 867 - 867 867 868 869 869 870 870 871 871 872 873 873 874 874 875 875 - 875 876 877 877 878 878 879 879 880 881 881 882 882 883 883 884 - 884 885 885 886 886 887 887 888 888 889 890 890 891 891 892 892 - 892 893 894 894 895 895 896 896 897 897 898 899 899 900 900 901 - 901 901 902 902 903 904 904 905 905 906 906 907 907 908 908 909 - 909 910 910 911 911 912 912 913 913 914 914 915 916 916 917 917 - 917 918 918 919 919 920 920 921 922 922 923 923 924 924 925 925 - 925 926 926 927 927 928 928 929 930 930 931 931 932 932 933 933 - 933 934 934 935 935 936 936 937 938 938 939 939 940 940 941 941 - 941 942 942 943 943 944 944 945 945 946 946 947 947 948 949 949 - 949 950 950 951 951 952 952 953 953 954 954 955 955 956 956 957 - 957 957 958 958 959 959 960 960 961 961 962 962 963 963 964 964 - 964 965 966 966 967 967 968 968 969 969 970 970 971 971 972 972 - 972 973 973 974 974 975 975 976 976 977 977 978 978 979 979 980 - 980 980 981 981 982 982 983 983 984 984 985 985 986 986 987 987 - 987 988 988 989 989 990 990 991 991 992 992 993 993 994 994 995 - 995 995 996 996 996 997 997 998 998 999 999 1000 1000 1001 1001 1002 - 1002 1002 1003 1003 1004 1004 1005 1005 1006 1006 1007 1007 1008 1008 1009 1009 - 1009 1010 1010 1011 1011 1012 1012 1013 1013 1013 1014 1014 1015 1015 1016 1016 - 1016 1017 1017 1018 1018 1019 1019 1020 1020 1021 1021 1022 1022 1023 1023 1023 + 4 218 218 218 220 220 220 220 220 221 221 221 221 221 221 223 + 223 223 224 224 224 224 224 224 225 225 226 226 227 227 227 227 + 227 227 228 228 230 230 230 230 230 230 230 231 231 231 231 233 + 233 233 233 233 234 234 234 234 234 235 236 236 237 237 237 237 + 237 237 238 238 238 240 240 240 241 241 241 241 241 241 242 243 + 244 244 244 244 244 245 245 245 245 245 247 247 247 247 248 248 + 248 248 248 249 249 251 251 251 251 251 251 251 252 252 252 252 + 254 254 254 254 255 255 255 255 255 255 257 257 257 258 258 258 + 258 258 259 259 259 261 261 261 261 261 261 262 262 262 262 262 + 264 264 265 265 265 265 265 265 266 266 266 268 268 268 269 269 + 269 269 269 269 270 271 271 272 272 272 272 272 273 273 273 273 + 275 275 276 276 276 276 276 277 277 277 277 279 279 279 279 279 + 280 280 280 281 281 281 282 283 283 283 283 283 283 283 284 284 + 286 286 286 287 287 287 287 287 287 288 288 289 290 290 290 290 + 290 291 291 291 291 291 293 294 294 294 294 294 295 295 295 295 + 295 297 297 297 298 298 298 298 298 299 299 301 301 301 301 301 + 302 302 302 303 303 303 305 305 305 305 305 306 306 306 306 306 + 306 308 308 308 309 309 309 309 310 310 310 311 313 313 313 313 + 313 313 314 314 314 314 316 316 316 316 317 317 317 317 317 317 + 318 319 320 320 320 321 321 321 321 321 321 322 323 323 324 324 + 324 324 325 325 325 325 325 327 327 328 328 328 328 328 329 329 + 329 331 331 331 331 331 331 332 332 332 334 334 334 335 336 336 + 337 338 339 339 341 341 341 341 343 343 343 345 345 345 347 348 + 348 348 350 350 350 352 352 352 354 354 354 354 356 356 356 358 + 358 359 360 361 361 361 363 363 363 365 365 365 367 367 367 367 + 369 369 369 371 372 372 373 373 374 374 376 376 376 378 378 378 + 378 380 380 381 382 383 383 384 384 385 385 386 387 387 388 388 + 389 390 390 391 391 392 392 393 395 395 395 397 397 397 398 399 + 399 400 401 401 402 403 403 404 404 406 406 406 408 408 408 410 + 410 410 411 412 412 412 414 414 415 416 417 417 417 418 419 419 + 421 421 421 423 423 423 423 425 425 425 427 427 427 429 429 429 + 429 431 431 432 433 433 434 435 435 436 436 438 438 438 439 440 + 440 441 442 442 442 443 444 444 446 446 446 448 448 448 448 450 + 450 450 452 452 452 454 454 454 455 456 457 457 458 458 459 459 + 461 461 463 463 464 464 465 466 466 467 468 469 469 471 471 473 + 473 473 474 474 475 476 477 478 479 479 480 481 481 482 482 484 + 484 486 486 487 487 488 489 489 490 491 492 492 494 494 495 496 + 496 498 498 499 499 501 501 502 502 504 504 504 506 506 507 508 + 509 509 510 510 512 512 512 514 514 516 516 517 517 518 519 520 + 520 520 522 522 523 524 525 525 527 527 527 528 528 529 530 531 + 531 532 533 534 535 535 536 536 538 538 539 539 541 541 542 542 + 542 544 544 546 546 547 547 548 549 550 550 550 551 552 553 553 + 554 554 556 556 557 557 557 559 559 560 560 561 561 563 563 564 + 564 564 566 566 568 568 569 570 571 571 571 572 573 574 574 575 + 575 577 577 578 578 578 579 580 581 581 582 583 585 585 586 586 + 586 588 588 589 590 591 591 592 592 594 594 594 595 596 597 597 + 598 599 600 600 601 601 602 603 603 604 604 606 606 607 607 609 + 609 609 611 611 612 612 614 614 615 615 615 617 617 618 618 619 + 620 621 621 622 622 623 624 624 625 625 627 627 628 629 630 630 + 632 633 633 634 635 636 636 637 638 639 640 641 642 642 643 644 + 644 645 646 647 647 648 649 650 651 652 653 653 654 655 655 656 + 657 658 658 660 661 662 663 663 664 664 666 666 667 668 669 670 + 670 671 672 672 674 675 676 677 677 679 679 680 681 681 682 683 + 684 684 685 686 687 687 688 689 689 690 691 692 692 693 694 695 + 696 697 698 698 699 700 700 701 702 703 703 704 705 705 707 708 + 709 709 710 711 711 712 712 713 714 715 716 716 716 718 719 719 + 720 721 721 722 723 723 724 725 726 726 727 728 728 729 730 731 + 731 732 733 733 734 735 736 736 737 738 739 739 740 741 741 742 + 743 743 744 745 746 746 747 749 749 750 750 751 751 752 753 753 + 754 755 756 756 757 758 759 759 760 761 761 762 763 763 764 765 + 766 766 767 768 768 769 770 771 771 772 773 773 774 775 776 776 + 777 777 778 779 780 781 781 782 783 783 784 785 785 786 787 787 + 787 789 790 791 791 792 793 793 794 794 795 795 796 797 797 799 + 800 800 800 802 802 802 803 804 805 805 805 806 807 808 809 810 + 810 811 812 812 812 813 814 814 815 815 815 817 818 819 819 819 + 820 821 821 822 823 823 823 824 824 825 827 827 828 829 830 830 + 831 831 831 832 833 834 834 835 836 836 837 838 839 839 840 841 + 841 842 843 843 843 844 846 846 847 848 849 849 849 850 850 851 + 852 853 853 854 856 856 856 857 858 858 858 860 861 861 862 863 + 863 864 865 866 867 867 868 869 869 870 870 872 873 873 874 875 + 875 875 877 878 879 879 880 880 881 882 883 884 885 885 885 886 + 887 888 889 890 890 891 892 892 894 894 895 896 896 897 897 898 + 900 900 900 901 902 902 903 905 905 906 906 907 908 908 910 911 + 911 911 912 913 914 914 916 916 917 917 918 919 920 921 922 923 + 923 923 924 925 926 927 927 928 929 929 930 931 933 933 934 934 + 935 936 936 938 939 939 939 940 941 941 942 944 944 945 945 946 + 947 947 949 949 950 950 951 952 953 954 955 955 956 956 957 958 + 958 959 960 961 962 962 962 963 965 965 966 967 968 968 968 969 + 971 971 972 973 973 973 974 976 977 977 977 978 979 979 981 982 + 982 982 983 984 985 985 986 987 988 988 989 990 990 991 992 993 + 993 993 994 995 995 997 997 998 999 999 999 1000 1002 1002 1003 1003 + 1004 1004 1005 1007 1007 1007 1008 1009 1010 1011 1011 1013 1014 1014 1014 1015 + 1016 1016 1017 1018 1019 1019 1020 1020 1021 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 @@ -366,7 +363,7 @@ 39 01 00 00 00 00 02 59 09 39 01 00 00 00 00 02 6C 00 39 01 00 00 00 00 03 F0 AA 10 - 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 13 0B 16 00 06 16 0B 00 00 1B 05 05 13 13 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 17 09 0B 00 06 17 09 0B 00 1B 05 05 17 17 39 01 00 00 00 00 03 FF 5A 80 39 01 00 00 00 00 02 65 0E 39 01 00 00 00 00 02 F9 B9 @@ -400,22 +397,22 @@ qcom,mdss-dsc-block-prediction-enable; qcom,mdss-dsi-dfps-60-command = [ - 39 00 00 40 00 00 02 6C 00 - 39 01 00 00 00 00 02 62 00]; + 39 00 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 02 62 00]; qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-90-command = [ - 39 00 00 40 00 00 02 6c 01 - 39 00 00 40 00 00 02 62 01 - 39 00 00 40 00 00 03 F0 AA 10 - 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 01 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-120-command = [ - 39 00 00 40 00 00 02 6c 01 - 39 00 00 40 00 00 02 62 00 - 39 00 00 40 00 00 03 F0 AA 10 - 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index cbcd94b5761d..a51a0d8904bc 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -45,28 +45,21 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 40 00 00 02 87 20 - 39 00 00 40 00 00 02 6F 09 - 39 00 00 40 00 00 03 51 00 00 - 39 01 00 00 00 00 03 51 0F FF]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 40 00 00 02 87 20 - 39 01 00 00 00 00 02 6F 09 - 39 01 00 00 00 00 03 51 00 00]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ - 39 00 00 40 00 00 02 87 25 - 39 00 00 40 00 00 02 6F 09 - 39 01 00 00 00 00 03 51 8F FF]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 8F FF 01 00 87 00 00 25]; qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; - //qcom,mdss-dsi-panel-lhbm-wait-fps-valid; - qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; - qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <68>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <2>; qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; qcom,mdss-dsi-display-timings { @@ -146,15 +139,15 @@ qcom,mdss-dsc-block-prediction-enable; qcom,mdss-dsc-novateck-ic; qcom,mdss-dsi-dfps-60-command = [ - 39 01 00 00 00 00 02 2F 03]; + 39 01 00 00 00 00 02 2F 03]; qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-90-command = [ - 39 01 00 00 00 00 02 2F 02]; + 39 01 00 00 00 00 02 2F 02]; qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-120-command = [ - 39 01 00 00 00 00 02 2F 01]; + 39 01 00 00 00 00 02 2F 01]; qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi index b4a6a4088d93..ba6df8aeeeab 100644 --- a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -45,28 +45,21 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 40 00 00 02 87 20 - 39 00 00 40 00 00 02 6F 09 - 39 00 00 40 00 00 03 51 00 00 - 39 01 00 00 00 00 03 51 0F FF]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 40 00 00 02 87 20 - 39 01 00 00 00 00 02 6F 09 - 39 01 00 00 00 00 03 51 00 00]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; qcom,mdss-dsi-hbm-off-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-fod; qcom,mdss-dsi-hbm-fod-on-command = [ - 39 00 00 40 00 00 02 87 25 - 39 00 00 40 00 00 02 6F 09 - 39 01 00 00 00 00 03 51 8F FF]; + 39 01 00 00 00 00 0E A9 01 00 51 09 0A 8F FF 01 00 87 00 00 25]; qcom,mdss-dsi-hbm-fod-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-panel-lhbm-wait-fps-valid; - qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <30>; - qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <1>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <68>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <2>; qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; qcom,mdss-dsi-display-timings { @@ -146,15 +139,15 @@ qcom,mdss-dsc-block-prediction-enable; qcom,mdss-dsc-novateck-ic; qcom,mdss-dsi-dfps-60-command = [ - 39 01 00 00 00 00 02 2F 03]; + 39 01 00 00 00 00 02 2F 03]; qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-90-command = [ - 39 01 00 00 00 00 02 2F 02]; + 39 01 00 00 00 00 02 2F 02]; qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; qcom,mdss-dsi-dfps-120-command = [ - 39 01 00 00 00 00 02 2F 01]; + 39 01 00 00 00 00 02 2F 01]; qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; }; }; From bea4bced0525857026a45a9c66ab29625b958b36 Mon Sep 17 00:00:00 2001 From: Yunxian He Date: Wed, 7 Jun 2023 11:43:00 +0800 Subject: [PATCH 1070/1247] nfc: update nfc_clk_req to bias-pull-down main changes: update nfc_clk_req from bias-disable to bias-pull-down Change-Id: I6369c44f7d9509ec0298f169a00f6d081adc5a41 Signed-off-by: Yunxian He Reviewed-on: https://gerrit.mot.com/2636240 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Zhang Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 361b67e194e4..6006913369e1 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -115,7 +115,7 @@ config { pins = "gpio7"; drive-strength = <2>; /* 2 MA */ - bias-disable; + bias-pull-down; input-enable; }; }; @@ -131,7 +131,7 @@ config { pins = "gpio7"; drive-strength = <2>; /* 2 MA */ - bias-disable; + bias-pull-down; input-enable; }; }; From 59ad2eb45e4cabdd10e8bbad3aa702267b434b92 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Tue, 6 Jun 2023 10:59:56 +0800 Subject: [PATCH 1071/1247] dts/display: fix the bug of local HBM When the backlight level <0529, 51 reg write 052A Change-Id: I67fdde016714700eade0ca5b1848b035794df993 Reviewed-on: https://gerrit.mot.com/2634669 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index e22c96f406fb..e1990c4f95e1 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -26,7 +26,6 @@ qcom,mdss-dsi-border-color = <0>; qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; - //qcom,mdss-dsi-lane-map = "lane_map_0123"; qcom,mdss-dsi-bllp-eof-power-mode; qcom,mdss-dsi-bllp-power-mode; qcom,mdss-dsi-lp11-init; @@ -53,10 +52,12 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 00 00 00 03 51 0F FF 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 00 00 00 03 51 0F FF 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; @@ -66,6 +67,7 @@ 39 00 00 00 00 00 03 F0 AA 13 39 00 00 00 00 00 02 C6 01 39 00 00 00 00 00 03 63 03 FF + 39 00 00 00 00 00 03 51 05 2A 39 01 00 00 00 00 02 62 03]; qcom,mdss-dsi-panel-lhbm-wait-fps-valid; @@ -74,7 +76,7 @@ qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; qcom,mdss-dsi-panel-local-hbm-enabled; - qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1679>; //0x068f + qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1321>; //0x0529 qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; qcom,mdss-dsi-panel-local-hbm-alpha-table = < From 568717f8485d4c2de1387b1c2cbb36f439e952f2 Mon Sep 17 00:00:00 2001 From: Xiaojun Ji Date: Wed, 7 Jun 2023 16:21:55 +0800 Subject: [PATCH 1072/1247] Update evb dts for fogo row Change-Id: Ic085b17ef40e94ac78c1a3461787f615bd718511 Reviewed-on: https://gerrit.mot.com/2636600 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/Makefile | 4 ++-- ...air-fogor-evb1-overlay.dts => blair-fogor-evb-overlay.dts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename qcom/{blair-fogor-evb1-overlay.dts => blair-fogor-evb-overlay.dts} (95%) diff --git a/qcom/Makefile b/qcom/Makefile index 073d22a795f6..11409baa6662 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -106,9 +106,9 @@ dtbo-$(CONFIG_BANGKK_DTB) += \ blair-bangkk-evb1-overlay.dtbo-base := blair-moto-bangkk-base.dtb dtbo-$(CONFIG_FOGOR_DTB) += \ - blair-fogor-evb1-overlay.dtbo + blair-fogor-evb-overlay.dtbo -blair-fogor-evb1-overlay.dtbo-base := blair-moto-fogor-base.dtb +blair-fogor-evb-overlay.dtbo-base := blair-moto-fogor-base.dtb dtbo-$(CONFIG_PENANG_DTB) += \ diff --git a/qcom/blair-fogor-evb1-overlay.dts b/qcom/blair-fogor-evb-overlay.dts similarity index 95% rename from qcom/blair-fogor-evb1-overlay.dts rename to qcom/blair-fogor-evb-overlay.dts index 6c625b7ce117..b22d57816a22 100644 --- a/qcom/blair-fogor-evb1-overlay.dts +++ b/qcom/blair-fogor-evb-overlay.dts @@ -19,6 +19,6 @@ model = "fogor"; compatible = "qcom,blair-fogor", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>; - qcom,board-id = <0x49 0xA100>; + qcom,board-id = <0x47 0xA100>; }; From 3d7e8c22552da7dd240304a37d8e7f3a3af43367 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Wed, 7 Jun 2023 18:15:58 +0800 Subject: [PATCH 1073/1247] arm/dts:modify DCP to 5V/2A for bangkk Changes, modify DCP from 5V1.5A to 5V/2A in bangkk Change-Id: I0c69c46782afa1ecbd1f7b0769013658ba9d0ee9 Reviewed-on: https://gerrit.mot.com/2636726 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 2ee2bc6d7b02..6a48d865235b 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -62,7 +62,7 @@ "cp_input_voltage_now"; qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; - qcom,dcp-curr-max = <1500000>; + qcom,dcp-curr-max = <2000000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 From d58193c4ae736bc591d42fc3d4abbac0fcc00ad4 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Thu, 8 Jun 2023 15:23:31 +0800 Subject: [PATCH 1074/1247] dts/display: Fix the issue of FOD brightness less than 1200nit When the backlight level is less than 0x52a, 51reg write 0x52a Change-Id: Ia666c356533a8564968022ba390c773adb22e1a8 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2637949 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index e1990c4f95e1..a07718f1d49a 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -76,7 +76,7 @@ qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; qcom,mdss-dsi-panel-local-hbm-enabled; - qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1321>; //0x0529 + qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1322>; //0x052A qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; qcom,mdss-dsi-panel-local-hbm-alpha-table = < From 21163bfd82673f686396b8940f16a2af2931ef12 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Mon, 5 Jun 2023 11:48:38 +0800 Subject: [PATCH 1075/1247] DTS/ARM: Enable pm wait for goodix spi touch Enable pm wait to avoid touch spi transmission error because of spi bus doesn't complete the pm resume. Change-Id: I1394bfe67ba9a0064508608438ac27a69617b0f4 Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2638127 Reviewed-by: Xiangpo Zhao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 2d946272aa78..946d75d4eb93 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -107,6 +107,7 @@ goodix,config-name = "goodix_cfg_group.bin"; goodix,edge-ctrl; goodix,interpolation-ctrl; + goodix,gesture-wait-pm; mmi,power-off-suspend; mmi,usb-charger-detection; mmi,enable-gestures; From e5dfa9273511b451217a51d1ed070508ae9b80d2 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Fri, 9 Jun 2023 10:24:31 +0800 Subject: [PATCH 1076/1247] dts:change for linein threshold 1.change for linein threshold 2.5000->4000 Change-Id: Ia26fd28d57df98e7e5f8e6dce3e5ef9abda1fe5b Reviewed-on: https://gerrit.mot.com/2638824 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhengming Yao Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 6006913369e1..31f1da078627 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -38,6 +38,10 @@ cdc-vdd-mic-bias-supply = <>; }; +&holi_snd { + qcom,msm-hs-linein-threshold = <4000>; +}; + &pm7250b_vib { qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; From 23548a295e3c026b20067e4404a1d3043a7f7e9a Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Fri, 9 Jun 2023 09:39:08 +0800 Subject: [PATCH 1077/1247] arm/dts:optimzie the quiet_therm reading Sometimes the quiet_therm is not reported to the thermalengine Changes the report mode from interrupt to poll mode. Change-Id: Icd1b834ecc0e916377c7eb5f14c952003597af9a Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2638778 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 31f1da078627..173bdc78faa0 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -413,8 +413,8 @@ }; quiet_therm { - polling-delay-passive = <0>; - polling-delay = <0>; + polling-delay-passive = <5000>; + polling-delay = <20000>; thermal-governor = "user_space"; thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; From 487d5ef03f74740159abf103920e7b0a8cbbe9d4 Mon Sep 17 00:00:00 2001 From: leiqiang Date: Wed, 31 May 2023 15:18:51 +0800 Subject: [PATCH 1078/1247] dynamic adjust host eye Details: dynamic adjust host eye modify Change-Id: I6c30317602bf6adabc13fdfe1e3a40c71ea23586 Reviewed-on: https://gerrit.mot.com/2627535 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Tested-by: Jira Key Submit-Approved: Cao Qian --- qcom/holi-penang-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-overlay.dtsi b/qcom/holi-penang-common-overlay.dtsi index d7bdc570d03a..4bec9f8b4d6e 100644 --- a/qcom/holi-penang-common-overlay.dtsi +++ b/qcom/holi-penang-common-overlay.dtsi @@ -613,7 +613,7 @@ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ 0x37 0x240 /* TUNE1 */ - 0x2a 0x244 /* TUNE2 */ + 0x2b 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ 0x03 0x250 /* TUNE5 */ From 152cd174b481a47c1f2283ea1b80663f2ef34f10 Mon Sep 17 00:00:00 2001 From: leiqiang Date: Fri, 2 Jun 2023 14:42:59 +0800 Subject: [PATCH 1079/1247] host eye diagram parameter for jp penang Details:USB host eye diagram parameter host eye diagram parameter for jp penang Change-Id: I37556fe10a014c65080c1cb952a7384062f7cfb8 Reviewed-on: https://gerrit.mot.com/2630939 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Zonghua Liu Reviewed-by: Xiangpo Zhao Tested-by: Jira Key Reviewed-by: BaiTong Submit-Approved: Cao Qian --- qcom/holi-penang-common-jp-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/holi-penang-common-jp-overlay.dtsi b/qcom/holi-penang-common-jp-overlay.dtsi index 05821b60cecf..0aee7a8946ab 100644 --- a/qcom/holi-penang-common-jp-overlay.dtsi +++ b/qcom/holi-penang-common-jp-overlay.dtsi @@ -613,7 +613,7 @@ 0x08 0x220 /* IMP_CTRL1 */ 0x58 0x224 /* IMP_CTRL2 */ 0x37 0x240 /* TUNE1 */ - 0x2a 0x244 /* TUNE2 */ + 0x2b 0x244 /* TUNE2 */ 0xca 0x248 /* TUNE3 */ 0x04 0x24c /* TUNE4 */ 0x03 0x250 /* TUNE5 */ From 044ef28b159a704cf3bb006e9d43ad386f99b8f0 Mon Sep 17 00:00:00 2001 From: Franz Wang Date: Fri, 9 Jun 2023 15:29:57 +0800 Subject: [PATCH 1080/1247] arm64/dts: update the kernel dts of "qcom,msm-id" for sm4375 update the kernel DTS of "qcom,msm-id" for sm4375 according to the below bootloader log: Best Soc Dtb 0x242/0x10000/0x0/0x0 Unable to find the Board Dtb Error: Board Dtbo blob not found BootLinux() failed: Not Found follow up the qualcomm origin strategy as below : https://sse.am.mot.com/r_source/xref/mr-2021-q2-r-qsm2021/vendor/qcom/proprietary/devicetree/qcom/blair-mtp-overlay.dts?a=true&r=61b649a6fa&h=10#10 Change-Id: I5563b64d7cef03918c2f4647d20ef99ae5e7aad5 Signed-off-by: Franz Wang Reviewed-on: https://gerrit.mot.com/2639470 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogor-evb-overlay.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogor-evb-overlay.dts b/qcom/blair-fogor-evb-overlay.dts index b22d57816a22..73b3387f0852 100644 --- a/qcom/blair-fogor-evb-overlay.dts +++ b/qcom/blair-fogor-evb-overlay.dts @@ -18,7 +18,7 @@ / { model = "fogor"; compatible = "qcom,blair-fogor", "qcom,blair-moto", "qcom,blair"; - qcom,msm-id = <507 0x10000>; + qcom,msm-id = <507 0x10000>, <578 0x10000>; qcom,board-id = <0x47 0xA100>; }; From 0a1c8f6c96f19ca81febc2066946b15302208d44 Mon Sep 17 00:00:00 2001 From: liuzhen Date: Tue, 13 Jun 2023 20:03:17 +0800 Subject: [PATCH 1081/1247] arm/dts:add the second battery curve 1.add the second battery curve for bangkk 2.reuse the second battery curve to correlate the new battery for bangkk Change-Id: Ibd255bd49adb5892b78168a7ec168e3a11985be1 Reviewed-on: https://gerrit.mot.com/2642339 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 2 + qcom/qg-batterydata-qb50-gy-5000mah.dtsi | 1020 ++++++++++++++++++ qcom/qg-batterydata-qb50-gy-icm-5000mah.dtsi | 1020 ++++++++++++++++++ 3 files changed, 2042 insertions(+) create mode 100644 qcom/qg-batterydata-qb50-gy-5000mah.dtsi create mode 100644 qcom/qg-batterydata-qb50-gy-icm-5000mah.dtsi diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 6a48d865235b..9aabcbe3f7ec 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -6,6 +6,8 @@ df-serialnum = "SB18D87863"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qb50-swd-5000mah.dtsi" + #include "qg-batterydata-qb50-gy-5000mah.dtsi" + #include "qg-batterydata-qb50-gy-icm-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-qb50-gy-5000mah.dtsi b/qcom/qg-batterydata-qb50-gy-5000mah.dtsi new file mode 100644 index 000000000000..c19847d4289b --- /dev/null +++ b/qcom/qg-batterydata-qb50-gy-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,qb50-gy-5000mah { + /* 6658361_Heyuan_P652A_5000mAH_averaged_MasterSlave_Jun12th2023 */ + serialnum = "SB18D88239"; + qcom,sdam-magic-number = <0x18D88239>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "QB50-GY-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4723 5049 5167 5198 5203>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4791 4924 5125 5154 5169 5192>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44522 44727 44805 44847 44858>, + <44303 44457 44475 44482 44485>, + <44087 44233 44234 44237 44232>, + <43876 44018 44024 44024 44019>, + <43671 43803 43815 43814 43814>, + <43461 43588 43593 43597 43600>, + <43237 43361 43364 43374 43380>, + <43005 43123 43127 43142 43151>, + <42770 42878 42881 42899 42910>, + <42528 42627 42631 42649 42662>, + <42287 42372 42375 42396 42411>, + <42052 42124 42119 42140 42157>, + <41822 41878 41872 41890 41907>, + <41596 41638 41633 41646 41660>, + <41374 41402 41397 41408 41419>, + <41157 41173 41160 41174 41183>, + <40949 40956 40932 40947 40955>, + <40748 40750 40719 40731 40737>, + <40555 40550 40519 40523 40530>, + <40367 40353 40326 40327 40332>, + <40184 40161 40149 40153 40155>, + <40008 39977 39953 39966 39969>, + <39842 39801 39686 39701 39709>, + <39679 39595 39399 39394 39406>, + <39507 39302 39189 39188 39202>, + <39328 39029 39021 39050 39069>, + <39150 38883 38886 38932 38949>, + <38970 38784 38781 38820 38819>, + <38792 38693 38690 38717 38695>, + <38661 38605 38598 38615 38588>, + <38576 38526 38511 38517 38494>, + <38507 38452 38430 38426 38408>, + <38446 38383 38354 38345 38328>, + <38389 38322 38284 38268 38252>, + <38340 38268 38222 38198 38179>, + <38295 38220 38164 38134 38109>, + <38254 38178 38111 38069 38037>, + <38215 38139 38063 38007 37964>, + <38181 38090 38005 37936 37881>, + <38144 38025 37922 37839 37776>, + <38092 37944 37818 37726 37654>, + <38021 37836 37703 37608 37531>, + <37924 37701 37566 37481 37400>, + <37788 37548 37403 37323 37231>, + <37660 37380 37239 37167 37075>, + <37496 37223 37118 37065 36992>, + <37406 37171 37085 37031 36960>, + <37315 37137 37057 37009 36935>, + <37231 37101 37035 36989 36914>, + <37158 37067 37000 36947 36867>, + <37098 37027 36838 36740 36632>, + <37041 36870 36419 36308 36189>, + <36978 36431 35820 35721 35598>, + <36882 35734 34989 34922 34783>, + <36533 34686 33673 33672 33515>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44805 44775 44775 44640 44670 44755>, + <44379 44412 44425 44337 44356 44402>, + <44020 44101 44121 44063 44075 44097>, + <43748 43854 43874 43824 43834 43852>, + <43548 43662 43673 43617 43628 43652>, + <43364 43474 43469 43404 43416 43446>, + <43161 43265 43244 43176 43189 43222>, + <42955 43047 43012 42940 42954 42992>, + <42744 42823 42773 42697 42711 42752>, + <42527 42589 42525 42445 42460 42504>, + <42302 42353 42277 42194 42209 42254>, + <42073 42118 42027 41942 41958 42003>, + <41838 41884 41777 41692 41709 41753>, + <41596 41653 41533 41450 41467 41507>, + <41342 41430 41293 41213 41230 41266>, + <41080 41205 41061 40982 41000 41034>, + <40827 40973 40839 40756 40774 40809>, + <40579 40735 40620 40539 40557 40592>, + <40338 40488 40404 40339 40352 40383>, + <40103 40221 40186 40140 40152 40180>, + <39873 39959 39941 39920 39961 39991>, + <39656 39722 39662 39679 39776 39810>, + <39452 39502 39405 39443 39566 39597>, + <39257 39299 39188 39207 39293 39317>, + <39069 39111 38994 38993 39037 39064>, + <38888 38938 38828 38830 38865 38891>, + <38718 38778 38682 38694 38728 38749>, + <38556 38632 38548 38570 38604 38620>, + <38406 38496 38420 38456 38491 38503>, + <38287 38365 38302 38350 38388 38396>, + <38194 38244 38193 38253 38295 38300>, + <38114 38135 38092 38164 38210 38212>, + <38038 38035 38001 38083 38132 38133>, + <37969 37950 37918 38010 38062 38060>, + <37901 37884 37845 37939 37987 37979>, + <37832 37826 37785 37871 37904 37885>, + <37765 37766 37732 37802 37815 37785>, + <37696 37707 37677 37724 37717 37672>, + <37627 37643 37621 37639 37611 37555>, + <37556 37575 37554 37549 37509 37450>, + <37482 37502 37451 37453 37414 37357>, + <37406 37419 37323 37345 37311 37256>, + <37328 37327 37181 37219 37192 37141>, + <37249 37221 37022 37065 37040 36985>, + <37165 37099 36844 36913 36915 36850>, + <37075 36958 36683 36847 36869 36807>, + <37025 36881 36623 36821 36857 36793>, + <36968 36792 36543 36800 36843 36780>, + <36911 36693 36413 36764 36816 36750>, + <36858 36592 36252 36695 36741 36650>, + <36801 36491 36007 36462 36452 36322>, + <36629 36358 35443 35949 35930 35787>, + <36422 36010 34906 35232 35242 35073>, + <36366 35980 34417 34248 34233 34047>, + <36694 36128 33625 32780 32977 32613>, + <37268 36260 32241 29173 28356 28386>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12887 12153 11547 11221 11115>, + <12836 12113 11530 11200 11089>, + <12794 12084 11502 11179 11076>, + <12761 12059 11485 11167 11067>, + <12733 12038 11470 11157 11060>, + <12715 12018 11455 11147 11053>, + <12706 11996 11441 11137 11046>, + <12700 11970 11425 11129 11041>, + <12687 11946 11409 11122 11037>, + <12654 11924 11397 11116 11033>, + <12614 11906 11389 11111 11030>, + <12582 11895 11383 11108 11027>, + <12548 11888 11379 11105 11024>, + <12524 11882 11375 11103 11023>, + <12510 11874 11373 11101 11022>, + <12501 11868 11373 11100 11020>, + <12494 11868 11372 11098 11019>, + <12490 11871 11371 11098 11019>, + <12487 11873 11369 11097 11019>, + <12482 11872 11369 11097 11019>, + <12475 11872 11372 11098 11019>, + <12471 11874 11374 11099 11020>, + <12481 11882 11374 11099 11019>, + <12496 11889 11373 11099 11019>, + <12501 11892 11374 11099 11018>, + <12499 11896 11377 11101 11019>, + <12498 11901 11381 11104 11021>, + <12506 11908 11386 11107 11023>, + <12523 11915 11391 11111 11027>, + <12531 11921 11396 11115 11030>, + <12529 11926 11401 11118 11033>, + <12526 11932 11407 11122 11035>, + <12529 11937 11414 11127 11038>, + <12540 11944 11420 11132 11041>, + <12550 11956 11424 11137 11045>, + <12557 11968 11427 11143 11050>, + <12565 11977 11433 11148 11054>, + <12574 11984 11441 11152 11057>, + <12588 11994 11449 11157 11061>, + <12604 12008 11456 11162 11064>, + <12625 12024 11462 11168 11068>, + <12658 12043 11469 11173 11072>, + <12688 12061 11477 11178 11075>, + <12719 12068 11487 11184 11079>, + <12710 12088 11501 11190 11082>, + <12731 12105 11509 11196 11087>, + <12742 12105 11509 11195 11086>, + <12759 12099 11509 11197 11087>, + <12759 12101 11512 11201 11090>, + <12740 12105 11520 11206 11095>, + <12732 12125 11523 11213 11100>, + <12733 12134 11535 11220 11107>, + <12740 12160 11541 11231 11117>, + <12743 12179 11565 11246 11130>, + <12743 12179 11565 11246 11130>, + <12743 12179 11565 11246 11130>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9793 10954 10194 10051 10076>, + <9999 10066 10480 10320 10135>, + <10135 10250 10606 10491 10349>, + <10166 10372 10550 10471 10371>, + <10176 10357 10483 10436 10382>, + <10180 10323 10439 10396 10368>, + <10178 10292 10401 10346 10311>, + <10172 10260 10356 10302 10267>, + <10165 10234 10301 10260 10240>, + <10157 10212 10277 10235 10225>, + <10146 10197 10281 10244 10228>, + <10133 10197 10293 10263 10236>, + <10117 10208 10473 10263 10241>, + <10105 10222 11000 10232 10244>, + <10100 10233 11182 10213 10246>, + <10096 10248 10746 10237 10262>, + <10097 10363 10337 10270 10285>, + <10108 10707 10653 10261 10283>, + <10123 10867 11354 10219 10252>, + <10134 10639 11448 10200 10236>, + <10144 10369 10824 10203 10224>, + <10155 10348 10395 10215 10226>, + <10167 10373 10487 10372 10376>, + <10181 10400 10624 10678 10664>, + <10199 10433 10610 10709 10705>, + <10222 10458 10472 10418 10459>, + <10246 10452 10405 10228 10290>, + <10266 10430 10413 10243 10493>, + <10286 10418 10425 10277 10790>, + <10293 10414 10438 10343 10777>, + <10288 10411 10460 10466 10553>, + <10281 10408 10479 10511 10369>, + <10278 10404 10495 10460 10243>, + <10276 10403 10505 10391 10167>, + <10275 10404 10509 10331 10163>, + <10273 10406 10510 10267 10169>, + <10272 10410 10510 10255 10187>, + <10270 10414 10510 10273 10255>, + <10265 10415 10514 10301 10328>, + <10258 10409 10544 10395 10390>, + <10245 10398 10577 10506 10438>, + <10224 10381 10577 10506 10435>, + <10204 10356 10563 10454 10406>, + <10183 10315 10537 10418 10488>, + <9927 10305 10524 10401 10565>, + <9862 10299 10526 10406 10379>, + <9827 10170 10398 10377 10354>, + <9803 10110 10326 10377 10348>, + <9775 10113 10361 10398 10377>, + <9756 10100 10385 10460 10458>, + <9748 10101 10377 10409 10383>, + <9737 10032 10349 10237 10164>, + <9694 9911 10186 10167 10088>, + <9683 10032 10136 10104 10023>, + <9683 10032 10136 10104 10023>, + <9683 10032 10136 10104 10023>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19598 19473 19366 19350 19358>, + <19672 19515 19428 19386 19374>, + <19720 19556 19468 19414 19398>, + <19726 19578 19470 19421 19405>, + <19724 19581 19472 19425 19408>, + <19722 19582 19476 19428 19411>, + <19716 19581 19481 19430 19414>, + <19706 19576 19481 19431 19415>, + <19703 19572 19478 19428 19413>, + <19703 19570 19473 19423 19410>, + <19703 19569 19466 19421 19408>, + <19700 19563 19460 19419 19406>, + <19692 19548 19465 19415 19404>, + <19685 19536 19480 19408 19400>, + <19683 19529 19485 19402 19397>, + <19681 19524 19455 19398 19394>, + <19677 19530 19428 19395 19391>, + <19665 19553 19435 19391 19386>, + <19652 19564 19453 19387 19381>, + <19647 19537 19453 19382 19375>, + <19644 19506 19423 19374 19369>, + <19641 19503 19402 19368 19364>, + <19638 19504 19417 19374 19368>, + <19635 19507 19440 19389 19377>, + <19636 19521 19439 19388 19377>, + <19643 19536 19423 19365 19353>, + <19652 19534 19411 19349 19337>, + <19656 19525 19405 19350 19372>, + <19659 19518 19401 19351 19422>, + <19660 19514 19402 19359 19427>, + <19654 19511 19405 19384 19416>, + <19646 19512 19409 19395 19405>, + <19641 19514 19416 19396 19395>, + <19637 19515 19422 19395 19385>, + <19634 19516 19423 19390 19374>, + <19633 19516 19424 19380 19364>, + <19632 19516 19423 19372 19356>, + <19631 19515 19417 19365 19349>, + <19629 19513 19411 19361 19346>, + <19627 19508 19409 19362 19346>, + <19622 19503 19407 19362 19346>, + <19612 19500 19404 19362 19347>, + <19601 19497 19401 19361 19351>, + <19588 19490 19397 19360 19359>, + <19402 19466 19390 19358 19364>, + <19391 19445 19381 19348 19348>, + <19394 19422 19371 19345 19342>, + <19399 19356 19365 19337 19335>, + <19400 19340 19349 19333 19328>, + <19397 19331 19337 19326 19317>, + <19389 19321 19339 19339 19333>, + <19377 19333 19336 19362 19356>, + <19382 19348 19358 19366 19356>, + <19420 19503 19394 19357 19361>, + <19420 19503 19394 19357 19361>, + <19420 19503 19394 19357 19361>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16371 15389 15080 14917 14841>, + <16172 15737 15017 14839 14804>, + <15980 15520 15159 14918 14869>, + <15790 15297 15059 14887 14848>, + <15597 15166 14950 14836 14808>, + <15437 15060 14893 14805 14783>, + <15320 14986 14848 14781 14764>, + <15224 14931 14814 14761 14748>, + <15143 14887 14787 14742 14733>, + <15072 14849 14765 14728 14722>, + <15012 14818 14750 14720 14716>, + <14967 14796 14735 14714 14712>, + <14931 14779 14706 14709 14708>, + <14899 14766 14662 14706 14704>, + <14867 14759 14649 14702 14700>, + <14838 14752 14677 14697 14696>, + <14819 14729 14703 14690 14691>, + <14807 14679 14684 14686 14688>, + <14797 14657 14642 14683 14686>, + <14788 14686 14634 14679 14683>, + <14781 14720 14656 14675 14677>, + <14775 14722 14687 14672 14672>, + <14769 14717 14722 14702 14701>, + <14765 14718 14761 14771 14770>, + <14765 14771 14793 14806 14802>, + <14770 14828 14823 14825 14816>, + <14780 14830 14834 14833 14821>, + <14801 14822 14825 14823 14774>, + <14836 14813 14809 14803 14704>, + <14851 14803 14794 14775 14690>, + <14850 14792 14776 14736 14688>, + <14849 14781 14759 14709 14686>, + <14847 14771 14740 14694 14683>, + <14841 14763 14725 14685 14681>, + <14835 14755 14714 14683 14679>, + <14828 14749 14706 14682 14677>, + <14821 14745 14705 14681 14677>, + <14811 14741 14704 14682 14677>, + <14796 14737 14704 14683 14678>, + <14777 14732 14707 14690 14687>, + <14760 14726 14711 14700 14700>, + <14743 14718 14709 14699 14698>, + <14729 14707 14701 14693 14688>, + <14718 14694 14696 14694 14687>, + <14852 14683 14686 14691 14683>, + <14866 14680 14664 14669 14661>, + <14868 14706 14667 14668 14660>, + <14870 14776 14661 14661 14654>, + <14876 14792 14664 14642 14638>, + <14887 14799 14666 14633 14628>, + <14902 14809 14675 14647 14649>, + <14923 14800 14703 14649 14657>, + <14926 14810 14690 14653 14666>, + <14911 14683 14671 14667 14669>, + <14911 14683 14671 14667 14669>, + <14911 14683 14671 14667 14669>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12775 13195 13313 13692 14947>, + <13696 14208 17401 17739 17743>, + <14403 15328 16944 18315 19312>, + <14811 16225 17364 18961 20257>, + <15073 16791 17968 20071 21398>, + <15320 17231 18731 20830 22265>, + <15588 17618 19632 21465 22969>, + <15872 17938 20162 22140 23747>, + <16261 18333 20455 22881 24707>, + <16912 19112 20842 23652 25656>, + <17599 19932 21495 24623 26442>, + <18056 20237 22582 25599 27147>, + <18406 20367 26608 25741 27768>, + <18851 20545 35628 25324 28334>, + <19766 20903 38639 25063 28999>, + <20931 21555 31015 25873 30300>, + <21680 24978 23830 27260 31816>, + <22083 34687 30229 28228 32484>, + <22505 39206 44387 29074 32678>, + <23267 33106 46273 29306 32665>, + <24425 25903 33513 28575 32509>, + <25670 25769 24744 27871 32721>, + <26844 28327 37556 31752 34473>, + <28311 32207 56707 39954 37197>, + <31041 42164 55444 40063 36269>, + <37583 51183 37975 27277 24478>, + <43560 48468 26805 18186 16414>, + <46017 38465 23245 17024 23130>, + <47773 32547 21412 16432 32992>, + <48263 30079 21357 17222 34025>, + <44856 28800 21513 20601 32627>, + <39773 28992 21943 23795 31846>, + <36993 29810 24290 27031 30973>, + <35149 30790 27466 29284 29757>, + <33999 32282 31228 29571 28506>, + <33479 33868 34949 29696 27141>, + <33130 35270 35620 29687 26662>, + <33067 36542 35547 29420 26578>, + <33864 36920 35417 29270 26568>, + <34801 36968 35019 29885 26450>, + <34742 36964 34270 30727 26278>, + <33803 36551 32837 29612 26082>, + <32782 35435 30531 26010 25749>, + <30831 33146 29158 25705 30224>, + <14355 28432 29052 26138 34985>, + <12855 24832 30039 24511 27465>, + <12837 19507 24484 22224 23082>, + <12835 13283 22701 20691 20986>, + <12738 12524 18678 22645 22548>, + <12518 12204 16750 22846 21926>, + <12199 11887 16549 25660 26959>, + <11847 12213 14839 26111 26027>, + <11822 12340 16708 24447 22151>, + <12838 33735 24970 18663 20241>, + <12838 33735 24970 18663 20241>, + <12838 33735 24970 18663 20241>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15944 15174 14805 14643 14595>, + <15857 15315 14798 14622 14582>, + <15766 15223 14872 14666 14620>, + <15668 15123 14823 14654 14612>, + <15561 15056 14770 14633 14596>, + <15466 14998 14743 14620 14586>, + <15392 14955 14722 14609 14579>, + <15329 14920 14703 14599 14572>, + <15277 14891 14686 14589 14564>, + <15233 14868 14671 14580 14557>, + <15195 14848 14658 14574 14553>, + <15162 14829 14647 14569 14550>, + <15133 14810 14637 14564 14546>, + <15108 14797 14629 14558 14541>, + <15084 14789 14622 14553 14537>, + <15064 14782 14617 14548 14533>, + <15048 14775 14612 14543 14529>, + <15036 14768 14607 14539 14525>, + <15026 14763 14601 14534 14521>, + <15020 14760 14596 14529 14516>, + <15016 14759 14592 14523 14509>, + <15013 14759 14590 14518 14504>, + <15012 14759 14610 14537 14520>, + <15011 14761 14643 14575 14556>, + <15012 14792 14654 14585 14565>, + <15020 14825 14659 14582 14560>, + <15031 14826 14660 14578 14555>, + <15046 14821 14655 14573 14553>, + <15065 14815 14647 14568 14551>, + <15073 14810 14641 14563 14548>, + <15071 14807 14636 14559 14543>, + <15069 14804 14633 14555 14537>, + <15067 14803 14630 14551 14531>, + <15066 14802 14628 14546 14525>, + <15064 14802 14626 14542 14519>, + <15064 14801 14624 14538 14513>, + <15064 14802 14622 14534 14509>, + <15064 14803 14621 14531 14505>, + <15064 14803 14620 14529 14504>, + <15064 14803 14621 14533 14507>, + <15063 14803 14624 14538 14513>, + <15062 14803 14623 14538 14514>, + <15062 14802 14621 14536 14512>, + <15066 14801 14619 14537 14516>, + <15047 14793 14615 14536 14518>, + <15052 14787 14604 14523 14501>, + <15057 14786 14601 14520 14497>, + <15061 14783 14596 14514 14491>, + <15065 14783 14590 14504 14481>, + <15069 14783 14587 14497 14471>, + <15072 14786 14595 14511 14490>, + <15076 14795 14610 14527 14509>, + <15082 14813 14621 14535 14516>, + <15097 14848 14639 14540 14525>, + <15097 14848 14639 14540 14525>, + <15097 14848 14639 14540 14525>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6547 5839 5508 5177 4962 4910>, + <6499 5848 5503 5168 4965 4906>, + <6452 5857 5499 5160 4967 4902>, + <6410 5865 5495 5152 4969 4898>, + <6379 5870 5492 5145 4969 4894>, + <6364 5872 5490 5139 4969 4890>, + <6370 5870 5490 5135 4968 4886>, + <6386 5866 5489 5130 4966 4882>, + <6393 5864 5485 5124 4963 4879>, + <6387 5854 5474 5117 4960 4877>, + <6381 5846 5469 5113 4957 4875>, + <6382 5847 5467 5109 4953 4872>, + <6392 5848 5465 5107 4951 4871>, + <6399 5848 5464 5105 4948 4869>, + <6399 5846 5463 5103 4946 4868>, + <6400 5844 5463 5101 4945 4868>, + <6399 5841 5461 5098 4943 4867>, + <6396 5835 5459 5096 4942 4867>, + <6390 5833 5459 5097 4937 4867>, + <6384 5839 5459 5099 4932 4867>, + <6376 5847 5459 5099 4929 4867>, + <6371 5848 5461 5100 4927 4867>, + <6369 5849 5463 5100 4926 4868>, + <6368 5850 5465 5104 4925 4869>, + <6371 5846 5466 5107 4925 4870>, + <6387 5842 5467 5110 4924 4870>, + <6398 5845 5470 5112 4923 4870>, + <6390 5857 5474 5115 4924 4871>, + <6373 5863 5480 5118 4926 4873>, + <6365 5854 5486 5121 4928 4875>, + <6361 5842 5486 5124 4931 4878>, + <6359 5841 5486 5127 4934 4880>, + <6357 5844 5487 5131 4937 4883>, + <6357 5847 5495 5136 4941 4885>, + <6356 5849 5503 5141 4944 4887>, + <6355 5850 5508 5146 4947 4888>, + <6354 5854 5512 5150 4949 4889>, + <6353 5861 5516 5154 4951 4891>, + <6351 5866 5521 5157 4954 4892>, + <6348 5867 5526 5160 4956 4894>, + <6339 5867 5532 5163 4958 4896>, + <6322 5868 5535 5167 4960 4898>, + <6317 5874 5535 5171 4962 4899>, + <6328 5872 5537 5177 4965 4902>, + <6349 5853 5532 5185 4969 4906>, + <6406 5832 5528 5192 4974 4908>, + <6441 5864 5526 5193 4980 4908>, + <6489 5887 5556 5199 4974 4907>, + <6515 5906 5596 5205 4975 4909>, + <6510 5943 5615 5211 4974 4910>, + <6574 5984 5545 5218 4976 4913>, + <6604 6001 5437 5242 4984 4919>, + <6602 5883 5437 5255 4993 4928>, + <6505 5812 5437 5276 5007 4944>, + <6505 5812 5437 5276 5007 4944>, + <6505 5812 5437 5276 5007 4944>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10059 10624 11002 11421 11049 11095>, + <10156 10655 11004 11351 11026 11052>, + <10270 10693 10999 11265 11001 11008>, + <10384 10730 10988 11180 10974 10964>, + <10483 10762 10974 11110 10944 10923>, + <10549 10783 10957 11069 10913 10886>, + <10579 10792 10932 11047 10876 10849>, + <10598 10799 10909 11030 10842 10816>, + <10618 10808 10899 11011 10817 10792>, + <10644 10819 10892 10992 10795 10773>, + <10670 10832 10891 10979 10788 10760>, + <10693 10846 10903 10969 10788 10751>, + <10716 10862 10924 10964 10789 10743>, + <10729 10882 10950 10976 10826 10732>, + <10732 10911 10987 11007 10890 10723>, + <10734 10943 11022 11042 10906 10726>, + <10734 10979 11055 11086 10904 10748>, + <10727 11016 11092 11137 10905 10767>, + <10715 11028 11147 11212 10934 10777>, + <10700 11014 11202 11282 10995 10789>, + <10677 10996 11204 11302 11120 10870>, + <10650 10986 11164 11309 11348 11051>, + <10618 10978 11136 11310 11425 11105>, + <10581 10967 11135 11267 11271 11060>, + <10546 10943 11137 11221 11118 11023>, + <10514 10911 11134 11229 11120 11043>, + <10471 10878 11123 11263 11154 11085>, + <10350 10841 11108 11289 11164 11114>, + <10162 10801 11085 11308 11178 11146>, + <10033 10757 11053 11325 11196 11189>, + <9870 10710 11008 11342 11227 11267>, + <9730 10663 10946 11361 11272 11352>, + <9701 10614 10889 11371 11319 11409>, + <9688 10564 10840 11382 11374 11456>, + <9681 10522 10793 11385 11407 11465>, + <9675 10475 10745 11372 11392 11408>, + <9671 10358 10695 11348 11354 11348>, + <9668 10050 10642 11310 11289 11298>, + <9666 9809 10589 11240 11179 11233>, + <9665 9743 10508 11175 11142 11210>, + <9663 9703 10260 11078 11156 11202>, + <9661 9684 9976 11007 11149 11169>, + <9659 9674 9820 10975 11103 11111>, + <9658 9667 9725 10842 11098 11103>, + <9656 9661 9681 10750 11006 11011>, + <9654 9656 9658 10697 10886 10833>, + <9653 9654 9654 10595 10943 10812>, + <9651 9652 9652 10754 10973 10834>, + <9650 9651 9650 10734 11016 10910>, + <9650 9650 9650 10743 11049 10833>, + <9649 9650 9650 10580 10817 10745>, + <9649 9649 9650 10107 10755 10679>, + <9649 9650 9650 9778 10685 10588>, + <9650 9650 9650 9662 10583 10441>, + <9650 9650 9650 9662 10583 10441>, + <9650 9650 9650 9662 10583 10441>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13499 13371 13326 13297 13279 13277>, + <13498 13373 13328 13297 13280 13278>, + <13496 13376 13330 13297 13282 13280>, + <13493 13380 13332 13297 13283 13281>, + <13490 13384 13333 13297 13284 13282>, + <13488 13385 13334 13298 13285 13282>, + <13486 13385 13335 13299 13286 13283>, + <13484 13385 13336 13300 13286 13283>, + <13482 13384 13338 13300 13287 13284>, + <13481 13383 13339 13300 13288 13285>, + <13478 13381 13340 13301 13289 13286>, + <13476 13379 13339 13301 13289 13286>, + <13473 13377 13339 13301 13290 13287>, + <13469 13376 13338 13303 13292 13287>, + <13463 13377 13336 13306 13295 13287>, + <13455 13377 13335 13307 13296 13288>, + <13449 13377 13334 13307 13296 13290>, + <13444 13376 13334 13306 13296 13291>, + <13439 13374 13334 13305 13297 13292>, + <13435 13369 13335 13304 13298 13292>, + <13431 13362 13334 13303 13298 13292>, + <13430 13359 13329 13302 13297 13293>, + <13429 13356 13323 13300 13295 13292>, + <13429 13354 13320 13296 13290 13286>, + <13428 13351 13317 13292 13285 13281>, + <13427 13349 13317 13291 13283 13280>, + <13426 13349 13316 13290 13282 13280>, + <13420 13349 13316 13290 13281 13279>, + <13410 13349 13315 13290 13280 13279>, + <13409 13350 13314 13290 13279 13279>, + <13427 13350 13314 13290 13279 13279>, + <13455 13349 13315 13290 13279 13279>, + <13482 13346 13315 13290 13279 13279>, + <13514 13343 13316 13291 13281 13279>, + <13554 13347 13318 13291 13282 13279>, + <13607 13355 13320 13292 13282 13279>, + <13674 13364 13324 13292 13281 13280>, + <13752 13376 13329 13292 13281 13279>, + <13849 13392 13337 13292 13281 13279>, + <13964 13419 13344 13292 13281 13279>, + <14097 13460 13348 13292 13282 13280>, + <14258 13515 13354 13292 13282 13282>, + <14465 13596 13374 13293 13282 13283>, + <14736 13728 13418 13291 13280 13280>, + <15226 13998 13501 13288 13278 13276>, + <16678 14671 14065 13295 13285 13284>, + <17854 15343 15243 13296 13288 13286>, + <19938 16670 17934 13303 13292 13290>, + <22979 19375 25268 13309 13294 13292>, + <28088 25285 49015 13318 13294 13290>, + <38490 39355 65535 13322 13289 13285>, + <60218 65535 65535 13333 13289 13286>, + <65535 65535 65535 13420 13293 13291>, + <65535 65535 65535 14570 13299 13302>, + <65535 65535 65535 14570 13299 13302>, + <65535 65535 65535 14570 13299 13302>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16670 16618 16562 16519 16476 16466>, + <16743 16636 16577 16514 16473 16466>, + <16832 16671 16589 16509 16470 16465>, + <16923 16711 16599 16504 16467 16465>, + <17002 16745 16604 16500 16466 16465>, + <17053 16761 16606 16497 16465 16464>, + <17076 16763 16602 16495 16466 16464>, + <17091 16764 16597 16494 16467 16464>, + <17095 16764 16594 16495 16469 16464>, + <17092 16765 16591 16497 16471 16465>, + <17085 16767 16591 16500 16473 16465>, + <17077 16773 16595 16506 16476 16467>, + <17061 16785 16604 16512 16480 16468>, + <17042 16795 16616 16517 16482 16471>, + <17017 16806 16636 16522 16484 16475>, + <16987 16813 16658 16531 16488 16478>, + <16958 16810 16686 16548 16497 16481>, + <16931 16799 16704 16570 16507 16485>, + <16902 16782 16708 16603 16518 16491>, + <16872 16746 16710 16633 16532 16501>, + <16839 16703 16700 16631 16555 16522>, + <16809 16673 16638 16604 16588 16553>, + <16780 16647 16583 16570 16596 16558>, + <16753 16627 16552 16521 16534 16513>, + <16725 16611 16531 16483 16473 16473>, + <16693 16598 16523 16480 16467 16466>, + <16675 16587 16519 16479 16464 16462>, + <16680 16578 16517 16479 16465 16463>, + <16690 16570 16516 16483 16471 16466>, + <16698 16558 16515 16488 16480 16472>, + <16711 16549 16513 16494 16488 16478>, + <16725 16549 16510 16500 16498 16486>, + <16734 16555 16508 16508 16506 16496>, + <16741 16562 16506 16516 16515 16509>, + <16748 16568 16505 16520 16518 16512>, + <16756 16575 16510 16520 16515 16510>, + <16763 16587 16522 16519 16509 16506>, + <16768 16614 16535 16514 16498 16495>, + <16772 16639 16551 16501 16481 16480>, + <16775 16655 16565 16494 16476 16478>, + <16775 16668 16572 16492 16477 16482>, + <16775 16677 16578 16492 16479 16488>, + <16775 16682 16583 16496 16481 16490>, + <16773 16685 16591 16490 16462 16466>, + <16779 16687 16588 16473 16445 16442>, + <16980 16688 16620 16483 16457 16456>, + <17137 16703 16667 16498 16476 16487>, + <17385 16820 17010 16514 16510 16529>, + <17705 17189 18670 16541 16549 16569>, + <18150 18149 26796 16577 16568 16569>, + <19120 21475 51721 16577 16509 16501>, + <19453 35972 46528 16573 16478 16483>, + <16612 27251 17019 16657 16480 16482>, + <16727 65535 65535 17091 16493 16493>, + <16727 65535 65535 17091 16493 16493>, + <16727 65535 65535 17091 16493 16493>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <14276 17360 20453 22984 18624 18621>, + <15020 17898 20521 21967 18808 19407>, + <15741 18244 20456 20943 18858 20063>, + <16416 18439 20288 19980 18801 20559>, + <17024 18526 20042 19145 18663 20860>, + <17544 18547 19746 18502 18461 20924>, + <17956 18459 19334 18010 17946 20436>, + <18301 18244 18885 17590 17322 19828>, + <18670 17999 18550 17127 16911 19529>, + <19091 17641 18273 16555 16574 19189>, + <19522 17387 17908 16088 16251 18864>, + <19971 17363 17323 15466 15868 18373>, + <20488 17394 16724 15045 15646 17819>, + <20757 17523 16233 15198 16021 17138>, + <20701 18321 15807 15504 16695 16508>, + <20600 19463 15760 15496 16696 16513>, + <20591 20772 16353 15030 15945 16941>, + <20814 22282 17348 14732 15404 17140>, + <21111 22781 19645 15045 15254 16429>, + <21337 22603 22665 15820 15172 15639>, + <21557 22414 23632 17748 15681 15665>, + <21751 22458 23956 22057 17656 15985>, + <21949 22633 24064 23916 19503 16644>, + <22099 22707 23553 22959 21301 19048>, + <22010 22451 22864 21726 22443 20821>, + <21307 22120 22903 21177 21721 20471>, + <20242 22026 23383 20808 19782 19636>, + <17929 21979 23644 20581 18283 18767>, + <14713 21896 22976 20393 16952 17386>, + <13487 21501 22183 20294 16303 16680>, + <13234 20745 22032 20429 16338 16604>, + <13109 19385 21739 20785 16438 16575>, + <13122 16641 21365 21232 16865 16699>, + <13197 15090 20685 21996 18289 17150>, + <13275 15392 20202 22872 19588 17801>, + <13334 15862 20260 24074 20604 19103>, + <13396 15851 20453 25108 21349 20360>, + <13483 15203 20785 24991 21629 21070>, + <13617 14668 21732 24105 21797 21629>, + <13702 14560 22331 23207 21817 22074>, + <13705 14495 20014 21787 21615 22531>, + <13704 14413 16814 20665 21260 22790>, + <13693 14310 15250 20061 20779 23389>, + <13558 14191 14405 19013 20799 25578>, + <13228 13983 13991 17186 18369 18843>, + <11649 13574 13386 18574 18475 19408>, + <10960 13074 13221 16874 18592 17373>, + <10409 11790 11058 17937 18314 16604>, + <10134 10497 9661 17923 17345 16040>, + <10091 9828 9177 18778 16794 15125>, + <10163 9407 9049 18489 16146 15540>, + <10553 9137 14798 16617 17830 15525>, + <31033 18310 22488 14317 18370 16138>, + <25222 15702 13837 12785 20905 21779>, + <25222 15702 13837 12785 20905 21779>, + <25222 15702 13837 12785 20905 21779>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5726 5347 5175 5060 5000 4991>, + <5737 5351 5176 5056 5000 4991>, + <5745 5354 5177 5053 5001 4991>, + <5749 5355 5176 5050 5001 4991>, + <5751 5356 5174 5047 5002 4992>, + <5752 5356 5171 5045 5002 4992>, + <5751 5353 5168 5044 5003 4992>, + <5747 5347 5164 5043 5004 4992>, + <5742 5342 5161 5042 5004 4993>, + <5737 5336 5158 5042 5005 4993>, + <5729 5333 5157 5042 5006 4994>, + <5721 5331 5157 5043 5007 4994>, + <5712 5329 5157 5044 5008 4995>, + <5702 5329 5158 5046 5010 4996>, + <5689 5330 5161 5049 5013 4997>, + <5675 5331 5165 5053 5015 4998>, + <5662 5330 5172 5057 5017 5001>, + <5650 5325 5176 5062 5020 5003>, + <5640 5319 5178 5070 5023 5005>, + <5630 5305 5179 5078 5027 5008>, + <5620 5289 5175 5077 5033 5014>, + <5614 5279 5154 5068 5040 5023>, + <5610 5270 5135 5057 5042 5024>, + <5608 5265 5125 5040 5020 5006>, + <5608 5261 5118 5027 4998 4991>, + <5610 5259 5117 5026 4995 4988>, + <5613 5259 5117 5026 4993 4986>, + <5620 5261 5117 5026 4993 4986>, + <5632 5263 5119 5028 4994 4987>, + <5649 5266 5120 5030 4996 4989>, + <5676 5270 5122 5032 4999 4991>, + <5711 5276 5125 5035 5002 4993>, + <5749 5286 5129 5039 5005 4997>, + <5793 5300 5133 5042 5009 5001>, + <5843 5319 5140 5045 5011 5002>, + <5900 5345 5149 5047 5010 5001>, + <5965 5376 5163 5048 5009 5001>, + <6040 5414 5181 5048 5006 4998>, + <6126 5460 5205 5045 5001 4993>, + <6225 5512 5233 5044 5000 4993>, + <6339 5574 5262 5045 5001 4996>, + <6473 5649 5297 5047 5003 4999>, + <6643 5742 5350 5052 5004 5000>, + <6860 5880 5437 5051 4997 4991>, + <7258 6123 5567 5046 4991 4983>, + <8490 6657 6108 5060 5001 4993>, + <9450 7168 6990 5068 5009 5004>, + <11026 8195 9056 5083 5022 5018>, + <13260 10256 14651 5100 5034 5031>, + <16886 14630 32988 5125 5040 5030>, + <24240 25115 65535 5141 5019 5008>, + <38987 54089 65535 5183 5011 5005>, + <65535 65535 65535 5384 5017 5009>, + <65535 65535 65535 6508 5027 5023>, + <65535 65535 65535 6508 5027 5023>, + <65535 65535 65535 6508 5027 5023>; + }; + +}; diff --git a/qcom/qg-batterydata-qb50-gy-icm-5000mah.dtsi b/qcom/qg-batterydata-qb50-gy-icm-5000mah.dtsi new file mode 100644 index 000000000000..70fbe8f8942c --- /dev/null +++ b/qcom/qg-batterydata-qb50-gy-icm-5000mah.dtsi @@ -0,0 +1,1020 @@ + + +qcom,qb50-gy-icm-5000mah { + /* 6658361_Heyuan_P652A_5000mAH_averaged_MasterSlave_Jun12th2023 */ + serialnum = "SB18D97229"; + qcom,sdam-magic-number = <0x18D97229>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <10>; + qcom,battery-type = "QB50-GY-ICM-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4723 5049 5167 5198 5203>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4791 4924 5125 5154 5169 5192>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44522 44727 44805 44847 44858>, + <44303 44457 44475 44482 44485>, + <44087 44233 44234 44237 44232>, + <43876 44018 44024 44024 44019>, + <43671 43803 43815 43814 43814>, + <43461 43588 43593 43597 43600>, + <43237 43361 43364 43374 43380>, + <43005 43123 43127 43142 43151>, + <42770 42878 42881 42899 42910>, + <42528 42627 42631 42649 42662>, + <42287 42372 42375 42396 42411>, + <42052 42124 42119 42140 42157>, + <41822 41878 41872 41890 41907>, + <41596 41638 41633 41646 41660>, + <41374 41402 41397 41408 41419>, + <41157 41173 41160 41174 41183>, + <40949 40956 40932 40947 40955>, + <40748 40750 40719 40731 40737>, + <40555 40550 40519 40523 40530>, + <40367 40353 40326 40327 40332>, + <40184 40161 40149 40153 40155>, + <40008 39977 39953 39966 39969>, + <39842 39801 39686 39701 39709>, + <39679 39595 39399 39394 39406>, + <39507 39302 39189 39188 39202>, + <39328 39029 39021 39050 39069>, + <39150 38883 38886 38932 38949>, + <38970 38784 38781 38820 38819>, + <38792 38693 38690 38717 38695>, + <38661 38605 38598 38615 38588>, + <38576 38526 38511 38517 38494>, + <38507 38452 38430 38426 38408>, + <38446 38383 38354 38345 38328>, + <38389 38322 38284 38268 38252>, + <38340 38268 38222 38198 38179>, + <38295 38220 38164 38134 38109>, + <38254 38178 38111 38069 38037>, + <38215 38139 38063 38007 37964>, + <38181 38090 38005 37936 37881>, + <38144 38025 37922 37839 37776>, + <38092 37944 37818 37726 37654>, + <38021 37836 37703 37608 37531>, + <37924 37701 37566 37481 37400>, + <37788 37548 37403 37323 37231>, + <37660 37380 37239 37167 37075>, + <37496 37223 37118 37065 36992>, + <37406 37171 37085 37031 36960>, + <37315 37137 37057 37009 36935>, + <37231 37101 37035 36989 36914>, + <37158 37067 37000 36947 36867>, + <37098 37027 36838 36740 36632>, + <37041 36870 36419 36308 36189>, + <36978 36431 35820 35721 35598>, + <36882 35734 34989 34922 34783>, + <36533 34686 33673 33672 33515>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44805 44775 44775 44640 44670 44755>, + <44379 44412 44425 44337 44356 44402>, + <44020 44101 44121 44063 44075 44097>, + <43748 43854 43874 43824 43834 43852>, + <43548 43662 43673 43617 43628 43652>, + <43364 43474 43469 43404 43416 43446>, + <43161 43265 43244 43176 43189 43222>, + <42955 43047 43012 42940 42954 42992>, + <42744 42823 42773 42697 42711 42752>, + <42527 42589 42525 42445 42460 42504>, + <42302 42353 42277 42194 42209 42254>, + <42073 42118 42027 41942 41958 42003>, + <41838 41884 41777 41692 41709 41753>, + <41596 41653 41533 41450 41467 41507>, + <41342 41430 41293 41213 41230 41266>, + <41080 41205 41061 40982 41000 41034>, + <40827 40973 40839 40756 40774 40809>, + <40579 40735 40620 40539 40557 40592>, + <40338 40488 40404 40339 40352 40383>, + <40103 40221 40186 40140 40152 40180>, + <39873 39959 39941 39920 39961 39991>, + <39656 39722 39662 39679 39776 39810>, + <39452 39502 39405 39443 39566 39597>, + <39257 39299 39188 39207 39293 39317>, + <39069 39111 38994 38993 39037 39064>, + <38888 38938 38828 38830 38865 38891>, + <38718 38778 38682 38694 38728 38749>, + <38556 38632 38548 38570 38604 38620>, + <38406 38496 38420 38456 38491 38503>, + <38287 38365 38302 38350 38388 38396>, + <38194 38244 38193 38253 38295 38300>, + <38114 38135 38092 38164 38210 38212>, + <38038 38035 38001 38083 38132 38133>, + <37969 37950 37918 38010 38062 38060>, + <37901 37884 37845 37939 37987 37979>, + <37832 37826 37785 37871 37904 37885>, + <37765 37766 37732 37802 37815 37785>, + <37696 37707 37677 37724 37717 37672>, + <37627 37643 37621 37639 37611 37555>, + <37556 37575 37554 37549 37509 37450>, + <37482 37502 37451 37453 37414 37357>, + <37406 37419 37323 37345 37311 37256>, + <37328 37327 37181 37219 37192 37141>, + <37249 37221 37022 37065 37040 36985>, + <37165 37099 36844 36913 36915 36850>, + <37075 36958 36683 36847 36869 36807>, + <37025 36881 36623 36821 36857 36793>, + <36968 36792 36543 36800 36843 36780>, + <36911 36693 36413 36764 36816 36750>, + <36858 36592 36252 36695 36741 36650>, + <36801 36491 36007 36462 36452 36322>, + <36629 36358 35443 35949 35930 35787>, + <36422 36010 34906 35232 35242 35073>, + <36366 35980 34417 34248 34233 34047>, + <36694 36128 33625 32780 32977 32613>, + <37268 36260 32241 29173 28356 28386>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12887 12153 11547 11221 11115>, + <12836 12113 11530 11200 11089>, + <12794 12084 11502 11179 11076>, + <12761 12059 11485 11167 11067>, + <12733 12038 11470 11157 11060>, + <12715 12018 11455 11147 11053>, + <12706 11996 11441 11137 11046>, + <12700 11970 11425 11129 11041>, + <12687 11946 11409 11122 11037>, + <12654 11924 11397 11116 11033>, + <12614 11906 11389 11111 11030>, + <12582 11895 11383 11108 11027>, + <12548 11888 11379 11105 11024>, + <12524 11882 11375 11103 11023>, + <12510 11874 11373 11101 11022>, + <12501 11868 11373 11100 11020>, + <12494 11868 11372 11098 11019>, + <12490 11871 11371 11098 11019>, + <12487 11873 11369 11097 11019>, + <12482 11872 11369 11097 11019>, + <12475 11872 11372 11098 11019>, + <12471 11874 11374 11099 11020>, + <12481 11882 11374 11099 11019>, + <12496 11889 11373 11099 11019>, + <12501 11892 11374 11099 11018>, + <12499 11896 11377 11101 11019>, + <12498 11901 11381 11104 11021>, + <12506 11908 11386 11107 11023>, + <12523 11915 11391 11111 11027>, + <12531 11921 11396 11115 11030>, + <12529 11926 11401 11118 11033>, + <12526 11932 11407 11122 11035>, + <12529 11937 11414 11127 11038>, + <12540 11944 11420 11132 11041>, + <12550 11956 11424 11137 11045>, + <12557 11968 11427 11143 11050>, + <12565 11977 11433 11148 11054>, + <12574 11984 11441 11152 11057>, + <12588 11994 11449 11157 11061>, + <12604 12008 11456 11162 11064>, + <12625 12024 11462 11168 11068>, + <12658 12043 11469 11173 11072>, + <12688 12061 11477 11178 11075>, + <12719 12068 11487 11184 11079>, + <12710 12088 11501 11190 11082>, + <12731 12105 11509 11196 11087>, + <12742 12105 11509 11195 11086>, + <12759 12099 11509 11197 11087>, + <12759 12101 11512 11201 11090>, + <12740 12105 11520 11206 11095>, + <12732 12125 11523 11213 11100>, + <12733 12134 11535 11220 11107>, + <12740 12160 11541 11231 11117>, + <12743 12179 11565 11246 11130>, + <12743 12179 11565 11246 11130>, + <12743 12179 11565 11246 11130>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9793 10954 10194 10051 10076>, + <9999 10066 10480 10320 10135>, + <10135 10250 10606 10491 10349>, + <10166 10372 10550 10471 10371>, + <10176 10357 10483 10436 10382>, + <10180 10323 10439 10396 10368>, + <10178 10292 10401 10346 10311>, + <10172 10260 10356 10302 10267>, + <10165 10234 10301 10260 10240>, + <10157 10212 10277 10235 10225>, + <10146 10197 10281 10244 10228>, + <10133 10197 10293 10263 10236>, + <10117 10208 10473 10263 10241>, + <10105 10222 11000 10232 10244>, + <10100 10233 11182 10213 10246>, + <10096 10248 10746 10237 10262>, + <10097 10363 10337 10270 10285>, + <10108 10707 10653 10261 10283>, + <10123 10867 11354 10219 10252>, + <10134 10639 11448 10200 10236>, + <10144 10369 10824 10203 10224>, + <10155 10348 10395 10215 10226>, + <10167 10373 10487 10372 10376>, + <10181 10400 10624 10678 10664>, + <10199 10433 10610 10709 10705>, + <10222 10458 10472 10418 10459>, + <10246 10452 10405 10228 10290>, + <10266 10430 10413 10243 10493>, + <10286 10418 10425 10277 10790>, + <10293 10414 10438 10343 10777>, + <10288 10411 10460 10466 10553>, + <10281 10408 10479 10511 10369>, + <10278 10404 10495 10460 10243>, + <10276 10403 10505 10391 10167>, + <10275 10404 10509 10331 10163>, + <10273 10406 10510 10267 10169>, + <10272 10410 10510 10255 10187>, + <10270 10414 10510 10273 10255>, + <10265 10415 10514 10301 10328>, + <10258 10409 10544 10395 10390>, + <10245 10398 10577 10506 10438>, + <10224 10381 10577 10506 10435>, + <10204 10356 10563 10454 10406>, + <10183 10315 10537 10418 10488>, + <9927 10305 10524 10401 10565>, + <9862 10299 10526 10406 10379>, + <9827 10170 10398 10377 10354>, + <9803 10110 10326 10377 10348>, + <9775 10113 10361 10398 10377>, + <9756 10100 10385 10460 10458>, + <9748 10101 10377 10409 10383>, + <9737 10032 10349 10237 10164>, + <9694 9911 10186 10167 10088>, + <9683 10032 10136 10104 10023>, + <9683 10032 10136 10104 10023>, + <9683 10032 10136 10104 10023>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19598 19473 19366 19350 19358>, + <19672 19515 19428 19386 19374>, + <19720 19556 19468 19414 19398>, + <19726 19578 19470 19421 19405>, + <19724 19581 19472 19425 19408>, + <19722 19582 19476 19428 19411>, + <19716 19581 19481 19430 19414>, + <19706 19576 19481 19431 19415>, + <19703 19572 19478 19428 19413>, + <19703 19570 19473 19423 19410>, + <19703 19569 19466 19421 19408>, + <19700 19563 19460 19419 19406>, + <19692 19548 19465 19415 19404>, + <19685 19536 19480 19408 19400>, + <19683 19529 19485 19402 19397>, + <19681 19524 19455 19398 19394>, + <19677 19530 19428 19395 19391>, + <19665 19553 19435 19391 19386>, + <19652 19564 19453 19387 19381>, + <19647 19537 19453 19382 19375>, + <19644 19506 19423 19374 19369>, + <19641 19503 19402 19368 19364>, + <19638 19504 19417 19374 19368>, + <19635 19507 19440 19389 19377>, + <19636 19521 19439 19388 19377>, + <19643 19536 19423 19365 19353>, + <19652 19534 19411 19349 19337>, + <19656 19525 19405 19350 19372>, + <19659 19518 19401 19351 19422>, + <19660 19514 19402 19359 19427>, + <19654 19511 19405 19384 19416>, + <19646 19512 19409 19395 19405>, + <19641 19514 19416 19396 19395>, + <19637 19515 19422 19395 19385>, + <19634 19516 19423 19390 19374>, + <19633 19516 19424 19380 19364>, + <19632 19516 19423 19372 19356>, + <19631 19515 19417 19365 19349>, + <19629 19513 19411 19361 19346>, + <19627 19508 19409 19362 19346>, + <19622 19503 19407 19362 19346>, + <19612 19500 19404 19362 19347>, + <19601 19497 19401 19361 19351>, + <19588 19490 19397 19360 19359>, + <19402 19466 19390 19358 19364>, + <19391 19445 19381 19348 19348>, + <19394 19422 19371 19345 19342>, + <19399 19356 19365 19337 19335>, + <19400 19340 19349 19333 19328>, + <19397 19331 19337 19326 19317>, + <19389 19321 19339 19339 19333>, + <19377 19333 19336 19362 19356>, + <19382 19348 19358 19366 19356>, + <19420 19503 19394 19357 19361>, + <19420 19503 19394 19357 19361>, + <19420 19503 19394 19357 19361>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16371 15389 15080 14917 14841>, + <16172 15737 15017 14839 14804>, + <15980 15520 15159 14918 14869>, + <15790 15297 15059 14887 14848>, + <15597 15166 14950 14836 14808>, + <15437 15060 14893 14805 14783>, + <15320 14986 14848 14781 14764>, + <15224 14931 14814 14761 14748>, + <15143 14887 14787 14742 14733>, + <15072 14849 14765 14728 14722>, + <15012 14818 14750 14720 14716>, + <14967 14796 14735 14714 14712>, + <14931 14779 14706 14709 14708>, + <14899 14766 14662 14706 14704>, + <14867 14759 14649 14702 14700>, + <14838 14752 14677 14697 14696>, + <14819 14729 14703 14690 14691>, + <14807 14679 14684 14686 14688>, + <14797 14657 14642 14683 14686>, + <14788 14686 14634 14679 14683>, + <14781 14720 14656 14675 14677>, + <14775 14722 14687 14672 14672>, + <14769 14717 14722 14702 14701>, + <14765 14718 14761 14771 14770>, + <14765 14771 14793 14806 14802>, + <14770 14828 14823 14825 14816>, + <14780 14830 14834 14833 14821>, + <14801 14822 14825 14823 14774>, + <14836 14813 14809 14803 14704>, + <14851 14803 14794 14775 14690>, + <14850 14792 14776 14736 14688>, + <14849 14781 14759 14709 14686>, + <14847 14771 14740 14694 14683>, + <14841 14763 14725 14685 14681>, + <14835 14755 14714 14683 14679>, + <14828 14749 14706 14682 14677>, + <14821 14745 14705 14681 14677>, + <14811 14741 14704 14682 14677>, + <14796 14737 14704 14683 14678>, + <14777 14732 14707 14690 14687>, + <14760 14726 14711 14700 14700>, + <14743 14718 14709 14699 14698>, + <14729 14707 14701 14693 14688>, + <14718 14694 14696 14694 14687>, + <14852 14683 14686 14691 14683>, + <14866 14680 14664 14669 14661>, + <14868 14706 14667 14668 14660>, + <14870 14776 14661 14661 14654>, + <14876 14792 14664 14642 14638>, + <14887 14799 14666 14633 14628>, + <14902 14809 14675 14647 14649>, + <14923 14800 14703 14649 14657>, + <14926 14810 14690 14653 14666>, + <14911 14683 14671 14667 14669>, + <14911 14683 14671 14667 14669>, + <14911 14683 14671 14667 14669>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12775 13195 13313 13692 14947>, + <13696 14208 17401 17739 17743>, + <14403 15328 16944 18315 19312>, + <14811 16225 17364 18961 20257>, + <15073 16791 17968 20071 21398>, + <15320 17231 18731 20830 22265>, + <15588 17618 19632 21465 22969>, + <15872 17938 20162 22140 23747>, + <16261 18333 20455 22881 24707>, + <16912 19112 20842 23652 25656>, + <17599 19932 21495 24623 26442>, + <18056 20237 22582 25599 27147>, + <18406 20367 26608 25741 27768>, + <18851 20545 35628 25324 28334>, + <19766 20903 38639 25063 28999>, + <20931 21555 31015 25873 30300>, + <21680 24978 23830 27260 31816>, + <22083 34687 30229 28228 32484>, + <22505 39206 44387 29074 32678>, + <23267 33106 46273 29306 32665>, + <24425 25903 33513 28575 32509>, + <25670 25769 24744 27871 32721>, + <26844 28327 37556 31752 34473>, + <28311 32207 56707 39954 37197>, + <31041 42164 55444 40063 36269>, + <37583 51183 37975 27277 24478>, + <43560 48468 26805 18186 16414>, + <46017 38465 23245 17024 23130>, + <47773 32547 21412 16432 32992>, + <48263 30079 21357 17222 34025>, + <44856 28800 21513 20601 32627>, + <39773 28992 21943 23795 31846>, + <36993 29810 24290 27031 30973>, + <35149 30790 27466 29284 29757>, + <33999 32282 31228 29571 28506>, + <33479 33868 34949 29696 27141>, + <33130 35270 35620 29687 26662>, + <33067 36542 35547 29420 26578>, + <33864 36920 35417 29270 26568>, + <34801 36968 35019 29885 26450>, + <34742 36964 34270 30727 26278>, + <33803 36551 32837 29612 26082>, + <32782 35435 30531 26010 25749>, + <30831 33146 29158 25705 30224>, + <14355 28432 29052 26138 34985>, + <12855 24832 30039 24511 27465>, + <12837 19507 24484 22224 23082>, + <12835 13283 22701 20691 20986>, + <12738 12524 18678 22645 22548>, + <12518 12204 16750 22846 21926>, + <12199 11887 16549 25660 26959>, + <11847 12213 14839 26111 26027>, + <11822 12340 16708 24447 22151>, + <12838 33735 24970 18663 20241>, + <12838 33735 24970 18663 20241>, + <12838 33735 24970 18663 20241>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15944 15174 14805 14643 14595>, + <15857 15315 14798 14622 14582>, + <15766 15223 14872 14666 14620>, + <15668 15123 14823 14654 14612>, + <15561 15056 14770 14633 14596>, + <15466 14998 14743 14620 14586>, + <15392 14955 14722 14609 14579>, + <15329 14920 14703 14599 14572>, + <15277 14891 14686 14589 14564>, + <15233 14868 14671 14580 14557>, + <15195 14848 14658 14574 14553>, + <15162 14829 14647 14569 14550>, + <15133 14810 14637 14564 14546>, + <15108 14797 14629 14558 14541>, + <15084 14789 14622 14553 14537>, + <15064 14782 14617 14548 14533>, + <15048 14775 14612 14543 14529>, + <15036 14768 14607 14539 14525>, + <15026 14763 14601 14534 14521>, + <15020 14760 14596 14529 14516>, + <15016 14759 14592 14523 14509>, + <15013 14759 14590 14518 14504>, + <15012 14759 14610 14537 14520>, + <15011 14761 14643 14575 14556>, + <15012 14792 14654 14585 14565>, + <15020 14825 14659 14582 14560>, + <15031 14826 14660 14578 14555>, + <15046 14821 14655 14573 14553>, + <15065 14815 14647 14568 14551>, + <15073 14810 14641 14563 14548>, + <15071 14807 14636 14559 14543>, + <15069 14804 14633 14555 14537>, + <15067 14803 14630 14551 14531>, + <15066 14802 14628 14546 14525>, + <15064 14802 14626 14542 14519>, + <15064 14801 14624 14538 14513>, + <15064 14802 14622 14534 14509>, + <15064 14803 14621 14531 14505>, + <15064 14803 14620 14529 14504>, + <15064 14803 14621 14533 14507>, + <15063 14803 14624 14538 14513>, + <15062 14803 14623 14538 14514>, + <15062 14802 14621 14536 14512>, + <15066 14801 14619 14537 14516>, + <15047 14793 14615 14536 14518>, + <15052 14787 14604 14523 14501>, + <15057 14786 14601 14520 14497>, + <15061 14783 14596 14514 14491>, + <15065 14783 14590 14504 14481>, + <15069 14783 14587 14497 14471>, + <15072 14786 14595 14511 14490>, + <15076 14795 14610 14527 14509>, + <15082 14813 14621 14535 14516>, + <15097 14848 14639 14540 14525>, + <15097 14848 14639 14540 14525>, + <15097 14848 14639 14540 14525>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6547 5839 5508 5177 4962 4910>, + <6499 5848 5503 5168 4965 4906>, + <6452 5857 5499 5160 4967 4902>, + <6410 5865 5495 5152 4969 4898>, + <6379 5870 5492 5145 4969 4894>, + <6364 5872 5490 5139 4969 4890>, + <6370 5870 5490 5135 4968 4886>, + <6386 5866 5489 5130 4966 4882>, + <6393 5864 5485 5124 4963 4879>, + <6387 5854 5474 5117 4960 4877>, + <6381 5846 5469 5113 4957 4875>, + <6382 5847 5467 5109 4953 4872>, + <6392 5848 5465 5107 4951 4871>, + <6399 5848 5464 5105 4948 4869>, + <6399 5846 5463 5103 4946 4868>, + <6400 5844 5463 5101 4945 4868>, + <6399 5841 5461 5098 4943 4867>, + <6396 5835 5459 5096 4942 4867>, + <6390 5833 5459 5097 4937 4867>, + <6384 5839 5459 5099 4932 4867>, + <6376 5847 5459 5099 4929 4867>, + <6371 5848 5461 5100 4927 4867>, + <6369 5849 5463 5100 4926 4868>, + <6368 5850 5465 5104 4925 4869>, + <6371 5846 5466 5107 4925 4870>, + <6387 5842 5467 5110 4924 4870>, + <6398 5845 5470 5112 4923 4870>, + <6390 5857 5474 5115 4924 4871>, + <6373 5863 5480 5118 4926 4873>, + <6365 5854 5486 5121 4928 4875>, + <6361 5842 5486 5124 4931 4878>, + <6359 5841 5486 5127 4934 4880>, + <6357 5844 5487 5131 4937 4883>, + <6357 5847 5495 5136 4941 4885>, + <6356 5849 5503 5141 4944 4887>, + <6355 5850 5508 5146 4947 4888>, + <6354 5854 5512 5150 4949 4889>, + <6353 5861 5516 5154 4951 4891>, + <6351 5866 5521 5157 4954 4892>, + <6348 5867 5526 5160 4956 4894>, + <6339 5867 5532 5163 4958 4896>, + <6322 5868 5535 5167 4960 4898>, + <6317 5874 5535 5171 4962 4899>, + <6328 5872 5537 5177 4965 4902>, + <6349 5853 5532 5185 4969 4906>, + <6406 5832 5528 5192 4974 4908>, + <6441 5864 5526 5193 4980 4908>, + <6489 5887 5556 5199 4974 4907>, + <6515 5906 5596 5205 4975 4909>, + <6510 5943 5615 5211 4974 4910>, + <6574 5984 5545 5218 4976 4913>, + <6604 6001 5437 5242 4984 4919>, + <6602 5883 5437 5255 4993 4928>, + <6505 5812 5437 5276 5007 4944>, + <6505 5812 5437 5276 5007 4944>, + <6505 5812 5437 5276 5007 4944>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10059 10624 11002 11421 11049 11095>, + <10156 10655 11004 11351 11026 11052>, + <10270 10693 10999 11265 11001 11008>, + <10384 10730 10988 11180 10974 10964>, + <10483 10762 10974 11110 10944 10923>, + <10549 10783 10957 11069 10913 10886>, + <10579 10792 10932 11047 10876 10849>, + <10598 10799 10909 11030 10842 10816>, + <10618 10808 10899 11011 10817 10792>, + <10644 10819 10892 10992 10795 10773>, + <10670 10832 10891 10979 10788 10760>, + <10693 10846 10903 10969 10788 10751>, + <10716 10862 10924 10964 10789 10743>, + <10729 10882 10950 10976 10826 10732>, + <10732 10911 10987 11007 10890 10723>, + <10734 10943 11022 11042 10906 10726>, + <10734 10979 11055 11086 10904 10748>, + <10727 11016 11092 11137 10905 10767>, + <10715 11028 11147 11212 10934 10777>, + <10700 11014 11202 11282 10995 10789>, + <10677 10996 11204 11302 11120 10870>, + <10650 10986 11164 11309 11348 11051>, + <10618 10978 11136 11310 11425 11105>, + <10581 10967 11135 11267 11271 11060>, + <10546 10943 11137 11221 11118 11023>, + <10514 10911 11134 11229 11120 11043>, + <10471 10878 11123 11263 11154 11085>, + <10350 10841 11108 11289 11164 11114>, + <10162 10801 11085 11308 11178 11146>, + <10033 10757 11053 11325 11196 11189>, + <9870 10710 11008 11342 11227 11267>, + <9730 10663 10946 11361 11272 11352>, + <9701 10614 10889 11371 11319 11409>, + <9688 10564 10840 11382 11374 11456>, + <9681 10522 10793 11385 11407 11465>, + <9675 10475 10745 11372 11392 11408>, + <9671 10358 10695 11348 11354 11348>, + <9668 10050 10642 11310 11289 11298>, + <9666 9809 10589 11240 11179 11233>, + <9665 9743 10508 11175 11142 11210>, + <9663 9703 10260 11078 11156 11202>, + <9661 9684 9976 11007 11149 11169>, + <9659 9674 9820 10975 11103 11111>, + <9658 9667 9725 10842 11098 11103>, + <9656 9661 9681 10750 11006 11011>, + <9654 9656 9658 10697 10886 10833>, + <9653 9654 9654 10595 10943 10812>, + <9651 9652 9652 10754 10973 10834>, + <9650 9651 9650 10734 11016 10910>, + <9650 9650 9650 10743 11049 10833>, + <9649 9650 9650 10580 10817 10745>, + <9649 9649 9650 10107 10755 10679>, + <9649 9650 9650 9778 10685 10588>, + <9650 9650 9650 9662 10583 10441>, + <9650 9650 9650 9662 10583 10441>, + <9650 9650 9650 9662 10583 10441>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13499 13371 13326 13297 13279 13277>, + <13498 13373 13328 13297 13280 13278>, + <13496 13376 13330 13297 13282 13280>, + <13493 13380 13332 13297 13283 13281>, + <13490 13384 13333 13297 13284 13282>, + <13488 13385 13334 13298 13285 13282>, + <13486 13385 13335 13299 13286 13283>, + <13484 13385 13336 13300 13286 13283>, + <13482 13384 13338 13300 13287 13284>, + <13481 13383 13339 13300 13288 13285>, + <13478 13381 13340 13301 13289 13286>, + <13476 13379 13339 13301 13289 13286>, + <13473 13377 13339 13301 13290 13287>, + <13469 13376 13338 13303 13292 13287>, + <13463 13377 13336 13306 13295 13287>, + <13455 13377 13335 13307 13296 13288>, + <13449 13377 13334 13307 13296 13290>, + <13444 13376 13334 13306 13296 13291>, + <13439 13374 13334 13305 13297 13292>, + <13435 13369 13335 13304 13298 13292>, + <13431 13362 13334 13303 13298 13292>, + <13430 13359 13329 13302 13297 13293>, + <13429 13356 13323 13300 13295 13292>, + <13429 13354 13320 13296 13290 13286>, + <13428 13351 13317 13292 13285 13281>, + <13427 13349 13317 13291 13283 13280>, + <13426 13349 13316 13290 13282 13280>, + <13420 13349 13316 13290 13281 13279>, + <13410 13349 13315 13290 13280 13279>, + <13409 13350 13314 13290 13279 13279>, + <13427 13350 13314 13290 13279 13279>, + <13455 13349 13315 13290 13279 13279>, + <13482 13346 13315 13290 13279 13279>, + <13514 13343 13316 13291 13281 13279>, + <13554 13347 13318 13291 13282 13279>, + <13607 13355 13320 13292 13282 13279>, + <13674 13364 13324 13292 13281 13280>, + <13752 13376 13329 13292 13281 13279>, + <13849 13392 13337 13292 13281 13279>, + <13964 13419 13344 13292 13281 13279>, + <14097 13460 13348 13292 13282 13280>, + <14258 13515 13354 13292 13282 13282>, + <14465 13596 13374 13293 13282 13283>, + <14736 13728 13418 13291 13280 13280>, + <15226 13998 13501 13288 13278 13276>, + <16678 14671 14065 13295 13285 13284>, + <17854 15343 15243 13296 13288 13286>, + <19938 16670 17934 13303 13292 13290>, + <22979 19375 25268 13309 13294 13292>, + <28088 25285 49015 13318 13294 13290>, + <38490 39355 65535 13322 13289 13285>, + <60218 65535 65535 13333 13289 13286>, + <65535 65535 65535 13420 13293 13291>, + <65535 65535 65535 14570 13299 13302>, + <65535 65535 65535 14570 13299 13302>, + <65535 65535 65535 14570 13299 13302>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16670 16618 16562 16519 16476 16466>, + <16743 16636 16577 16514 16473 16466>, + <16832 16671 16589 16509 16470 16465>, + <16923 16711 16599 16504 16467 16465>, + <17002 16745 16604 16500 16466 16465>, + <17053 16761 16606 16497 16465 16464>, + <17076 16763 16602 16495 16466 16464>, + <17091 16764 16597 16494 16467 16464>, + <17095 16764 16594 16495 16469 16464>, + <17092 16765 16591 16497 16471 16465>, + <17085 16767 16591 16500 16473 16465>, + <17077 16773 16595 16506 16476 16467>, + <17061 16785 16604 16512 16480 16468>, + <17042 16795 16616 16517 16482 16471>, + <17017 16806 16636 16522 16484 16475>, + <16987 16813 16658 16531 16488 16478>, + <16958 16810 16686 16548 16497 16481>, + <16931 16799 16704 16570 16507 16485>, + <16902 16782 16708 16603 16518 16491>, + <16872 16746 16710 16633 16532 16501>, + <16839 16703 16700 16631 16555 16522>, + <16809 16673 16638 16604 16588 16553>, + <16780 16647 16583 16570 16596 16558>, + <16753 16627 16552 16521 16534 16513>, + <16725 16611 16531 16483 16473 16473>, + <16693 16598 16523 16480 16467 16466>, + <16675 16587 16519 16479 16464 16462>, + <16680 16578 16517 16479 16465 16463>, + <16690 16570 16516 16483 16471 16466>, + <16698 16558 16515 16488 16480 16472>, + <16711 16549 16513 16494 16488 16478>, + <16725 16549 16510 16500 16498 16486>, + <16734 16555 16508 16508 16506 16496>, + <16741 16562 16506 16516 16515 16509>, + <16748 16568 16505 16520 16518 16512>, + <16756 16575 16510 16520 16515 16510>, + <16763 16587 16522 16519 16509 16506>, + <16768 16614 16535 16514 16498 16495>, + <16772 16639 16551 16501 16481 16480>, + <16775 16655 16565 16494 16476 16478>, + <16775 16668 16572 16492 16477 16482>, + <16775 16677 16578 16492 16479 16488>, + <16775 16682 16583 16496 16481 16490>, + <16773 16685 16591 16490 16462 16466>, + <16779 16687 16588 16473 16445 16442>, + <16980 16688 16620 16483 16457 16456>, + <17137 16703 16667 16498 16476 16487>, + <17385 16820 17010 16514 16510 16529>, + <17705 17189 18670 16541 16549 16569>, + <18150 18149 26796 16577 16568 16569>, + <19120 21475 51721 16577 16509 16501>, + <19453 35972 46528 16573 16478 16483>, + <16612 27251 17019 16657 16480 16482>, + <16727 65535 65535 17091 16493 16493>, + <16727 65535 65535 17091 16493 16493>, + <16727 65535 65535 17091 16493 16493>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <14276 17360 20453 22984 18624 18621>, + <15020 17898 20521 21967 18808 19407>, + <15741 18244 20456 20943 18858 20063>, + <16416 18439 20288 19980 18801 20559>, + <17024 18526 20042 19145 18663 20860>, + <17544 18547 19746 18502 18461 20924>, + <17956 18459 19334 18010 17946 20436>, + <18301 18244 18885 17590 17322 19828>, + <18670 17999 18550 17127 16911 19529>, + <19091 17641 18273 16555 16574 19189>, + <19522 17387 17908 16088 16251 18864>, + <19971 17363 17323 15466 15868 18373>, + <20488 17394 16724 15045 15646 17819>, + <20757 17523 16233 15198 16021 17138>, + <20701 18321 15807 15504 16695 16508>, + <20600 19463 15760 15496 16696 16513>, + <20591 20772 16353 15030 15945 16941>, + <20814 22282 17348 14732 15404 17140>, + <21111 22781 19645 15045 15254 16429>, + <21337 22603 22665 15820 15172 15639>, + <21557 22414 23632 17748 15681 15665>, + <21751 22458 23956 22057 17656 15985>, + <21949 22633 24064 23916 19503 16644>, + <22099 22707 23553 22959 21301 19048>, + <22010 22451 22864 21726 22443 20821>, + <21307 22120 22903 21177 21721 20471>, + <20242 22026 23383 20808 19782 19636>, + <17929 21979 23644 20581 18283 18767>, + <14713 21896 22976 20393 16952 17386>, + <13487 21501 22183 20294 16303 16680>, + <13234 20745 22032 20429 16338 16604>, + <13109 19385 21739 20785 16438 16575>, + <13122 16641 21365 21232 16865 16699>, + <13197 15090 20685 21996 18289 17150>, + <13275 15392 20202 22872 19588 17801>, + <13334 15862 20260 24074 20604 19103>, + <13396 15851 20453 25108 21349 20360>, + <13483 15203 20785 24991 21629 21070>, + <13617 14668 21732 24105 21797 21629>, + <13702 14560 22331 23207 21817 22074>, + <13705 14495 20014 21787 21615 22531>, + <13704 14413 16814 20665 21260 22790>, + <13693 14310 15250 20061 20779 23389>, + <13558 14191 14405 19013 20799 25578>, + <13228 13983 13991 17186 18369 18843>, + <11649 13574 13386 18574 18475 19408>, + <10960 13074 13221 16874 18592 17373>, + <10409 11790 11058 17937 18314 16604>, + <10134 10497 9661 17923 17345 16040>, + <10091 9828 9177 18778 16794 15125>, + <10163 9407 9049 18489 16146 15540>, + <10553 9137 14798 16617 17830 15525>, + <31033 18310 22488 14317 18370 16138>, + <25222 15702 13837 12785 20905 21779>, + <25222 15702 13837 12785 20905 21779>, + <25222 15702 13837 12785 20905 21779>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5726 5347 5175 5060 5000 4991>, + <5737 5351 5176 5056 5000 4991>, + <5745 5354 5177 5053 5001 4991>, + <5749 5355 5176 5050 5001 4991>, + <5751 5356 5174 5047 5002 4992>, + <5752 5356 5171 5045 5002 4992>, + <5751 5353 5168 5044 5003 4992>, + <5747 5347 5164 5043 5004 4992>, + <5742 5342 5161 5042 5004 4993>, + <5737 5336 5158 5042 5005 4993>, + <5729 5333 5157 5042 5006 4994>, + <5721 5331 5157 5043 5007 4994>, + <5712 5329 5157 5044 5008 4995>, + <5702 5329 5158 5046 5010 4996>, + <5689 5330 5161 5049 5013 4997>, + <5675 5331 5165 5053 5015 4998>, + <5662 5330 5172 5057 5017 5001>, + <5650 5325 5176 5062 5020 5003>, + <5640 5319 5178 5070 5023 5005>, + <5630 5305 5179 5078 5027 5008>, + <5620 5289 5175 5077 5033 5014>, + <5614 5279 5154 5068 5040 5023>, + <5610 5270 5135 5057 5042 5024>, + <5608 5265 5125 5040 5020 5006>, + <5608 5261 5118 5027 4998 4991>, + <5610 5259 5117 5026 4995 4988>, + <5613 5259 5117 5026 4993 4986>, + <5620 5261 5117 5026 4993 4986>, + <5632 5263 5119 5028 4994 4987>, + <5649 5266 5120 5030 4996 4989>, + <5676 5270 5122 5032 4999 4991>, + <5711 5276 5125 5035 5002 4993>, + <5749 5286 5129 5039 5005 4997>, + <5793 5300 5133 5042 5009 5001>, + <5843 5319 5140 5045 5011 5002>, + <5900 5345 5149 5047 5010 5001>, + <5965 5376 5163 5048 5009 5001>, + <6040 5414 5181 5048 5006 4998>, + <6126 5460 5205 5045 5001 4993>, + <6225 5512 5233 5044 5000 4993>, + <6339 5574 5262 5045 5001 4996>, + <6473 5649 5297 5047 5003 4999>, + <6643 5742 5350 5052 5004 5000>, + <6860 5880 5437 5051 4997 4991>, + <7258 6123 5567 5046 4991 4983>, + <8490 6657 6108 5060 5001 4993>, + <9450 7168 6990 5068 5009 5004>, + <11026 8195 9056 5083 5022 5018>, + <13260 10256 14651 5100 5034 5031>, + <16886 14630 32988 5125 5040 5030>, + <24240 25115 65535 5141 5019 5008>, + <38987 54089 65535 5183 5011 5005>, + <65535 65535 65535 5384 5017 5009>, + <65535 65535 65535 6508 5027 5023>, + <65535 65535 65535 6508 5027 5023>, + <65535 65535 65535 6508 5027 5023>; + }; + +}; From 805825a57b6294cdc28d98487ac96280351f44e1 Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 9 Jun 2023 17:36:02 +0800 Subject: [PATCH 1082/1247] dts:fogor:set audio dts fogo use wcd9370+fs1815 4375 platform. set related dts. Change-Id: I194d07b92136f7ceb54a9f9a9d0fd40c1e391bd6 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2639583 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 40 +------------------- qcom/holi-audio-fogor-overlay.dtsi | 61 +++++++++++++++++++++--------- 2 files changed, 45 insertions(+), 56 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index a0df4cb77529..e65a4fbcabe0 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -37,31 +37,6 @@ bias-no-pull; }; }; - sar_int_fogor_default: sar_int_fogor_default { - mux { - pins = "gpio58"; - function = "gpio"; - }; - config { - pins = "gpio58"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; - - sar_int_fogor_sleep: sar_int_fogor_sleep { - mux { - pins = "gpio58"; - function = "gpio"; - }; - config { - pins = "gpio58"; - num-grp-pins = <1>; - drive-strength = <2>; - bias-pull-up; - }; - }; }; &soc { @@ -75,19 +50,12 @@ }; &qupv3_se8_i2c { - status = "okay"; + status = "disabled"; Semtech_sx937x@2c { compatible = "Semtech,sx937x"; reg = <0x2c>; Semtech,power-supply-type = <1>; cap_vdd-supply = <&L12A>; - pinctrl-names = "default","sleep"; - pinctrl-0 = <&sar_int_fogor_default>; - pinctrl-1 = <&sar_int_fogor_sleep>; - interrupt-parent = <&tlmm>; - interrupts = <58 0x02>; - interrupt-names = "sx937x_irq"; - Semtech,nirq-gpio = <&tlmm 58 0x02>; /*use PH5/6 as the reference sensor set it to 0xff if the ref-phases-x is not used*/ Semtech,ref-phases-a = <5>; @@ -171,10 +139,6 @@ reg = < 0x12 >; //aw_sar,regulator-power-supply = <1>; sar-num = < 0 >; - interrupt-parent = < &tlmm >; - interrupts = <58 0x02>; - interrupt-names = "awinic_irq"; - irq-gpio = <&tlmm 58 0x02>; //vcc0-supply = <&L12A>; channel_use_flag = <0x1f>; aw_sar,use_plug_cail; @@ -182,7 +146,7 @@ /* private node belongs to aw963xx */ start-mode = < 1 >; // 0: start in rom 1: start in ram irq-mux = < 2 >; // set csx as irq pin. config this field when connect to aw96308/aw96310 - status = "okay"; + status = "disabled"; }; }; diff --git a/qcom/holi-audio-fogor-overlay.dtsi b/qcom/holi-audio-fogor-overlay.dtsi index 27d3c21b2659..238c57cff51b 100644 --- a/qcom/holi-audio-fogor-overlay.dtsi +++ b/qcom/holi-audio-fogor-overlay.dtsi @@ -4,6 +4,33 @@ #include #include +&tlmm{ + fsm_rcv_rst: fsm_rcv_rst { + mux { + pins = "gpio86"; + function = "gpio"; + }; + config { + pins = "gpio86"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; + fsm_spk_rst: fsm_spk_rst { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; +}; + &cdc_dmic01_gpios { status = "disabled"; }; @@ -220,7 +247,7 @@ }; &holi_snd { - qcom,model = "holi-9370_aw87xxx-snd-card"; + qcom,model = "holi-9370_fs1815-snd-card"; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; qcom,mi2s-audio-intf = <0>; @@ -276,25 +303,23 @@ qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; }; -&qupv3_se8_i2c { +&qupv3_se10_i2c { status = "ok"; - aw887xx_smartpa_0: aw87xxx_pa@58 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x58>; - dev_index = < 0 >; - esd-enable = "true"; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; + fs1815_rcv: fs1815_rcv@34{ + compatible = "foursemi,fs1815"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_rcv_rst>; + fsm,rst-gpio = <&tlmm 86 0x00>; + status = "okay"; }; - aw887xx_smartpa_1: aw87xxx_pa@59 { - compatible = "awinic,aw87xxx_pa"; - reg = <0x59>; - dev_index = < 1 >; - esd-enable = "true"; - aw-rx-topo-id = <0x1000ff00>; - aw-rx-port-id = <0xB030>; - status = "okay"; + fs1815_spk: fs1815_spk@35{ + compatible = "foursemi,fs1815"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_spk_rst>; + fsm,rst-gpio = <&tlmm 58 0x00>; + status = "okay"; }; }; From 3f2abee92394b8bea120eb6aeebe1e01c52580bf Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Wed, 14 Jun 2023 11:12:39 +0800 Subject: [PATCH 1083/1247] fogor/dts: adjust dts 1.blair-pm6125-moto-common-overlay.dtsi should be front of blair-fogor-common-overlay.dtsi 2.blair-pm6125-fogor-common-overlay.dtsi Change-Id: Idf1af4f469f7564854599fab3d02644591a55520 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2642943 Reviewed-by: Hujun Liao SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-pm6125-fogor-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-pm6125-fogor-common-overlay.dtsi b/qcom/blair-pm6125-fogor-common-overlay.dtsi index 5fa9fe092146..8777df8ec5d3 100644 --- a/qcom/blair-pm6125-fogor-common-overlay.dtsi +++ b/qcom/blair-pm6125-fogor-common-overlay.dtsi @@ -9,8 +9,8 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "blair-fogor-common-overlay.dtsi" #include "blair-pm6125-moto-common-overlay.dtsi" +#include "blair-fogor-common-overlay.dtsi" #include "fogor-charger.dtsi" &pm7250b_charger { From b6a4dcd8d0770dd7a9b911e9437d17161b9758d4 Mon Sep 17 00:00:00 2001 From: zhaoxp3 Date: Wed, 14 Jun 2023 11:17:27 +0800 Subject: [PATCH 1084/1247] arm/dts: disable unused dtsi node disable unused dtsi node Change-Id: Ic9241e6ac8f84ba4919f8703b80fa76c380a65c0 Signed-off-by: zhaoxp3 Reviewed-on: https://gerrit.mot.com/2642952 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/blair-bangkk-common-overlay.dtsi | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/qcom/blair-bangkk-common-overlay.dtsi b/qcom/blair-bangkk-common-overlay.dtsi index 173bdc78faa0..e382ea0b7686 100644 --- a/qcom/blair-bangkk-common-overlay.dtsi +++ b/qcom/blair-bangkk-common-overlay.dtsi @@ -144,7 +144,7 @@ /* Dummy LDO reference */ &sdhc_1 { - status = "ok"; + status = "disable"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_on>; @@ -484,6 +484,14 @@ }; }; +&pm8008_8 { + status = "disabled"; +}; + +&pm8008_9 { + status = "disabled"; +}; + &soc { gpio_keys { compatible = "gpio-keys"; From 975230473d7c21a2ccb5ba79d80fc505edb43f28 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Tue, 6 Jun 2023 18:10:02 +0800 Subject: [PATCH 1085/1247] update semtech params-v06 1.modify temperature compensation parameters 2.update semtech params V06 Change-Id: I54d1114188a31d706b585f8d8af816f9410ff99a Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2635288 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 6dd13dc0ca08..34d5d6404468 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -141,11 +141,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x7C845200 - 0x80B0 0x7C845102 - 0x80D0 0x7C845200 - 0x80F0 0x7C845100 - 0x8110 0x7C845100 + 0x8090 0x50B05200 + 0x80B0 0x50B05102 + 0x80D0 0x50B05200 + 0x80F0 0x50B05100 + 0x8110 0x50B05100 0x8130 0x54AC5300 0x8150 0x54AC5300 0x8170 0x54AC5300 From ee8263f30d6d15b7833f35af7c27573312e89f75 Mon Sep 17 00:00:00 2001 From: LiZidong Date: Tue, 13 Jun 2023 16:02:37 +0800 Subject: [PATCH 1086/1247] : [bangkok] cost c6 c7 screen compatible cost c6 c7 screen compatible Change-Id: I1cca6459cb1c829437dac6755f519bfaf7482001 Signed-off-by: LiZidong Reviewed-on: https://gerrit.mot.com/2642092 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 46 ++ qcom/bangkk-touchscreen.dtsi | 2 +- ...-csot-c7-vtdr6115-655-1080x2400-video.dtsi | 422 ++++++++++++++++++ ...mot-csot-vtdr6115-655-1080x2400-video.dtsi | 170 ++++--- 4 files changed, 553 insertions(+), 87 deletions(-) create mode 100644 qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index e92e58679641..3bbd5ed5d58d 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -2,6 +2,7 @@ #include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -336,6 +337,51 @@ }; }; +&mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-dsi-bl-inverted-dbv; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1D 08 07 17 22 07 + 08 08 02 04 00 19 0D]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 946d75d4eb93..1e556bf55f3c 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -138,7 +138,7 @@ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; - panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid>; mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi new file mode 100644 index 000000000000..c13967c597b9 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi @@ -0,0 +1,422 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid { + qcom,mdss-dsi-panel-name = + "mipi_moto_vid_csot_1080p_dsc_655"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <154>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>;//4200000 + + qcom,mdss-dsi-panel-blackness-level = <3515>;//3230 + + qcom,mdss-dsi-dc-off-command = [ + 39 01 00 00 00 00 02 5E 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dc-on-command = [ + 39 01 00 00 00 00 02 5E 01]; + qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 00 00 00 03 F0 AA 13 + 39 00 00 00 00 00 02 C6 01 + 39 00 00 00 00 00 03 63 03 FF + 39 00 00 00 00 00 03 51 05 2A + 39 01 00 00 00 00 02 62 03]; + + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <68>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <2>; + qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; + + qcom,mdss-dsi-panel-local-hbm-enabled; + qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1322>; //0x052A + qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; + qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; + qcom,mdss-dsi-panel-local-hbm-alpha-table = < + 4 218 218 218 220 220 220 220 221 220 221 221 221 221 221 223 + 223 223 224 224 224 224 224 224 225 225 226 227 226 227 227 227 + 227 227 228 228 230 230 230 230 230 230 230 231 231 231 231 233 + 233 233 233 233 234 234 234 234 234 235 236 236 237 237 237 237 + 237 237 238 238 238 240 240 241 241 240 241 241 241 241 242 243 + 244 244 244 244 244 245 245 245 245 245 247 247 247 247 248 248 + 248 248 248 249 249 251 251 251 251 251 251 251 252 252 252 252 + 254 254 254 254 255 255 255 255 255 255 257 257 257 258 258 258 + 258 258 259 259 259 261 261 261 261 261 261 262 262 262 262 262 + 264 264 265 265 265 265 265 265 266 266 266 268 268 268 269 269 + 269 269 269 269 270 271 271 272 272 272 272 272 273 273 273 273 + 275 275 276 276 276 276 276 277 277 277 277 279 279 279 279 279 + 280 280 281 281 280 281 282 283 283 283 283 283 283 283 284 284 + 286 286 286 287 287 287 287 287 287 288 288 289 290 290 290 290 + 290 291 291 291 291 291 293 294 294 294 294 294 295 295 295 295 + 295 297 297 298 297 298 298 298 298 299 299 301 301 301 301 301 + 302 302 302 303 303 303 305 305 305 305 305 306 306 306 306 306 + 306 308 308 308 309 309 309 309 310 310 310 311 313 313 313 313 + 313 313 314 314 314 314 316 316 316 316 317 317 317 317 317 317 + 318 319 320 320 320 321 321 321 321 321 321 322 323 323 324 324 + 325 324 324 325 325 325 325 327 327 328 328 328 328 328 329 329 + 329 331 331 331 331 331 331 332 332 332 334 334 334 335 336 336 + 337 338 339 339 341 341 341 341 343 343 343 345 345 345 347 348 + 348 348 350 350 350 352 352 352 354 354 354 354 356 356 356 358 + 358 359 360 361 361 361 363 363 363 365 365 365 367 367 367 367 + 369 369 369 371 372 372 373 373 374 374 376 376 376 378 378 378 + 378 380 380 381 382 383 383 384 384 385 385 386 387 387 388 388 + 389 390 390 391 391 392 392 393 395 395 395 397 397 397 398 399 + 399 400 401 401 402 403 403 404 404 406 406 406 408 408 408 410 + 410 410 411 412 412 412 414 414 415 417 416 417 417 418 419 419 + 421 421 421 423 423 423 423 425 425 425 427 427 427 429 429 429 + 429 431 431 432 433 433 434 435 435 436 436 438 438 438 439 440 + 440 441 442 442 442 443 444 444 446 446 446 448 448 448 448 450 + 450 450 452 452 452 454 454 454 455 456 457 457 458 458 459 459 + 461 461 463 463 464 465 464 466 466 467 468 469 469 471 471 473 + 473 473 474 474 475 476 477 478 479 479 480 481 481 482 482 484 + 484 486 486 487 488 487 489 489 490 491 492 492 494 494 495 496 + 496 498 498 499 499 501 501 502 502 504 504 504 506 506 508 507 + 509 509 510 510 512 512 512 514 514 516 516 517 517 518 519 520 + 520 520 522 522 523 524 525 525 527 527 527 528 528 529 530 531 + 531 532 533 534 535 535 536 536 538 538 539 539 541 541 542 542 + 542 544 544 546 546 547 547 548 549 550 550 550 551 552 553 553 + 554 554 556 556 557 557 557 559 559 560 560 561 561 563 563 564 + 564 564 566 566 568 568 569 570 571 571 571 572 573 574 574 575 + 575 577 577 578 578 578 579 580 581 581 582 583 585 585 586 586 + 586 588 588 589 590 591 591 592 592 594 594 594 595 596 597 597 + 598 599 600 600 601 601 602 603 603 604 604 606 606 607 607 609 + 609 609 611 611 612 612 614 614 615 615 615 617 617 618 618 619 + 620 621 621 622 622 623 624 624 625 625 627 627 628 629 630 630 + 632 633 633 634 635 636 636 637 638 639 640 641 642 642 643 644 + 644 645 646 647 647 648 649 650 651 652 653 653 654 655 655 656 + 657 658 658 660 661 662 663 663 664 664 666 666 667 668 669 670 + 670 671 672 672 674 675 676 677 677 679 679 680 681 681 682 683 + 684 684 685 686 687 687 688 689 689 690 691 692 692 693 694 695 + 696 697 698 698 699 700 700 701 702 703 703 704 705 705 707 708 + 709 709 710 711 711 712 712 713 714 715 716 716 716 718 719 719 + 720 721 721 722 723 723 724 725 726 726 727 728 728 729 730 731 + 731 732 733 733 734 735 736 736 737 738 739 739 740 741 741 742 + 743 743 744 745 746 746 747 749 749 750 750 751 751 752 753 753 + 754 755 756 756 757 758 759 759 760 761 761 762 763 763 764 765 + 766 766 767 768 768 769 770 771 771 772 773 773 774 775 776 776 + 777 777 778 779 780 781 781 782 783 783 784 785 786 785 787 787 + 787 789 790 791 791 792 793 793 794 794 795 795 796 797 797 799 + 800 800 800 802 802 802 803 804 805 805 805 806 807 808 809 810 + 810 811 812 812 812 813 814 814 815 815 815 817 818 819 819 819 + 821 820 821 822 823 823 823 824 824 825 827 827 828 829 830 830 + 831 831 831 832 833 834 834 835 836 836 837 838 839 839 840 841 + 841 842 843 843 843 844 846 846 847 848 849 849 849 850 850 851 + 852 853 853 854 856 856 856 857 858 858 858 860 861 861 862 863 + 863 864 865 866 867 867 868 869 870 869 870 872 873 873 874 875 + 875 875 877 878 879 879 880 880 881 882 883 884 885 885 885 886 + 887 888 889 890 890 891 892 892 894 894 895 896 896 897 897 898 + 900 900 900 901 902 902 903 905 905 906 906 907 908 908 910 911 + 911 911 912 913 914 914 916 916 917 917 918 919 920 921 922 923 + 923 923 924 925 926 927 927 928 929 929 930 931 933 933 934 934 + 935 936 936 938 939 939 939 940 941 941 942 944 944 945 945 946 + 947 947 949 949 950 950 951 952 953 954 955 955 956 956 957 958 + 958 959 960 961 962 962 962 963 965 965 966 967 968 968 968 969 + 971 971 972 973 973 973 974 976 977 977 977 978 979 979 981 982 + 982 982 983 984 985 985 986 987 988 988 989 990 990 991 992 993 + 993 993 994 995 995 997 997 998 999 999 999 1000 1002 1002 1003 1003 + 1004 1004 1005 1007 1007 1007 1008 1009 1010 1011 1011 1013 1014 1014 1014 1015 + 1016 1016 1017 1018 1019 1019 1020 1020 1021 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023>; + + qcom,mdss-dsi-display-timings { + timing@0 { + cell-index = <0>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <22>; + qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-pulse-width = <10>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <8>; + qcom,mdss-dsi-v-front-porch = <3444>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 02 03 01 + 39 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 02 55 10 + 39 01 00 00 00 00 02 59 09 + 39 01 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 17 09 0B 00 06 17 09 0B 00 1B 05 05 17 17 + 39 01 00 00 00 00 03 FF 5A 80 + 39 01 00 00 00 00 02 65 0E + 39 01 00 00 00 00 02 F9 B9 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 65 03 + 39 01 00 00 00 00 02 F4 03 + 39 01 00 00 00 00 02 65 08 + 39 01 00 00 00 00 03 F6 51 44 + 05 01 00 00 4B 00 01 11 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 F3 08 + 39 01 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 07 C5 02 C0 02 95 03 44 + 39 01 00 00 00 00 03 FF 5A 00 + 39 01 00 00 00 00 03 F0 AA 00 + 05 01 00 00 14 00 01 29 + ]; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + qcom,mdss-dsi-dfps-60-command = [ + 39 00 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 02 62 00]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-90-command = [ + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 01 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-120-command = [ + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; + qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; + }; + }; + }; +}; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index a07718f1d49a..c7583a55d7f6 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -80,89 +80,89 @@ qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; qcom,mdss-dsi-panel-local-hbm-alpha-table = < - 4 218 218 218 220 220 220 220 220 221 221 221 221 221 221 223 - 223 223 224 224 224 224 224 224 225 225 226 226 227 227 227 227 - 227 227 228 228 230 230 230 230 230 230 230 231 231 231 231 233 - 233 233 233 233 234 234 234 234 234 235 236 236 237 237 237 237 - 237 237 238 238 238 240 240 240 241 241 241 241 241 241 242 243 - 244 244 244 244 244 245 245 245 245 245 247 247 247 247 248 248 - 248 248 248 249 249 251 251 251 251 251 251 251 252 252 252 252 - 254 254 254 254 255 255 255 255 255 255 257 257 257 258 258 258 - 258 258 259 259 259 261 261 261 261 261 261 262 262 262 262 262 - 264 264 265 265 265 265 265 265 266 266 266 268 268 268 269 269 - 269 269 269 269 270 271 271 272 272 272 272 272 273 273 273 273 - 275 275 276 276 276 276 276 277 277 277 277 279 279 279 279 279 - 280 280 280 281 281 281 282 283 283 283 283 283 283 283 284 284 - 286 286 286 287 287 287 287 287 287 288 288 289 290 290 290 290 - 290 291 291 291 291 291 293 294 294 294 294 294 295 295 295 295 - 295 297 297 297 298 298 298 298 298 299 299 301 301 301 301 301 - 302 302 302 303 303 303 305 305 305 305 305 306 306 306 306 306 - 306 308 308 308 309 309 309 309 310 310 310 311 313 313 313 313 - 313 313 314 314 314 314 316 316 316 316 317 317 317 317 317 317 - 318 319 320 320 320 321 321 321 321 321 321 322 323 323 324 324 - 324 324 325 325 325 325 325 327 327 328 328 328 328 328 329 329 - 329 331 331 331 331 331 331 332 332 332 334 334 334 335 336 336 - 337 338 339 339 341 341 341 341 343 343 343 345 345 345 347 348 - 348 348 350 350 350 352 352 352 354 354 354 354 356 356 356 358 - 358 359 360 361 361 361 363 363 363 365 365 365 367 367 367 367 - 369 369 369 371 372 372 373 373 374 374 376 376 376 378 378 378 - 378 380 380 381 382 383 383 384 384 385 385 386 387 387 388 388 - 389 390 390 391 391 392 392 393 395 395 395 397 397 397 398 399 - 399 400 401 401 402 403 403 404 404 406 406 406 408 408 408 410 - 410 410 411 412 412 412 414 414 415 416 417 417 417 418 419 419 - 421 421 421 423 423 423 423 425 425 425 427 427 427 429 429 429 - 429 431 431 432 433 433 434 435 435 436 436 438 438 438 439 440 - 440 441 442 442 442 443 444 444 446 446 446 448 448 448 448 450 - 450 450 452 452 452 454 454 454 455 456 457 457 458 458 459 459 - 461 461 463 463 464 464 465 466 466 467 468 469 469 471 471 473 - 473 473 474 474 475 476 477 478 479 479 480 481 481 482 482 484 - 484 486 486 487 487 488 489 489 490 491 492 492 494 494 495 496 - 496 498 498 499 499 501 501 502 502 504 504 504 506 506 507 508 - 509 509 510 510 512 512 512 514 514 516 516 517 517 518 519 520 - 520 520 522 522 523 524 525 525 527 527 527 528 528 529 530 531 - 531 532 533 534 535 535 536 536 538 538 539 539 541 541 542 542 - 542 544 544 546 546 547 547 548 549 550 550 550 551 552 553 553 - 554 554 556 556 557 557 557 559 559 560 560 561 561 563 563 564 - 564 564 566 566 568 568 569 570 571 571 571 572 573 574 574 575 - 575 577 577 578 578 578 579 580 581 581 582 583 585 585 586 586 - 586 588 588 589 590 591 591 592 592 594 594 594 595 596 597 597 - 598 599 600 600 601 601 602 603 603 604 604 606 606 607 607 609 - 609 609 611 611 612 612 614 614 615 615 615 617 617 618 618 619 - 620 621 621 622 622 623 624 624 625 625 627 627 628 629 630 630 - 632 633 633 634 635 636 636 637 638 639 640 641 642 642 643 644 - 644 645 646 647 647 648 649 650 651 652 653 653 654 655 655 656 - 657 658 658 660 661 662 663 663 664 664 666 666 667 668 669 670 - 670 671 672 672 674 675 676 677 677 679 679 680 681 681 682 683 - 684 684 685 686 687 687 688 689 689 690 691 692 692 693 694 695 - 696 697 698 698 699 700 700 701 702 703 703 704 705 705 707 708 - 709 709 710 711 711 712 712 713 714 715 716 716 716 718 719 719 - 720 721 721 722 723 723 724 725 726 726 727 728 728 729 730 731 - 731 732 733 733 734 735 736 736 737 738 739 739 740 741 741 742 - 743 743 744 745 746 746 747 749 749 750 750 751 751 752 753 753 - 754 755 756 756 757 758 759 759 760 761 761 762 763 763 764 765 - 766 766 767 768 768 769 770 771 771 772 773 773 774 775 776 776 - 777 777 778 779 780 781 781 782 783 783 784 785 785 786 787 787 - 787 789 790 791 791 792 793 793 794 794 795 795 796 797 797 799 - 800 800 800 802 802 802 803 804 805 805 805 806 807 808 809 810 - 810 811 812 812 812 813 814 814 815 815 815 817 818 819 819 819 - 820 821 821 822 823 823 823 824 824 825 827 827 828 829 830 830 - 831 831 831 832 833 834 834 835 836 836 837 838 839 839 840 841 - 841 842 843 843 843 844 846 846 847 848 849 849 849 850 850 851 - 852 853 853 854 856 856 856 857 858 858 858 860 861 861 862 863 - 863 864 865 866 867 867 868 869 869 870 870 872 873 873 874 875 - 875 875 877 878 879 879 880 880 881 882 883 884 885 885 885 886 - 887 888 889 890 890 891 892 892 894 894 895 896 896 897 897 898 - 900 900 900 901 902 902 903 905 905 906 906 907 908 908 910 911 - 911 911 912 913 914 914 916 916 917 917 918 919 920 921 922 923 - 923 923 924 925 926 927 927 928 929 929 930 931 933 933 934 934 - 935 936 936 938 939 939 939 940 941 941 942 944 944 945 945 946 - 947 947 949 949 950 950 951 952 953 954 955 955 956 956 957 958 - 958 959 960 961 962 962 962 963 965 965 966 967 968 968 968 969 - 971 971 972 973 973 973 974 976 977 977 977 978 979 979 981 982 - 982 982 983 984 985 985 986 987 988 988 989 990 990 991 992 993 - 993 993 994 995 995 997 997 998 999 999 999 1000 1002 1002 1003 1003 - 1004 1004 1005 1007 1007 1007 1008 1009 1010 1011 1011 1013 1014 1014 1014 1015 - 1016 1016 1017 1018 1019 1019 1020 1020 1021 1023 1023 1023 1023 1023 1023 1023 + 3 220 224 223 224 224 223 224 224 223 225 225 224 225 224 226 + 224 227 225 228 228 229 230 229 229 230 229 231 230 230 231 230 + 231 229 231 231 235 234 234 236 235 234 235 236 235 235 236 235 + 237 237 235 236 238 240 240 240 239 240 241 240 241 242 240 240 + 241 242 243 241 243 243 245 246 246 245 246 246 245 246 247 246 + 247 247 246 247 248 247 247 249 252 250 251 252 251 252 252 251 + 252 253 252 252 254 252 252 254 252 256 258 256 256 257 256 257 + 258 257 258 259 258 257 259 258 258 260 262 262 263 262 262 263 + 262 264 263 263 264 263 263 264 263 265 264 266 268 268 267 269 + 269 267 269 269 268 270 270 268 270 270 269 271 272 273 274 273 + 273 275 274 274 276 274 275 276 275 275 276 276 276 276 280 278 + 279 280 279 279 280 280 280 280 280 281 281 281 282 281 282 284 + 285 286 284 285 286 285 286 287 285 286 287 286 286 286 286 288 + 290 289 292 290 291 292 292 291 292 293 291 292 293 291 293 293 + 293 296 296 295 297 297 296 297 297 298 297 298 298 298 297 299 + 299 299 300 303 302 302 303 303 302 303 304 303 303 303 304 303 + 305 305 304 305 309 307 306 308 309 308 308 309 310 310 309 309 + 310 309 310 310 311 313 312 315 314 314 314 313 315 315 315 316 + 315 315 316 316 317 316 319 319 319 319 320 320 321 321 320 320 + 321 322 322 321 321 322 323 325 324 324 325 326 326 326 327 327 + 326 327 327 327 327 328 328 328 331 332 331 331 332 332 332 332 + 333 332 333 333 334 334 334 334 333 335 337 336 337 339 337 340 + 341 341 341 340 344 345 345 343 345 346 348 347 349 349 348 351 + 352 352 352 353 355 355 356 355 356 356 358 360 359 359 359 362 + 363 361 363 363 365 366 367 366 366 366 370 369 370 370 370 372 + 374 374 374 373 375 376 376 376 376 376 379 379 379 380 380 382 + 384 384 383 383 384 387 386 387 386 387 390 389 391 389 389 392 + 393 393 393 394 394 396 397 397 397 397 400 399 400 400 400 403 + 403 404 404 404 403 406 408 407 406 407 411 410 409 411 411 414 + 415 413 414 414 416 418 417 417 418 418 420 421 421 421 421 422 + 423 425 424 424 424 427 427 427 427 427 430 430 431 431 431 431 + 433 435 435 434 434 437 437 437 438 437 441 440 440 442 442 442 + 444 444 444 444 445 447 448 448 448 448 451 451 451 451 451 451 + 454 454 455 454 454 457 457 457 459 457 458 461 461 461 463 463 + 464 464 464 466 465 468 469 468 468 470 471 470 474 474 472 474 + 476 476 477 478 477 479 478 480 482 481 483 484 484 484 486 486 + 487 489 488 490 489 492 491 491 493 494 494 495 495 497 496 500 + 500 500 500 502 502 502 503 504 504 504 506 508 508 507 511 510 + 510 513 513 513 512 514 514 515 516 518 518 517 520 519 521 523 + 522 522 523 525 524 526 528 526 527 528 530 530 530 531 533 531 + 532 534 534 534 538 537 537 537 540 538 540 542 541 542 542 544 + 544 545 544 546 547 547 550 549 550 549 552 551 552 554 554 555 + 555 555 555 557 558 558 559 560 560 560 561 562 563 564 563 566 + 566 566 567 568 568 569 569 569 571 573 572 574 573 574 576 576 + 577 578 578 577 581 580 580 582 582 582 583 585 586 585 586 587 + 588 588 590 590 589 590 592 591 593 594 594 594 595 597 597 597 + 599 600 598 600 601 602 601 604 605 604 604 607 605 606 608 609 + 608 610 610 611 612 613 612 613 614 616 615 617 617 618 617 619 + 620 620 621 622 622 624 623 625 624 625 627 627 627 629 629 630 + 631 633 632 635 635 634 636 637 638 638 640 640 642 641 642 644 + 643 645 645 647 647 649 648 648 651 651 653 653 655 655 656 656 + 656 657 659 659 661 662 662 664 664 664 666 666 667 667 668 669 + 671 672 672 674 674 675 676 677 677 678 679 678 681 681 683 683 + 684 685 686 686 685 687 687 689 688 692 691 693 693 694 694 695 + 696 696 697 699 699 699 702 701 702 704 703 704 706 706 706 708 + 709 708 709 711 712 711 713 713 714 714 716 717 716 719 719 720 + 721 721 722 722 723 723 725 724 727 727 728 727 728 730 729 732 + 731 734 734 734 735 735 735 737 737 739 740 739 742 741 742 743 + 743 745 744 746 745 748 747 749 749 750 751 752 752 753 754 754 + 756 756 756 758 757 759 759 762 761 762 763 761 764 764 765 765 + 765 766 768 769 769 769 770 770 771 772 773 773 775 774 776 777 + 777 779 780 780 781 781 781 782 783 785 784 786 786 788 788 787 + 789 790 790 790 793 792 793 794 793 795 796 796 797 799 799 800 + 799 800 801 801 803 802 805 805 806 807 809 807 808 808 809 810 + 811 812 812 814 814 814 815 815 815 815 817 817 819 820 819 821 + 820 823 822 824 824 826 825 825 827 826 827 827 829 831 831 831 + 831 834 833 833 834 836 835 836 835 837 838 840 839 841 842 841 + 843 844 843 845 845 846 846 848 848 849 850 849 850 851 851 852 + 853 854 854 854 855 856 857 858 858 859 860 862 862 863 863 865 + 865 865 866 868 867 869 869 870 871 871 873 872 875 875 875 875 + 877 878 879 880 878 881 880 882 883 883 885 884 885 886 886 888 + 889 890 890 890 893 891 892 893 894 896 896 897 897 896 900 900 + 902 902 900 902 902 904 904 905 905 906 908 909 909 911 911 911 + 912 912 913 914 915 915 917 916 919 918 920 920 920 922 922 923 + 923 924 925 927 926 926 928 929 929 932 930 934 932 934 934 934 + 936 936 938 938 940 939 940 941 942 943 944 943 945 944 948 947 + 947 949 948 950 950 952 952 954 953 955 955 955 956 958 959 957 + 959 959 961 961 963 962 964 964 966 966 967 968 968 968 969 970 + 970 970 972 973 974 975 974 975 976 978 978 980 979 979 980 981 + 982 983 984 984 985 985 987 988 988 988 989 990 991 990 990 992 + 992 994 993 995 996 997 998 999 999 1000 1000 1000 1001 1003 1004 1003 + 1004 1004 1006 1006 1008 1008 1009 1010 1011 1012 1010 1013 1014 1013 1015 1015 + 1016 1016 1018 1019 1018 1020 1020 1021 1022 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 @@ -365,7 +365,7 @@ 39 01 00 00 00 00 02 59 09 39 01 00 00 00 00 02 6C 00 39 01 00 00 00 00 03 F0 AA 10 - 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 17 09 0B 00 06 17 09 0B 00 1B 05 05 17 17 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 13 09 0B 00 06 13 09 0B 00 1B 05 05 13 13 39 01 00 00 00 00 03 FF 5A 80 39 01 00 00 00 00 02 65 0E 39 01 00 00 00 00 02 F9 B9 @@ -377,8 +377,6 @@ 05 01 00 00 4B 00 01 11 39 01 00 00 00 00 03 FF 5A 81 39 01 00 00 00 00 02 F3 08 - 39 01 00 00 00 00 03 F0 AA 13 - 39 01 00 00 00 00 07 C5 02 C0 02 95 03 44 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 05 01 00 00 14 00 01 29 From 2258bc39e21c77f2f58f2d6c725836cada36bd0b Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Thu, 15 Jun 2023 17:28:58 +0800 Subject: [PATCH 1087/1247] fogor/sensor: sx937x sarsensor bringup 1.sx937x sarsensor bringup 2.change dts about sx937x Change-Id: I6bf2446ac39f633d2f7de927c116c8027323a9b6 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2644916 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 203 ++++++++++++++++++++-------------------- 1 file changed, 104 insertions(+), 99 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index e65a4fbcabe0..bbb376f8a0ab 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -37,6 +37,32 @@ bias-no-pull; }; }; + + sar_int_fogor_default: sar_int_fogor_default { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_fogor_sleep: sar_int_fogor_sleep { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; }; &soc { @@ -49,104 +75,83 @@ }; }; -&qupv3_se8_i2c { - status = "disabled"; - Semtech_sx937x@2c { - compatible = "Semtech,sx937x"; - reg = <0x2c>; - Semtech,power-supply-type = <1>; - cap_vdd-supply = <&L12A>; - /*use PH5/6 as the reference sensor - set it to 0xff if the ref-phases-x is not used*/ - Semtech,ref-phases-a = <5>; - Semtech,ref-phases-b = <6>; - Semtech,ref-phases-c = <0xff>; - Semtech,button-flag = <0x1f>; - reinit-on-i2c-failure = <1>; - Semtech,reg-num = <66>; - Semtech,reg-init = < - 0x4004 0x78 - 0x4008 0x8 - 0x8020 0x32 - 0x8028 0x45F - 0x8034 0x45F - 0x8040 0x45F - 0x804C 0x45F - 0x8058 0x45F - 0x8064 0x45E - 0x8070 0x45E - 0x807C 0x45E - 0x8030 0x924925 - 0x803C 0xB24924 - 0x8048 0x924964 - 0x8054 0x925924 - 0x8060 0x964924 - 0x806C 0x92492C - 0x8078 0x92C924 - 0x8084 0x924924 - 0x8098 0x685A - 0x80B8 0x2D23 - 0x80D8 0x4D40 - 0x80F8 0x5A47 - 0x8118 0x4637 - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0xFF - 0x80A0 0x20200001 - 0x80C0 0x1A1A0002 - 0x80E0 0x20200001 - 0x8100 0x0 - 0x8120 0x20200002 - 0x8140 0x0 - 0x8160 0x0 - 0x8180 0x0 - 0x8188 0x8000015 - 0x818C 0x8000016 - 0x8190 0x0 - 0x8194 0x0 - 0x8090 0x7C845200 - 0x80B0 0x7C845102 - 0x80D0 0x7C845200 - 0x80F0 0x7C845100 - 0x8110 0x7C845100 - 0x8130 0x54AC5300 - 0x8150 0x54AC5300 - 0x8170 0x54AC5300 - 0x8088 0x300000 - 0x80A8 0x300000 - 0x80C8 0x300000 - 0x80E8 0x300000 - 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200020 - 0x80AC 0x60200010 - 0x80CC 0x60200020 - 0x80EC 0x60200010 - 0x810C 0x60200010 - 0x812C 0x60200031 - 0x814C 0x60200031 - 0x816C 0x60200031 - 0x8024 0x7F7F - 0x8274 0x2E040000 - 0x4280 0x0E - >; - }; - awinic_sar@12 { - /* common node */ - compatible = "awinic,aw_sar"; - reg = < 0x12 >; - //aw_sar,regulator-power-supply = <1>; - sar-num = < 0 >; - //vcc0-supply = <&L12A>; - channel_use_flag = <0x1f>; - aw_sar,use_plug_cail; - aw_sar,update_fw; - /* private node belongs to aw963xx */ - start-mode = < 1 >; // 0: start in rom 1: start in ram - irq-mux = < 2 >; // set csx as irq pin. config this field when connect to aw96308/aw96310 - status = "disabled"; - }; +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_fogor_default>; + pinctrl-1 = <&sar_int_fogor_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <60 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 60 0x02>; + reinit-on-i2c-failure = <1>; + Semtech,reg-num = <66>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8020 0x32 + 0x8028 0x45F + 0x8034 0x45F + 0x8040 0x45F + 0x804C 0x45F + 0x8058 0x45F + 0x8064 0x45E + 0x8070 0x45E + 0x807C 0x45E + 0x8030 0x924925 + 0x803C 0xB24924 + 0x8048 0x924964 + 0x8054 0x925924 + 0x8060 0x964924 + 0x806C 0x92492C + 0x8078 0x92C924 + 0x8084 0x924924 + 0x8098 0x685A + 0x80B8 0x2D23 + 0x80D8 0x4D40 + 0x80F8 0x5A47 + 0x8118 0x4637 + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0xFF + 0x80A0 0x20200001 + 0x80C0 0x1A1A0002 + 0x80E0 0x20200001 + 0x8100 0x0 + 0x8120 0x20200002 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x7C845200 + 0x80B0 0x7C845102 + 0x80D0 0x7C845200 + 0x80F0 0x7C845100 + 0x8110 0x7C845100 + 0x8130 0x54AC5300 + 0x8150 0x54AC5300 + 0x8170 0x54AC5300 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200020 + 0x80AC 0x60200010 + 0x80CC 0x60200020 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x60200031 + 0x814C 0x60200031 + 0x816C 0x60200031 + 0x8024 0x7F7F + 0x8274 0x2E040000 + 0x4280 0x0E + >; }; From fdc20a084725943e7a13d38906d0e787602c3024 Mon Sep 17 00:00:00 2001 From: Simon C Date: Wed, 7 Jun 2023 16:49:38 +0800 Subject: [PATCH 1088/1247] fogor: Setup camera baseline[2/3] Details: include camera/blair-camera-sensor-mot-fogor-overlay.dtsi Change-Id: Ic9a4f06481b23ff3a90071c9574a70f78885886b Signed-off-by: Simon C Reviewed-on: https://gerrit.mot.com/2636626 Reviewed-by: SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/blair-fogor-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-fogor-common-overlay.dtsi b/qcom/blair-fogor-common-overlay.dtsi index 137a75c9b65d..83ab63c43787 100644 --- a/qcom/blair-fogor-common-overlay.dtsi +++ b/qcom/blair-fogor-common-overlay.dtsi @@ -20,6 +20,7 @@ #include "fogor-display.dtsi" #include "fogor-touchscreen.dtsi" #include "fogor-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-fogor-overlay.dtsi" #include "fogor-wl286xx.dtsi" #include "moto_therm_sys_temp.dtsi" #include "blair-fogor-fmr-overlay.dtsi" From 1e266b323ece9762618a604028c0dd988aa3f441 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 15 Jun 2023 17:40:25 +0800 Subject: [PATCH 1089/1247] dts: fogor: tianma panel bringup This is a 1st panel with "tianma + icnl9916c". This is a initial file for tianma panel Change-Id: I4f6ea87266859903b746e0305da781ac04743f24 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2644927 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9916c-652-720x1600-video.dtsi | 82 +++++ qcom/fogor-display.dtsi | 317 +++--------------- qcom/fogor-touchscreen.dtsi | 4 +- 3 files changed, 138 insertions(+), 265 deletions(-) create mode 100644 qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi new file mode 100644 index 000000000000..ac65f645f91c --- /dev/null +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -0,0 +1,82 @@ +&mdss_mdp { + dsi_icnl9916c_hd_plus_120_video: qcom,mdss_dsi_tm_icnl9916c_6528_fh_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_tm_icnl9916c_hdp_652_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; +/* + qcom,mdss-dsi-cabc-mv-command = [ + 15 00 00 00 00 00 02 55 03 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 FF FF F0 F0 F0 F0 F0 FF F5 F8 FB FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 BB BB CD DD EE FF E7 EF F7 FF 87 10 99 FB 5D BF 21 84 + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [ + 15 00 00 00 00 00 02 55 03 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; +*/ + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <16>; + qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <32>; + qcom,mdss-dsi-v-front-porch = <400>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 F0 00 00 00 + 39 00 00 00 00 00 03 51 00 00 + 39 00 00 00 00 00 03 35 00 00 + 39 00 00 00 00 00 03 53 2C 00 + 39 01 00 00 78 00 03 11 00 00 + 39 01 00 00 0A 00 03 29 00 00 + 39 01 00 00 00 00 03 6D 02 00 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 64 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + }; +}; diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index a75882e80d0b..dfbced2b29b5 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -1,30 +1,13 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" -#include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" -#include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; /delete-property/ pinctrl-0; }; - &tlmm { - display_panel_vddio_default: display_panel_vddio_default { - mux { - pins = "gpio102"; - function = "gpio"; - }; - - config { - pins = "gpio102"; - drive-strength = <8>; - bias-disable = <0>; - output-high; - }; - }; - - display_panel_vci_default: display_panel_vci_default { + lcd_panel_avdd_default: lcd_panel_avdd_default { mux { pins = "gpio84"; function = "gpio"; @@ -38,7 +21,7 @@ }; }; - display_panel_dvdd_default: display_panel_dvdd_default { + lcd_panel_avee_default: lcd_panel_avee_default { mux { pins = "gpio85"; function = "gpio"; @@ -54,138 +37,70 @@ }; &soc { - display_panel_vddio: display_gpio_regulator@1 { + lcd_panel_avdd: lcd_gpio_regulator@1 { compatible = "qti-regulator-fixed"; - regulator-name = "display_panel_vddio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 102 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&display_panel_vddio>; - qcom,proxy-consumer-enable; - pinctrl-names = "default"; - pinctrl-0 = <&display_panel_vddio_default>; - }; - - display_panel_vci: display_gpio_regulator@2 { - compatible = "qti-regulator-fixed"; - regulator-name = "display_panel_vci"; - regulator-min-microvolt = <3000000>; - regulator-max-microvolt = <3000000>; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; regulator-enable-ramp-delay = <233>; gpio = <&tlmm 84 0>; enable-active-high; regulator-boot-on; - proxy-supply = <&display_panel_vci>; - qcom,proxy-consumer-enable; + proxy-supply = <&lcd_panel_avdd>; pinctrl-names = "default"; - pinctrl-0 = <&display_panel_vci_default>; + pinctrl-0 = <&lcd_panel_avdd_default>; }; - display_panel_dvdd: display_gpio_regulator@3 { + lcd_panel_avee: lcd_gpio_regulator@2 { compatible = "qti-regulator-fixed"; - regulator-name = "display_panel_dvdd"; - regulator-min-microvolt = <1250000>; - regulator-max-microvolt = <1250000>; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; regulator-enable-ramp-delay = <233>; gpio = <&tlmm 85 0>; enable-active-high; regulator-boot-on; - proxy-supply = <&display_panel_dvdd>; - qcom,proxy-consumer-enable; + proxy-supply = <&lcd_panel_avee>; pinctrl-names = "default"; - pinctrl-0 = <&display_panel_dvdd_default>; + pinctrl-0 = <&lcd_panel_avee_default>; }; - dsi_panel_pwr_supply_ext_bias: dsi_panel_pwr_supply_ext_bias { - #address-cells = <1>; - #size-cells = <0>; + dsi_panel_pwr_supply_fogor: dsi_panel_pwr_supply_fogor{ + #address-cells = <1>; + #size-cells = <0>; qcom,panel-supply-entry@0 { reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <0>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-off-sleep = <1>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; }; qcom,panel-supply-entry@1 { reg = <1>; - qcom,supply-name = "vci"; - qcom,supply-min-voltage = <3000000>; - qcom,supply-max-voltage = <3000000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <0>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <2>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; }; qcom,panel-supply-entry@2 { reg = <2>; - qcom,supply-name = "dvdd"; - qcom,supply-min-voltage = <1250000>; - qcom,supply-max-voltage = <1250000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <1>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <2>; - }; - }; - - dsi_panel_pwr_supply_ext_bias_nt: dsi_panel_pwr_supply_ext_bias_nt { - #address-cells = <1>; - #size-cells = <0>; - - qcom,panel-supply-entry@0 { - reg = <0>; - qcom,supply-name = "vddio"; - qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1800000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <0>; - qcom,supply-post-on-sleep = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; qcom,supply-pre-off-sleep = <3>; - qcom,supply-post-off-sleep = <1>; + qcom,supply-post-on-sleep = <3>; }; - qcom,panel-supply-entry@1 { - reg = <1>; - qcom,supply-name = "dvdd"; - qcom,supply-min-voltage = <1250000>; - qcom,supply-max-voltage = <1250000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <1>; - qcom,supply-post-on-sleep = <2>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <2>; - }; - - qcom,panel-supply-entry@2 { - reg = <2>; - qcom,supply-name = "vci"; - qcom,supply-min-voltage = <3000000>; - qcom,supply-max-voltage = <3000000>; - qcom,supply-enable-load = <300000>; - qcom,supply-disable-load = <0>; - qcom,supply-pre-on-sleep = <0>; - qcom,supply-post-on-sleep = <10>; - qcom,supply-pre-off-sleep = <2>; - qcom,supply-post-off-sleep = <2>; - }; - }; + }; }; &sde_dsi { @@ -195,37 +110,37 @@ /delete-property/ qcom,dsi-default-panel; /delete-property/ avdd-supply; - vddio-supply = <&display_panel_vddio>; - vci-supply = <&display_panel_vci>; - dvdd-supply = <&display_panel_dvdd>; + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&L13A>; - qcom,dsi-default-panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + qcom,dsi-default-panel = <&dsi_icnl9916c_hd_plus_120_video>; }; -&mot_csot_vtdr6115_655_1080x2400_dsc_vid{ +&dsi_icnl9916c_hd_plus_120_video{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + /*qcom,dsi-supported-dfps-list = <120 90 60>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; qcom,mdss-dsi-pan-dfps-send-command-with-te-async; - qcom,mdss-dsi-pan-on-fps = <60>; + qcom,mdss-dsi-pan-on-fps = <60>;*/ - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <3929>; - qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-brightness-max-level = <2047>; qcom,mdss-dsi-bl-default-level = <1757>; - qcom,mdss-dsi-bl-inverted-dbv; + /*qcom,mdss-dsi-bl-inverted-dbv;*/ + qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-is-exponent; - qcom,mdss-dsi-panel-hdr-enable; +/* qcom,mdss-dsi-panel-hdr-enable; qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 16000 13000 35500 7000 2500>; qcom,mdss-dsi-panel-peak-brightness = <5000000>; @@ -237,106 +152,20 @@ qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0 0 0>; qcom,mdss-dsi-panel-status-read-length = <3>; - +*/ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-clockrate = <890000000>; - qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 - 08 08 02 04 00 1A 0D]; - qcom,display-topology = <1 1 1>; + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A + 0A 09 02 04 00 1F 1A]; + + qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; }; }; }; -&mot_tm_nt37703_655_1080x2400_dsc_vid{ - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-on-fps = <60>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <3929>; - qcom,mdss-brightness-max-level = <3929>; - qcom,mdss-dsi-bl-default-level = <1757>; - - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-is-exponent; - - qcom,mdss-dsi-panel-hdr-enable; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 - 07 08 02 04 00 19 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - -&mot_tm_u8_nt37703_655_1080x2400_dsc_vid{ - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-on-fps = <60>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias_nt>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <3929>; - qcom,mdss-brightness-max-level = <3929>; - qcom,mdss-dsi-bl-default-level = <1757>; - - qcom,mdss-dsi-no-panel-on-read-support; - qcom,mdss-dsi-bl-is-exponent; - - qcom,mdss-dsi-panel-hdr-enable; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0a]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9c>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1D 07 07 17 22 07 - 07 08 02 04 00 19 0C]; - qcom,display-topology = <1 1 1>; - qcom,default-topology-index = <0>; - }; - }; -}; &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; @@ -355,41 +184,3 @@ }; }; }; - -&qupv3_se10_i2c { - status = "ok"; - - lcd_backlight@36 { - compatible = "awinic,aw99703-bl"; - reg = <0x36>; - - /* Awinic, aw99703 */ - aw99703,hwen-gpio = <&tlmm 60 0>; - aw99703,bl-map = <3>; /* brightness map level 1:256,2:1024,3:2048 */ - aw99703,using-lsb; - aw99703,ovp-level = <2>; /* 0:17.5V, 1:24V, 2:31V, 3:38V, 4:41.5V */ - aw99703,ocp-level = <1>; /* 0:0.9A, 1:1.8A, 2:2.7A, 3:3.4A */ - aw99703,switch-freq = <1>; /* 1000kHz(default) */ - aw99703,auto-freq-high = <0x10>; - aw99703,auto-freq-low = <0x05>; - aw99703,bl-fscal-led = <0x19>; /* 24.8mA */ - aw99703,bl-channel = <3>; - aw99703,turn-on-ramp = <0x00>; /* 512us */ - aw99703,turn-off-ramp = <0x04>; /* 8ms */ - aw99703,pwm-trans-dim = <0>; /* 2ms */ - aw99703,i2c-trans-dim = <1>; /* 128ms */ - aw99703,pwm-mode = <1>; /* 1 pwm enable,0 PWM disable */ - aw99703,map-type = <0>; /* 0 exponential, 4 linear */ - aw99703,work-mode = <1>; /* backlight */ - aw99703,default-brightness = <1810>; - - }; -}; - -&qupv3_se10_i2c_sleep { - config { - /delete-property/ bias-disable; - bias-pull-up; - input-enable; - }; -}; diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index bd40c728bd2e..52a1d917ecaa 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -93,7 +93,7 @@ goodix,avdd-gpio = <&tlmm 11 0x0>; iovdd-supply = <&L13A>; - panel = <&mot_tm_nt37703_655_1080x2400_dsc_vid>; + panel = <&dsi_icnl9916c_hd_plus_120_video>; goodix,reset-gpio = <&tlmm 21 0x0>; goodix,irq-gpio = <&tlmm 22 0x0>; @@ -137,7 +137,7 @@ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; - panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid>; + panel = <&dsi_icnl9916c_hd_plus_120_video>; mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; From 14627fb7e1d9e9c7e6fc89740e3b812c6d6c5d04 Mon Sep 17 00:00:00 2001 From: Franz Wang Date: Thu, 15 Jun 2023 18:08:30 +0800 Subject: [PATCH 1090/1247] devicetree/qcom: add the new hwid dts configuration for fogor evb update DTS configuration according to https://sites.google.com/motorola.com/runtime-product-ids-2018/sm6375 Change-Id: I87b179e34235b1f3956010e4b819264df85e262f Signed-off-by: Franz Wang Reviewed-on: https://gerrit.mot.com/2644976 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yiqiang Feng Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogor-evb-overlay.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogor-evb-overlay.dts b/qcom/blair-fogor-evb-overlay.dts index 73b3387f0852..e0a112ecdb7f 100644 --- a/qcom/blair-fogor-evb-overlay.dts +++ b/qcom/blair-fogor-evb-overlay.dts @@ -19,6 +19,6 @@ model = "fogor"; compatible = "qcom,blair-fogor", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>, <578 0x10000>; - qcom,board-id = <0x47 0xA100>; + qcom,board-id = <0x47 0xA100>, <0x48 0xA100>; }; From d5b0da7d7d4bd01942de5f4cd6509c69d77acdb8 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Fri, 16 Jun 2023 14:18:07 +0800 Subject: [PATCH 1091/1247] dts/display: Add csot dvt1b c7 panel MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Panel id:A1 94; DC 02 ELVSS:-4.8/-2.5 Change-Id: I4088a8a61def83cb478e305463b038fbb34ccb62 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2645901 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 46 ++ qcom/bangkk-touchscreen.dtsi | 2 +- ...ot-c7-vtdr6115-655-1080x2400-video-v0.dtsi | 420 ++++++++++++++++++ 3 files changed, 467 insertions(+), 1 deletion(-) create mode 100644 qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 3bbd5ed5d58d..8d46a9abe25d 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -2,6 +2,7 @@ #include "dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi" #include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi" &display_panel_avdd { @@ -337,6 +338,51 @@ }; }; +&mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-on-fps = <60>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_ext_bias>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <3929>; + qcom,mdss-brightness-max-level = <3929>; + qcom,mdss-dsi-bl-default-level = <1757>; + qcom,mdss-dsi-bl-inverted-dbv; + + qcom,mdss-dsi-no-panel-on-read-support; + qcom,mdss-dsi-bl-is-exponent; + + qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 + 08 08 02 04 00 1A 0D]; + qcom,display-topology = <1 1 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 1e556bf55f3c..a7992e5022db 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -138,7 +138,7 @@ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; - panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid>; + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0 &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid>; mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi new file mode 100644 index 000000000000..164976573661 --- /dev/null +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi @@ -0,0 +1,420 @@ +/* Copyright (c) 2019-2020, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&mdss_mdp { + mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0: qcom,mdss_dsi_mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0 { + qcom,mdss-dsi-panel-name = + "mipi_moto_vid_csot_1080p_dsc_655"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,mdss-dsi-panel-physical-type = "oled"; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-pan-physical-width-dimension = <69>; + qcom,mdss-pan-physical-height-dimension = <154>; + qcom,mdss-dsi-bpp = <30>; + qcom,mdss-dsi-underflow-color = <0xff>; + qcom,mdss-dsi-border-color = <0>; + + qcom,mdss-dsi-traffic-mode = "non_burst_sync_event"; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; + + qcom,mdss-dsi-panel-hdr-enabled; + qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 + 17000 15500 30000 8000 3000>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>;//4200000 + + qcom,mdss-dsi-panel-blackness-level = <3515>;//3230 + + qcom,mdss-dsi-dc-off-command = [ + 39 01 00 00 00 00 02 5E 00]; + qcom,mdss-dsi-dc-off-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-dc-on-command = [ + 39 01 00 00 00 00 02 5E 01]; + qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-hbm-on-command = [ + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + qcom,mdss-dsi-hbm-off-command = [ + 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 13 + 39 01 00 00 00 00 02 C6 00]; + + qcom,mdss-dsi-hbm-fod; + qcom,mdss-dsi-hbm-fod-on-command = [ + 39 00 00 00 00 00 03 F0 AA 13 + 39 00 00 00 00 00 02 C6 01 + 39 00 00 00 00 00 03 63 03 FF + 39 00 00 00 00 00 03 51 05 2A + 39 01 00 00 00 00 02 62 03]; + + qcom,mdss-dsi-panel-lhbm-wait-fps-valid; + qcom,mdss-dsi-panel-local-hbm-wait-fps-count = <68>; + qcom,mdss-dsi-panel-local-hbm-wait-fps-interval = <2>; + qcom,mdss-dsi-panel-lhbm-not-allowed-fps-list = <60 90>; + + qcom,mdss-dsi-panel-local-hbm-enabled; + qcom,mdss-dsi-panel-local-hbm-DC-HYBIRD-THRESHOLD-BL = <1322>; //0x052A + qcom,mdss-dsi-panel-local-hbm-alpha-register = <0x63>; + qcom,mdss-dsi-panel-local-hbm-alpha-size = <4096>; + qcom,mdss-dsi-panel-local-hbm-alpha-table = < + 3 220 224 223 224 224 223 224 224 223 225 225 224 225 224 226 + 224 227 225 228 228 229 230 229 229 230 229 231 230 230 231 230 + 231 229 231 231 235 234 234 236 235 234 235 236 235 235 236 235 + 237 237 235 236 238 240 240 240 239 240 241 240 241 242 240 240 + 241 242 243 241 243 243 245 246 246 245 246 246 245 246 247 246 + 247 247 246 247 248 247 247 249 252 250 251 252 251 252 252 251 + 252 253 252 252 254 252 252 254 252 256 258 256 256 257 256 257 + 258 257 258 259 258 257 259 258 258 260 262 262 263 262 262 263 + 262 264 263 263 264 263 263 264 263 265 264 266 268 268 267 269 + 269 267 269 269 268 270 270 268 270 270 269 271 272 273 274 273 + 273 275 274 274 276 274 275 276 275 275 276 276 276 276 280 278 + 279 280 279 279 280 280 280 280 280 281 281 281 282 281 282 284 + 285 286 284 285 286 285 286 287 285 286 287 286 286 286 286 288 + 290 289 292 290 291 292 292 291 292 293 291 292 293 291 293 293 + 293 296 296 295 297 297 296 297 297 298 297 298 298 298 297 299 + 299 299 300 303 302 302 303 303 302 303 304 303 303 303 304 303 + 305 305 304 305 309 307 306 308 309 308 308 309 310 310 309 309 + 310 309 310 310 311 313 312 315 314 314 314 313 315 315 315 316 + 315 315 316 316 317 316 319 319 319 319 320 320 321 321 320 320 + 321 322 322 321 321 322 323 325 324 324 325 326 326 326 327 327 + 326 327 327 327 327 328 328 328 331 332 331 331 332 332 332 332 + 333 332 333 333 334 334 334 334 333 335 337 336 337 339 337 340 + 341 341 341 340 344 345 345 343 345 346 348 347 349 349 348 351 + 352 352 352 353 355 355 356 355 356 356 358 360 359 359 359 362 + 363 361 363 363 365 366 367 366 366 366 370 369 370 370 370 372 + 374 374 374 373 375 376 376 376 376 376 379 379 379 380 380 382 + 384 384 383 383 384 387 386 387 386 387 390 389 391 389 389 392 + 393 393 393 394 394 396 397 397 397 397 400 399 400 400 400 403 + 403 404 404 404 403 406 408 407 406 407 411 410 409 411 411 414 + 415 413 414 414 416 418 417 417 418 418 420 421 421 421 421 422 + 423 425 424 424 424 427 427 427 427 427 430 430 431 431 431 431 + 433 435 435 434 434 437 437 437 438 437 441 440 440 442 442 442 + 444 444 444 444 445 447 448 448 448 448 451 451 451 451 451 451 + 454 454 455 454 454 457 457 457 459 457 458 461 461 461 463 463 + 464 464 464 466 465 468 469 468 468 470 471 470 474 474 472 474 + 476 476 477 478 477 479 478 480 482 481 483 484 484 484 486 486 + 487 489 488 490 489 492 491 491 493 494 494 495 495 497 496 500 + 500 500 500 502 502 502 503 504 504 504 506 508 508 507 511 510 + 510 513 513 513 512 514 514 515 516 518 518 517 520 519 521 523 + 522 522 523 525 524 526 528 526 527 528 530 530 530 531 533 531 + 532 534 534 534 538 537 537 537 540 538 540 542 541 542 542 544 + 544 545 544 546 547 547 550 549 550 549 552 551 552 554 554 555 + 555 555 555 557 558 558 559 560 560 560 561 562 563 564 563 566 + 566 566 567 568 568 569 569 569 571 573 572 574 573 574 576 576 + 577 578 578 577 581 580 580 582 582 582 583 585 586 585 586 587 + 588 588 590 590 589 590 592 591 593 594 594 594 595 597 597 597 + 599 600 598 600 601 602 601 604 605 604 604 607 605 606 608 609 + 608 610 610 611 612 613 612 613 614 616 615 617 617 618 617 619 + 620 620 621 622 622 624 623 625 624 625 627 627 627 629 629 630 + 631 633 632 635 635 634 636 637 638 638 640 640 642 641 642 644 + 643 645 645 647 647 649 648 648 651 651 653 653 655 655 656 656 + 656 657 659 659 661 662 662 664 664 664 666 666 667 667 668 669 + 671 672 672 674 674 675 676 677 677 678 679 678 681 681 683 683 + 684 685 686 686 685 687 687 689 688 692 691 693 693 694 694 695 + 696 696 697 699 699 699 702 701 702 704 703 704 706 706 706 708 + 709 708 709 711 712 711 713 713 714 714 716 717 716 719 719 720 + 721 721 722 722 723 723 725 724 727 727 728 727 728 730 729 732 + 731 734 734 734 735 735 735 737 737 739 740 739 742 741 742 743 + 743 745 744 746 745 748 747 749 749 750 751 752 752 753 754 754 + 756 756 756 758 757 759 759 762 761 762 763 761 764 764 765 765 + 765 766 768 769 769 769 770 770 771 772 773 773 775 774 776 777 + 777 779 780 780 781 781 781 782 783 785 784 786 786 788 788 787 + 789 790 790 790 793 792 793 794 793 795 796 796 797 799 799 800 + 799 800 801 801 803 802 805 805 806 807 809 807 808 808 809 810 + 811 812 812 814 814 814 815 815 815 815 817 817 819 820 819 821 + 820 823 822 824 824 826 825 825 827 826 827 827 829 831 831 831 + 831 834 833 833 834 836 835 836 835 837 838 840 839 841 842 841 + 843 844 843 845 845 846 846 848 848 849 850 849 850 851 851 852 + 853 854 854 854 855 856 857 858 858 859 860 862 862 863 863 865 + 865 865 866 868 867 869 869 870 871 871 873 872 875 875 875 875 + 877 878 879 880 878 881 880 882 883 883 885 884 885 886 886 888 + 889 890 890 890 893 891 892 893 894 896 896 897 897 896 900 900 + 902 902 900 902 902 904 904 905 905 906 908 909 909 911 911 911 + 912 912 913 914 915 915 917 916 919 918 920 920 920 922 922 923 + 923 924 925 927 926 926 928 929 929 932 930 934 932 934 934 934 + 936 936 938 938 940 939 940 941 942 943 944 943 945 944 948 947 + 947 949 948 950 950 952 952 954 953 955 955 955 956 958 959 957 + 959 959 961 961 963 962 964 964 966 966 967 968 968 968 969 970 + 970 970 972 973 974 975 974 975 976 978 978 980 979 979 980 981 + 982 983 984 984 985 985 987 988 988 988 989 990 991 990 990 992 + 992 994 993 995 996 997 998 999 999 1000 1000 1000 1001 1003 1004 1003 + 1004 1004 1006 1006 1008 1008 1009 1010 1011 1012 1010 1013 1014 1013 1015 1015 + 1016 1016 1018 1019 1018 1020 1020 1021 1022 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 + 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023 1023>; + + qcom,mdss-dsi-display-timings { + timing@0 { + cell-index = <0>; + qcom,mdss-dsi-panel-framerate = <60>; + qcom,mdss-dsi-panel-width = <1080>; + qcom,mdss-dsi-panel-height = <2400>; + qcom,mdss-dsi-h-front-porch = <26>; + qcom,mdss-dsi-h-back-porch = <30>; + qcom,mdss-dsi-h-pulse-width = <10>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <8>; + qcom,mdss-dsi-v-front-porch = <3444>; + qcom,mdss-dsi-v-pulse-width = <4>; + qcom,mdss-dsi-h-left-border = <0>; + qcom,mdss-dsi-h-right-border = <0>; + qcom,mdss-dsi-v-top-border = <0>; + qcom,mdss-dsi-v-bottom-border = <0>; + + qcom,mdss-dsi-on-command = [ + 39 01 00 00 00 00 02 03 01 + 39 01 00 00 00 00 02 53 20 + 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 02 6F 01 + 39 01 00 00 00 00 02 35 00 + 39 01 00 00 00 00 02 55 10 + 39 01 00 00 00 00 02 59 09 + 39 01 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 17 D0 84 15 50 14 20 00 39 06 13 09 0B 00 06 13 09 0B 00 1B 05 05 13 13 + 39 01 00 00 00 00 03 FF 5A 80 + 39 01 00 00 00 00 02 65 0E + 39 01 00 00 00 00 02 F9 B9 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 65 03 + 39 01 00 00 00 00 02 F4 03 + 39 01 00 00 00 00 02 65 08 + 39 01 00 00 00 00 03 F6 51 44 + 05 01 00 00 4B 00 01 11 + 39 01 00 00 00 00 03 FF 5A 81 + 39 01 00 00 00 00 02 F3 08 + 39 01 00 00 00 00 03 FF 5A 00 + 39 01 00 00 00 00 03 F0 AA 00 + 05 01 00 00 14 00 01 29 + ]; + + qcom,mdss-dsi-off-command = [ + 05 01 00 00 14 00 02 28 00 + 05 01 00 00 78 00 02 10 00]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-h-sync-pulse = <0>; + qcom,compression-mode = "dsc"; + qcom,mdss-dsc-slice-height = <12>; + qcom,mdss-dsc-slice-width = <540>; + qcom,mdss-dsc-slice-per-pkt = <2>; + qcom,mdss-dsc-bit-per-component = <10>; + qcom,mdss-dsc-bit-per-pixel = <8>; + qcom,mdss-dsc-block-prediction-enable; + + qcom,mdss-dsi-dfps-60-command = [ + 39 00 00 00 00 00 02 6C 00 + 39 01 00 00 00 00 02 62 00]; + qcom,mdss-dsi-dfps-60-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-90-command = [ + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 01 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 05 D4]; + qcom,mdss-dsi-dfps-90-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-dfps-120-command = [ + 39 00 00 00 00 00 02 6c 01 + 39 00 00 00 00 00 02 62 00 + 39 00 00 00 00 00 03 F0 AA 10 + 39 01 00 00 00 00 0E B1 01 57 00 0C 0D 74 00 01 57 00 0C 02 04]; + qcom,mdss-dsi-dfps-120-command-state = "dsi_hs_mode"; + }; + }; + }; +}; From ac9b90fff5d22d36f1bba98abc60aa9f54b83ff1 Mon Sep 17 00:00:00 2001 From: chenshitao Date: Fri, 16 Jun 2023 11:56:52 +0800 Subject: [PATCH 1092/1247] devicetree: fogor: tp tm-icnl9916c tp bringup<1> tp function: tm-icnl9916c bringup in devicetree Change-Id: I4d965e325f0c94df8a3c3969cd8cf8ea72a2597d Signed-off-by: chenshitao Reviewed-on: https://gerrit.mot.com/2645705 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-touchscreen.dtsi | 158 +++++++++++++++++++++++------------- 1 file changed, 100 insertions(+), 58 deletions(-) diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index 52a1d917ecaa..86c65c9cebff 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -10,12 +10,95 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; &qupv3_se0_i2c { status = "disabled"; }; -&L13A { +&L9A { regulator-min-microvolt = <1800000>; regulator-max-microvolt = <1800000>; qcom,init-voltage = <1800000>; @@ -82,65 +165,24 @@ pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - goodix-berlin@0 { - compatible = "goodix,gt9916S"; + chipone_tddi@0 { + compatible = "chipone-tddi"; reg = <0x0>; - spi-max-frequency = <9600000>; - - mmi,status = "/chosen","mmi,panel_name","contains","nt37703"; - //goodix,avdd-name = "avdd"; - goodix,iovdd-name = "iovdd"; - goodix,avdd-gpio = <&tlmm 11 0x0>; - iovdd-supply = <&L13A>; - + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2001>; + chipone,x-res = <720>; + chipone,y-res = <1600>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; panel = <&dsi_icnl9916c_hd_plus_120_video>; - - goodix,reset-gpio = <&tlmm 21 0x0>; - goodix,irq-gpio = <&tlmm 22 0x0>; - goodix,irq-flags = <2>; - goodix,panel-max-x = <17280>; - goodix,panel-max-y = <38400>; - goodix,panel-max-w = <255>; - - goodix,panel-max-p = <4096>; - goodix,firmware-name = "goodix_firmware.bin"; - goodix,config-name = "goodix_cfg_group.bin"; - goodix,edge-ctrl; - goodix,interpolation-ctrl; - mmi,power-off-suspend; - mmi,usb-charger-detection; - mmi,enable-gestures; - mmi,supported_gesture_type = <0x07>; status = "ok"; }; - - focaltech@1{ - compatible = "focaltech,fts"; - reg = <0x1>; - //mmi,status = "/chosen","vtdr6115"; - mmi,status = "/chosen","mmi,panel_name","contains","vtdr6115"; - spi-max-frequency = <9600000>; - interrupt-parent = <&tlmm>; - interrupts = <22 0x2008>; - focaltech,vdd-gpio = <&tlmm 11 0x00>; - focaltech,reset-gpio = <&tlmm 21 0x00>; - focaltech,irq-gpio = <&tlmm 22 0x02008>; - vcc_i2c-supply = <&L13A>; - focaltech,max-touch-number = <10>; - focaltech,display-coords = <0 0 17280 38400>; - focaltech,edge-ctrl; - focaltech,interpolation-ctrl; - - pinctrl-names = "pmx_ts_active","pmx_ts_suspend", - "pmx_ts_release"; - pinctrl-0 = <&ts_active>; - pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; - pinctrl-2 = <&pmx_ts_release>; - - panel = <&dsi_icnl9916c_hd_plus_120_video>; - mmi,usb-charger-detection; - mmi,enable-gestures; - mmi,supported_gesture_type = <0x07>; - status = "ok"; - }; }; From 766e0d6a67f83bcb626a487425f696c44002bcfb Mon Sep 17 00:00:00 2001 From: ontim52 Date: Sat, 17 Jun 2023 10:01:35 +0800 Subject: [PATCH 1093/1247] fogor:kernel: 2nd tongxingda ili9883c display bringup 1. add 2nd display code 2. add 2nd display config Change-Id: I144b159807a43576da62c49ae9f0b54b8b1c87de Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2646974 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...ongxingda-ili9883c-652-720x1600-video.dtsi | 81 +++++++++++++++++++ qcom/fogor-display.dtsi | 49 +++++++++++ 2 files changed, 130 insertions(+) create mode 100644 qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi new file mode 100644 index 000000000000..614e535e4602 --- /dev/null +++ b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi @@ -0,0 +1,81 @@ +&mdss_mdp { + dsi_ili9883c_hd_plus_120_video: qcom,mdss_dsi_txd_ili9883c_6528_fh_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_txd_ili9883c_hdp_652_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; +/* + qcom,mdss-dsi-cabc-mv-command = [ + 15 00 00 00 00 00 02 55 03 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 FF FF F0 F0 F0 F0 F0 FF F5 F8 FB FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 BB BB CD DD EE FF E7 EF F7 FF 87 10 99 FB 5D BF 21 84 + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [ + 15 00 00 00 00 00 02 55 03 + 39 00 00 00 00 00 03 F0 5A 59 + 39 00 00 00 00 00 03 F1 A5 A6 + 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF + 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF + 39 00 00 00 00 00 03 F0 A5 A5 + 39 01 00 00 00 00 03 F1 5A 5A + ]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; +*/ + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-pulse-width = <8>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <30>; + qcom,mdss-dsi-v-front-porch = <516>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 ff 98 83 00 + 39 00 00 00 00 00 03 51 00 00 + 39 00 00 00 00 00 03 35 00 00 + 39 00 00 00 00 00 03 53 2C 00 + 39 01 00 00 82 00 03 11 00 00 + 39 01 00 00 1E 00 03 29 00 00 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 64 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + }; +}; diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index dfbced2b29b5..6ce785cba961 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -166,6 +167,54 @@ }; }; +&dsi_ili9883c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + /*qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-dfps-send-command-with-te-async; + qcom,mdss-dsi-pan-on-fps = <60>;*/ + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1757>; + /*qcom,mdss-dsi-bl-inverted-dbv;*/ + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; +*/ + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A + 0B 0A 02 04 00 20 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; From 23a5de2739d0b5c53dadc1a26d54c97fddd5029a Mon Sep 17 00:00:00 2001 From: tinno64 Date: Sun, 18 Jun 2023 16:11:57 +0800 Subject: [PATCH 1094/1247] dts/display: Fix U8 panel flashing issue First, download VINITN2 for U7, and after 11/29, download U8 BC table VINITN2 before writing the diagram Change-Id: I8aa238929dc467bddd0b6576894472bfbcd22c6c Reviewed-on: https://gerrit.mot.com/2647064 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...anel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi index ba6df8aeeeab..44e1d6ec79dd 100644 --- a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -120,8 +120,22 @@ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 39 01 00 00 00 00 02 6F 34 39 01 00 00 00 00 02 DF 35 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 02 6F 0E + 39 01 00 00 00 00 05 B9 17 17 17 17 + 39 01 00 00 00 00 02 6F 6F + 39 01 00 00 00 00 0A BB 40 40 40 40 4F 4F 4F 4F 4F + 39 01 00 00 00 00 02 6F 86 + 39 01 00 00 00 00 0A BB 40 40 40 40 4F 4F 4F 4F 4F 05 01 00 00 78 00 01 11 05 01 00 00 14 00 01 29 + 39 01 00 00 00 00 06 F0 55 AA 52 08 01 + 39 01 00 00 00 00 02 6F 0E + 39 01 00 00 00 00 05 B9 09 09 09 09 + 39 01 00 00 00 00 02 6F 6F + 39 01 00 00 00 00 0A BB 43 43 48 48 4F 4F 4F 4F 4F + 39 01 00 00 00 00 02 6F 86 + 39 01 00 00 00 00 0A BB 43 43 48 48 4F 4F 4F 4F 4F ]; qcom,mdss-dsi-off-command = [ From 8fc1ef2b036d5c95605da4ef2adc3e175b1b2363 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Mon, 19 Jun 2023 14:43:29 +0800 Subject: [PATCH 1095/1247] arm/dts: add soc limit 90 for cp Changes, add cp chrg soc limit 90% for bangkk. Change-Id: I4508452be7a148249eeab4ff3f24629f72d12de4 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2647554 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 9aabcbe3f7ec..66ffe1f4af93 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -116,6 +116,7 @@ "charge_done", "cp_charging_enabled"; mmi,cp-use-internal-qg; + mmi,cp-chrg-soc-limit = <90>; qcom,qg-iterm-ma = <500>; }; From 223c8b9bf2cc5fba6780cd366b4e1997fd6ddde1 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Mon, 19 Jun 2023 18:05:54 +0800 Subject: [PATCH 1096/1247] kernel dts: add 1.8v gpio set pin 1. 1.8v pin = 11. 2. add vddio config. Change-Id: I32dcb1cf5999701b796e04561e061c2e0fc12fde Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2647873 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 6ce785cba961..5a360c9b2f96 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -8,6 +8,19 @@ }; &tlmm { + lcd_panel_vddio_default: lcd_panel_vddio_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; lcd_panel_avdd_default: lcd_panel_avdd_default { mux { pins = "gpio84"; @@ -38,6 +51,21 @@ }; &soc { + lcd_panel_vddio: lcd_gpio_regulator@0 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_vddio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 11 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_vddio>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_vddio_default>; + }; + lcd_panel_avdd: lcd_gpio_regulator@1 { compatible = "qti-regulator-fixed"; regulator-name = "lcd_panel_avdd"; @@ -113,7 +141,7 @@ lab-supply = <&lcd_panel_avdd>; ibb-supply = <&lcd_panel_avee>; - vddio-supply = <&L13A>; + vddio-supply = <&lcd_panel_vddio>; qcom,dsi-default-panel = <&dsi_icnl9916c_hd_plus_120_video>; }; @@ -215,7 +243,6 @@ }; }; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 1967e6a5f9a234f027fa23c111f34ca80fbf652b Mon Sep 17 00:00:00 2001 From: "qinghua.zeng" Date: Mon, 19 Jun 2023 11:33:03 +0800 Subject: [PATCH 1097/1247] dtsi/display : Modify the csot dvt2 C7 panel name MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Panel id:A1 94; DC 03 ELVSS:-4.4/-2.2 Change-Id: I31bac693d00028ab4ace5af1bb460864b98d8d0a Signed-off-by: qinghua.zeng Reviewed-on: https://gerrit.mot.com/2647258 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- qcom/bangkk-touchscreen.dtsi | 2 +- ...si-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi} | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) rename qcom/{dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi => dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi} (99%) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 8d46a9abe25d..7a91534a6626 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -3,7 +3,7 @@ #include "dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi" #include "dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi" #include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi" -#include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi" +#include "dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -383,7 +383,7 @@ }; }; -&mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid{ +&mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v1{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index a7992e5022db..5e451beb23fa 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -138,7 +138,7 @@ pinctrl-1 = <&ts_int_suspend &ts_reset_suspend>; pinctrl-2 = <&pmx_ts_release>; - panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0 &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid>; + panel = <&mot_csot_vtdr6115_655_1080x2400_dsc_vid &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v0 &mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v1>; mmi,usb-charger-detection; mmi,enable-gestures; mmi,supported_gesture_type = <0x07>; diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi similarity index 99% rename from qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi rename to qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi index c13967c597b9..43551a342b4d 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi @@ -10,7 +10,7 @@ * GNU General Public License for more details. */ &mdss_mdp { - mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid: qcom,mdss_dsi_mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid { + mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v1: qcom,mdss_dsi_mot_csot_c7_vtdr6115_655_1080x2400_dsc_vid_v1 { qcom,mdss-dsi-panel-name = "mipi_moto_vid_csot_1080p_dsc_655"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; From a89f45ed948999cb61f4abda7e981743f7643989 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Tue, 20 Jun 2023 10:08:29 +0800 Subject: [PATCH 1098/1247] fogor: kernel: modify default lcm powerup 1. add default lcm 2. add default lcm config Change-Id: Ie79e0b4d992e7c6e61ac6c55176ebf62ad50e9a8 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2648960 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 49 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 5a360c9b2f96..06296438509e 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -1,4 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" #include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" #include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" @@ -243,6 +244,54 @@ }; }; +&dsi_vtdr6110c_visionox_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + /*qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + qcom,mdss-dsi-pan-dfps-send-command; + qcom,mdss-dsi-pan-dfps-send-command-with-te-async; + qcom,mdss-dsi-pan-on-fps = <60>;*/ + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <1>; + qcom,mdss-dsi-bl-max-level = <2047>; + qcom,mdss-brightness-max-level = <2047>; + qcom,mdss-dsi-bl-default-level = <1757>; + /*qcom,mdss-dsi-bl-inverted-dbv;*/ + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; + + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0 0 0>; + qcom,mdss-dsi-panel-status-read-length = <3>; +*/ + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A + 0A 09 02 04 00 1F 1A]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From ad49b1788c334c7b84d88f66ad68becbd874217c Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 19 Jun 2023 10:32:31 +0800 Subject: [PATCH 1099/1247] arm/dts: remove useless dts config for fogor fogor only support 18W charging. So remove 30W dts config for fogor Change-Id: Iae25e9c72ee771ef28200efad469dd78ec74b5a8 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2647205 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guocheng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 116 +++------------------------------------- 1 file changed, 6 insertions(+), 110 deletions(-) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index d3327c0a1bb3..c3727777d4ba 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -33,8 +33,7 @@ <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, - <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>, - <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>; + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>; io-channel-names = "usb_in_voltage", "usb_in_current", "chg_temp", @@ -58,17 +57,15 @@ "charge_counter", "cycle_count", "charge_full_design", - "time_to_full_now", - "cp_input_voltage_now"; + "time_to_full_now"; qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; - qcom,dcp-curr-max = <1500000>; - qcom,otg-cl-ua = <1000000>; + qcom,dcp-curr-max = <2000000>; + qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 600000>; - mmi,qc3p-support; /delete-property/ qcom,fcc-stepping-enable; }; @@ -104,114 +101,13 @@ <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, - <&pm7250b_charger PSY_IIO_CHARGE_DONE>, - <&mmi_chrg PSY_IIO_CP_ENABLE>; + <&pm7250b_charger PSY_IIO_CHARGE_DONE>; io-channel-names = "batt-therm", "batt-id", "input_current_limited", "recharge_soc", "force_recharge", - "charge_done", - "cp_charging_enabled"; - mmi,cp-use-internal-qg; + "charge_done"; qcom,qg-iterm-ma = <500>; }; -&qupv3_se10_i2c { - status = "okay"; - bq25960_standalone:bq25960-standalone@6A { - status = "okay"; - compatible = "ti,bq25960-standalone"; - reg = <0x6A>; - sc8541-addr = <0x6A>; - sc8541-name = "sc8541-master"; - #io-channel-cells = <1>; - interrupt-parent = <&tlmm>; - interrupts = <12 IRQ_TYPE_LEVEL_HIGH>; - irq-gpio = <&tlmm 12 0>; - }; -}; - -&soc { - mmi_chrg: mmi_chrg_manager { - compatible = "mmi,chrg-manager"; - #io-channel-cells = <1>; - io-channels = <&pm7250b_charger PSY_IIO_HW_CURRENT_MAX>, - <&pm7250b_charger PSY_IIO_CHARGING_ENABLED>, - <&pm7250b_charger PSY_IIO_TYPEC_MODE>, - <&pm7250b_charger PSY_IIO_USB_INPUT_CURRENT_SETTLED>, - <&pm7250b_charger PSY_IIO_PD_ACTIVE>, - /*qc3p start*/ - <&pm7250b_charger PSY_IIO_USB_REAL_TYPE>, - <&pm7250b_charger PSY_IIO_DP_DM>, - <&pm7250b_charger PSY_IIO_MMI_QC3P_POWER>, - /*qc3p end*/ - <&bq25960_standalone PSY_IIO_CP_ENABLE>, - <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_CURRENT_NOW>, - <&bq25960_standalone PSY_IIO_MMI_CP_INPUT_VOLTAGE_NOW>, - <&bq25960_standalone PSY_IIO_CP_STATUS1>, - <&bq25960_standalone PSY_IIO_CP_CLEAR_ERROR>, - <&pm7250b_mmi PSY_IIO_CP_ENABLE>; - - io-channel-names = "usb_hw_current_max", - "charging_enabled", - "usb_typec_mode", - "usb_input_current_settled", - "usb_pd_active", - /*qc3p start*/ - "usb_real_type", - "battery_dp_dm", - "usb_qc3p_power", - /*qc3p end*/ - "cp_enable", - "cp_input_current_now", - "cp_input_voltage_now", - "cp_status1", - "cp_clear_error", - "mmi_cp_enabled_status"; - - qcom,usbpd-phandle = <&pm7250b_pdphy>; - mmi,pps-volt-steps = <20000>; - mmi,pps-curr-steps = <100000>; - mmi,pd-volt-max = <10000000>; - mmi,pd-curr-max = <3000000>; - mmi,batt-curr-boost = <300000>; - mmi,batt-ovp-lmt = <4580000>; - mmi,pl-chrg-vbatt-min = <3000000>; - mmi,typec-middle-current = <2000000>; - mmi,pd-allow-min-current = <1000000>; - mmi,step-first-current-comp = <0>; - mmi,dont-rerun-aicl; - /*qc3p start*/ - mmi,qc3p-max-ibus-ma = <3000>; - mmi,qc3p-volt-steps = <20000>; - mmi,qc3p-volt-max = <10000000>; - /*qc3p end*/ - mmi,chrg-temp-zones-num = <5>; - mmi,mmi-chrg-temp-zones = - <0 4200 1000 0 0 0 0>, - <10 4250 3000 4500 1000 0 0>, - <15 4500 3000 0 0 0 0>, - <45 4300 5800 4400 5200 4520 4000>, - <60 4200 4000 0 0 0 0>; - mmi,thermal-mitigation = - <5800000>, - <5000000>, - <4000000>, - <3500000>, - <3000000>, - <2000000>, - <1000000>; - charger_device_0 { - chrg-name = "pmic-sw"; - psy-name = "battery"; - charging-curr-limited = <500000>; - }; - charger_device_1 { - chrg-name = "cp-master"; - psy-name = "bq25960-standalone"; - charging-curr-min = <2000000>; - }; - }; -}; - From 54b9ddef32f846ee98fc5cdcf5c7cdf9ce50ae80 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 19 Jun 2023 11:01:10 +0800 Subject: [PATCH 1100/1247] arm/dts: config max 18W charging for fogor fogor support HVDCP 18W charge, so config it. Change-Id: I4ed95f8e541ddaf386a4cba81e390f8233f3a956 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2647229 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guocheng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index c3727777d4ba..358550da2083 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -87,6 +87,7 @@ <4200 260 575>; qcom,iterm-ma = <260>; + qcom,hvdcp-power-max = <18000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <260>; qcom,noffc-chg-iterm-45c = <390>; From 0248cf5c653b486b8553247769b45baa51c44803 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 16 Jun 2023 16:23:54 +0800 Subject: [PATCH 1101/1247] arm64/dt: fogor: bring up fps Add goodix GF3956 and FPC1533 fps sensor device tree configuration. Change-Id: Ic6f8934fcf3cf6cab5e81a33f950736cbe2f1f7a Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2646141 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-fps-overlay.dtsi | 141 +++++++++++++++++------------------- 1 file changed, 68 insertions(+), 73 deletions(-) diff --git a/qcom/fogor-fps-overlay.dtsi b/qcom/fogor-fps-overlay.dtsi index 3e82631392f1..5932983d77ab 100644 --- a/qcom/fogor-fps-overlay.dtsi +++ b/qcom/fogor-fps-overlay.dtsi @@ -1,6 +1,33 @@ &tlmm { - ets_irq_active: egis_irq_active { - /* INTERRUPT */ + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ mux { pins = "gpio17"; function = "gpio"; @@ -9,94 +36,62 @@ config { pins = "gpio17"; drive-strength = <2>; /* 2 MA */ + bias-disable; input-enable; }; }; - ets_rst_high: ets_rst_high { - /* INTERRUPT */ + fps_int_suspend: fps_int_suspend { + /* sleep state */ mux { - pins = "gpio18"; + pins = "gpio17"; function = "gpio"; }; config { - pins = "gpio18"; + pins = "gpio17"; drive-strength = <2>; /* 2 MA */ - output-high; + bias-disable; + input-enable; }; }; +}; - ets_rst_low: ets_rst_low { - /* INTERRUPT */ - mux { - pins = "gpio18"; - function = "gpio"; - }; - - config { - pins = "gpio18"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - - ets_vcc_high: ets_vcc_high { - /* INTERRUPT */ - mux { - pins = "gpio100"; - function = "gpio"; - }; - - config { - pins = "gpio100"; - drive-strength = <2>; /* 2 MA */ - output-high; - }; - }; - - ets_vcc_low: ets_vcc_low { - /* INTERRUPT */ - mux { - pins = "gpio100"; - function = "gpio"; - }; - - config { - pins = "gpio100"; - drive-strength = <2>; /* 2 MA */ - output-low; - }; - }; - - - - - - - - +&L21A { + regulator-max-microvolt = <3008000>; + qcom,init-voltage = <3000000>; + status = "ok"; }; &soc { - EL721: EL721 { - compatible = "fp-egistec"; + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; status = "ok"; - reg = <0>; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; interrupt-parent = <&tlmm>; - interrupts = <17 0x0>; - fp-ctrl-power; - fp-gpio-vcc-enable; - egistec,gpio_vcc_en = <&tlmm 100 0x0>; - egistec,gpio_irq = <&tlmm 17 0x0>; - egistec,gpio_reset = <&tlmm 18 0x0>; - pinctrl-names = "egis_rst_high", "egis_rst_low", "egis_irq_active", - "egis_vcc_high", "egis_vcc_low"; - pinctrl-0 = <&ets_rst_high>; - pinctrl-1 = <&ets_rst_low>; - pinctrl-2 = <&ets_irq_active>; - pinctrl-3 = <&ets_vcc_high>; - pinctrl-4 = <&ets_vcc_low>; + interrupts = <17 0>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; }; - }; From 03d4888a136dd18ebd753ed7cf8ede34b36f0d96 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Sat, 17 Jun 2023 18:04:32 +0800 Subject: [PATCH 1102/1247] fogor: kernel: 2nd tongxingda ili9883c tp bringup 1.add dtsi config. 2.add tp config Change-Id: I2a1e8f8438fb4a637f319c6358c7ba0be53d1222 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2646999 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Jun Weng Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-touchscreen.dtsi | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index 86c65c9cebff..28bd42339b54 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -183,6 +183,23 @@ pinctrl-3 = <&ts_active>; pinctrl-4 = <&ts_int_suspend_high>; panel = <&dsi_icnl9916c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + status = "ok"; + }; + ilitek@1 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili9883c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; status = "ok"; }; }; From 0a627470f6095cbe84caecb66085f8c51e959322 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Tue, 20 Jun 2023 18:29:32 +0800 Subject: [PATCH 1103/1247] arm/dts: config battery parameter for fogor config battery parameter for fogor Change-Id: Iaaddb294428c55c5c52165b4f2e3af6ff6f52e35 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2649513 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 358550da2083..4774fb7127a9 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -59,10 +59,11 @@ "charge_full_design", "time_to_full_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4520000>; + qcom,fv-max-uv = <4530000>; qcom,dcp-curr-max = <2000000>; qcom,otg-cl-ua = <1500000>; - qcom,thermal-mitigation = <3000000 2500000 + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 2000000 1500000 1200000 900000 600000>; @@ -78,21 +79,22 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4200 260 534>, - <4500 260 534>, - <4500 260 534>, - <4520 550 960>, - <4520 600 1010>, - <4520 750 1160>, - <4200 260 575>; + qcom,mmi-ffc-zones = <4200 243 534>, + <4500 243 534>, + <4500 243 534>, + <4530 506 960>, + <4530 560 1010>, + <4530 965 1160>, + <4200 243 575>; - qcom,iterm-ma = <260>; + qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; mmi,enable-factory-mode-aicl; - qcom,noffc-chg-iterm = <260>; - qcom,noffc-chg-iterm-45c = <390>; + qcom,noffc-chg-iterm = <243>; + qcom,noffc-chg-iterm-45c = <670>; qcom,noffc-qg-iterm = <500>; qcom,noffc-max-fv = <4500>; + }; &pm7250b_qg { From 95e4234c30459163deb41c7a541d04887718d487 Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Tue, 20 Jun 2023 18:13:29 +0800 Subject: [PATCH 1104/1247] bangkok: arm64/dts: Enable increasing idle scan rate enable touch feature of increasing game idle scan rate for focal and goodix touch. Change-Id: I378c3d694e757dbb6ce87452377ff289c5a38a7b Signed-off-by: Yan Zhang Reviewed-on: https://gerrit.mot.com/2649502 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-touchscreen.dtsi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/qcom/bangkk-touchscreen.dtsi b/qcom/bangkk-touchscreen.dtsi index 5e451beb23fa..f490821d166b 100755 --- a/qcom/bangkk-touchscreen.dtsi +++ b/qcom/bangkk-touchscreen.dtsi @@ -107,6 +107,7 @@ goodix,config-name = "goodix_cfg_group.bin"; goodix,edge-ctrl; goodix,interpolation-ctrl; + goodix,sample-ctrl; goodix,gesture-wait-pm; mmi,power-off-suspend; mmi,usb-charger-detection; @@ -131,7 +132,7 @@ focaltech,display-coords = <0 0 17280 38400>; focaltech,edge-ctrl; focaltech,interpolation-ctrl; - + focaltech,sample-ctrl; pinctrl-names = "pmx_ts_active","pmx_ts_suspend", "pmx_ts_release"; pinctrl-0 = <&ts_active>; From fc30d5909871b63a325c4e96ba3d913386a2c4ea Mon Sep 17 00:00:00 2001 From: liuzhen Date: Wed, 21 Jun 2023 14:00:06 +0800 Subject: [PATCH 1105/1247] arm/dts:modify some ffc charging parameters for bangkok 1.modify the qg_iterm of 15-25 25-35 35-45 2.modfify the charging current of CC2 and CC3 to comply the safety Change-Id: I5852c1b8f26b803c43893e24b579d61ce2d2124e Reviewed-on: https://gerrit.mot.com/2650595 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 66ffe1f4af93..0d7733ccda3f 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -86,9 +86,9 @@ qcom,mmi-ffc-zones = <4200 260 534>, <4500 260 534>, <4500 260 534>, - <4520 550 960>, - <4520 600 1010>, - <4520 750 1160>, + <4520 550 820>, + <4520 600 960>, + <4520 750 1110>, <4200 260 575>; qcom,iterm-ma = <260>; @@ -195,7 +195,7 @@ <0 4200 1000 0 0 0 0>, <10 4250 3000 4500 1000 0 0>, <15 4500 3000 0 0 0 0>, - <45 4320 5800 4420 5200 4520 4000>, + <45 4320 5800 4420 5150 4520 3900>, <60 4200 4000 0 0 0 0>; mmi,thermal-mitigation = <5800000>, From 92e4904e389d091046fdb365bf9d47633081d5fc Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 21 Jun 2023 18:55:52 +0800 Subject: [PATCH 1106/1247] dsi/dfps: set the right fps when panel resume When panel resume ,HWC will set the fps from the last suspend to panel. If the panel is not the fps from init code. We will set the right fps with dsi_panel_dfps_send_cmd(). Change-Id: I53ea03debfc1a9fd0390b0cb945a53f8e8886a0c Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2651085 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 7a91534a6626..2447caeadf20 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -209,7 +209,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; @@ -254,7 +254,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; @@ -298,7 +298,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; @@ -342,7 +342,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; @@ -387,7 +387,7 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <60 90 120>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; qcom,mdss-dsi-pan-dfps-send-command; From d0f05c0cbd3cbff4783c812383197307c84e7d4b Mon Sep 17 00:00:00 2001 From: ontim52 Date: Wed, 21 Jun 2023 16:36:06 +0800 Subject: [PATCH 1107/1247] dts/panel: fogor: uodate the init code of tianma panel 1. mofify proch.modify proch for flash screen at power on stage 2. mofify init code. Change-Id: Iab03c522581888010135f4d84ed6b12bf3a815cd Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2650969 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9916c-652-720x1600-video.dtsi | 22 ++++++++++++------- qcom/fogor-display.dtsi | 4 ++-- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index ac65f645f91c..4314977d65f5 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -53,18 +53,20 @@ timing@0 { qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; - qcom,mdss-dsi-h-front-porch = <16>; - qcom,mdss-dsi-h-back-porch = <16>; + qcom,mdss-dsi-h-front-porch = <28>; + qcom,mdss-dsi-h-back-porch = <28>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <32>; - qcom,mdss-dsi-v-front-porch = <400>; + qcom,mdss-dsi-v-front-porch = <323>; qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 04 F0 00 00 00 - 39 00 00 00 00 00 03 51 00 00 - 39 00 00 00 00 00 03 35 00 00 + 39 01 00 00 00 00 04 f0 99 16 0C + 39 01 00 00 00 00 05 bd a1 0a 52 a6 + 39 01 00 00 00 00 04 f0 00 00 00 + 39 01 00 00 00 00 03 35 00 00 + 39 01 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 39 01 00 00 78 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 @@ -72,8 +74,12 @@ ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 05 01 00 00 10 00 01 28 - 05 01 00 00 64 00 01 10 + 39 01 00 00 00 00 04 f0 99 16 0C + 39 01 00 00 00 00 05 bd a1 0a 52 ae + 39 01 00 00 00 00 04 f0 00 00 00 + 39 01 00 00 00 00 03 6d 25 00 + 05 01 00 00 10 00 01 28 + 05 01 00 00 78 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 06296438509e..c350340f5b8e 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -187,8 +187,8 @@ qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A - 0A 09 02 04 00 1F 1A]; + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 1A 19 09 + 0A 09 02 04 00 1E 0F]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; From 6d11a61e87886dea89be37a66c7fe5e3bb8786d0 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 21 Jun 2023 16:14:21 +0800 Subject: [PATCH 1108/1247] dts/panel: fogor: Improve display functionality 1.enable esd check 2.add commands to switch CABC mode 3. enable dynamic fps Change-Id: Iadd2fd27dfb71ba9e68636b45bd43417e096d462 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2650930 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...t-tianma-icnl9916c-652-720x1600-video.dtsi | 28 ++--- ...ongxingda-ili9883c-652-720x1600-video.dtsi | 24 +--- qcom/fogor-display.dtsi | 117 ++++++------------ 3 files changed, 57 insertions(+), 112 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 4314977d65f5..44dcf0f7b547 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -25,30 +25,28 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; -/* + qcom,mdss-dsi-cabc-mv-command = [ 15 00 00 00 00 00 02 55 03 - 39 00 00 00 00 00 03 F0 5A 59 - 39 00 00 00 00 00 03 F1 A5 A6 - 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 FF FF F0 F0 F0 F0 F0 FF F5 F8 FB FF - 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 BB BB CD DD EE FF E7 EF F7 FF 87 10 99 FB 5D BF 21 84 - 39 00 00 00 00 00 03 F0 A5 A5 - 39 01 00 00 00 00 03 F1 5A 5A + 39 00 00 00 00 00 04 F0 99 16 0C + 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 EA D2 D5 D8 DB DE E1 E4 E7 EA ED F0 F3 F6 F9 FC FF + 39 00 00 00 00 00 21 E2 2C CC 2D 70 2E 14 2E B8 2F 5B 2F FF 31 47 32 8F 33 D6 35 1E 36 66 38 51 3A 3D 3C 28 3E 14 3F FF + 39 00 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-ui-command = [ - 15 00 00 00 00 00 02 55 03 - 39 00 00 00 00 00 03 F0 5A 59 - 39 00 00 00 00 00 03 F1 A5 A6 - 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF - 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF - 39 00 00 00 00 00 03 F0 A5 A5 - 39 01 00 00 00 00 03 F1 5A 5A + 15 00 00 00 00 00 02 55 01 + 39 00 00 00 00 00 04 F0 99 16 0C + 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EE EF F0 F1 F3 F5 F7 F9 FB FB FC FD FE FF + 39 00 00 00 00 00 21 E2 36 24 36 D5 37 86 38 37 38 E8 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF + 39 00 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; -*/ + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <720>; diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi index 614e535e4602..63ded4d4e3b0 100644 --- a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi @@ -25,30 +25,14 @@ qcom,mdss-pan-physical-width-dimension = <68>; qcom,mdss-pan-physical-height-dimension = <151>; -/* - qcom,mdss-dsi-cabc-mv-command = [ - 15 00 00 00 00 00 02 55 03 - 39 00 00 00 00 00 03 F0 5A 59 - 39 00 00 00 00 00 03 F1 A5 A6 - 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 FF FF F0 F0 F0 F0 F0 FF F5 F8 FB FF - 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 BB BB CD DD EE FF E7 EF F7 FF 87 10 99 FB 5D BF 21 84 - 39 00 00 00 00 00 03 F0 A5 A5 - 39 01 00 00 00 00 03 F1 5A 5A - ]; + + qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [ - 15 00 00 00 00 00 02 55 03 - 39 00 00 00 00 00 03 F0 5A 59 - 39 00 00 00 00 00 03 F1 A5 A6 - 39 00 00 00 00 00 21 E7 30 00 40 00 01 1F 20 42 1F A0 24 CC 01 00 00 30 18 15 00 A8 F0 F0 F0 F8 F8 F8 F8 FF FC FC FD FF - 39 00 00 00 00 00 21 E8 04 10 24 38 4C 60 74 88 9C B0 C4 D8 98 84 EE EE EE FF FF FF 20 37 4E 66 9C D3 0A 3B 6C 9D CE FF - 39 00 00 00 00 00 03 F0 A5 A5 - 39 01 00 00 00 00 03 F1 5A 5A - ]; + qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 01]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; -*/ + qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <720>; diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index c350340f5b8e..e1708718de13 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -1,5 +1,4 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-visionox-vtdr6110c-fhd-video.dtsi" #include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" #include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" @@ -152,20 +151,19 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - /*qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <120 90 60>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-dfps-send-command-with-te-async; - qcom,mdss-dsi-pan-on-fps = <60>;*/ + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-brightness-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1757>; - /*qcom,mdss-dsi-bl-inverted-dbv;*/ + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-no-panel-on-read-support; @@ -175,14 +173,21 @@ 16000 13000 35500 7000 2500>; qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - +*/ qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0 0 0>; - qcom,mdss-dsi-panel-status-read-length = <3>; -*/ + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { @@ -200,20 +205,19 @@ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - /*qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,dsi-supported-dfps-list = <120 90 60>; qcom,mdss-dsi-pan-enable-dynamic-fps; qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-dfps-send-command-with-te-async; - qcom,mdss-dsi-pan-on-fps = <60>;*/ + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-brightness-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1757>; - /*qcom,mdss-dsi-bl-inverted-dbv;*/ + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-no-panel-on-read-support; @@ -223,14 +227,21 @@ 16000 13000 35500 7000 2500>; qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; - +*/ qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0 0 0>; - qcom,mdss-dsi-panel-status-read-length = <3>; -*/ + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { @@ -244,54 +255,6 @@ }; }; -&dsi_vtdr6110c_visionox_video{ - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - /*qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - qcom,mdss-dsi-pan-dfps-send-command; - qcom,mdss-dsi-pan-dfps-send-command-with-te-async; - qcom,mdss-dsi-pan-on-fps = <60>;*/ - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <1>; - qcom,mdss-dsi-bl-max-level = <2047>; - qcom,mdss-brightness-max-level = <2047>; - qcom,mdss-dsi-bl-default-level = <1757>; - /*qcom,mdss-dsi-bl-inverted-dbv;*/ - qcom,bklt-dcs-2bytes-enabled; - - qcom,mdss-dsi-no-panel-on-read-support; - -/* qcom,mdss-dsi-panel-hdr-enable; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; - - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 66]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0 0 0>; - qcom,mdss-dsi-panel-status-read-length = <3>; -*/ - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 26 24 0A - 0A 09 02 04 00 1F 1A]; - - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - &mot_dummy_vid_qhd { qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From d7b3becae6882b359c6593e40bafd99b89d2b9c6 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Sun, 25 Jun 2023 14:58:03 +0800 Subject: [PATCH 1109/1247] dsi/display: Optimize panel power on timing Modify the reset timing and 11 29 delay to achieve a bright screen KPI Change-Id: I6ccc223661840c4bea722bef8c4fe896499ed67f Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2654272 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...i-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi | 4 ++-- ...i-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi | 4 ++-- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 4 ++-- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 6 +++--- qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 6 +++--- 5 files changed, 12 insertions(+), 12 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi index 164976573661..67c982a00783 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi @@ -35,7 +35,7 @@ qcom,mdss-dsi-lane-3-state; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; + qcom,mdss-dsi-reset-sequence = <1 2>, <0 2>, <1 20>; qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 @@ -379,7 +379,7 @@ 39 01 00 00 00 00 02 F3 08 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 - 05 01 00 00 14 00 01 29 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi index 43551a342b4d..7c208e11bf8f 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi @@ -35,7 +35,7 @@ qcom,mdss-dsi-lane-3-state; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; + qcom,mdss-dsi-reset-sequence = <1 2>, <0 2>, <1 20>; qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 @@ -381,7 +381,7 @@ 39 01 00 00 00 00 07 C5 02 C0 02 95 03 44 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 - 05 01 00 00 14 00 01 29 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index c7583a55d7f6..5e7019a34e9b 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -35,7 +35,7 @@ qcom,mdss-dsi-lane-3-state; qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 20>; + qcom,mdss-dsi-reset-sequence = <1 2>, <0 2>, <1 20>; qcom,mdss-dsi-panel-hdr-enabled; qcom,mdss-dsi-panel-hdr-color-primaries = <14500 15500 32000 @@ -379,7 +379,7 @@ 39 01 00 00 00 00 02 F3 08 39 01 00 00 00 00 03 FF 5A 00 39 01 00 00 00 00 03 F0 AA 00 - 05 01 00 00 14 00 01 29 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index a51a0d8904bc..ca4a5e6d1b51 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -26,7 +26,7 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-dma-schedule-line = <15>; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 1>, <0 1>, <1 10>; qcom,bklt-dcs-2bytes-enabled; @@ -120,8 +120,8 @@ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 39 01 00 00 00 00 02 6F 34 39 01 00 00 00 00 02 DF 27 - 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 + 05 01 00 00 50 00 01 11 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-off-command = [ diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi index 44e1d6ec79dd..63da4cfa47e5 100644 --- a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -26,7 +26,7 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-dma-schedule-line = <15>; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 1>, <0 1>, <1 10>; qcom,bklt-dcs-2bytes-enabled; @@ -127,8 +127,8 @@ 39 01 00 00 00 00 0A BB 40 40 40 40 4F 4F 4F 4F 4F 39 01 00 00 00 00 02 6F 86 39 01 00 00 00 00 0A BB 40 40 40 40 4F 4F 4F 4F 4F - 05 01 00 00 78 00 01 11 - 05 01 00 00 14 00 01 29 + 05 01 00 00 50 00 01 11 + 05 01 00 00 00 00 01 29 39 01 00 00 00 00 06 F0 55 AA 52 08 01 39 01 00 00 00 00 02 6F 0E 39 01 00 00 00 00 05 B9 09 09 09 09 From d354c3ebffb83c0b2d781524d7af5d474a704b75 Mon Sep 17 00:00:00 2001 From: "tin_bingtai.zou_tmp" Date: Sun, 25 Jun 2023 14:39:02 +0800 Subject: [PATCH 1110/1247] update semtech params -V07 1.update temperature compensation parameters 2.update semtech params Change-Id: I8b4bf48c85d56ada5cf2fee4843f2ef68fc4c701 Signed-off-by: tin_bingtai.zou_tmp Reviewed-on: https://gerrit.mot.com/2654261 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Xiangpo Zhao Reviewed-by: Yuchang Guo Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 34d5d6404468..02d3be5a8b2f 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -141,11 +141,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x50B05200 - 0x80B0 0x50B05102 - 0x80D0 0x50B05200 - 0x80F0 0x50B05100 - 0x8110 0x50B05100 + 0x8090 0x50B25210 + 0x80B0 0x50B05110 + 0x80D0 0x50B15220 + 0x80F0 0x50B05120 + 0x8110 0x50B05110 0x8130 0x54AC5300 0x8150 0x54AC5300 0x8170 0x54AC5300 From ae6d359a21132d5d89e15eb79168de0073993be9 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Mon, 26 Jun 2023 17:14:40 +0800 Subject: [PATCH 1111/1247] dts:add mmi thermal charging current limit mitigation 1.add mmi charger thermal mitigation 2.add 4800mA 4500mA 3200mA Change-Id: I4e8a85f36eea06c0296884e62befa39ec8baee70 Reviewed-on: https://gerrit.mot.com/2655490 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index 0d7733ccda3f..f5fb858e3f37 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -200,8 +200,11 @@ mmi,thermal-mitigation = <5800000>, <5000000>, + <4800000>, + <4500000>, <4000000>, <3500000>, + <3200000>, <3000000>, <2000000>, <1000000>; From 44f31ec375092ebc44d65c629b55ed4135b47e5c Mon Sep 17 00:00:00 2001 From: "qinghua.zeng" Date: Mon, 26 Jun 2023 16:24:09 +0800 Subject: [PATCH 1112/1247] dts/display: modify the pvt init code of the tm panel modify the pvt init code of the tm t7 u8 panel modify 51 reg to 00 00 Change-Id: Ia44cd3319618f765b8ef5a468bd270901750f844 Signed-off-by: qinghua.zeng Reviewed-on: https://gerrit.mot.com/2655367 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi | 2 +- ...dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi | 2 +- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 2 +- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 4 ++-- qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi index 67c982a00783..d6f529ced810 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi @@ -358,7 +358,7 @@ qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 02 03 01 39 01 00 00 00 00 02 53 20 - 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 03 51 00 00 39 01 00 00 00 00 02 6F 01 39 01 00 00 00 00 02 35 00 39 01 00 00 00 00 02 55 10 diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi index 7c208e11bf8f..f9acf0ced5f3 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi @@ -358,7 +358,7 @@ qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 02 03 01 39 01 00 00 00 00 02 53 20 - 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 03 51 00 00 39 01 00 00 00 00 02 6F 01 39 01 00 00 00 00 02 35 00 39 01 00 00 00 00 02 55 10 diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 5e7019a34e9b..7d43763f63c3 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -358,7 +358,7 @@ qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 02 03 01 39 01 00 00 00 00 02 53 20 - 39 01 00 00 00 00 03 51 0D BA + 39 01 00 00 00 00 03 51 00 00 39 01 00 00 00 00 02 6F 01 39 01 00 00 00 00 02 35 00 39 01 00 00 00 00 02 55 10 diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index ca4a5e6d1b51..325c997ece28 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -111,8 +111,6 @@ 39 01 00 00 00 00 02 6F 3C 39 01 00 00 00 00 02 F5 81 39 01 00 00 00 00 02 35 00 - 39 01 00 00 00 00 03 51 0D BA - 39 01 00 00 00 00 02 2F 03 39 01 00 00 00 00 06 F0 55 AA 52 08 01 39 01 00 00 00 00 02 6F 03 39 01 00 00 00 00 02 C7 47 @@ -120,6 +118,8 @@ 39 01 00 00 00 00 06 F0 55 AA 52 08 00 39 01 00 00 00 00 02 6F 34 39 01 00 00 00 00 02 DF 27 + 39 01 00 00 00 00 03 51 00 00 + 39 01 00 00 00 00 02 2F 03 05 01 00 00 50 00 01 11 05 01 00 00 00 00 01 29 ]; diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi index 63da4cfa47e5..7e18fbd5651f 100644 --- a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -111,8 +111,6 @@ 39 01 00 00 00 00 02 6F 3C 39 01 00 00 00 00 02 F5 81 39 01 00 00 00 00 02 35 00 - 39 01 00 00 00 00 03 51 0D BA - 39 01 00 00 00 00 02 2F 03 39 01 00 00 00 00 06 F0 55 AA 52 08 01 39 01 00 00 00 00 02 6F 03 39 01 00 00 00 00 02 C7 47 @@ -136,6 +134,8 @@ 39 01 00 00 00 00 0A BB 43 43 48 48 4F 4F 4F 4F 4F 39 01 00 00 00 00 02 6F 86 39 01 00 00 00 00 0A BB 43 43 48 48 4F 4F 4F 4F 4F + 39 01 00 00 00 00 03 51 00 00 + 39 01 00 00 00 00 02 2F 03 ]; qcom,mdss-dsi-off-command = [ From 2d295f64321016799c49c926f8d0f1596972830a Mon Sep 17 00:00:00 2001 From: liyun zhang Date: Wed, 28 Jun 2023 14:19:04 +0800 Subject: [PATCH 1113/1247] arm/dts: init dts for Fogo5G NA init devicetree for Fogo5G NA based on Fogo5G ROW(fogor) Change-Id: Iea5a3c96a6db6cdb0c0b940f2cf4f28925039f75 Reviewed-on: https://gerrit.mot.com/2658396 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Xiaojun Ji Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/Makefile | 5 + qcom/blair-fogo-common-overlay.dtsi | 524 +++++++++++++++++++++ qcom/blair-fogo-evb-overlay.dts | 24 + qcom/blair-fogo-fmr-overlay.dtsi | 48 ++ qcom/blair-moto-fogo-base.dts | 45 ++ qcom/blair-pm6125-fogo-common-overlay.dtsi | 22 + qcom/fogo-charger.dtsi | 116 +++++ qcom/fogo-display.dtsi | 274 +++++++++++ qcom/fogo-fps-overlay.dtsi | 97 ++++ qcom/fogo-sensors.dtsi | 157 ++++++ qcom/fogo-touchscreen.dtsi | 205 ++++++++ qcom/fogo-wl286xx.dtsi | 74 +++ qcom/holi-audio-fogo-overlay.dtsi | 392 +++++++++++++++ 13 files changed, 1983 insertions(+) create mode 100644 qcom/blair-fogo-common-overlay.dtsi create mode 100644 qcom/blair-fogo-evb-overlay.dts create mode 100644 qcom/blair-fogo-fmr-overlay.dtsi create mode 100644 qcom/blair-moto-fogo-base.dts create mode 100644 qcom/blair-pm6125-fogo-common-overlay.dtsi create mode 100644 qcom/fogo-charger.dtsi create mode 100644 qcom/fogo-display.dtsi create mode 100644 qcom/fogo-fps-overlay.dtsi create mode 100755 qcom/fogo-sensors.dtsi create mode 100755 qcom/fogo-touchscreen.dtsi create mode 100644 qcom/fogo-wl286xx.dtsi create mode 100644 qcom/holi-audio-fogo-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index 11409baa6662..acae4e31166d 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -110,6 +110,11 @@ dtbo-$(CONFIG_FOGOR_DTB) += \ blair-fogor-evb-overlay.dtbo-base := blair-moto-fogor-base.dtb +dtbo-$(CONFIG_FOGO_DTB) += \ + blair-fogo-evb-overlay.dtbo + +blair-fogo-evb-overlay.dtbo-base := blair-moto-fogo-base.dtb + dtbo-$(CONFIG_PENANG_DTB) += \ holi-penang-dvt2-jp-overlay.dtbo \ diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi new file mode 100644 index 000000000000..fdbc2d97362e --- /dev/null +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -0,0 +1,524 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-fogo-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "fogo-fps-overlay.dtsi" +#include "fogo-display.dtsi" +#include "fogo-touchscreen.dtsi" +#include "fogo-sensors.dtsi" +#include "fogo-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "blair-fogo-fmr-overlay.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <2600000>; +}; + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 135 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + clock-names = "OSC_NFC"; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + soc_usr { + polling-delay-passive = <1000>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&bcl_soc>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "disabled"; + }; + + qcom,tz_gpio { + compatible = "qcom,tz_gpio"; + tlmm-tz = <0>, + <13>, + <14>, + <15>, + <16>; + }; +}; + +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + diff --git a/qcom/blair-fogo-evb-overlay.dts b/qcom/blair-fogo-evb-overlay.dts new file mode 100644 index 000000000000..334dddd1b918 --- /dev/null +++ b/qcom/blair-fogo-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-fogo-common-overlay.dtsi" + +/ { + model = "fogo"; + compatible = "qcom,blair-fogo", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>, <578 0x10000>; + qcom,board-id = <0x47 0xA100>, <0x48 0xA100>; +}; + diff --git a/qcom/blair-fogo-fmr-overlay.dtsi b/qcom/blair-fogo-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-fogo-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; diff --git a/qcom/blair-moto-fogo-base.dts b/qcom/blair-moto-fogo-base.dts new file mode 100644 index 000000000000..27713afa7129 --- /dev/null +++ b/qcom/blair-moto-fogo-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-pm6125-fogo-common-overlay.dtsi b/qcom/blair-pm6125-fogo-common-overlay.dtsi new file mode 100644 index 000000000000..d274eaa614bc --- /dev/null +++ b/qcom/blair-pm6125-fogo-common-overlay.dtsi @@ -0,0 +1,22 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-pm6125-moto-common-overlay.dtsi" +#include "blair-fogo-common-overlay.dtsi" +#include "fogo-charger.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi new file mode 100644 index 000000000000..4774fb7127a9 --- /dev/null +++ b/qcom/fogo-charger.dtsi @@ -0,0 +1,116 @@ + +#include + + +&mot_batterydata { + df-serialnum = "SB18D87863"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-qb50-swd-5000mah.dtsi" +}; + +&pm7250b_charger { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now"; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4530000>; + qcom,dcp-curr-max = <2000000>; + qcom,otg-cl-ua = <1500000>; + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000>; + /delete-property/ qcom,fcc-stepping-enable; + +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <25 0 4000 4000>, + <35 0 4000 4000>, + <45 0 4000 4000>, + <60 4200 4000 0>; + qcom,mmi-ffc-zones = <4200 243 534>, + <4500 243 534>, + <4500 243 534>, + <4530 506 960>, + <4530 560 1010>, + <4530 965 1160>, + <4200 243 575>; + + qcom,iterm-ma = <243>; + qcom,hvdcp-power-max = <18000>; + mmi,enable-factory-mode-aicl; + qcom,noffc-chg-iterm = <243>; + qcom,noffc-chg-iterm-45c = <670>; + qcom,noffc-qg-iterm = <500>; + qcom,noffc-max-fv = <4500>; + +}; + +&pm7250b_qg { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done"; + qcom,qg-iterm-ma = <500>; +}; + diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi new file mode 100644 index 000000000000..2a72b38eaded --- /dev/null +++ b/qcom/fogo-display.dtsi @@ -0,0 +1,274 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&tlmm { + lcd_panel_vddio_default: lcd_panel_vddio_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_vddio: lcd_gpio_regulator@0 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_vddio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 11 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_vddio>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_vddio_default>; + }; + + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + + dsi_panel_pwr_supply_fogo: dsi_panel_pwr_supply_fogo{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&lcd_panel_vddio>; + + qcom,dsi-default-panel = <&dsi_icnl9916c_hd_plus_120_video>; +}; + + +&dsi_icnl9916c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 1A 19 09 + 0A 09 02 04 00 1E 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_ili9883c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A + 0B 0A 02 04 00 20 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/fogo-fps-overlay.dtsi b/qcom/fogo-fps-overlay.dtsi new file mode 100644 index 000000000000..5932983d77ab --- /dev/null +++ b/qcom/fogo-fps-overlay.dtsi @@ -0,0 +1,97 @@ +&tlmm { + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&L21A { + regulator-max-microvolt = <3008000>; + qcom,init-voltage = <3000000>; + status = "ok"; +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/fogo-sensors.dtsi b/qcom/fogo-sensors.dtsi new file mode 100755 index 000000000000..5e658bc3c24a --- /dev/null +++ b/qcom/fogo-sensors.dtsi @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + sar_int_fogo_default: sar_int_fogo_default { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_fogo_sleep: sar_int_fogo_sleep { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_fogo_default>; + pinctrl-1 = <&sar_int_fogo_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <60 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 60 0x02>; + reinit-on-i2c-failure = <1>; + Semtech,reg-num = <66>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8020 0x32 + 0x8028 0x45F + 0x8034 0x45F + 0x8040 0x45F + 0x804C 0x45F + 0x8058 0x45F + 0x8064 0x45E + 0x8070 0x45E + 0x807C 0x45E + 0x8030 0x924925 + 0x803C 0xB24924 + 0x8048 0x924964 + 0x8054 0x925924 + 0x8060 0x964924 + 0x806C 0x92492C + 0x8078 0x92C924 + 0x8084 0x924924 + 0x8098 0x685A + 0x80B8 0x2D23 + 0x80D8 0x4D40 + 0x80F8 0x5A47 + 0x8118 0x4637 + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0xFF + 0x80A0 0x20200001 + 0x80C0 0x1A1A0002 + 0x80E0 0x20200001 + 0x8100 0x0 + 0x8120 0x20200002 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x7C845200 + 0x80B0 0x7C845102 + 0x80D0 0x7C845200 + 0x80F0 0x7C845100 + 0x8110 0x7C845100 + 0x8130 0x54AC5300 + 0x8150 0x54AC5300 + 0x8170 0x54AC5300 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200020 + 0x80AC 0x60200010 + 0x80CC 0x60200020 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x60200031 + 0x814C 0x60200031 + 0x816C 0x60200031 + 0x8024 0x7F7F + 0x8274 0x2E040000 + 0x4280 0x0E + >; +}; + diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi new file mode 100755 index 000000000000..28bd42339b54 --- /dev/null +++ b/qcom/fogo-touchscreen.dtsi @@ -0,0 +1,205 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&L9A { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,init-voltage = <1800000>; + status = "okay"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + + chipone_tddi@0 { + compatible = "chipone-tddi"; + reg = <0x0>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2001>; + chipone,x-res = <720>; + chipone,y-res = <1600>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + panel = <&dsi_icnl9916c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + status = "ok"; + }; + ilitek@1 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili9883c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; + status = "ok"; + }; +}; diff --git a/qcom/fogo-wl286xx.dtsi b/qcom/fogo-wl286xx.dtsi new file mode 100644 index 000000000000..80bd9f868469 --- /dev/null +++ b/qcom/fogo-wl286xx.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; diff --git a/qcom/holi-audio-fogo-overlay.dtsi b/qcom/holi-audio-fogo-overlay.dtsi new file mode 100644 index 000000000000..238c57cff51b --- /dev/null +++ b/qcom/holi-audio-fogo-overlay.dtsi @@ -0,0 +1,392 @@ +#include +#include +#include +#include +#include + +&tlmm{ + fsm_rcv_rst: fsm_rcv_rst { + mux { + pins = "gpio86"; + function = "gpio"; + }; + config { + pins = "gpio86"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; + fsm_spk_rst: fsm_spk_rst { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_fs1815-snd-card"; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,mi2s-audio-intf = <0>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + fs1815_rcv: fs1815_rcv@34{ + compatible = "foursemi,fs1815"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_rcv_rst>; + fsm,rst-gpio = <&tlmm 86 0x00>; + status = "okay"; + }; + fs1815_spk: fs1815_spk@35{ + compatible = "foursemi,fs1815"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_spk_rst>; + fsm,rst-gpio = <&tlmm 58 0x00>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From 5199b3e8fcfd4915f5b56bee46f7bfd7e00a9556 Mon Sep 17 00:00:00 2001 From: tinno64 Date: Wed, 28 Jun 2023 16:59:16 +0800 Subject: [PATCH 1114/1247] dts/display Modify the TM and CSOT panel to HBM on parameters Set 51 register to 0F59 when hbm mode on Change-Id: Iabf60a6a8bf69481663fd1fe9e0eMontana6b3d7ee23 Signed-off-by: tinno64 Reviewed-on: https://gerrit.mot.com/2658770 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- ...dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi | 4 ++-- ...dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi | 4 ++-- qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi | 4 ++-- qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi | 2 +- qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi | 2 +- 5 files changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi index d6f529ced810..b991ce7506c6 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v0.dtsi @@ -52,12 +52,12 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0F 59 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0D BA 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi index f9acf0ced5f3..4e01d0a70fb6 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi @@ -52,12 +52,12 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0F 59 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0D BA 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; diff --git a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi index 7d43763f63c3..87e3bffb9d0c 100644 --- a/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-csot-vtdr6115-655-1080x2400-video.dtsi @@ -52,12 +52,12 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0F 59 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; qcom,mdss-dsi-hbm-off-command = [ - 39 00 00 00 00 00 03 51 0F FF + 39 00 00 00 00 00 03 51 0D BA 39 00 00 00 00 00 02 62 00 39 00 00 00 00 00 03 F0 AA 13 39 01 00 00 00 00 02 C6 00]; diff --git a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi index 325c997ece28..8427f0ec8996 100644 --- a/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-nt37703-655-1080x2400-video.dtsi @@ -45,7 +45,7 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; + 39 01 00 00 00 00 03 51 0F 59]; qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-off-command = [ diff --git a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi index 7e18fbd5651f..378656cbdc82 100644 --- a/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi +++ b/qcom/dsi-panel-mot-tm-u8-nt37703-655-1080x2400-video.dtsi @@ -45,7 +45,7 @@ qcom,mdss-dsi-dc-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-on-command = [ - 39 01 00 00 00 00 0E A9 01 00 51 09 0A 00 00 01 00 87 00 00 20]; + 39 01 00 00 00 00 03 51 0F 59]; qcom,mdss-dsi-hbm-on-command-state = "dsi_hs_mode"; qcom,mdss-dsi-hbm-off-command = [ From 703a9f51b55dd4fe33f2cb0b5a6fef7c82df621f Mon Sep 17 00:00:00 2001 From: Xiaojun Ji Date: Fri, 30 Jun 2023 14:31:24 +0800 Subject: [PATCH 1115/1247] arm64/dts: Update product hwid for fogo 5G NA The product id is 'N' Change-Id: Ib0cbbd817119a73bf0044f139000a777b44a9750 Reviewed-on: https://gerrit.mot.com/2661371 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Xiaofeng Wang Submit-Approved: Jira Key --- qcom/blair-fogo-evb-overlay.dts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogo-evb-overlay.dts b/qcom/blair-fogo-evb-overlay.dts index 334dddd1b918..258c41827424 100644 --- a/qcom/blair-fogo-evb-overlay.dts +++ b/qcom/blair-fogo-evb-overlay.dts @@ -19,6 +19,6 @@ model = "fogo"; compatible = "qcom,blair-fogo", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>, <578 0x10000>; - qcom,board-id = <0x47 0xA100>, <0x48 0xA100>; + qcom,board-id = <0x4E 0xA100>; }; From 78bc1d337c5cadd44d964141242944477bfbc29b Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Mon, 3 Jul 2023 11:35:20 +0800 Subject: [PATCH 1116/1247] arm/dts:optimize the socd trip to 98 changes, optimize the socd trip to 98. Change-Id: Idbcb487cea8ed587bebf638b136a1d7da77d78c9 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2662544 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index f5fb858e3f37..e2f18ac4631c 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -120,6 +120,10 @@ qcom,qg-iterm-ma = <500>; }; +&socd_trip { + temperature = <98>; +}; + &qupv3_se10_i2c { status = "okay"; bq25960_standalone:bq25960-standalone@6A { From 15b4f635d6c6978d497fe4a8899767bdf5d4604f Mon Sep 17 00:00:00 2001 From: ontim52 Date: Sat, 1 Jul 2023 18:04:23 +0800 Subject: [PATCH 1117/1247] fogor: display: modify 1st icnl9916c init code 1.modify suspend code. 2.modify 1st icnl9916 reg 28 10 params. Change-Id: Iac2dcfb9326fa68b1a9f53547b2d1db91abf3ffc Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2662361 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 44dcf0f7b547..dd34b55e2704 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -76,8 +76,8 @@ 39 01 00 00 00 00 05 bd a1 0a 52 ae 39 01 00 00 00 00 04 f0 00 00 00 39 01 00 00 00 00 03 6d 25 00 - 05 01 00 00 10 00 01 28 - 05 01 00 00 78 00 01 10 + 39 01 00 00 10 00 03 28 00 00 + 39 01 00 00 78 00 03 10 00 00 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 291d3075097688da86f234a7a6add657d62f92de Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Mon, 10 Jul 2023 18:35:47 +0800 Subject: [PATCH 1118/1247] fogo/sensor: sx937x sarsensor bringup 1.sx937x sarsensor bringup 2.change dts about sx937x Change-Id: Ie4fc6c2a766c1a71a2ae098675e839a796ef5815 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2670645 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-sensors.dtsi | 95 +++++++++++++++++++++--------------------- 1 file changed, 47 insertions(+), 48 deletions(-) diff --git a/qcom/fogo-sensors.dtsi b/qcom/fogo-sensors.dtsi index 5e658bc3c24a..b41194951bb2 100755 --- a/qcom/fogo-sensors.dtsi +++ b/qcom/fogo-sensors.dtsi @@ -83,41 +83,42 @@ interrupts = <60 0x02>; interrupt-names = "sx937x_irq"; Semtech,nirq-gpio = <&tlmm 60 0x02>; + cap_vdd-supply = <&L9A>; reinit-on-i2c-failure = <1>; - Semtech,reg-num = <66>; + Semtech,reg-num = <64>; Semtech,reg-init = < 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ 0x8020 0x32 - 0x8028 0x45F - 0x8034 0x45F - 0x8040 0x45F - 0x804C 0x45F - 0x8058 0x45F - 0x8064 0x45E - 0x8070 0x45E - 0x807C 0x45E - 0x8030 0x924925 - 0x803C 0xB24924 - 0x8048 0x924964 - 0x8054 0x925924 - 0x8060 0x964924 - 0x806C 0x92492C - 0x8078 0x92C924 - 0x8084 0x924924 - 0x8098 0x685A - 0x80B8 0x2D23 - 0x80D8 0x4D40 - 0x80F8 0x5A47 - 0x8118 0x4637 + 0x8028 0x85E + 0x8034 0x85E + 0x8040 0x85E + 0x804C 0x85E + 0x8058 0x85E + 0x8064 0x85E + 0x8070 0x85E + 0x807C 0x85E + 0x8030 0xFFF9FD + 0x803C 0xFFD9FF + 0x8048 0xFFF97F + 0x8054 0xBFF9FF + 0x8060 0xFEF9FF + 0x806C 0xFFF9EF + 0x8078 0xF7F9FF + 0x8084 0xFFFFFF + 0x8098 0x4E37 + 0x80B8 0x4E37 + 0x80D8 0x4E37 + 0x80F8 0x4E37 + 0x8118 0x4E37 0x8138 0xFF 0x8158 0xFF - 0x8178 0xFF - 0x80A0 0x20200001 - 0x80C0 0x1A1A0002 - 0x80E0 0x20200001 - 0x8100 0x0 - 0x8120 0x20200002 + 0x8178 0xC8 + 0x80A0 0xE1 + 0x80C0 0xE1 + 0x80E0 0xE0 + 0x8100 0xE2 + 0x8120 0xE2 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -125,33 +126,31 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x7C845200 - 0x80B0 0x7C845102 - 0x80D0 0x7C845200 - 0x80F0 0x7C845100 - 0x8110 0x7C845100 - 0x8130 0x54AC5300 - 0x8150 0x54AC5300 - 0x8170 0x54AC5300 + 0x8090 0x54C45000 + 0x80B0 0x2AE27000 + 0x80D0 0x54D45000 + 0x80F0 0x2AE27000 + 0x8110 0x2AE27000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x2AD66000 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 0x80E8 0x300000 0x8108 0x300000 - 0x8128 0x300000 - 0x8148 0x300000 + 0x8128 0x6300000 + 0x8148 0x6300000 0x8168 0x300000 - 0x808C 0x60200020 - 0x80AC 0x60200010 - 0x80CC 0x60200020 - 0x80EC 0x60200010 - 0x810C 0x60200010 - 0x812C 0x60200031 - 0x814C 0x60200031 - 0x816C 0x60200031 + 0x808C 0x60200018 + 0x80AC 0x60200018 + 0x80CC 0x60200018 + 0x80EC 0x60200018 + 0x810C 0x60200018 + 0x812C 0x60200018 + 0x814C 0x60200018 + 0x816C 0x60200018 0x8024 0x7F7F - 0x8274 0x2E040000 - 0x4280 0x0E >; }; From 92b767dec9333a80a5aaf759820bf8fbd72c5a53 Mon Sep 17 00:00:00 2001 From: Simon C Date: Thu, 6 Jul 2023 19:32:06 +0800 Subject: [PATCH 1119/1247] fogo: Setup camera driver baseline[3/3] Details: include camera/blair-camera-sensor-mot-fogo-overlay.dtsi Change-Id: I4ad560e86555c6393e89de8b164eeec01f8b59c6 Signed-off-by: Simon C Reviewed-on: https://gerrit.mot.com/2667824 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Reviewed-by: Reviewed-by: Reviewed-by: Zhichao Chen Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index fdbc2d97362e..588168fb4ca9 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -20,6 +20,7 @@ #include "fogo-display.dtsi" #include "fogo-touchscreen.dtsi" #include "fogo-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-fogo-overlay.dtsi" #include "fogo-wl286xx.dtsi" #include "moto_therm_sys_temp.dtsi" #include "blair-fogo-fmr-overlay.dtsi" From 41228c932d20e174b72dbdf5a80fc7dad78285f1 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 12 Jul 2023 10:04:02 +0800 Subject: [PATCH 1120/1247] arm64/dt: fogo: bring up fps Change the FPS power supply device tree to match with HW for bring up Change-Id: I8069cadec1eea38f93e28f1f2324aba432048e6d Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2673042 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-fps-overlay.dtsi | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/qcom/fogo-fps-overlay.dtsi b/qcom/fogo-fps-overlay.dtsi index 5932983d77ab..20c1368c2ca3 100644 --- a/qcom/fogo-fps-overlay.dtsi +++ b/qcom/fogo-fps-overlay.dtsi @@ -57,11 +57,6 @@ }; }; -&L21A { - regulator-max-microvolt = <3008000>; - qcom,init-voltage = <3000000>; - status = "ok"; -}; &soc { fpc: fpc_fpc1020 { @@ -69,24 +64,19 @@ status = "ok"; irq = <&tlmm 17 0>; rst = <&tlmm 18 0>; + fp-gpio-ven = <&tlmm 11 0>; interrupt-parent = <&tlmm>; interrupts = <17 0>; - rgltr-ctrl-support; - fp,vdd-supply=<&L21A>; - fp,voltage-range = <3000000 3000000>; pinctrl-names = "default", "suspend"; pinctrl-0 = <&fps_rst_active &fps_int_active>; pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; }; goodix_fingerprint{ - //status = "/chosen", "mmi,fps", "true"; status = "ok"; compatible = "goodix,fingerprint"; fp-gpio-reset = <&tlmm 18 0x00>; fp-gpio-irq = <&tlmm 17 0x00>; - rgltr-ctrl-support; - fp,vdd-supply=<&L21A>; - fp,voltage-range = <3000000 3000000>; + fp-gpio-ven = <&tlmm 11 0x00>; interrupt-parent = <&tlmm>; interrupts = <17 0>; interrupt-controller; From 2f0287120adc9cd45d6b234d740b71839b69b884 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 6 Jul 2023 15:30:48 +0800 Subject: [PATCH 1121/1247] dts/panel: fogo: bringup 1st panel Bringup 1st panel. Boe+ili9883c Change-Id: Ie7ef924cb094040f9c35dace921f30ab1656b276 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2667449 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...l-mot-boe-ili9883c-656-720x1600-video.dtsi | 65 +++++++++++++ qcom/fogo-display.dtsi | 96 ++----------------- qcom/fogo-touchscreen.dtsi | 4 +- 3 files changed, 73 insertions(+), 92 deletions(-) create mode 100644 qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi new file mode 100644 index 000000000000..1ec1a933c7d4 --- /dev/null +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi @@ -0,0 +1,65 @@ +&mdss_mdp { + dsi_boe_ili9883c_656_hd_plus_120_video: qcom,mdss_dsi_boe_ili9883c_656_fh_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_txd_ili9883c_hdp_652_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-pulse-width = <8>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <30>; + qcom,mdss-dsi-v-front-porch = <516>; + qcom,mdss-dsi-v-pulse-width = <2>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 ff 98 83 00 + 39 00 00 00 00 00 03 51 00 00 + 39 00 00 00 00 00 03 35 00 00 + 39 00 00 00 00 00 03 53 2C 00 + 39 01 00 00 82 00 03 11 00 00 + 39 01 00 00 1E 00 03 29 00 00 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 64 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + }; +}; diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index 2a72b38eaded..7bb7985f989e 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -1,6 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" -#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -8,19 +7,6 @@ }; &tlmm { - lcd_panel_vddio_default: lcd_panel_vddio_default { - mux { - pins = "gpio11"; - function = "gpio"; - }; - - config { - pins = "gpio11"; - drive-strength = <8>; - bias-disable = <0>; - output-high; - }; - }; lcd_panel_avdd_default: lcd_panel_avdd_default { mux { pins = "gpio84"; @@ -51,22 +37,7 @@ }; &soc { - lcd_panel_vddio: lcd_gpio_regulator@0 { - compatible = "qti-regulator-fixed"; - regulator-name = "lcd_panel_vddio"; - regulator-min-microvolt = <1800000>; - regulator-max-microvolt = <1800000>; - regulator-enable-ramp-delay = <233>; - gpio = <&tlmm 11 0>; - enable-active-high; - regulator-boot-on; - proxy-supply = <&lcd_panel_vddio>; - qcom,proxy-consumer-enable; - pinctrl-names = "default"; - pinctrl-0 = <&lcd_panel_vddio_default>; - }; - - lcd_panel_avdd: lcd_gpio_regulator@1 { + lcd_panel_avdd: lcd_gpio_regulator@0 { compatible = "qti-regulator-fixed"; regulator-name = "lcd_panel_avdd"; regulator-min-microvolt = <6000000>; @@ -80,7 +51,7 @@ pinctrl-0 = <&lcd_panel_avdd_default>; }; - lcd_panel_avee: lcd_gpio_regulator@2 { + lcd_panel_avee: lcd_gpio_regulator@1 { compatible = "qti-regulator-fixed"; regulator-name = "lcd_panel_avee"; regulator-min-microvolt = <6000000>; @@ -141,67 +112,12 @@ lab-supply = <&lcd_panel_avdd>; ibb-supply = <&lcd_panel_avee>; - vddio-supply = <&lcd_panel_vddio>; + vddio-supply = <&L13A>; - qcom,dsi-default-panel = <&dsi_icnl9916c_hd_plus_120_video>; + qcom,dsi-default-panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; }; - -&dsi_icnl9916c_hd_plus_120_video{ - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - /*qcom,mdss-dsi-pan-dfps-send-command;*/ - qcom,mdss-dsi-pan-on-fps = <120>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <13>; - qcom,mdss-dsi-bl-max-level = <1650>; - qcom,mdss-dsi-bl-default-level = <745>; - qcom,mdss-brightness-max-level = <1650>; - qcom,bklt-dcs-2bytes-enabled; - - qcom,mdss-dsi-no-panel-on-read-support; - -/* qcom,mdss-dsi-panel-hdr-enable; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; -*/ - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9C>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,mdss-dsi-panel-hbm-is-51cmd; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 1A 19 09 - 0A 09 02 04 00 1E 0F]; - - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; -}; - -&dsi_ili9883c_hd_plus_120_video{ +&dsi_boe_ili9883c_656_hd_plus_120_video{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 28bd42339b54..357726f6acb7 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -182,7 +182,7 @@ pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; pinctrl-3 = <&ts_active>; pinctrl-4 = <&ts_int_suspend_high>; - panel = <&dsi_icnl9916c_hd_plus_120_video>; + panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; status = "ok"; }; @@ -192,7 +192,7 @@ spi-max-frequency = <8000000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2001>; - panel = <&dsi_ili9883c_hd_plus_120_video>; + panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2001>; From 98b1664ffbfc802d3bf31404642a14a6b08e6afa Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 6 Jul 2023 18:00:59 +0800 Subject: [PATCH 1122/1247] dts/panel: fogo: display bringup with fogor's panel display bringup with fogor's panel. When get fogo's panel ,we will revert the changes. Change-Id: Ifbc78c22f338ddd677104ca923fb47fc02384954 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2667694 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-display.dtsi | 54 ++++++++++++++++++++++++++++++++++++++ qcom/fogo-touchscreen.dtsi | 2 +- 2 files changed, 55 insertions(+), 1 deletion(-) diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index 7bb7985f989e..85ce6ed6cfbd 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -1,5 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi" +#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -117,6 +118,59 @@ qcom,dsi-default-panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; }; +&dsi_ili9883c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A + 0B 0A 02 04 00 20 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; &dsi_boe_ili9883c_656_hd_plus_120_video{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 357726f6acb7..f4a10f8eae2c 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -192,7 +192,7 @@ spi-max-frequency = <8000000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2001>; - panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; + panel = <&dsi_ili9883c_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2001>; From 9719174bffba0fdc2d1413b33e18817a223897bd Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 12 Jul 2023 10:07:22 +0800 Subject: [PATCH 1123/1247] arm64/dt: fogo: bring up vibrator 1. remove useless device tree 2. change the vibrator voltage for long vibrator Change-Id: Iabc22b3ea1a11e994d27f8a31babc2862ee3c229 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2673051 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 588168fb4ca9..37e32c40f962 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -42,7 +42,7 @@ qcom,vib-ldo-volt-uv = <3000000>; qcom,vib-dis-short-long; qcom,vib-dis-short-long-val = <70>; - qcom,vib-ldo-volt-uv-long = <2600000>; + qcom,vib-ldo-volt-uv-long = <3000000>; }; &tlmm { @@ -499,12 +499,6 @@ }; }; - ldo_vib { - compatible = "moto,vibrator-ldo"; - moto,vib-ldo-gpio = <&tlmm 100 0x0>; - status = "disabled"; - }; - qcom,tz_gpio { compatible = "qcom,tz_gpio"; tlmm-tz = <0>, From fa01ce8bc379ea7fafe7afe4b04aa5247a763ca6 Mon Sep 17 00:00:00 2001 From: YangYi Date: Wed, 12 Jul 2023 13:30:08 +0800 Subject: [PATCH 1124/1247] Bangkk: switch the 4004 register SAR Sensor: close the operation of cyclically reading channel values. Change-Id: Icb375fd794be82e0b920cfee6ca6fa8332b0cf3f Signed-off-by: YangYi Reviewed-on: https://gerrit.mot.com/2673330 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Reviewed-by: Yuchang Guo Reviewed-by: Xiangpo Zhao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/bangkk-sensors.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-sensors.dtsi b/qcom/bangkk-sensors.dtsi index 02d3be5a8b2f..5fbd278b3b32 100755 --- a/qcom/bangkk-sensors.dtsi +++ b/qcom/bangkk-sensors.dtsi @@ -102,7 +102,7 @@ reinit-on-i2c-failure = <1>; Semtech,reg-num = <66>; Semtech,reg-init = < - 0x4004 0x78 + 0x4004 0x70 0x4008 0x8 0x8020 0x32 0x8028 0x45F From 17034f099c523291dc659e76c8130915ccbfde59 Mon Sep 17 00:00:00 2001 From: qiutong Date: Tue, 11 Jul 2023 19:41:11 +0800 Subject: [PATCH 1125/1247] [kernel][thermal]thermal:fogo na thermal bringup add ntc config tcmd:thermal bringup add ntc configs thermal bringup for fogo na Change-Id: I0e8aa433b4133d36d952c155f9ee35af156b6e10 Reviewed-on: https://gerrit.mot.com/2672380 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 37e32c40f962..68f00995dd95 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -363,7 +363,22 @@ }; }; - cam_flash_therm { + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + tspk_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; From caa6a23d547fe38a1537477e28f21a974e80c222 Mon Sep 17 00:00:00 2001 From: zhangchao Date: Thu, 13 Jul 2023 15:05:11 +0800 Subject: [PATCH 1126/1247] dts:modify buck charging thermal-mitigation,the lowest 500mA 1.modify buck charging thermal-mitigation 2.the lowest 600000->500000 Change-Id: If1a48443abd03bbae584e7984a480bb2b5ba8eb3 Reviewed-on: https://gerrit.mot.com/2674955 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen Reviewed-by: Xiangpo Zhao Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index e2f18ac4631c..c105c3c86b9a 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -69,7 +69,7 @@ qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 1200000 900000 - 600000>; + 500000>; mmi,qc3p-support; /delete-property/ qcom,fcc-stepping-enable; From db8a0145e30c34771a3cf7c86d623729e07e0236 Mon Sep 17 00:00:00 2001 From: gaoyx9 Date: Thu, 13 Jul 2023 14:12:29 +0800 Subject: [PATCH 1127/1247] init dtsi for fogos Change-Id: I0c6fd42d0f52f531dc7995d9368023af219e9c05 Reviewed-on: https://gerrit.mot.com/2674856 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: gaoyx9 Submit-Approved: gaoyx9 Tested-by: gaoyx9 Reviewed-by: Hujun Liao --- qcom/Makefile | 5 + qcom/blair-fogos-common-overlay.dtsi | 525 ++++++++++++++++++++ qcom/blair-fogos-evb-overlay.dts | 24 + qcom/blair-fogos-fmr-overlay.dtsi | 48 ++ qcom/blair-moto-fogos-base.dts | 45 ++ qcom/blair-pm6125-fogos-common-overlay.dtsi | 22 + qcom/fogos-charger.dtsi | 116 +++++ qcom/fogos-display.dtsi | 274 ++++++++++ qcom/fogos-fps-overlay.dtsi | 97 ++++ qcom/fogos-sensors.dtsi | 157 ++++++ qcom/fogos-touchscreen.dtsi | 205 ++++++++ qcom/fogos-wl286xx.dtsi | 74 +++ qcom/holi-audio-fogos-overlay.dtsi | 392 +++++++++++++++ 13 files changed, 1984 insertions(+) create mode 100644 qcom/blair-fogos-common-overlay.dtsi create mode 100644 qcom/blair-fogos-evb-overlay.dts create mode 100644 qcom/blair-fogos-fmr-overlay.dtsi create mode 100644 qcom/blair-moto-fogos-base.dts create mode 100644 qcom/blair-pm6125-fogos-common-overlay.dtsi create mode 100644 qcom/fogos-charger.dtsi create mode 100644 qcom/fogos-display.dtsi create mode 100644 qcom/fogos-fps-overlay.dtsi create mode 100755 qcom/fogos-sensors.dtsi create mode 100755 qcom/fogos-touchscreen.dtsi create mode 100644 qcom/fogos-wl286xx.dtsi create mode 100644 qcom/holi-audio-fogos-overlay.dtsi diff --git a/qcom/Makefile b/qcom/Makefile index acae4e31166d..463c14822fdd 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -110,6 +110,11 @@ dtbo-$(CONFIG_FOGOR_DTB) += \ blair-fogor-evb-overlay.dtbo-base := blair-moto-fogor-base.dtb +dtbo-$(CONFIG_FOGOS_DTB) += \ + blair-fogos-evb-overlay.dtbo + +blair-fogos-evb-overlay.dtbo-base := blair-moto-fogos-base.dtb + dtbo-$(CONFIG_FOGO_DTB) += \ blair-fogo-evb-overlay.dtbo diff --git a/qcom/blair-fogos-common-overlay.dtsi b/qcom/blair-fogos-common-overlay.dtsi new file mode 100644 index 000000000000..c2f73efdca94 --- /dev/null +++ b/qcom/blair-fogos-common-overlay.dtsi @@ -0,0 +1,525 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "holi-audio-fogos-overlay.dtsi" +#include +#include +#include "holi-pmic-overlay-pm6125.dtsi" +#include "holi-thermal-overlay-pm6125.dtsi" +#include "display/holi-sde-display-mtp-pm6125.dtsi" +#include "display/blair-sde-display-mtp.dtsi" +#include "fogos-fps-overlay.dtsi" +#include "fogos-display.dtsi" +#include "fogos-touchscreen.dtsi" +#include "fogos-sensors.dtsi" +#include "camera/blair-camera-sensor-mot-fogos-overlay.dtsi" +#include "fogos-wl286xx.dtsi" +#include "moto_therm_sys_temp.dtsi" +#include "blair-fogos-fmr-overlay.dtsi" + +&wcd937x_codec { + cdc-vdd-rxtx-supply = <&L9A>; + cdc-vddpx-supply = <&L9A>; + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx"; + /* + * Overriding cdc-vdd-mic-bias-supply to dummy value + * to avoid compilation errors as BOB is not definied + * for pm6125 + */ + cdc-vdd-mic-bias-supply = <>; +}; + +&pm7250b_vib { + qcom,vib-ldo-volt-uv = <3000000>; + qcom,vib-dis-short-long; + qcom,vib-dis-short-long-val = <70>; + qcom,vib-ldo-volt-uv-long = <2600000>; +}; + +&tlmm { + nfc { + nfc_int_active: nfc_int_active { + /* active state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_int_suspend: nfc_int_suspend { + /* sleep state */ + mux { + /* GPIO 9: NFC Read Interrupt */ + pins = "gpio9"; + function = "gpio"; + }; + + config { + pins = "gpio9"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_active: nfc_enable_active { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + nfc_enable_suspend: nfc_enable_suspend { + mux { + pins = "gpio48"; + function = "gpio"; + }; + + config { + pins = "gpio48"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + }; + }; + + + nfc_clk_req_active: nfc_clk_req_active { + /* active state */ + mux { + /* GPIO 7: NFC CLK Req*/ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + nfc_clk_req_suspend: nfc_clk_req_suspend { + /* sleep state */ + mux { + /* GPIO 7: NFC CLK Req */ + pins = "gpio7"; + function = "gpio"; + }; + + config { + pins = "gpio7"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + }; +}; + +/* Dummy LDO reference */ +&sdhc_1 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc1_on>; + pinctrl-1 = <&sdc1_off>; + + vdd-supply = <&L24A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 570000>; + + vdd-io-supply = <&L11A>; + qcom,vdd-io-always-on; + qcom,vdd-io-lpm-sup; + qcom,vdd-io-voltage-level = <1800000 1800000>; + qcom,vdd-io-current-level = <0 325000>; +}; + +&sdhc_2 { + status = "ok"; + + pinctrl-names = "default", "sleep"; + pinctrl-0 = <&sdc2_on>; + pinctrl-1 = <&sdc2_off>; + + vdd-supply = <&L22A>; + qcom,vdd-voltage-level = <2960000 2960000>; + qcom,vdd-current-level = <0 800000>; + + vdd-io-supply = <&L5A>; + qcom,vdd-io-voltage-level = <1800000 2960000>; + qcom,vdd-io-current-level = <0 22000>; + + cd-gpios = <&tlmm 94 GPIO_ACTIVE_HIGH>; +}; + +&ufsphy_mem { + compatible = "qcom,ufs-phy-qmp-v4-yupik"; + + vdda-phy-supply = <&L7A>; + vdda-pll-supply = <&L4A>; + vdda-phy-max-microamp = <85700>; + vdda-pll-max-microamp = <18300>; + + status = "ok"; +}; + +&ufshc_mem { + vdd-hba-supply = <&gcc_ufs_phy_gdsc>; + vdd-hba-fixed-regulator; + + vcc-supply = <&L24A>; + vcc-voltage-level = <2950000 2960000>; + vcc-max-microamp = <800000>; + + vccq2-supply = <&L11A>; + vccq2-max-microamp = <800000>; + vccq2-voltage-level = <1800000 1800000>; + + qcom,vddp-ref-clk-supply = <&L4A>; + qcom,vddp-ref-clk-max-microamp = <100>; + + status = "ok"; +}; + +&pmk8350_vadc { + pmk8350_qtm_n_therm { + reg = ; + label = "pmk8350_qtm_n_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + pmk8350_qtm_e_therm { + reg = ; + label = "pmk8350_qtm_e_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmk8350_adc_tm { + io-channels = <&pmk8350_vadc PMK8350_ADC7_AMUX_THM1_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM2_100K_PU>, + <&pmk8350_vadc PMK8350_ADC7_AMUX_THM4_100K_PU>; + + qtm_n__therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + qtm_e_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pmr735a_gpios { + camera_therm { + camera_therm_default:camera_therm_default { + pins = "gpio3"; + bias-high-impedance; + }; + }; +}; + +&pmr735a_vadc { + status = "ok"; + + pinctrl-names = "default"; + pinctrl-0 = <&camera_therm_default>; + + pmr735a_camera_therm { + reg = ; + label = "pmr735a_camera_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pmr735a_4{ + pmr735a_adc_tm_iio: adc_tm@3400 { + compatible = "qcom,adc-tm5-iio"; + reg = <0x3400>; + #thermal-sensor-cells = <1>; + #address-cells = <1>; + #size-cells = <0>; + io-channels = <&pmr735a_vadc ADC7_GPIO3_100K_PU>; + + pmr735a_camera_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + }; +}; + +&qupv3_se7_i2c { + status = "ok"; + #address-cells = <1>; + #size-cells = <0>; + sec-nfc@27 { + compatible = "sec-nfc"; + reg = <0x27>; + sec-nfc,ven-gpio = <&tlmm 48 0x00>; + sec-nfc,firm-gpio = <&tlmm 135 0x00>; + sec-nfc,irq-gpio = <&tlmm 9 0x00>; + sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; + interrupt-parent = <&tlmm>; + interrupts = <9 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>; + clock-names = "OSC_NFC"; + }; +}; + +&thermal_zones { + sdm-skin-therm-usr { + status = "disabled"; + }; + + rear-cam-therm-usr { + status = "disabled"; + }; + + camera-therm-usr { + status = "disabled"; + }; + + quiet-therm-usr { + status = "disabled"; + }; + + pa-therm0-usr { + status = "disabled"; + }; + + pa-therm1-usr { + status = "disabled"; + }; + + xo-therm-usr { + status = "disabled"; + }; + chg-skin-therm-usr { + status = "disabled"; + }; + msm_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + chg_therm { + polling-delay-passive = <5000>; + polling-delay = <20000>; + thermal-governor = "user_space"; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + cam_flash_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm2 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + pa_therm1 { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + quiet_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pm6125_adc_tm ADC5_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + + active-config1 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + xo_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM1_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + qtm_n_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + + qtm_e_therm { + polling-delay-passive = <0>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; + }; + soc_usr { + polling-delay-passive = <1000>; + polling-delay = <0>; + thermal-governor = "user_space"; + thermal-sensors = <&bcl_soc>; + }; +}; + +&soc { + gpio_keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + pinctrl-names = "default"; + pinctrl-0 = <&key_vol_up_default>; + + vol_up { + label = "volume_up"; + gpios = <&pmr735a_gpios 1 GPIO_ACTIVE_LOW>; + linux,input-type = <1>; + linux,code = ; + gpio-key,wakeup; + debounce-interval = <15>; + linux,can-disable; + }; + }; + + ldo_vib { + compatible = "moto,vibrator-ldo"; + moto,vib-ldo-gpio = <&tlmm 100 0x0>; + status = "disabled"; + }; + + qcom,tz_gpio { + compatible = "qcom,tz_gpio"; + tlmm-tz = <0>, + <13>, + <14>, + <15>, + <16>; + }; +}; + +/* Primary USB port related QUSB2 PHY */ +&usb2_phy0 { + qcom,param-override-seq = + <0xa6 0x6c /* override_x0 */ + 0x25 0x70 /* override_x1 */ + 0x16 0x74>; /* override x2 */ +}; + diff --git a/qcom/blair-fogos-evb-overlay.dts b/qcom/blair-fogos-evb-overlay.dts new file mode 100644 index 000000000000..f88036b95ae2 --- /dev/null +++ b/qcom/blair-fogos-evb-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-fogos-common-overlay.dtsi" + +/ { + model = "fogos"; + compatible = "qcom,blair-fogos", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>, <578 0x10000>; + qcom,board-id = <0x47 0xA100>, <0x48 0xA100>; +}; + diff --git a/qcom/blair-fogos-fmr-overlay.dtsi b/qcom/blair-fogos-fmr-overlay.dtsi new file mode 100644 index 000000000000..8ce398dbec2e --- /dev/null +++ b/qcom/blair-fogos-fmr-overlay.dtsi @@ -0,0 +1,48 @@ +&tlmm { + fm_elna_default: fm_elna_default { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; + + fm_elna_active: fm_elna_active { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-high; + }; + }; + + fm_elna_suspend: fm_elna_suspend { + mux { + pins = "gpio47"; + function = "gpio"; + }; + config { + pins = "gpio47"; + drive_strength = <16>; + output-low; + }; + }; +}; + +&soc { + fmradio: fm_wcn39x0 { + status = "ok"; + compatible = "moto,fmctrl"; + pinctrl-names = "default", "elna_active", "elna_suspend"; + pinctrl-0 = <&fm_elna_default>; + pinctrl-1 = <&fm_elna_active>; + pinctrl-2 = <&fm_elna_suspend>; + }; +}; diff --git a/qcom/blair-moto-fogos-base.dts b/qcom/blair-moto-fogos-base.dts new file mode 100644 index 000000000000..27713afa7129 --- /dev/null +++ b/qcom/blair-moto-fogos-base.dts @@ -0,0 +1,45 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; + +#include "blair.dtsi" + +/ { + qcom,board-id = <0 0>; + channel-id-map = ""; +/* + * Some nodes need labels assigned to appear in __symbols__ + */ + chosen: chosen { }; + aliases: aliases { }; + reserved_memory: reserved-memory { }; + mot_batterydata: qcom,battery-data { }; + utags: utags { }; + hw: hw { }; +}; + +&reserved_memory { + /delete-node/ ramoops; +}; + +&tlmm { + /delete-node/ nfc; +}; + +&firmware { + /delete-node/ android; +}; + +&mdss_dsi_phy0 { + /delete-property/ qcom,dsi-pll-ssc-en; +}; diff --git a/qcom/blair-pm6125-fogos-common-overlay.dtsi b/qcom/blair-pm6125-fogos-common-overlay.dtsi new file mode 100644 index 000000000000..38edb1f93881 --- /dev/null +++ b/qcom/blair-pm6125-fogos-common-overlay.dtsi @@ -0,0 +1,22 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +#include "blair-pm6125-moto-common-overlay.dtsi" +#include "blair-fogos-common-overlay.dtsi" +#include "fogos-charger.dtsi" + +&pm7250b_charger { + dpdm-supply = <&usb2_phy0>; +}; + +&smb1394 { + status = "disabled"; +}; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi new file mode 100644 index 000000000000..4774fb7127a9 --- /dev/null +++ b/qcom/fogos-charger.dtsi @@ -0,0 +1,116 @@ + +#include + + +&mot_batterydata { + df-serialnum = "SB18D87863"; + qcom,batt-id-range-pct = <15>; + #include "qg-batterydata-qb50-swd-5000mah.dtsi" +}; + +&pm7250b_charger { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, + <&pm7250b_vadc ADC5_USB_IN_I>, + <&pm7250b_vadc ADC5_CHG_TEMP>, + <&pm7250b_vadc ADC5_DIE_TEMP>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>, + <&pm7250b_vadc ADC5_SBUx>, + <&pm7250b_vadc ADC5_VPH_PWR>, + <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_qg PSY_IIO_RESISTANCE_ID>, + <&pm7250b_qg PSY_IIO_VOLTAGE_NOW>, + <&pm7250b_qg PSY_IIO_TEMP>, + <&pm7250b_qg PSY_IIO_CAPACITY>, + <&pm7250b_qg PSY_IIO_VOLTAGE_OCV>, + <&pm7250b_qg PSY_IIO_VOLTAGE_AVG>, + <&pm7250b_qg PSY_IIO_DEBUG_BATTERY>, + <&pm7250b_qg PSY_IIO_REAL_CAPACITY>, + <&pm7250b_qg PSY_IIO_CC_SOC>, + <&pm7250b_qg PSY_IIO_CURRENT_NOW>, + <&pm7250b_qg PSY_IIO_VOLTAGE_MAX>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL>, + <&pm7250b_qg PSY_IIO_CHARGE_COUNTER>, + <&pm7250b_qg PSY_IIO_CYCLE_COUNT>, + <&pm7250b_qg PSY_IIO_CHARGE_FULL_DESIGN>, + <&pm7250b_qg PSY_IIO_TIME_TO_FULL_NOW>; + io-channel-names = "usb_in_voltage", + "usb_in_current", + "chg_temp", + "die_temp", + "conn_temp", + "sbux_res", + "vph_voltage", + "skin_temp", + "resistance_id", + "voltage_now", + "temp", + "capacity", + "voltage_ocv", + "voltage_avg", + "debug_battery", + "real_capacity", + "cc_soc", + "current_now", + "voltage_max", + "charge_full", + "charge_counter", + "cycle_count", + "charge_full_design", + "time_to_full_now"; + qcom,fcc-max-ua = <4000000>; + qcom,fv-max-uv = <4530000>; + qcom,dcp-curr-max = <2000000>; + qcom,otg-cl-ua = <1500000>; + qcom,thermal-mitigation = <4000000 3500000 + 3000000 2500000 + 2000000 1500000 + 1200000 900000 + 600000>; + /delete-property/ qcom,fcc-stepping-enable; + +}; + +&pm7250b_mmi { + qcom,mmi-temp-zones = <0 4200 1000 0>, + <10 4250 3000 1000>, + <15 0 3000 3000>, + <25 0 4000 4000>, + <35 0 4000 4000>, + <45 0 4000 4000>, + <60 4200 4000 0>; + qcom,mmi-ffc-zones = <4200 243 534>, + <4500 243 534>, + <4500 243 534>, + <4530 506 960>, + <4530 560 1010>, + <4530 965 1160>, + <4200 243 575>; + + qcom,iterm-ma = <243>; + qcom,hvdcp-power-max = <18000>; + mmi,enable-factory-mode-aicl; + qcom,noffc-chg-iterm = <243>; + qcom,noffc-chg-iterm-45c = <670>; + qcom,noffc-qg-iterm = <500>; + qcom,noffc-max-fv = <4500>; + +}; + +&pm7250b_qg { + #io-channel-cells = <1>; + io-channels = <&pm7250b_vadc ADC5_BAT_THERM_100K_PU>, + <&pm7250b_vadc ADC5_BAT_ID_100K_PU>, + <&pm7250b_charger PSY_IIO_INPUT_CURRENT_LIMITED>, + <&pm7250b_charger PSY_IIO_RECHARGE_SOC>, + <&pm7250b_charger PSY_IIO_FORCE_RECHARGE>, + <&pm7250b_charger PSY_IIO_CHARGE_DONE>; + io-channel-names = "batt-therm", + "batt-id", + "input_current_limited", + "recharge_soc", + "force_recharge", + "charge_done"; + qcom,qg-iterm-ma = <500>; +}; + diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi new file mode 100644 index 000000000000..5ff36a2c2406 --- /dev/null +++ b/qcom/fogos-display.dtsi @@ -0,0 +1,274 @@ +#include "dsi-panel-mot-dummy-qhd-video.dtsi" +#include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" + +&display_panel_avdd { + /delete-property/ gpio; + /delete-property/ pinctrl-0; +}; + +&tlmm { + lcd_panel_vddio_default: lcd_panel_vddio_default { + mux { + pins = "gpio11"; + function = "gpio"; + }; + + config { + pins = "gpio11"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + lcd_panel_avdd_default: lcd_panel_avdd_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + + config { + pins = "gpio84"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; + + lcd_panel_avee_default: lcd_panel_avee_default { + mux { + pins = "gpio85"; + function = "gpio"; + }; + + config { + pins = "gpio85"; + drive-strength = <8>; + bias-disable = <0>; + output-high; + }; + }; +}; + +&soc { + lcd_panel_vddio: lcd_gpio_regulator@0 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_vddio"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 11 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_vddio>; + qcom,proxy-consumer-enable; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_vddio_default>; + }; + + lcd_panel_avdd: lcd_gpio_regulator@1 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avdd"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 84 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avdd>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avdd_default>; + }; + + lcd_panel_avee: lcd_gpio_regulator@2 { + compatible = "qti-regulator-fixed"; + regulator-name = "lcd_panel_avee"; + regulator-min-microvolt = <6000000>; + regulator-max-microvolt = <6000000>; + regulator-enable-ramp-delay = <233>; + gpio = <&tlmm 85 0>; + enable-active-high; + regulator-boot-on; + proxy-supply = <&lcd_panel_avee>; + pinctrl-names = "default"; + pinctrl-0 = <&lcd_panel_avee_default>; + }; + + dsi_panel_pwr_supply_fogos: dsi_panel_pwr_supply_fogos{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1904000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-off-sleep = <3>; + qcom,supply-post-on-sleep = <3>; + }; + + }; +}; + +&sde_dsi { + /delete-property/ lab-supply; + /delete-property/ ibb-supply; + /delete-property/ vddio-supply; + /delete-property/ qcom,dsi-default-panel; + /delete-property/ avdd-supply; + + lab-supply = <&lcd_panel_avdd>; + ibb-supply = <&lcd_panel_avee>; + vddio-supply = <&lcd_panel_vddio>; + + qcom,dsi-default-panel = <&dsi_icnl9916c_hd_plus_120_video>; +}; + + +&dsi_icnl9916c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogos>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 24 0A 0A 1A 19 09 + 0A 09 02 04 00 1E 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&dsi_ili9883c_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogos>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A + 0B 0A 02 04 00 20 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; + +&mot_dummy_vid_qhd { + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dummy"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 0B 02 02 1C 1C 03 + 02 01 02 04 00 0C 12]; + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; diff --git a/qcom/fogos-fps-overlay.dtsi b/qcom/fogos-fps-overlay.dtsi new file mode 100644 index 000000000000..5932983d77ab --- /dev/null +++ b/qcom/fogos-fps-overlay.dtsi @@ -0,0 +1,97 @@ +&tlmm { + fps_rst_active: fps_rst_active { + /* active state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + output-low; + }; + }; + + fps_rst_suspend: fps_rst_suspend { + /* sleep state */ + mux { + pins = "gpio18"; + function = "gpio"; + }; + + config { + pins = "gpio18"; + drive-strength = <2>; /* 2 MA */ + }; + }; + + fps_int_active: fps_int_active { + /* active state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; + + fps_int_suspend: fps_int_suspend { + /* sleep state */ + mux { + pins = "gpio17"; + function = "gpio"; + }; + + config { + pins = "gpio17"; + drive-strength = <2>; /* 2 MA */ + bias-disable; + input-enable; + }; + }; +}; + +&L21A { + regulator-max-microvolt = <3008000>; + qcom,init-voltage = <3000000>; + status = "ok"; +}; + +&soc { + fpc: fpc_fpc1020 { + compatible = "fpc,fpc1020"; + status = "ok"; + irq = <&tlmm 17 0>; + rst = <&tlmm 18 0>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; + goodix_fingerprint{ + //status = "/chosen", "mmi,fps", "true"; + status = "ok"; + compatible = "goodix,fingerprint"; + fp-gpio-reset = <&tlmm 18 0x00>; + fp-gpio-irq = <&tlmm 17 0x00>; + rgltr-ctrl-support; + fp,vdd-supply=<&L21A>; + fp,voltage-range = <3000000 3000000>; + interrupt-parent = <&tlmm>; + interrupts = <17 0>; + interrupt-controller; + pinctrl-names = "default", "suspend"; + pinctrl-0 = <&fps_rst_active &fps_int_active>; + pinctrl-1 = <&fps_rst_suspend &fps_int_suspend>; + }; +}; diff --git a/qcom/fogos-sensors.dtsi b/qcom/fogos-sensors.dtsi new file mode 100755 index 000000000000..8ce6c8f8977d --- /dev/null +++ b/qcom/fogos-sensors.dtsi @@ -0,0 +1,157 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +&tlmm { + pen_int_default: pen_int_default { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + pen_int_sleep: pen_int_sleep { + mux { + pins = "gpio84"; + function = "gpio"; + }; + config { + pins = "gpio84"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-no-pull; + }; + }; + + sar_int_fogos_default: sar_int_fogos_default { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; + + sar_int_fogos_sleep: sar_int_fogos_sleep { + mux { + pins = "gpio60"; + function = "gpio"; + }; + config { + pins = "gpio60"; + num-grp-pins = <1>; + drive-strength = <2>; + bias-pull-up; + }; + }; +}; + +&soc { + pen_detect{ + compatible = "rohm,bu520xx_pen_detect"; + pinctrl-names = "default","sleep"; + pinctrl-0 = <&pen_int_default>; + pinctrl-1 = <&pen_int_sleep>; + rohm,nirq-gpio=<&tlmm 84 0x02>; + }; +}; + +&sx937x { + pinctrl-names = "default","sleep"; + pinctrl-0 = <&sar_int_fogos_default>; + pinctrl-1 = <&sar_int_fogos_sleep>; + interrupt-parent = <&tlmm>; + interrupts = <60 0x02>; + interrupt-names = "sx937x_irq"; + Semtech,nirq-gpio = <&tlmm 60 0x02>; + reinit-on-i2c-failure = <1>; + Semtech,reg-num = <66>; + Semtech,reg-init = < + 0x8024 0x7F00 /*PHEN, Disable all Phases*/ + 0x4004 0x70 /*irq mask*/ + 0x8020 0x32 + 0x8028 0x45F + 0x8034 0x45F + 0x8040 0x45F + 0x804C 0x45F + 0x8058 0x45F + 0x8064 0x45E + 0x8070 0x45E + 0x807C 0x45E + 0x8030 0x924925 + 0x803C 0xB24924 + 0x8048 0x924964 + 0x8054 0x925924 + 0x8060 0x964924 + 0x806C 0x92492C + 0x8078 0x92C924 + 0x8084 0x924924 + 0x8098 0x685A + 0x80B8 0x2D23 + 0x80D8 0x4D40 + 0x80F8 0x5A47 + 0x8118 0x4637 + 0x8138 0xFF + 0x8158 0xFF + 0x8178 0xFF + 0x80A0 0x20200001 + 0x80C0 0x1A1A0002 + 0x80E0 0x20200001 + 0x8100 0x0 + 0x8120 0x20200002 + 0x8140 0x0 + 0x8160 0x0 + 0x8180 0x0 + 0x8188 0x8000015 + 0x818C 0x8000016 + 0x8190 0x0 + 0x8194 0x0 + 0x8090 0x7C845200 + 0x80B0 0x7C845102 + 0x80D0 0x7C845200 + 0x80F0 0x7C845100 + 0x8110 0x7C845100 + 0x8130 0x54AC5300 + 0x8150 0x54AC5300 + 0x8170 0x54AC5300 + 0x8088 0x300000 + 0x80A8 0x300000 + 0x80C8 0x300000 + 0x80E8 0x300000 + 0x8108 0x300000 + 0x8128 0x300000 + 0x8148 0x300000 + 0x8168 0x300000 + 0x808C 0x60200020 + 0x80AC 0x60200010 + 0x80CC 0x60200020 + 0x80EC 0x60200010 + 0x810C 0x60200010 + 0x812C 0x60200031 + 0x814C 0x60200031 + 0x816C 0x60200031 + 0x8024 0x7F7F + 0x8274 0x2E040000 + 0x4280 0x0E + >; +}; + diff --git a/qcom/fogos-touchscreen.dtsi b/qcom/fogos-touchscreen.dtsi new file mode 100755 index 000000000000..28bd42339b54 --- /dev/null +++ b/qcom/fogos-touchscreen.dtsi @@ -0,0 +1,205 @@ +/* + * Copyright (c) 2019, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ +&tlmm { + touch_int_mux { + touch_int_active: active { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <8>; + bias-pull-up; + }; + }; + + touch_int_suspend: default { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; + + pmx_ts_int_suspend_high { + ts_int_suspend_high: ts_int_suspend_high { + mux { + pins = "gpio22"; + function = "gpio"; + }; + config { + pins = "gpio22"; + drive-strength = <2>; + bias-pull-up; + }; + }; + }; + + touch_reset_mux { + touch_reset_active: active { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <8>; + bias-disable; + }; + }; + + touch_reset_suspend: default { + mux { + pins = "gpio21"; + function = "gpio"; + }; + config { + pins = "gpio21"; + drive-strength = <2>; + bias-pull-down; + output-low; + }; + }; + }; + + ts_release_mux { + ts_release: ts_release { + mux { + pins = "gpio21", "gpio22"; + function = "gpio"; + }; + + config { + pins = "gpio21", "gpio22"; + drive-strength = <2>; + bias-disable; + }; + }; + }; +}; + +&qupv3_se0_i2c { + status = "disabled"; +}; + +&L9A { + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + qcom,init-voltage = <1800000>; + status = "okay"; +}; + +&qupv3_se0_spi_pins { + qupv3_se0_spi_active: qupv3_se0_spi_active { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "qup00"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_sleep: qupv3_se0_spi_sleep { + mux { + pins = "gpio0", "gpio1", "gpio2"; + function = "gpio"; + }; + + config { + pins = "gpio0", "gpio1", "gpio2"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_active: qupv3_se0_spi_cs_active { + mux { + pins = "gpio3"; + function = "qup00"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-disable; + }; + }; + + qupv3_se0_spi_cs_sleep: qupv3_se0_spi_cs_sleep { + mux { + pins = "gpio3"; + function = "gpio"; + }; + + config { + pins = "gpio3"; + drive-strength = <6>; + bias-pull-up; + }; + }; +}; + +&qupv3_se0_spi { + status = "ok"; + + pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; + pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; + + chipone_tddi@0 { + compatible = "chipone-tddi"; + reg = <0x0>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + spi-cpha; + spi-cpol; + chipone,rst-gpio = <&tlmm 21 0x00>; + chipone,irq-gpio = <&tlmm 22 0x2001>; + chipone,x-res = <720>; + chipone,y-res = <1600>; + chipone,def-build-id = <0x0101>; + chipone,def-config-id = <0x0001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-3 = <&ts_active>; + pinctrl-4 = <&ts_int_suspend_high>; + panel = <&dsi_icnl9916c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + status = "ok"; + }; + ilitek@1 { + compatible = "tchip,ilitek"; + reg = <0x1>; + spi-max-frequency = <8000000>; + interrupt-parent = <&tlmm>; + interrupts = <22 0x2001>; + panel = <&dsi_ili9883c_hd_plus_120_video>; + mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; + touch,reset-gpio = <&tlmm 21 0x00>; + touch,irq-gpio = <&tlmm 22 0x2001>; + pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; + pinctrl-0 = <&ts_active>; + pinctrl-1 = <&ts_int_suspend_high>; + ilitek,report_gesture_key; + status = "ok"; + }; +}; diff --git a/qcom/fogos-wl286xx.dtsi b/qcom/fogos-wl286xx.dtsi new file mode 100644 index 000000000000..80bd9f868469 --- /dev/null +++ b/qcom/fogos-wl286xx.dtsi @@ -0,0 +1,74 @@ +&tlmm{ + pmic1_en_default: pmic1_en_default { + mux { + pins = "gpio33"; + function = "gpio"; + }; + config { + pins = "gpio33"; + drive-strength = <2>; + bias-pull-down; + }; + }; +}; + +&gcc { + qcom,critical-devices = <&qupv3_se10_i2c>; +}; + +&qupv3_se10_i2c { + status = "ok"; + + cam_pmic1: wl2864c@29{ + compatible = "semi,wl2864c"; + reg = <0x29>; + semi,cs-gpios = <&tlmm 33 0>; + pinctrl-names = "default"; + pinctrl-0 = <&pmic1_en_default>; + vin1-supply = <&S6A>; + + regulators { + cam_pmic1_ldo1_dvdd1: ldo1 { + regulator-name = "ldo1"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo2_dvdd2: ldo2 { + regulator-name = "ldo2"; + regulator-min-microvolt = <600000>; + regulator-max-microvolt = <1800000>; + }; + + cam_pmic1_ldo3_avdd1: ldo3 { + regulator-name = "ldo3"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo4_avdd2: ldo4 { + regulator-name = "ldo4"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo5_vddaf: ldo5 { + regulator-name = "ldo5"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo6_vddois: ldo6 { + regulator-name = "ldo6"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + + cam_pmic1_ldo7_vddio: ldo7 { + regulator-name = "ldo7"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <4300000>; + }; + }; + }; +}; diff --git a/qcom/holi-audio-fogos-overlay.dtsi b/qcom/holi-audio-fogos-overlay.dtsi new file mode 100644 index 000000000000..238c57cff51b --- /dev/null +++ b/qcom/holi-audio-fogos-overlay.dtsi @@ -0,0 +1,392 @@ +#include +#include +#include +#include +#include + +&tlmm{ + fsm_rcv_rst: fsm_rcv_rst { + mux { + pins = "gpio86"; + function = "gpio"; + }; + config { + pins = "gpio86"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; + fsm_spk_rst: fsm_spk_rst { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-down; + output-low; + }; + }; +}; + +&cdc_dmic01_gpios { + status = "disabled"; +}; + +&cdc_dmic23_gpios { + status = "disabled"; +}; + +&rx_swr_gpios { + status = "okay"; +}; + +&dai_mi2s0_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s0_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s1_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s1_tx { + status = "okay"; + qcom,msm-mi2s-lines = <2>; +}; + +&dai_mi2s2_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s2_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&dai_mi2s3_rx { + status = "okay"; + qcom,msm-mi2s-lines = <1>; +}; + +&dai_mi2s3_tx { + status = "okay"; + qcom,msm-mi2s-lines = <0>; +}; + +&bolero { + qcom,num-macros = <3>; + qcom,bolero-version = <5>; + #address-cells = <1>; + #size-cells = <1>; + bolero-clk-rsc-mngr { + compatible = "qcom,bolero-clk-rsc-mngr"; + qcom,fs-gen-sequence = <0x3000 0x1 0x1>, <0x3004 0x3 0x3>, + <0x3004 0x3 0x1>, <0x3080 0x2 0x2>; + qcom,rx_mclk_mode_muxsel = <0x0A5640D8>; + qcom,va_mclk_mode_muxsel = <0x0A7A0000>; + clock-names = "tx_core_clk", "tx_npl_clk", "rx_core_clk", "rx_npl_clk", + "va_core_clk", "va_npl_clk"; + clocks = <&clock_audio_tx_1 0>, <&clock_audio_tx_2 0>, + <&clock_audio_rx_1 0>, <&clock_audio_rx_2 0>, + <&clock_audio_va_1 0>, <&clock_audio_va_2 0>; + }; + + va_macro: va-macro@A730000 { + compatible = "qcom,va-macro"; + reg = <0xA730000 0x0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,va-dmic-sample-rate = <600000>; + qcom,default-clk-id = ; + qcom,is-used-swr-gpio = <1>; + qcom,va-swr-gpios = <&va_swr_gpios>; + swr0: va_swr_master { + compatible = "qcom,swr-mstr"; + qcom,is_wcd937x = <1>; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <3>; + qcom,swrm-hctl-reg = <0x0A7EC100>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA740000 0x0>; + interrupts-extended = + <&wakegic 5 IRQ_TYPE_LEVEL_HIGH>, + <&tlmm 128 GPIO_ACTIVE_HIGH>; + interrupt-names = "swr_master_irq", "swr_wake_irq"; + qcom,swr-num-ports = <3>; + qcom,swr-port-mapping = <1 SWRM_TX1_CH1 0x1>, + <1 SWRM_TX1_CH2 0x2>, + <1 SWRM_TX1_CH3 0x4>, <1 SWRM_TX1_CH4 0x8>, + <2 SWRM_TX2_CH1 0x1>, <2 SWRM_TX2_CH2 0x2>, + <2 SWRM_TX2_CH3 0x4>, <2 SWRM_TX2_CH4 0x8>, + <3 SWRM_TX3_CH1 0x1>, <3 SWRM_TX3_CH2 0x2>, + <3 SWRM_TX3_CH3 0x4>, <3 SWRM_TX3_CH4 0x8>; + qcom,swr-num-dev = <1>; + qcom,swr-phy-dev-addr = <0x0A 0x01170223>, + <0x08 0x58350223>, + <0x08 0x58350222>, + <0x08 0x58350221>, + <0x08 0x58350220>; + qcom,swr-clock-stop-mode0 = <1>; + qcom,swr-mstr-irq-wakeup-capable = <1>; + qcom,is-always-on = <1>; + wcd937x_tx_slave: wcd937x-tx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170223>; + }; + }; + }; + + tx_macro: tx-macro@A620000 { + compatible = "qcom,tx-macro"; + reg = <0xA620000 0x0>; + clock-names = "tx_core_clk", "tx_npl_clk"; + clocks = <&clock_audio_tx_1 0>, + <&clock_audio_tx_2 0>; + qcom,tx-dmic-sample-rate = <2400000>; + qcom,is-used-swr-gpio = <0>; + }; + + rx_macro: rx-macro@A600000 { + compatible = "qcom,rx-macro"; + reg = <0xA600000 0x0>; + clock-names = "rx_core_clk", "rx_npl_clk"; + clocks = <&clock_audio_rx_1 0>, + <&clock_audio_rx_2 0>; + qcom,rx-swr-gpios = <&rx_swr_gpios>; + qcom,rx_mclk_mode_muxsel = <0xA5640D8>; + qcom,rx-bcl-pmic-params = /bits/ 8 <0x00 0x03 0x48>; + qcom,default-clk-id = ; + swr1: rx_swr_master { + compatible = "qcom,swr-mstr"; + #address-cells = <2>; + #size-cells = <0>; + clock-names = "lpass_audio_hw_vote"; + clocks = <&lpass_audio_hw_vote 0>; + qcom,swr_master_id = <2>; + qcom,swrm-hctl-reg = <0x0A6A9098>; + qcom,mipi-sdw-block-packing-mode = <1>; + swrm-io-base = <0xA610000 0x0>; + interrupts = ; + interrupt-names = "swr_master_irq"; + qcom,swr-num-ports = <6>; + qcom,swr-port-mapping = <1 HPH_L 0x1>, + <1 HPH_R 0x2>, <2 CLSH 0x1>, + <3 COMP_L 0x1>, <3 COMP_R 0x2>, + <4 LO 0x1>, <5 DSD_L 0x1>, + <5 DSD_R 0x2>, <6 PCM_OUT1 0x01>; + qcom,swr-num-dev = <1>; + qcom,swr-clock-stop-mode0 = <1>; + wcd937x_rx_slave: wcd937x-rx-slave { + compatible = "qcom,wcd937x-slave"; + reg = <0x0A 0x01170224>; + }; + }; + }; + + wcd937x_codec: wcd937x-codec { + compatible = "qcom,wcd937x-codec"; + qcom,split-codec = <1>; + qcom,rx_swr_ch_map = <0 HPH_L 0x1 0 HPH_L>, + <0 HPH_R 0x2 0 HPH_R>, <1 CLSH 0x1 0 CLSH>, + <2 COMP_L 0x1 0 COMP_L>, <2 COMP_R 0x2 0 COMP_R>, + <3 LO 0x1 0 LO>, <4 DSD_L 0x1 0 DSD_L>, + <4 DSD_R 0x2 0 DSD_R>; + qcom,tx_swr_ch_map = <0 ADC1 0x1 0 SWRM_TX1_CH1>, + <1 ADC2 0x1 0 SWRM_TX2_CH1>, + <1 ADC3 0x2 0 SWRM_TX2_CH2>, + <2 DMIC0 0x1 0 SWRM_TX1_CH4>, + <2 DMIC1 0x2 0 SWRM_TX2_CH1>, + <2 MBHC 0x4 0 SWRM_TX2_CH2>, + <3 DMIC2 0x1 0 SWRM_TX2_CH3>, + <3 DMIC3 0x2 0 SWRM_TX2_CH4>, + <3 DMIC4 0x4 0 SWRM_TX3_CH1>, + <3 DMIC5 0x8 0 SWRM_TX3_CH2>; + + qcom,wcd-rst-gpio-node = <&wcd937x_rst_gpio>; + qcom,rx-slave = <&wcd937x_rx_slave>; + qcom,tx-slave = <&wcd937x_tx_slave>; + + cdc-vdd-rxtx-supply = <&L11A>; + qcom,cdc-vdd-rxtx-voltage = <1800000 1800000>; + qcom,cdc-vdd-rxtx-current = <30000>; + + cdc-vddpx-supply = <&L11A>; + qcom,cdc-vddpx-voltage = <1800000 1800000>; + qcom,cdc-vddpx-current = <30000>; + + cdc-vdd-buck-supply = <&L14A>; + qcom,cdc-vdd-buck-voltage = <1800000 1800000>; + qcom,cdc-vdd-buck-current = <650000>; + + cdc-vdd-mic-bias-supply = <&BOB>; + qcom,cdc-vdd-mic-bias-voltage = <3296000 3296000>; + qcom,cdc-vdd-mic-bias-current = <45000>; + + qcom,cdc-micbias1-mv = <2800>; + qcom,cdc-micbias2-mv = <2800>; + qcom,cdc-micbias3-mv = <2800>; + + qcom,cdc-static-supplies = "cdc-vdd-rxtx", + "cdc-vddpx", + "cdc-vdd-mic-bias"; + qcom,cdc-on-demand-supplies = "cdc-vdd-buck"; + }; +}; + +&holi_snd { + qcom,model = "holi-9370_fs1815-snd-card"; + qcom,wcn-btfm = <1>; + qcom,tdm-max-slots = <4>; + qcom,mi2s-audio-intf = <0>; + + qcom,audio-routing = + "AMIC1", "Analog Mic1", + "Analog Mic1", "MIC BIAS1", + "AMIC2", "Analog Mic2", + "Analog Mic2", "MIC BIAS2", + "AMIC3", "Analog Mic3", + "Analog Mic3", "MIC BIAS3", + "Analog Mic4", "MIC BIAS3", + "TX DMIC0", "Digital Mic0", + "TX DMIC0", "MIC BIAS1", + "TX DMIC1", "Digital Mic1", + "TX DMIC1", "MIC BIAS1", + "TX DMIC2", "Digital Mic2", + "TX DMIC2", "MIC BIAS3", + "TX DMIC3", "Digital Mic3", + "TX DMIC3", "MIC BIAS3", + "IN1_HPHL", "HPHL_OUT", + "IN2_HPHR", "HPHR_OUT", + "IN3_AUX", "AUX_OUT", + "RX_TX DEC0_INP", "TX DEC0 MUX", + "RX_TX DEC1_INP", "TX DEC1 MUX", + "RX_TX DEC2_INP", "TX DEC2 MUX", + "RX_TX DEC3_INP", "TX DEC3 MUX", + "TX SWR_INPUT", "WCD_TX_OUTPUT", + "VA SWR_INPUT", "VA_SWR_CLK", + "VA SWR_INPUT", "WCD_TX_OUTPUT", + "VA_AIF1 CAP", "VA_SWR_CLK", + "VA_AIF2 CAP", "VA_SWR_CLK", + "VA_AIF3 CAP", "VA_SWR_CLK", + "VA DMIC0", "Digital Mic0", + "VA DMIC1", "Digital Mic1", + "VA DMIC2", "Digital Mic2", + "VA DMIC3", "Digital Mic3", + "VA DMIC4", "Digital Mic4", + "VA DMIC5", "Digital Mic5", + "VA DMIC0", "VA MIC BIAS1", + "VA DMIC1", "VA MIC BIAS1", + "VA DMIC2", "VA MIC BIAS3", + "VA DMIC3", "VA MIC BIAS3"; + qcom,msm-mbhc-hphl-swh = <1>; + qcom,msm-mbhc-gnd-swh = <1>; + asoc-codec = <&stub_codec>, <&bolero>, + <&wcd937x_codec>; + asoc-codec-names = "msm-stub-codec.1", "bolero_codec", + "wcd937x_codec"; + qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, + <&bolero>; + qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; + qcom,msm-mbhc-hs-mic-min-threshold-mv = <116>; +}; + +&qupv3_se10_i2c { + status = "ok"; + fs1815_rcv: fs1815_rcv@34{ + compatible = "foursemi,fs1815"; + reg = <0x34>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_rcv_rst>; + fsm,rst-gpio = <&tlmm 86 0x00>; + status = "okay"; + }; + fs1815_spk: fs1815_spk@35{ + compatible = "foursemi,fs1815"; + reg = <0x35>; + pinctrl-names = "default"; + pinctrl-0 = <&fsm_spk_rst>; + fsm,rst-gpio = <&tlmm 58 0x00>; + status = "okay"; + }; +}; + +&va_cdc_dma_0_tx { + qcom,msm-dai-is-island-supported = <1>; +}; + +&soc { + wcd937x_rst_gpio: msm_cdc_pinctrl@32 { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&wcd937x_reset_active>; + pinctrl-1 = <&wcd937x_reset_sleep>; + }; + + clock_audio_rx_1: rx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30E>; + #clock-cells = <1>; + }; + + clock_audio_rx_2: rx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <22579200>; + qcom,codec-lpass-clk-id = <0x30F>; + #clock-cells = <1>; + }; + + clock_audio_tx_1: tx_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30C>; + #clock-cells = <1>; + }; + + clock_audio_tx_2: tx_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30D>; + #clock-cells = <1>; + }; + + clock_audio_va_1: va_core_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x30B>; + #clock-cells = <1>; + }; + + clock_audio_va_2: va_npl_clk { + compatible = "qcom,audio-ref-clk"; + qcom,codec-ext-clk-src = ; + qcom,codec-lpass-ext-clk-freq = <19200000>; + qcom,codec-lpass-clk-id = <0x310>; + #clock-cells = <1>; + }; +}; + +&adsp_loader { + nvmem-cells = <&adsp_variant>; + nvmem-cell-names = "adsp_variant"; + adsp-fw-names = "adsp2"; + adsp-fw-bit-values = <0x1>; +}; From a9f1fb7c6a2cc510c8d613c103202e32c81a37fa Mon Sep 17 00:00:00 2001 From: ontim52 Date: Thu, 6 Jul 2023 15:24:08 +0800 Subject: [PATCH 1128/1247] fogor: touch: add ist icnl9916c and 2nd ili9883c demands dts config 1. add tp state check. 2. add 1st icnl9916c 4x touch resolution. Change-Id: Ia291f52aaa5591ab5f3b9b84b2e44c7b6de45cf5 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2667438 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 2 ++ qcom/fogor-touchscreen.dtsi | 13 +++++++++++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index e1708718de13..a09ca48bdff0 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -174,6 +174,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; @@ -228,6 +229,7 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index 28bd42339b54..6bc924847e9a 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -175,8 +175,8 @@ spi-cpol; chipone,rst-gpio = <&tlmm 21 0x00>; chipone,irq-gpio = <&tlmm 22 0x2001>; - chipone,x-res = <720>; - chipone,y-res = <1600>; + chipone,x-res = <2880>; + chipone,y-res = <6400>; chipone,def-build-id = <0x0101>; chipone,def-config-id = <0x0001>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; @@ -184,6 +184,13 @@ pinctrl-4 = <&ts_int_suspend_high>; panel = <&dsi_icnl9916c_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + chipone,supported_gesture_type = <0x06>; + chipone,rst-pull-flag; + chipone,touch-charger-detect-enable; + chipone,touch-charger-detect-type = "notify"; + chipone,touch-charger-detect-psy-name = "charger"; + chipone,touch-charger-detect-psp = "POWER_SUPPLY_PROP_ONLINE"; + chipone,touch-charger-detect-psp-poll-interval = <1000>; status = "ok"; }; ilitek@1 { @@ -200,6 +207,8 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; + ilitek,supported_gesture_type = <0x06>; + ilitek,rst-pull-flag; status = "ok"; }; }; From 93dc71a454bb0a4e6952e8d3f2fcb966eea5158b Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 14 Jul 2023 17:31:50 +0800 Subject: [PATCH 1129/1247] arm64/dt: fogo: bring up sn220E nfc Bring up NXP SN220E nfc controller. Change-Id: I2c3ca42610aaf4868c38a7ce8f754d7ac1097677 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2676492 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 31 +++++++++++++---------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 68f00995dd95..9f18dcb472de 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -92,12 +92,12 @@ nfc_enable_suspend: nfc_enable_suspend { mux { - pins = "gpio48"; + pins = "gpio6"; function = "gpio"; }; config { - pins = "gpio48"; + pins = "gpio6"; drive-strength = <2>; /* 2 MA */ bias-disable; }; @@ -281,24 +281,21 @@ &qupv3_se7_i2c { status = "ok"; - #address-cells = <1>; - #size-cells = <0>; - sec-nfc@27 { - compatible = "sec-nfc"; - reg = <0x27>; - sec-nfc,ven-gpio = <&tlmm 48 0x00>; - sec-nfc,firm-gpio = <&tlmm 135 0x00>; - sec-nfc,irq-gpio = <&tlmm 9 0x00>; - sec-nfc,clk_req-gpio = <&tlmm 7 0x00>; - interrupt-parent = <&tlmm>; + nq@28 { + compatible = "qcom,sn-nci"; + reg = <0x28>; + qcom,sn-irq = <&tlmm 9 0x00>; + qcom,sn-ven = <&tlmm 6 0x00>; + qcom,sn-clkreq = <&tlmm 7 0x00>; + qcom,sn-vdd-1p8-supply = <&L9A>; + qcom,sn-vdd-1p8-voltage = <1800000 1800000>; + qcom,sn-vdd-1p8-current = <157000>; + interrupt-parent = <&tlmm>; interrupts = <9 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>; - clock-names = "OSC_NFC"; + pinctrl-0 = <&nfc_int_active &nfc_enable_active>; + pinctrl-1 = <&nfc_int_suspend &nfc_enable_suspend>; }; }; From 660bed8685ada568edbd1346b8cd23447bd4af25 Mon Sep 17 00:00:00 2001 From: liaohj Date: Mon, 17 Jul 2023 17:24:46 +0800 Subject: [PATCH 1130/1247] dts:fogo:audio dts config fogo use 4350+aw88261 PRI I2S se10 I2C Change-Id: I7c1e1e13ad7fc62f620bfa578cf76368edb47f83 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2677669 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 2 +- ...dio-wcd9370-aw882xx-acf-dual-overlay.dtsi} | 90 ++++++++++++------- 2 files changed, 60 insertions(+), 32 deletions(-) rename qcom/{holi-audio-fogo-overlay.dtsi => fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi} (84%) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 9f18dcb472de..cebd752aed82 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -9,7 +9,7 @@ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. */ -#include "holi-audio-fogo-overlay.dtsi" +#include "fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi" #include #include #include "holi-pmic-overlay-pm6125.dtsi" diff --git a/qcom/holi-audio-fogo-overlay.dtsi b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi similarity index 84% rename from qcom/holi-audio-fogo-overlay.dtsi rename to qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index 238c57cff51b..40470f0308dc 100644 --- a/qcom/holi-audio-fogo-overlay.dtsi +++ b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -5,28 +5,27 @@ #include &tlmm{ - fsm_rcv_rst: fsm_rcv_rst { + aw882xx_irq_default: aw882xx_irq_default { mux { - pins = "gpio86"; + pins = "gpio59"; function = "gpio"; }; config { - pins = "gpio86"; + pins = "gpio59"; drive-strength = <2>; /* 2 MA */ - bias-pull-down; - output-low; + bias-pull-up; }; }; - fsm_spk_rst: fsm_spk_rst { + + aw882xx_recv_irq_default: aw882xx_recv_irq_default { mux { - pins = "gpio58"; + pins = "gpio48"; function = "gpio"; }; config { - pins = "gpio58"; + pins = "gpio48"; drive-strength = <2>; /* 2 MA */ - bias-pull-down; - output-low; + bias-pull-up; }; }; }; @@ -50,7 +49,7 @@ &dai_mi2s0_tx { status = "okay"; - qcom,msm-mi2s-lines = <0>; + qcom,msm-mi2s-lines = <2>; }; &dai_mi2s1_rx { @@ -60,7 +59,7 @@ &dai_mi2s1_tx { status = "okay"; - qcom,msm-mi2s-lines = <2>; + qcom,msm-mi2s-lines = <0>; }; &dai_mi2s2_rx { @@ -83,6 +82,18 @@ qcom,msm-mi2s-lines = <0>; }; +&q6core { + cdc_pri_mi2s_gpios: cdc_pri_mi2s_gpios { + compatible = "qcom,msm-cdc-pinctrl"; + pinctrl-names = "aud_active", "aud_sleep"; + pinctrl-0 = <&lpi_i2s1_sck_active &lpi_i2s1_ws_active &lpi_i2s1_sd0_active &lpi_i2s1_sd1_active>; + pinctrl-1 = <&lpi_i2s1_sck_sleep &lpi_i2s1_ws_sleep &lpi_i2s1_sd0_sleep &lpi_i2s1_sd1_sleep>; + qcom,lpi-gpios; + #gpio-cells = <0>; + }; + +}; + &bolero { qcom,num-macros = <3>; qcom,bolero-version = <5>; @@ -247,10 +258,12 @@ }; &holi_snd { - qcom,model = "holi-9370_fs1815-snd-card"; + qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; - qcom,mi2s-audio-intf = <0>; + qcom,pri-mi2s-gpios = <&cdc_pri_mi2s_gpios>; + qcom,mi2s-audio-intf = <1>; qcom,audio-routing = "AMIC1", "Analog Mic1", @@ -294,9 +307,9 @@ qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, - <&wcd937x_codec>; + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", - "wcd937x_codec"; + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; @@ -305,21 +318,36 @@ &qupv3_se10_i2c { status = "ok"; - fs1815_rcv: fs1815_rcv@34{ - compatible = "foursemi,fs1815"; - reg = <0x34>; - pinctrl-names = "default"; - pinctrl-0 = <&fsm_rcv_rst>; - fsm,rst-gpio = <&tlmm 86 0x00>; - status = "okay"; - }; - fs1815_spk: fs1815_spk@35{ - compatible = "foursemi,fs1815"; - reg = <0x35>; - pinctrl-names = "default"; - pinctrl-0 = <&fsm_spk_rst>; - fsm,rst-gpio = <&tlmm 58 0x00>; - status = "okay"; + aw882xxacf: aw882xxacf_smartpa@34 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x34>; + dc-flag = <0>; + sound-channel = <0>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1000>; + aw-tx-port-id = <0x1001>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; + }; + aw882xxacf_recv: aw882xxacf_recv_smartpa@35 { + compatible = "awinic,aw882xxacf_smartpa"; + reg = <0x35>; + dc-flag = <0>; + sync-flag = <0>; + sound-channel = <1>; + aw-tx-topo-id = <0x1000ff00>; + aw-rx-topo-id = <0x1000ff01>; + aw-rx-port-id = <0x1000>; + aw-tx-port-id = <0x1001>; + aw-re-min = <4000>; + aw-re-max = <30000>; + aw-cali-mode = "aw_attr"; + skt-prof-mode = <1>; + status = "okay"; }; }; From 37179667dae5eb513ca5d16a14e3070b9771e9d9 Mon Sep 17 00:00:00 2001 From: Lei Chen Date: Tue, 18 Jul 2023 13:58:25 +0800 Subject: [PATCH 1131/1247] arm/dts:config icl for HVDCP2 changes, config icl 2A for HVDCP2 Change-Id: Iad97dad97ec62c98572fcef562486ccc00411210 Signed-off-by: Lei Chen Reviewed-on: https://gerrit.mot.com/2678432 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiangpo Zhao Reviewed-by: Wei Xu Submit-Approved: Jira Key --- qcom/bangkk-charger.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/bangkk-charger.dtsi b/qcom/bangkk-charger.dtsi index c105c3c86b9a..33daf22836b9 100644 --- a/qcom/bangkk-charger.dtsi +++ b/qcom/bangkk-charger.dtsi @@ -65,6 +65,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2000000>; + qcom,hvdcp2-max-icl-ua = <2000000>; qcom,otg-cl-ua = <1000000>; qcom,thermal-mitigation = <3000000 2500000 2000000 1500000 From 27c5b9dc9a81a5ab45f948bb2fc0ec282e946649 Mon Sep 17 00:00:00 2001 From: Xiaojun Ji Date: Tue, 18 Jul 2023 16:32:32 +0800 Subject: [PATCH 1132/1247] arm64/dts: Update evt dts for fogos The product hwid is 'H' Change-Id: I82b69dcfd8ce6b6bec4f0eeea89b2bd96faf7527 Reviewed-on: https://gerrit.mot.com/2678662 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/Makefile | 4 ++-- ...lair-fogos-evb-overlay.dts => blair-fogos-evt-overlay.dts} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename qcom/{blair-fogos-evb-overlay.dts => blair-fogos-evt-overlay.dts} (94%) diff --git a/qcom/Makefile b/qcom/Makefile index 463c14822fdd..93f9f7984112 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -111,9 +111,9 @@ dtbo-$(CONFIG_FOGOR_DTB) += \ blair-fogor-evb-overlay.dtbo-base := blair-moto-fogor-base.dtb dtbo-$(CONFIG_FOGOS_DTB) += \ - blair-fogos-evb-overlay.dtbo + blair-fogos-evt-overlay.dtbo -blair-fogos-evb-overlay.dtbo-base := blair-moto-fogos-base.dtb +blair-fogos-evt-overlay.dtbo-base := blair-moto-fogos-base.dtb dtbo-$(CONFIG_FOGO_DTB) += \ blair-fogo-evb-overlay.dtbo diff --git a/qcom/blair-fogos-evb-overlay.dts b/qcom/blair-fogos-evt-overlay.dts similarity index 94% rename from qcom/blair-fogos-evb-overlay.dts rename to qcom/blair-fogos-evt-overlay.dts index f88036b95ae2..d806ffa963ab 100644 --- a/qcom/blair-fogos-evb-overlay.dts +++ b/qcom/blair-fogos-evt-overlay.dts @@ -19,6 +19,6 @@ model = "fogos"; compatible = "qcom,blair-fogos", "qcom,blair-moto", "qcom,blair"; qcom,msm-id = <507 0x10000>, <578 0x10000>; - qcom,board-id = <0x47 0xA100>, <0x48 0xA100>; + qcom,board-id = <0x48 0xA200>; }; From fa4c701b1fd508e03ccef050f9258b819e5dc048 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Tue, 18 Jul 2023 11:27:02 +0800 Subject: [PATCH 1133/1247] fogor: dts/kernel: improve 1st icnl9916c display function 1. modify hbp proch. 2. modify vfp proch. Change-Id: I7287f8c183e5f1a651d258a315fbc92d896df9dd Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2675029 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index dd34b55e2704..b325a6e62a72 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -52,11 +52,11 @@ qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; qcom,mdss-dsi-h-front-porch = <28>; - qcom,mdss-dsi-h-back-porch = <28>; + qcom,mdss-dsi-h-back-porch = <24>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <32>; - qcom,mdss-dsi-v-front-porch = <323>; + qcom,mdss-dsi-v-front-porch = <333>; qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ From 8ffcc6ea0be0fd414350e37f256a29288bbf1153 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Tue, 11 Jul 2023 15:05:04 +0800 Subject: [PATCH 1134/1247] fogor: dtsi: modify lcd suspend leak current 1. add i2c config. 2. add i2c config code. Change-Id: I8a9ea7b55deb2dc2ec31e7f6de790baaf3e66bb5 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2671824 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index a09ca48bdff0..039ab88f7bd4 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -181,7 +181,7 @@ qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -236,7 +236,7 @@ qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -274,3 +274,11 @@ }; }; }; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From eaef1374e92fdbe82de71257a5e4aed24be5df85 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Tue, 18 Jul 2023 18:42:12 +0800 Subject: [PATCH 1135/1247] fogor/sensor: update sx937x params 1.update sx937x params 2.fogor-sensors.dtsi Change-Id: I24c25b393f2c29ee9a586009b1d6b963ca655f6d Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2679053 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 102 ++++++++++++++++++++-------------------- 1 file changed, 51 insertions(+), 51 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index bbb376f8a0ab..30a663a2e2a1 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -89,50 +89,50 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ 0x8020 0x32 - 0x8028 0x45F - 0x8034 0x45F - 0x8040 0x45F - 0x804C 0x45F - 0x8058 0x45F - 0x8064 0x45E - 0x8070 0x45E - 0x807C 0x45E - 0x8030 0x924925 - 0x803C 0xB24924 - 0x8048 0x924964 - 0x8054 0x925924 - 0x8060 0x964924 - 0x806C 0x92492C - 0x8078 0x92C924 - 0x8084 0x924924 - 0x8098 0x685A - 0x80B8 0x2D23 - 0x80D8 0x4D40 - 0x80F8 0x5A47 - 0x8118 0x4637 - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0xFF - 0x80A0 0x20200001 - 0x80C0 0x1A1A0002 - 0x80E0 0x20200001 + 0x8028 0x46E + 0x8034 0x46E + 0x8040 0x46E + 0x804C 0x46E + 0x8058 0x46E + 0x8064 0x46E + 0x8070 0x46E + 0x807C 0x0 + 0x8030 0xFFF9FD + 0x803C 0xFFF9EF + 0x8048 0xFFF97F + 0x8054 0xBFF9FF + 0x8060 0xFFD9FF + 0x806C 0xFEF9FF + 0x8078 0xF7F9FF + 0x8084 0x0 + 0x8098 0x743C + 0x80B8 0x0 + 0x80D8 0x4040 + 0x80F8 0x0 + 0x8118 0x7431 + 0x8138 0x2A2A + 0x8158 0x5252 + 0x8178 0x0 + 0x80A0 0x00000002 + 0x80C0 0x0 + 0x80E0 0x00000002 0x8100 0x0 - 0x8120 0x20200002 - 0x8140 0x0 - 0x8160 0x0 + 0x8120 0x0 + 0x8140 0x00000001 + 0x8160 0x00000001 0x8180 0x0 - 0x8188 0x8000015 - 0x818C 0x8000016 + 0x8188 0x8000013 + 0x818C 0x8000011 0x8190 0x0 0x8194 0x0 - 0x8090 0x7C845200 - 0x80B0 0x7C845102 - 0x80D0 0x7C845200 - 0x80F0 0x7C845100 - 0x8110 0x7C845100 - 0x8130 0x54AC5300 - 0x8150 0x54AC5300 - 0x8170 0x54AC5300 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x0 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 @@ -140,18 +140,18 @@ 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200020 - 0x80AC 0x60200010 - 0x80CC 0x60200020 - 0x80EC 0x60200010 - 0x810C 0x60200010 - 0x812C 0x60200031 - 0x814C 0x60200031 - 0x816C 0x60200031 + 0x8168 0x0 + 0x808C 0xA020003C + 0x80AC 0xA020003C + 0x80CC 0xA020003C + 0x80EC 0xA020003C + 0x810C 0xA020003C + 0x812C 0xA020003C + 0x814C 0xA020003C + 0x816C 0x0 + 0x4280 0xF 0x8024 0x7F7F - 0x8274 0x2E040000 - 0x4280 0x0E + 0x4280 0xE >; }; From 26da6c35750c683bbecf9f972c6c5920e98a284f Mon Sep 17 00:00:00 2001 From: Caio Martins-CAIOABM Date: Wed, 12 Jul 2023 10:27:40 -0300 Subject: [PATCH 1136/1247] dts: Add new channelId for PUB The following new channelId is necessary for PUB (Paraguay, Uruguay, Bolivia): - ro.carrier=openpub / channelId=44 (decimal); Change-Id: I5080b9003eb1a583772b98312366157234e191f5 Reviewed-on: https://gerrit.mot.com/2674010 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Alessandro Ramos Bernardes Dias Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index a3e7de2a662f..3174d8e16f8b 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -58,7 +58,7 @@ "openmx", /* 41 */ "altmx", /* 42 */ "openpe", /* 43 */ - "undefined", /* 44 */ + "openpub", /* 44 */ "undefined", /* 45 */ "undefined", /* 46 */ "undefined", /* 47 */ From 07fd1cee0be46a061f7a5deb8479ef0121e35215 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Tue, 18 Jul 2023 11:45:31 +0800 Subject: [PATCH 1137/1247] fogor: devicetree: 1st icnl9916c cabc adapt cabc function: lcm tm-icnl9916 cabc function adapt Change-Id: I3bf6da9b9a8eee05bf9635c8178da50f9889717b Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2678366 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- ...-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index b325a6e62a72..965adbe6ca7d 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -30,17 +30,17 @@ 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 - 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 EA D2 D5 D8 DB DE E1 E4 E7 EA ED F0 F3 F6 F9 FC FF - 39 00 00 00 00 00 21 E2 2C CC 2D 70 2E 14 2E B8 2F 5B 2F FF 31 47 32 8F 33 D6 35 1E 36 66 38 51 3A 3D 3C 28 3E 14 3F FF + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 E7 E7 E7 E7 E9 EB EC ED F0 F0 F3 F6 F9 FD FF FF + 39 00 00 00 00 00 21 E2 2F FF 2F FF 2F FF 2F FF 31 47 32 8F 33 D6 35 1E 36 66 37 EF 39 78 3B 01 3C 8A 3E 14 3F FF 3F FF 39 00 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-ui-command = [ - 15 00 00 00 00 00 02 55 01 + 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 - 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EE EF F0 F1 F3 F5 F7 F9 FB FB FC FD FE FF - 39 00 00 00 00 00 21 E2 36 24 36 D5 37 86 38 37 38 E8 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF + 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF 39 00 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; @@ -66,6 +66,12 @@ 39 01 00 00 00 00 03 35 00 00 39 01 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 + 39 00 00 00 00 00 02 55 03 00 + 39 00 00 00 00 00 04 F0 99 16 0C + 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF + 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF + 39 00 00 00 00 00 04 F0 00 00 00 39 01 00 00 78 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 39 01 00 00 00 00 03 6D 02 00 From ed0598eebae00b2360f31e781549344ecadcf98c Mon Sep 17 00:00:00 2001 From: qiutong Date: Mon, 17 Jul 2023 16:49:14 +0800 Subject: [PATCH 1138/1247] dts: modify usb device/host mode hs phy parameter override sequence Modify usb hs phy parameter override sequence for fogo5G_NA products usb diagram test pass module:USB Bug or AR ID:NA Feature or Bugfix:Feature Test(FactoryVer/UserVer/bootloader):pass/pass/NA TscodeCheck: pass Change-Id: I5624058775c672af4cef4bf069acc60d660aeabe Reviewed-on: https://gerrit.mot.com/2677627 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Yeqing Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index cebd752aed82..dfbc3a8cfdb9 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -525,7 +525,12 @@ &usb2_phy0 { qcom,param-override-seq = <0xa6 0x6c /* override_x0 */ - 0x25 0x70 /* override_x1 */ + 0x85 0x70 /* override_x1 */ 0x16 0x74>; /* override x2 */ + + qcom,host-param-override-seq = + <0xa7 0x6c /* override_x0 */ + 0x8f 0x70 /* override_x1 */ + 0x16 0x74>; /* override_x2 */ }; From 51ee34e5cebea8683505c469c92dc30a21aa5b52 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Thu, 20 Jul 2023 16:27:00 +0800 Subject: [PATCH 1139/1247] fogor: devicetree: optimizev1st icnl9916c cabc cabc function: optimize lcm tm-icnl9916 cabc Change-Id: I9040f4affb9508610d6c2a32168e487ccc7a7028 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2683013 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 965adbe6ca7d..80939e3f90a1 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -66,7 +66,7 @@ 39 01 00 00 00 00 03 35 00 00 39 01 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 - 39 00 00 00 00 00 02 55 03 00 + 39 00 00 00 00 00 03 55 03 00 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF From 6abb396a312200224d91586144f83c8e322fd8ac Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Thu, 13 Jul 2023 13:57:05 +0800 Subject: [PATCH 1140/1247] arm/dts: enable leds-indicator-pwm driver As fogo 5G NA use pm6375 gpio8 to control charging led, so enable leds-indicator-pwm.ko to control led. Change-Id: I9af7a62cded5e9bdcda7b817f8231abf0117dbf1 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2674845 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 4774fb7127a9..5c4609061bde 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -114,3 +114,35 @@ qcom,qg-iterm-ma = <500>; }; +&pm6125_gpios { + indicator_led { + indicator_led_default: indicator_led_default { + pins = "gpio8"; + function = "func1"; + output-low; + }; + }; +}; + +&soc { + indicator_led { + compatible = "qcom,indicator-pwm-led"; + pinctrl-names = "default"; + pinctrl-0 = <&indicator_led_default>; + indicator_led { + label = "charging"; + led-sources = <0>; + pwms = <&pm6125_pwm 0 1000000>; + linux,default-trigger = "timer"; + }; + }; +}; + +&spmi_bus { + qcom,pm6125@1 { + #address-cells = <1>; + qcom,pwms@b300 { + status = "ok"; + }; + }; +}; From 29bd5dc83269531bcfe5372813823a8356be55d3 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Fri, 21 Jul 2023 17:06:02 +0800 Subject: [PATCH 1141/1247] fogor/sensor: update sx937x params 1.update sx937x params 2.fogor-sensors.dtsi Change-Id: I7d70841db4cf87dcbd9e4d258551f7716720fc3c Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2684591 Reviewed-by: Hujun Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index 30a663a2e2a1..d8896efbe9ac 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -98,20 +98,20 @@ 0x8070 0x46E 0x807C 0x0 0x8030 0xFFF9FD - 0x803C 0xFFF9EF + 0x803C 0xFFD9FF 0x8048 0xFFF97F - 0x8054 0xBFF9FF - 0x8060 0xFFD9FF - 0x806C 0xFEF9FF - 0x8078 0xF7F9FF + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF9EF + 0x8078 0xBFF9FF 0x8084 0x0 0x8098 0x743C - 0x80B8 0x0 + 0x80B8 0x7431 0x80D8 0x4040 - 0x80F8 0x0 - 0x8118 0x7431 - 0x8138 0x2A2A - 0x8158 0x5252 + 0x80F8 0x2A2A + 0x8118 0x5252 + 0x8138 0x0 + 0x8158 0x0 0x8178 0x0 0x80A0 0x00000002 0x80C0 0x0 @@ -121,8 +121,8 @@ 0x8140 0x00000001 0x8160 0x00000001 0x8180 0x0 - 0x8188 0x8000013 - 0x818C 0x8000011 + 0x8188 0x8000015 + 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 0x8090 0x2AD67000 From b80b95ffd3e16eeab595846e17b56068111bfa13 Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 17 Jul 2023 17:19:16 +0800 Subject: [PATCH 1142/1247] thermal: add thermal ntc configurations Pick change from ODM submitting: https://gerrit-cn.motorola.com/#/c/38926/ https://gerrit-cn.motorola.com/#/c/38927 Add thermal NTC configurations Change-Id: I4c248c9d2d547f1a026b1258bd8fc838cae7411e Reviewed-on: https://gerrit.mot.com/2677677 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogor-common-overlay.dtsi | 81 +++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 8 deletions(-) diff --git a/qcom/blair-fogor-common-overlay.dtsi b/qcom/blair-fogor-common-overlay.dtsi index 83ab63c43787..caec670067e5 100644 --- a/qcom/blair-fogor-common-overlay.dtsi +++ b/qcom/blair-fogor-common-overlay.dtsi @@ -302,6 +302,56 @@ }; }; +&pm7250b_vadc { + charger_skin_therm { + reg = ; + label = "charger_skin_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + conn_therm { + reg = ; + label = "conn_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + chg_therm@e { + reg = ; + label = "chg_therm"; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + charger_skin_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + conn_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -333,6 +383,11 @@ chg-skin-therm-usr { status = "disabled"; }; + + conn-therm-usr { + status = "disabled"; + }; + msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -367,7 +422,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -443,11 +498,12 @@ }; }; }; - qtm_n_therm { + + chg_pump_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -458,11 +514,11 @@ }; }; - qtm_e_therm { + conn_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -472,11 +528,20 @@ }; }; }; - soc_usr { - polling-delay-passive = <1000>; + + tspk_therm { + polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&bcl_soc>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; }; }; From 8b7eac9bfcd14a3beb70c20296b0434eeb0905b1 Mon Sep 17 00:00:00 2001 From: LiZidong Date: Thu, 20 Jul 2023 19:26:41 +0800 Subject: [PATCH 1143/1247] dts/display Solving RF interference issues Modify the initcode of the csot panel mipi clk = 450mHz Change-Id: I51ba0afc1e246ca95b67b8d4327684d06800a967 Signed-off-by: LiZidong Reviewed-on: https://gerrit.mot.com/2683332 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hua Tan Submit-Approved: Jira Key --- qcom/bangkk-display.dtsi | 4 ++-- ...dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/bangkk-display.dtsi b/qcom/bangkk-display.dtsi index 2447caeadf20..4f9fae3b3ac3 100644 --- a/qcom/bangkk-display.dtsi +++ b/qcom/bangkk-display.dtsi @@ -420,8 +420,8 @@ qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 1D 08 07 17 22 07 - 08 08 02 04 00 19 0D]; + qcom,mdss-dsi-panel-phy-timings = [00 1E 08 07 18 22 08 + 08 08 02 04 00 1A 0D]; qcom,display-topology = <1 1 1>; qcom,default-topology-index = <0>; }; diff --git a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi index 4e01d0a70fb6..fe0535befa3e 100644 --- a/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi +++ b/qcom/dsi-panel-mot-csot-c7-vtdr6115-655-1080x2400-video-v1.dtsi @@ -343,8 +343,8 @@ qcom,mdss-dsi-panel-framerate = <60>; qcom,mdss-dsi-panel-width = <1080>; qcom,mdss-dsi-panel-height = <2400>; - qcom,mdss-dsi-h-front-porch = <22>; - qcom,mdss-dsi-h-back-porch = <20>; + qcom,mdss-dsi-h-front-porch = <26>; + qcom,mdss-dsi-h-back-porch = <30>; qcom,mdss-dsi-h-pulse-width = <10>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <8>; From b563d8c234aefd63cad5e8be6202b3e2d092bb32 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Tue, 25 Jul 2023 15:41:58 +0800 Subject: [PATCH 1144/1247] fogos: dts/kernel: add fogos display and touchscreen config 1. add fogos display config. 2. add tp single tap and double tap. 3. add icnl9916c 4x touch resolution. Change-Id: Ic12e44549ccf63049bafc1395793950fead7934b Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2688317 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogos-display.dtsi | 14 ++++++++++++-- qcom/fogos-touchscreen.dtsi | 13 +++++++++++-- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi index 5ff36a2c2406..a3b96b478375 100644 --- a/qcom/fogos-display.dtsi +++ b/qcom/fogos-display.dtsi @@ -174,13 +174,14 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -228,13 +229,14 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -272,3 +274,11 @@ }; }; }; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; diff --git a/qcom/fogos-touchscreen.dtsi b/qcom/fogos-touchscreen.dtsi index 28bd42339b54..6bc924847e9a 100755 --- a/qcom/fogos-touchscreen.dtsi +++ b/qcom/fogos-touchscreen.dtsi @@ -175,8 +175,8 @@ spi-cpol; chipone,rst-gpio = <&tlmm 21 0x00>; chipone,irq-gpio = <&tlmm 22 0x2001>; - chipone,x-res = <720>; - chipone,y-res = <1600>; + chipone,x-res = <2880>; + chipone,y-res = <6400>; chipone,def-build-id = <0x0101>; chipone,def-config-id = <0x0001>; pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; @@ -184,6 +184,13 @@ pinctrl-4 = <&ts_int_suspend_high>; panel = <&dsi_icnl9916c_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + chipone,supported_gesture_type = <0x06>; + chipone,rst-pull-flag; + chipone,touch-charger-detect-enable; + chipone,touch-charger-detect-type = "notify"; + chipone,touch-charger-detect-psy-name = "charger"; + chipone,touch-charger-detect-psp = "POWER_SUPPLY_PROP_ONLINE"; + chipone,touch-charger-detect-psp-poll-interval = <1000>; status = "ok"; }; ilitek@1 { @@ -200,6 +207,8 @@ pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; + ilitek,supported_gesture_type = <0x06>; + ilitek,rst-pull-flag; status = "ok"; }; }; From 97c4edbd7c9238f433db7d21c5f6b91930562bf1 Mon Sep 17 00:00:00 2001 From: Alison Venancio Date: Mon, 24 Jul 2023 16:30:29 -0400 Subject: [PATCH 1145/1247] penang - Invert the charging logic Modify the charging logic in the device tree to interpret positive current as charging current and negative current as discharging current. Change-Id: I81754c17dabdf4e45901d17a89a2de8cf1cb3f3b Reviewed-on: https://gerrit.mot.com/2687501 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Reviewed-by: litong Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 24584436dcad..9e4462084c4b 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -39,6 +39,7 @@ reg = <0x64>; status = "okay"; + ibat-invert-polority = ; sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; df-serialnum = "SB18D34202"; From 859a84375c53707388aa5313d41c2606483cb4fc Mon Sep 17 00:00:00 2001 From: Alison Venancio Date: Tue, 25 Jul 2023 14:36:00 -0400 Subject: [PATCH 1146/1247] penang - Invert the charging logic Modify the charging logic in the device tree to interpret positive current as charging current and negative current as discharging current. Fixing syntax error from https://gerrit.mot.com/#/c/2687501/ Change-Id: Id3041340462afe32fe5157506e05d03301f47609 Reviewed-on: https://gerrit.mot.com/2689146 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Rafael Ortolan Reviewed-by: Gilberto Gambugge Neto Submit-Approved: Gilberto Gambugge Neto Tested-by: Gilberto Gambugge Neto --- qcom/discrete_charging_penang.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index 9e4462084c4b..b5bb649d7f42 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -39,7 +39,7 @@ reg = <0x64>; status = "okay"; - ibat-invert-polority = ; + ibat-invert-polority = "true"; sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; df-serialnum = "SB18D34202"; From 8b6d3f984b5a081c2b67fe1a694e8522f49b2e2b Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 27 Jul 2023 14:42:11 +0800 Subject: [PATCH 1147/1247] xbl/StraitPkg: fogo: update the init code of 1st panel 1. update the init code and porch. 2. change resolution to 720x1612. Change-Id: I85cec48fa34ac3e5ecc28fd6a36115f9e7b5cac5 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2691578 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...i => dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi} | 6 +++--- qcom/fogo-display.dtsi | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename qcom/{dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi => dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi} (95%) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi similarity index 95% rename from qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi rename to qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index 1ec1a933c7d4..4476acd6e08c 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -1,5 +1,5 @@ &mdss_mdp { - dsi_boe_ili9883c_656_hd_plus_120_video: qcom,mdss_dsi_boe_ili9883c_656_fh_plus_120_video { + dsi_boe_ili9883c_656_hd_plus_120_video: qcom,mdss_dsi_boe_ili9883c_656_hd_plus_120_video { qcom,mdss-dsi-panel-name = "mipi_mot_vid_txd_ili9883c_hdp_652_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; @@ -36,13 +36,13 @@ qcom,mdss-dsi-display-timings { timing@0 { qcom,mdss-dsi-panel-width = <720>; - qcom,mdss-dsi-panel-height = <1600>; + qcom,mdss-dsi-panel-height = <1612>; qcom,mdss-dsi-h-front-porch = <20>; qcom,mdss-dsi-h-back-porch = <20>; qcom,mdss-dsi-h-pulse-width = <8>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <30>; - qcom,mdss-dsi-v-front-porch = <516>; + qcom,mdss-dsi-v-front-porch = <515>; qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index 85ce6ed6cfbd..f49aa57fa52e 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -1,5 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" -#include "dsi-panel-mot-boe-ili9883c-656-720x1600-video.dtsi" +#include "dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi" #include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" &display_panel_avdd { From 02cb3514002d5c18c3169776313bb5de372870a2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 26 Jul 2023 14:22:09 +0800 Subject: [PATCH 1148/1247] dts: fogo: bring up 2nd panel bring up 2nd panel. TXD+nt36528 Change-Id: Iacac27e602e6de524e56bad59bca07ef913a02d1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2689603 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...el-mot-txd-nt36528-656-720x1612-video.dtsi | 66 +++++++++++++++++++ qcom/fogo-display.dtsi | 54 +++++++++++++++ 2 files changed, 120 insertions(+) create mode 100644 qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi new file mode 100644 index 000000000000..6b64612c6b25 --- /dev/null +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -0,0 +1,66 @@ +&mdss_mdp { + dsi_txd_nt36528_656_hd_plus_120_video: qcom,mdss_dsi_txd_nt36528_656_hd_plus_120_video { + qcom,mdss-dsi-panel-name = + "mipi_mot_vid_txd_nt36528_hdp_652_120"; + qcom,mdss-dsi-panel-type = "dsi_video_mode"; + qcom,dsi-ctrl-num = <0>; + qcom,dsi-phy-num = <0>; + qcom,mdss-dsi-virtual-channel-id = <0>; + qcom,mdss-dsi-stream = <0>; + qcom,mdss-dsi-bpp = <24>; + qcom,mdss-dsi-border-color = <0>; + qcom,mdss-dsi-traffic-mode = "burst_mode"; + qcom,mdss-dsi-bllp-power-mode; + qcom,mdss-dsi-bllp-eof-power-mode; + qcom,mdss-dsi-lane-0-state; + qcom,mdss-dsi-lane-1-state; + qcom,mdss-dsi-lane-2-state; + qcom,mdss-dsi-lane-3-state; + qcom,mdss-dsi-dma-trigger = "trigger_sw"; + qcom,mdss-dsi-mdp-trigger = "none"; + qcom,mdss-dsi-lp11-init; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-tx-eot-append; + qcom,adjust-timer-wakeup-ms = <1>; + + qcom,mdss-pan-physical-width-dimension = <68>; + qcom,mdss-pan-physical-height-dimension = <151>; + + qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; + qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; + qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-width = <720>; + qcom,mdss-dsi-panel-height = <1612>; + qcom,mdss-dsi-h-front-porch = <64>; + qcom,mdss-dsi-h-back-porch = <232>; + qcom,mdss-dsi-h-pulse-width = <4>; + qcom,mdss-dsi-h-sync-skew = <0>; + qcom,mdss-dsi-v-back-porch = <13>; + qcom,mdss-dsi-v-front-porch = <315>; + qcom,mdss-dsi-v-pulse-width = <1>; + qcom,mdss-dsi-panel-framerate = <120>; + qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 02 ff 10 + 39 00 00 00 00 00 02 fb 01 + 39 00 00 00 00 00 03 51 00 00 + 39 00 00 00 00 00 02 53 2C + 39 00 00 00 00 00 02 35 00 + 05 01 00 00 19 00 01 29 + 05 01 00 00 7d 00 01 11 + ]; + qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-off-command = [ + 05 01 00 00 10 00 01 28 + 05 01 00 00 64 00 01 10 + ]; + qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; + }; + }; + }; +}; diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index f49aa57fa52e..a1d54acbeed6 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -1,6 +1,7 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi" #include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi" &display_panel_avdd { /delete-property/ gpio; @@ -192,6 +193,59 @@ qcom,mdss-dsi-no-panel-on-read-support; +/* qcom,mdss-dsi-panel-hdr-enable; + qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 + 16000 13000 35500 7000 2500>; + qcom,mdss-dsi-panel-peak-brightness = <5000000>; + qcom,mdss-dsi-panel-blackness-level = <100>; +*/ + qcom,esd-check-enabled; + qcom,mdss-dsi-panel-status-check-mode = "reg_read"; + qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; + qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-panel-status-value = <0x9C>; + qcom,mdss-dsi-panel-status-read-length = <1>; + + qcom,mdss-dsi-panel-hbm-is-51cmd; + qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; + + qcom,mdss-dsi-display-timings { + timing@0 { + qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A + 0B 0A 02 04 00 20 0F]; + + qcom,display-topology = <1 0 1>; + qcom,default-topology-index = <0>; + }; + }; +}; +&dsi_txd_nt36528_656_hd_plus_120_video{ + qcom,platform-te-gpio = <&tlmm 23 0>; + qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; + + qcom,dsi-supported-dfps-list = <120 90 60>; + qcom,mdss-dsi-pan-enable-dynamic-fps; + qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; + /*qcom,mdss-dsi-pan-dfps-send-command;*/ + qcom,mdss-dsi-pan-on-fps = <120>; + + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; + + qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; + qcom,mdss-dsi-bl-min-level = <13>; + qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-default-level = <745>; + qcom,mdss-brightness-max-level = <1650>; + qcom,bklt-dcs-2bytes-enabled; + + qcom,mdss-dsi-no-panel-on-read-support; + /* qcom,mdss-dsi-panel-hdr-enable; qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 16000 13000 35500 7000 2500>; From d688f26ca963c3ea284e4788ef56ff2a3cf20fc3 Mon Sep 17 00:00:00 2001 From: weiweij Date: Thu, 27 Jul 2023 14:35:42 +0800 Subject: [PATCH 1149/1247] thermal: add ntc configurations Add thermal ntc configurations for fogos. Pick from fogor: https://gerrit.mot.com/#/c/2677677/ Change-Id: Id0f6ab1ffee397c07b024eaa35d1fc47f6cc263c Reviewed-on: https://gerrit.mot.com/2691570 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogos-common-overlay.dtsi | 81 +++++++++++++++++++++++++--- 1 file changed, 73 insertions(+), 8 deletions(-) diff --git a/qcom/blair-fogos-common-overlay.dtsi b/qcom/blair-fogos-common-overlay.dtsi index c2f73efdca94..7b70dc662a30 100644 --- a/qcom/blair-fogos-common-overlay.dtsi +++ b/qcom/blair-fogos-common-overlay.dtsi @@ -302,6 +302,56 @@ }; }; +&pm7250b_vadc { + charger_skin_therm { + reg = ; + label = "charger_skin_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + conn_therm { + reg = ; + label = "conn_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + chg_therm@e { + reg = ; + label = "chg_therm"; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + + +&pm7250b_adc_tm { + io-channels = <&pm7250b_vadc ADC5_AMUX_THM1_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM2_100K_PU>, + <&pm7250b_vadc ADC5_AMUX_THM3_100K_PU>; + + charger_skin_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + chg_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; + + conn_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { sdm-skin-therm-usr { status = "disabled"; @@ -333,6 +383,11 @@ chg-skin-therm-usr { status = "disabled"; }; + + conn-therm-usr { + status = "disabled"; + }; + msm_therm { polling-delay-passive = <0>; polling-delay = <0>; @@ -367,7 +422,7 @@ polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + thermal-sensors = <&pm6125_adc_tm_iio ADC5_GPIO2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -443,11 +498,12 @@ }; }; }; - qtm_n_therm { + + chg_pump_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM2_100K_PU>; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM2_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -458,11 +514,11 @@ }; }; - qtm_e_therm { + conn_therm { polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&pmk8350_adc_tm PMK8350_ADC7_AMUX_THM4_100K_PU>; + thermal-sensors = <&pm7250b_adc_tm ADC5_AMUX_THM3_100K_PU>; wake-capable-sensor; trips { active-config0 { @@ -472,11 +528,20 @@ }; }; }; - soc_usr { - polling-delay-passive = <1000>; + + tspk_therm { + polling-delay-passive = <0>; polling-delay = <0>; thermal-governor = "user_space"; - thermal-sensors = <&bcl_soc>; + thermal-sensors = <&pm6125_adc_tm ADC5_GPIO3_100K_PU>; + wake-capable-sensor; + trips { + active-config0 { + temperature = <125000>; + hysteresis = <1000>; + type = "passive"; + }; + }; }; }; From 049888e8ffd39faeb0bf506c426719c5a912dcc5 Mon Sep 17 00:00:00 2001 From: qiutong Date: Mon, 31 Jul 2023 09:46:13 +0800 Subject: [PATCH 1150/1247] fogo device: 1st ili9883c_BOE TP bringup 1. update ili9883c panel information. Change-Id: Idc3ad2016dea72d6c8cd0fcc7f83a9a27f388790 Reviewed-on: https://gerrit.mot.com/2694146 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Jun Weng Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index f4a10f8eae2c..357726f6acb7 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -192,7 +192,7 @@ spi-max-frequency = <8000000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2001>; - panel = <&dsi_ili9883c_hd_plus_120_video>; + panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; mmi,status = "/chosen","mmi,panel_name","contains","ili9883c"; touch,reset-gpio = <&tlmm 21 0x00>; touch,irq-gpio = <&tlmm 22 0x2001>; From e22375ac94d9c3592caebd37980bd99306da56e6 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Mon, 31 Jul 2023 17:34:45 +0800 Subject: [PATCH 1151/1247] fogor: dts: modify node display name 1. fh modify to hd. 2. modify node name. Signed-off-by: ontim52 Change-Id: I5b03a6972a7b542921503a5da60dd0720a127e70 Reviewed-on: https://gerrit.mot.com/2694860 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 2 +- qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 80939e3f90a1..9eaa2c579a48 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -1,5 +1,5 @@ &mdss_mdp { - dsi_icnl9916c_hd_plus_120_video: qcom,mdss_dsi_tm_icnl9916c_6528_fh_plus_120_video { + dsi_icnl9916c_hd_plus_120_video: qcom,mdss_dsi_tm_icnl9916c_6528_hd_plus_120_video { qcom,mdss-dsi-panel-name = "mipi_mot_vid_tm_icnl9916c_hdp_652_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi index 63ded4d4e3b0..29ee5ece19ea 100644 --- a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi @@ -1,5 +1,5 @@ &mdss_mdp { - dsi_ili9883c_hd_plus_120_video: qcom,mdss_dsi_txd_ili9883c_6528_fh_plus_120_video { + dsi_ili9883c_hd_plus_120_video: qcom,mdss_dsi_txd_ili9883c_6528_hd_plus_120_video { qcom,mdss-dsi-panel-name = "mipi_mot_vid_txd_ili9883c_hdp_652_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; From 194f031e7c14753f56dbbaa3607d10faa0dcb739 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Mon, 31 Jul 2023 17:47:36 +0800 Subject: [PATCH 1152/1247] fogor: dts: optimize fogor lcm timming 1. mofify 1st 10 delay time. 2. modify timing. Change-Id: I9dfaaa59d3f3ed8ad45f470b5c2d9637e36ed685 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2694893 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 2 +- qcom/fogor-display.dtsi | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 9eaa2c579a48..0310a60e4b68 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -83,7 +83,7 @@ 39 01 00 00 00 00 04 f0 00 00 00 39 01 00 00 00 00 03 6d 25 00 39 01 00 00 10 00 03 28 00 00 - 39 01 00 00 78 00 03 10 00 00 + 39 01 00 00 64 00 03 10 00 00 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 039ab88f7bd4..e112021ff019 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -102,7 +102,7 @@ reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; + qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; @@ -125,8 +125,10 @@ qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <30>; qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; }; }; From 27cb47a4d0362be5d2687b117446a60934224ca2 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Mon, 31 Jul 2023 17:50:55 +0800 Subject: [PATCH 1153/1247] fogor: dts: optimize fogor lcm brightness 1. modify 2nd ili9883c max brightness. 2. modify 2nd ili9883c hbm brightness. Change-Id: Ie2a383aa49ce785db1a7467db2e2a5ed8664df8b Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2694897 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index e112021ff019..7d90e686cf0a 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -217,10 +217,10 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <13>; - qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-min-level = <11>; + qcom,mdss-dsi-bl-max-level = <1430>; qcom,mdss-dsi-bl-default-level = <745>; - qcom,mdss-brightness-max-level = <1650>; + qcom,mdss-brightness-max-level = <1430>; qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-no-panel-on-read-support; @@ -241,9 +241,9 @@ qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 06 F9]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 96]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; From dbdc2a5ba2c04d6f488da5682a24eccd915b562a Mon Sep 17 00:00:00 2001 From: ontim52 Date: Mon, 31 Jul 2023 17:56:07 +0800 Subject: [PATCH 1154/1247] fogos: dts: optimize fogos lcm timming and brightness 1. copy fogor dts config. 2. modify lcm timing and brightness. Change-Id: I58c2a5b8c1d7d687233052d47df71006ff309fb5 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2694904 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogos-display.dtsi | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi index a3b96b478375..8923cea5f350 100644 --- a/qcom/fogos-display.dtsi +++ b/qcom/fogos-display.dtsi @@ -102,7 +102,7 @@ reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; + qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; @@ -125,8 +125,10 @@ qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <30>; qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; }; }; @@ -215,10 +217,10 @@ qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogos>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <13>; - qcom,mdss-dsi-bl-max-level = <1650>; + qcom,mdss-dsi-bl-min-level = <11>; + qcom,mdss-dsi-bl-max-level = <1430>; qcom,mdss-dsi-bl-default-level = <745>; - qcom,mdss-brightness-max-level = <1650>; + qcom,mdss-brightness-max-level = <1430>; qcom,bklt-dcs-2bytes-enabled; qcom,mdss-dsi-no-panel-on-read-support; @@ -239,9 +241,9 @@ qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; + qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 06 F9]; qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; + qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 96]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; From 0be231e23487644ecea046b87c030dc92dab587e Mon Sep 17 00:00:00 2001 From: Wen Xie Date: Tue, 1 Aug 2023 15:39:43 +0800 Subject: [PATCH 1155/1247] enlarge ion buffer for hdcp Propgate from (CR): follow https://gerrit.mot.com/#/c/2089401/ Change-Id: Ide5a391ce8f2bf5cacac68a0b26bc36e56c91e65 Signed-off-by: Wen Xie Reviewed-on: https://gerrit.mot.com/2695804 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wang Wang Submit-Approved: Jira Key --- qcom/blair.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index 468edb3fb554..2d276c0fe415 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -422,7 +422,7 @@ alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; reusable; alignment = <0x0 0x400000>; - size = <0x0 0x1400000>; + size = <0x0 0x2000000>; }; qseecom_ta_mem: qseecom_ta_region { From 4d3cb24581385573f49890b2809322f8b0a6772b Mon Sep 17 00:00:00 2001 From: chenshitao Date: Wed, 2 Aug 2023 15:11:15 +0800 Subject: [PATCH 1156/1247] fogor: tp: input touch add wait pm<3> touch function: input touch add wait pm Change-Id: I410e069143421a655fecf87437ff26acd0eb0f9a Signed-off-by: ontim51 Reviewed-on: https://gerrit.mot.com/2697817 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index 6bc924847e9a..e7733ac09d0f 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -191,6 +191,7 @@ chipone,touch-charger-detect-psy-name = "charger"; chipone,touch-charger-detect-psp = "POWER_SUPPLY_PROP_ONLINE"; chipone,touch-charger-detect-psp-poll-interval = <1000>; + chipone,gesture-wait-pm; status = "ok"; }; ilitek@1 { From f13eeac8e0d9841e682ad3cfde04ea3a738002e4 Mon Sep 17 00:00:00 2001 From: chenshitao Date: Wed, 2 Aug 2023 18:04:12 +0800 Subject: [PATCH 1157/1247] fogor: tp: input touch add wait pm<2> touch function: input touch add wait pm Change-Id: I78af3f7edb3185f589bfadbd0a80d58493c15416 Signed-off-by: ontim51 Reviewed-on: https://gerrit.mot.com/2698079 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogos-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/fogos-touchscreen.dtsi b/qcom/fogos-touchscreen.dtsi index 6bc924847e9a..e7733ac09d0f 100755 --- a/qcom/fogos-touchscreen.dtsi +++ b/qcom/fogos-touchscreen.dtsi @@ -191,6 +191,7 @@ chipone,touch-charger-detect-psy-name = "charger"; chipone,touch-charger-detect-psp = "POWER_SUPPLY_PROP_ONLINE"; chipone,touch-charger-detect-psp-poll-interval = <1000>; + chipone,gesture-wait-pm; status = "ok"; }; ilitek@1 { From ad721353a3616755a22f12e157c046fe2f89fa33 Mon Sep 17 00:00:00 2001 From: qiutong Date: Mon, 31 Jul 2023 12:09:43 +0800 Subject: [PATCH 1158/1247] dts:2st NT36528_TXD_ TP bringup for fogo5G_NA product. 1.Delete chipone dts node.Add novatek dts node. 2.Modify ilitek panel name. module:USB Bug or AR ID:NA Feature or Bugfix:Feature Test(FactoryVer/UserVer/bootloader):pass/pass/NA TscodeCheck: pass Change-Id: I81cb6a703674b484748310a6e5cd89c0ef54eaa6 Reviewed-on: https://gerrit.mot.com/2694301 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-touchscreen.dtsi | 28 +++++++++++----------------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 357726f6acb7..356270e26ef5 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -161,31 +161,25 @@ &qupv3_se0_spi { status = "ok"; - pinctrl-0 = <&qupv3_se0_spi_active &qupv3_se0_spi_cs_active>; pinctrl-1 = <&qupv3_se0_spi_sleep &qupv3_se0_spi_cs_sleep>; - chipone_tddi@0 { - compatible = "chipone-tddi"; + novatek@0 { + compatible = "novatek,NVT-ts-spi"; reg = <0x0>; - spi-max-frequency = <8000000>; + + spi-max-frequency = <9600000>; interrupt-parent = <&tlmm>; interrupts = <22 0x2001>; - spi-cpha; - spi-cpol; - chipone,rst-gpio = <&tlmm 21 0x00>; - chipone,irq-gpio = <&tlmm 22 0x2001>; - chipone,x-res = <720>; - chipone,y-res = <1600>; - chipone,def-build-id = <0x0101>; - chipone,def-config-id = <0x0001>; - pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; - pinctrl-3 = <&ts_active>; - pinctrl-4 = <&ts_int_suspend_high>; - panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; - mmi,status = "/chosen","mmi,panel_name","contains","icnl9916c"; + novatek,reset-gpio = <&tlmm 21 0x00>; + novatek,irq-gpio = <&tlmm 22 0x2001>; + novatek,def-max-resolution = <720 1612>; + panel = <&dsi_txd_nt36528_656_hd_plus_120_video>; + novatek,swrst-n8-addr = <0x03F0FE>; + novatek,spi-rd-fast-addr = <0x03F310>; status = "ok"; }; + ilitek@1 { compatible = "tchip,ilitek"; reg = <0x1>; From f840f63ce100cbf21fb28999e22e029e7b3da2c9 Mon Sep 17 00:00:00 2001 From: Alison Venancio Date: Wed, 2 Aug 2023 09:29:30 -0400 Subject: [PATCH 1159/1247] [MIAMI] arm/dts: input touch add wait pm input touch add wait pm based on (CR) and https://gerrit.mot.com/#/c/2158481/ Change-Id: Id9ab6ef923f145668ccefb86c83290453c2efaa5 Reviewed-on: https://gerrit.mot.com/2698368 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/miami-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/miami-touchscreen.dtsi b/qcom/miami-touchscreen.dtsi index 5f45e7dd5e18..5a6b3722fafa 100755 --- a/qcom/miami-touchscreen.dtsi +++ b/qcom/miami-touchscreen.dtsi @@ -92,6 +92,7 @@ goodix,panel-max-p = <4096>; goodix,sample-ctrl; goodix,edge-ctrl; + goodix,gesture-wait-pm; panel = <&mot_csot_nt37701_628_1080x2400_dsc_cmd_v0 &mot_csot_nt37701_655_1080x2400_dsc_cmd_v1 &mot_csot_nt37701_628_1080x2400_dsc_cmd_v1>; From 748c8aee63ecb56afa3e29bbed8d4b2c5dc15785 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Thu, 3 Aug 2023 15:52:14 +0800 Subject: [PATCH 1160/1247] fogor dtsi/kernel: add 2nd ili9883c cabc code 1. add cabc code. 2. modify power-on to UI mode. Change-Id: Ia70fbc1352c960e6a29274c5c2fca4e7c7ebac0a Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2699422 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- ...ongxingda-ili9883c-652-720x1600-video.dtsi | 38 ++++++++++++++++--- 1 file changed, 33 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi index 29ee5ece19ea..50e5ce5a6d78 100644 --- a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi @@ -28,7 +28,7 @@ qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 02]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; @@ -46,12 +46,40 @@ qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 8C D2 + 39 00 00 00 00 00 02 8D D6 + 39 00 00 00 00 00 02 8E DA + 39 00 00 00 00 00 02 8F DE + 39 00 00 00 00 00 02 90 DF + 39 00 00 00 00 00 02 91 E6 + 39 00 00 00 00 00 02 92 E9 + 39 00 00 00 00 00 02 93 ED + 39 00 00 00 00 00 02 94 F0 + 39 00 00 00 00 00 02 95 FF + 39 00 00 00 00 00 02 96 B5 + 39 00 00 00 00 00 02 97 BA + 39 00 00 00 00 00 02 98 BF + 39 00 00 00 00 00 02 99 C4 + 39 00 00 00 00 00 02 9A C9 + 39 00 00 00 00 00 02 9B CD + 39 00 00 00 00 00 02 9C D5 + 39 00 00 00 00 00 02 9D E6 + 39 00 00 00 00 00 02 9E F6 + 39 00 00 00 00 00 02 9F FB + 39 00 00 00 00 00 02 87 4D + 39 00 00 00 00 00 04 FF 98 83 06 + 39 00 00 00 00 00 02 06 A4 + 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 83 B8 + 39 00 00 00 00 00 02 84 02 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 - 39 00 00 00 00 00 03 35 00 00 - 39 00 00 00 00 00 03 53 2C 00 - 39 01 00 00 82 00 03 11 00 00 - 39 01 00 00 1E 00 03 29 00 00 + 39 00 00 00 00 00 02 35 00 + 39 00 00 00 00 00 02 53 2C + 39 00 00 00 00 00 02 55 02 + 05 01 00 00 82 00 01 11 + 05 01 00 00 1E 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ From d7ab50d24f9b6c547c14f3bb12f6e76bbd459320 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Fri, 4 Aug 2023 16:29:00 +0800 Subject: [PATCH 1161/1247] fogor: dtsi: modify TP gesture on power-off timing 1. add dts config. 2. TP gesture turn on state, power-off, lcd-reset pull down. Change-Id: I541f0d250177d383054e2ce25932bcb52596abbb Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2700846 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 7d90e686cf0a..aefad42fddca 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -177,6 +177,7 @@ qcom,mdss-dsi-panel-blackness-level = <100>; */ qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; @@ -232,6 +233,7 @@ qcom,mdss-dsi-panel-blackness-level = <100>; */ qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; From fc2ed577dfec2799b525dfc08882a27712fec631 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Fri, 4 Aug 2023 16:31:11 +0800 Subject: [PATCH 1162/1247] fogos: dtsi: modify TP gesture on power-off timing 1. add dts config. 2. TP gesture turn on state, power-off, lcd-reset pull down. Change-Id: I6435239108f60a617fcee7ef83d50f118565eaa6 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2700848 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogos-display.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi index 8923cea5f350..a0a019f6d009 100644 --- a/qcom/fogos-display.dtsi +++ b/qcom/fogos-display.dtsi @@ -177,6 +177,7 @@ qcom,mdss-dsi-panel-blackness-level = <100>; */ qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; @@ -232,6 +233,7 @@ qcom,mdss-dsi-panel-blackness-level = <100>; */ qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; From 54bb828873fcda250036b18a08b716910126d971 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Fri, 4 Aug 2023 17:19:07 +0800 Subject: [PATCH 1163/1247] fogor: dts: modify 2nd ili9883c power-off timing 1. modify 2nd power-off timing. 2. modify stop frame to 28h add 5ms delay. Change-Id: I8edaddc5b7891e16563487f0287b4ed00a807fdd Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2700883 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi index 50e5ce5a6d78..eb24bfa6189a 100644 --- a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi @@ -83,6 +83,7 @@ ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ + 39 01 00 00 05 00 04 FF 98 83 00 05 01 00 00 10 00 01 28 05 01 00 00 64 00 01 10 ]; From 074164c29501145ae2faf67f2eb273a40402c03a Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Thu, 20 Jul 2023 16:05:23 +0800 Subject: [PATCH 1164/1247] vendor/qcom:fogo:Fogo Thermal bringup Adapt to NTC driver fogo: THermal bringup Adapt to NTC driver Change-Id: I8ba63643c13a730b9fccbd804c0e290b458c2b39 Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2682975 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Wei Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 69 +++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index dfbc3a8cfdb9..95d805f4a8e5 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -299,7 +299,76 @@ }; }; +&pm6125_vadc { + pinctrl-0 = < + &pa_therm2_default + &msm_therm_default + &cam_flash_therm_default + &spk_therm_default>; + + /delete-node/ rfc_cam_therm; + /delete-node/ rear_cam_flash_therm; + + cam_flash_therm { + reg = ; + label = "cam_flash_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; + + spk_therm { + reg = ; + label = "spk_therm"; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + qcom,pre-scaling = <1 1>; + }; +}; + +&pm6125_gpios { + /delete-node/ rfc_cam_therm; + /delete-node/ rear_cam_flash_therm; + + cam_flash_therm { + cam_flash_therm_default: cam_flash_therm_default { + pins = "gpio4"; + bias-high-impedance; + }; + }; + + spk_therm { + spk_therm_default: spk_therm_default { + pins = "gpio6"; + bias-high-impedance; + }; + }; +}; + +&pm6125_adc_tm { + /delete-node/ rear_cam_flash_therm; + + spk_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + +&pm6125_adc_tm_iio { + /delete-node/ rfc_cam_therm; + + cam_flash_therm { + reg = ; + qcom,ratiometric; + qcom,hw-settle-time = <200>; + }; +}; + &thermal_zones { + /delete-node/ sdm-skin-therm-usr; + /delete-node/ rear-cam-therm-usr; + /delete-node/ camera-therm-usr; sdm-skin-therm-usr { status = "disabled"; }; From 0ee59fc6ef18fd09eb5191faef6ca0dfd3e6f5e5 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Mon, 7 Aug 2023 10:57:00 +0800 Subject: [PATCH 1165/1247] fogor/sensor: update sx937x params 1.update sx937x params 2.fogor-sensors.dtsi Change-Id: I6da93e6d0350cdaf5b3cdefd755f2a6bf2898140 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2701889 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogor-sensors.dtsi | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/qcom/fogor-sensors.dtsi b/qcom/fogor-sensors.dtsi index d8896efbe9ac..5796c7d52927 100755 --- a/qcom/fogor-sensors.dtsi +++ b/qcom/fogor-sensors.dtsi @@ -90,7 +90,7 @@ 0x4004 0x70 /*irq mask*/ 0x8020 0x32 0x8028 0x46E - 0x8034 0x46E + 0x8034 0x44E 0x8040 0x46E 0x804C 0x46E 0x8058 0x46E @@ -105,21 +105,21 @@ 0x806C 0xFFF9EF 0x8078 0xBFF9FF 0x8084 0x0 - 0x8098 0x743C - 0x80B8 0x7431 - 0x80D8 0x4040 - 0x80F8 0x2A2A - 0x8118 0x5252 + 0x8098 0x5C3D + 0x80B8 0x5C3D + 0x80D8 0x2B2B + 0x80F8 0x2727 + 0x8118 0x2F2F 0x8138 0x0 0x8158 0x0 0x8178 0x0 - 0x80A0 0x00000002 - 0x80C0 0x0 - 0x80E0 0x00000002 - 0x8100 0x0 - 0x8120 0x0 - 0x8140 0x00000001 - 0x8160 0x00000001 + 0x80A0 0x21210001 + 0x80C0 0x10100002 + 0x80E0 0x21210001 + 0x8100 0x25250002 + 0x8120 0x41410002 + 0x8140 0x0 + 0x8160 0x0 0x8180 0x0 0x8188 0x8000015 0x818C 0x8000016 @@ -142,7 +142,7 @@ 0x8148 0x300000 0x8168 0x0 0x808C 0xA020003C - 0x80AC 0xA020003C + 0x80AC 0xA0200050 0x80CC 0xA020003C 0x80EC 0xA020003C 0x810C 0xA020003C From 7481c141ebd83083c2e200a7d35b8724df10e2f5 Mon Sep 17 00:00:00 2001 From: liaohj Date: Fri, 4 Aug 2023 19:40:52 +0800 Subject: [PATCH 1166/1247] dts:add aw8838 for fogo 5g na fogo 5g na need to pass HAC test. so hardware add aw8838 for handset hac output. config dts. Change-Id: I28d9ee54709dd377df4dc497dd0bef21ce60c200 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2701008 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...udio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index 40470f0308dc..b41b49dbbe78 100644 --- a/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi +++ b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -28,6 +28,18 @@ bias-pull-up; }; }; + + aw8838_rst_default: aw8838_rst_default { + mux { + pins = "gpio58"; + function = "gpio"; + }; + config { + pins = "gpio58"; + drive-strength = <2>; /* 2 MA */ + bias-pull-up; + }; + }; }; &cdc_dmic01_gpios { @@ -307,9 +319,9 @@ qcom,msm-mbhc-hphl-swh = <1>; qcom,msm-mbhc-gnd-swh = <1>; asoc-codec = <&stub_codec>, <&bolero>, - <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>; + <&wcd937x_codec>,<&aw882xxacf>,<&aw882xxacf_recv>,<&aw8838_i2c_37>; asoc-codec-names = "msm-stub-codec.1", "bolero_codec", - "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035"; + "wcd937x_codec", "aw882xxacf_smartpa.2-0034", "aw882xxacf_smartpa.2-0035", "aw8838_smartpa"; qcom,msm_audio_ssr_devs = <&audio_apr>, <&q6core>, <&lpi_tlmm>, <&bolero>; qcom,msm-mbhc-hs-mic-max-threshold-mv = <2700>; @@ -349,6 +361,15 @@ skt-prof-mode = <1>; status = "okay"; }; + aw8838_i2c_37: aw8838_smartpa@37 { + compatible = "awinic,aw8838_smartpa"; + reg = <0x37>; + pinctrl-names = "default"; + pinctrl-0 = <&aw8838_rst_default>; + reset-gpio = <&tlmm 58 0>; + rename-flag = <1>; + status = "okay"; + }; }; &va_cdc_dma_0_tx { From 2fb768564bd33a59530fbc6c284700932e42e60a Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Tue, 8 Aug 2023 14:08:28 +0800 Subject: [PATCH 1167/1247] fogos/sensor: update sx937x params 1.update sx937x params 2.fogos-sensors.dtsi Change-Id: I7661c557397a6457504c6a6dbe66e71d334fc9c8 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2703399 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogos-sensors.dtsi | 96 ++++++++++++++++++++--------------------- 1 file changed, 48 insertions(+), 48 deletions(-) diff --git a/qcom/fogos-sensors.dtsi b/qcom/fogos-sensors.dtsi index 8ce6c8f8977d..57772fa32f3d 100755 --- a/qcom/fogos-sensors.dtsi +++ b/qcom/fogos-sensors.dtsi @@ -89,35 +89,35 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ 0x8020 0x32 - 0x8028 0x45F - 0x8034 0x45F - 0x8040 0x45F - 0x804C 0x45F - 0x8058 0x45F - 0x8064 0x45E - 0x8070 0x45E - 0x807C 0x45E - 0x8030 0x924925 - 0x803C 0xB24924 - 0x8048 0x924964 - 0x8054 0x925924 - 0x8060 0x964924 - 0x806C 0x92492C - 0x8078 0x92C924 - 0x8084 0x924924 - 0x8098 0x685A - 0x80B8 0x2D23 - 0x80D8 0x4D40 - 0x80F8 0x5A47 - 0x8118 0x4637 - 0x8138 0xFF - 0x8158 0xFF - 0x8178 0xFF - 0x80A0 0x20200001 - 0x80C0 0x1A1A0002 - 0x80E0 0x20200001 - 0x8100 0x0 - 0x8120 0x20200002 + 0x8028 0x46E + 0x8034 0x44E + 0x8040 0x46E + 0x804C 0x46E + 0x8058 0x46E + 0x8064 0x46E + 0x8070 0x46E + 0x807C 0x0 + 0x8030 0xFFF9FD + 0x803C 0xFFD9FF + 0x8048 0xFFF97F + 0x8054 0xFEF9FF + 0x8060 0xF7F9FF + 0x806C 0xFFF9EF + 0x8078 0xBFF9FF + 0x8084 0x0 + 0x8098 0x5C3D + 0x80B8 0x5C3D + 0x80D8 0x2B2B + 0x80F8 0x2727 + 0x8118 0x2F2F + 0x8138 0x0 + 0x8158 0x0 + 0x8178 0x0 + 0x80A0 0x21210001 + 0x80C0 0x10100002 + 0x80E0 0x21210001 + 0x8100 0x25250002 + 0x8120 0x41410002 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -125,14 +125,14 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x7C845200 - 0x80B0 0x7C845102 - 0x80D0 0x7C845200 - 0x80F0 0x7C845100 - 0x8110 0x7C845100 - 0x8130 0x54AC5300 - 0x8150 0x54AC5300 - 0x8170 0x54AC5300 + 0x8090 0x2AD67000 + 0x80B0 0x2AD67000 + 0x80D0 0x2AD67000 + 0x80F0 0x2AD67000 + 0x8110 0x2AD67000 + 0x8130 0x2AD67000 + 0x8150 0x2AD67000 + 0x8170 0x0 0x8088 0x300000 0x80A8 0x300000 0x80C8 0x300000 @@ -140,18 +140,18 @@ 0x8108 0x300000 0x8128 0x300000 0x8148 0x300000 - 0x8168 0x300000 - 0x808C 0x60200020 - 0x80AC 0x60200010 - 0x80CC 0x60200020 - 0x80EC 0x60200010 - 0x810C 0x60200010 - 0x812C 0x60200031 - 0x814C 0x60200031 - 0x816C 0x60200031 + 0x8168 0x0 + 0x808C 0xA020003C + 0x80AC 0xA0200050 + 0x80CC 0xA020003C + 0x80EC 0xA020003C + 0x810C 0xA020003C + 0x812C 0xA020003C + 0x814C 0xA020003C + 0x816C 0x0 + 0x4280 0xF 0x8024 0x7F7F - 0x8274 0x2E040000 - 0x4280 0x0E + 0x4280 0xE >; }; From f0a279f72a855276a215918854df416d7c42ff28 Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Tue, 8 Aug 2023 16:18:34 +0800 Subject: [PATCH 1168/1247] arm/dts: update USB host mode hs phy parameter for fogo5G_NA Change the override_x1 value from 0x8f to 0x88 which adjusting the host mode DC level. usb host diagram test pass Change-Id: Ifd7868623078c4167a01c34e539793f7504ec58d Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2703643 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Yuecai Liu Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 95d805f4a8e5..e6d8da4a792b 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -599,7 +599,7 @@ qcom,host-param-override-seq = <0xa7 0x6c /* override_x0 */ - 0x8f 0x70 /* override_x1 */ + 0x88 0x70 /* override_x1 */ 0x16 0x74>; /* override_x2 */ }; From 014fe1d32b5f88bed5d43b3e274c2a5f3cc1d6a5 Mon Sep 17 00:00:00 2001 From: jixj Date: Tue, 8 Aug 2023 18:13:51 +0800 Subject: [PATCH 1169/1247] Add dvt1 dts for fogo row Fogo row changes the platfrom to sm6376 from dvt1 Change-Id: I9ba0e56febacabcc73ff593e09b275385669829f Reviewed-on: https://gerrit.mot.com/2703871 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Xiaofeng Wang Reviewed-by: Huosheng Liao Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/Makefile | 4 +++- qcom/blair-fogos-dvt1-overlay.dts | 24 ++++++++++++++++++++++++ 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 qcom/blair-fogos-dvt1-overlay.dts diff --git a/qcom/Makefile b/qcom/Makefile index 93f9f7984112..22f6f4a7ac20 100644 --- a/qcom/Makefile +++ b/qcom/Makefile @@ -111,9 +111,11 @@ dtbo-$(CONFIG_FOGOR_DTB) += \ blair-fogor-evb-overlay.dtbo-base := blair-moto-fogor-base.dtb dtbo-$(CONFIG_FOGOS_DTB) += \ - blair-fogos-evt-overlay.dtbo + blair-fogos-evt-overlay.dtbo \ + blair-fogos-dvt1-overlay.dtbo blair-fogos-evt-overlay.dtbo-base := blair-moto-fogos-base.dtb +blair-fogos-dvt1-overlay.dtbo-base := blair-moto-fogos-base.dtb dtbo-$(CONFIG_FOGO_DTB) += \ blair-fogo-evb-overlay.dtbo diff --git a/qcom/blair-fogos-dvt1-overlay.dts b/qcom/blair-fogos-dvt1-overlay.dts new file mode 100644 index 000000000000..0e5ffc80cb92 --- /dev/null +++ b/qcom/blair-fogos-dvt1-overlay.dts @@ -0,0 +1,24 @@ +/* Copyright (c) 2023, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +/dts-v1/; +/plugin/; + +#include "blair-pm6125-fogos-common-overlay.dtsi" + +/ { + model = "fogos"; + compatible = "qcom,blair-fogos", "qcom,blair-moto", "qcom,blair"; + qcom,msm-id = <507 0x10000>, <578 0x10000>; + qcom,board-id = <0x47 0xB100>, <0x48 0xB100>; +}; + From 733074848c16929b7f214410e3395993807f3e86 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Tue, 8 Aug 2023 17:41:28 +0800 Subject: [PATCH 1170/1247] arm/dts: config HVDCP3 18W charging config HVDCP3 18W charging for fogo row base on OD config HVDCP3 15W charging for fogo 5G NA Change-Id: I471687ec2ca7d73bd813f0c81eb68d0b066ae2dc Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2703809 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Reviewed-by: Guocheng Wang Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 2 +- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 5c4609061bde..66d8e539da83 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -88,7 +88,7 @@ <4200 243 575>; qcom,iterm-ma = <243>; - qcom,hvdcp-power-max = <18000>; + qcom,hvdcp-power-max = <15000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <670>; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 4774fb7127a9..58c9808ed87c 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -72,6 +72,7 @@ }; &pm7250b_mmi { + /delete-property/ qcom,force-hvdcp-5v; qcom,mmi-temp-zones = <0 4200 1000 0>, <10 4250 3000 1000>, <15 0 3000 3000>, diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 4774fb7127a9..58c9808ed87c 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -72,6 +72,7 @@ }; &pm7250b_mmi { + /delete-property/ qcom,force-hvdcp-5v; qcom,mmi-temp-zones = <0 4200 1000 0>, <10 4250 3000 1000>, <15 0 3000 3000>, From 810440dae93529a8ae2e79457575eaf45f2d944d Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 11 Aug 2023 16:11:39 +0800 Subject: [PATCH 1171/1247] Revert "(CR) dts/panel: fogo: display bringup with fogor's panel" This reverts commit 1b0324ae67b9413995af4057a2da37731dd56885. Mot-CRs-fixed: (CR) Change-Id: Ib1a06f9451840442073e63435538894ac1446816 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2707456 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/fogo-display.dtsi | 54 ------------------------------------------ 1 file changed, 54 deletions(-) diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index a1d54acbeed6..cf31d00f5762 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -1,6 +1,5 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi" -#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" #include "dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi" &display_panel_avdd { @@ -119,59 +118,6 @@ qcom,dsi-default-panel = <&dsi_boe_ili9883c_656_hd_plus_120_video>; }; -&dsi_ili9883c_hd_plus_120_video{ - qcom,platform-te-gpio = <&tlmm 23 0>; - qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; - - qcom,dsi-supported-dfps-list = <120 90 60>; - qcom,mdss-dsi-pan-enable-dynamic-fps; - qcom,mdss-dsi-pan-fps-update = "dfps_immediate_porch_mode_vfp"; - /*qcom,mdss-dsi-pan-dfps-send-command;*/ - qcom,mdss-dsi-pan-on-fps = <120>; - - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogo>; - - qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; - qcom,mdss-dsi-bl-min-level = <13>; - qcom,mdss-dsi-bl-max-level = <1650>; - qcom,mdss-dsi-bl-default-level = <745>; - qcom,mdss-brightness-max-level = <1650>; - qcom,bklt-dcs-2bytes-enabled; - - qcom,mdss-dsi-no-panel-on-read-support; - -/* qcom,mdss-dsi-panel-hdr-enable; - qcom,mdss-dsi-panel-hdr-color-primaries = <14950 15750 34000 - 16000 13000 35500 7000 2500>; - qcom,mdss-dsi-panel-peak-brightness = <5000000>; - qcom,mdss-dsi-panel-blackness-level = <100>; -*/ - qcom,esd-check-enabled; - qcom,mdss-dsi-panel-status-check-mode = "reg_read"; - qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; - qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-panel-status-value = <0x9C>; - qcom,mdss-dsi-panel-status-read-length = <1>; - - qcom,mdss-dsi-panel-hbm-is-51cmd; - qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; - qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; - qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; - qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; - qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - - qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; - - qcom,mdss-dsi-display-timings { - timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A - 0B 0A 02 04 00 20 0F]; - - qcom,display-topology = <1 0 1>; - qcom,default-topology-index = <0>; - }; - }; -}; &dsi_boe_ili9883c_656_hd_plus_120_video{ qcom,platform-te-gpio = <&tlmm 23 0>; qcom,platform-reset-gpio = <&pmr735a_gpios 2 0>; From 0914bc8b632285d9dcbfe59f9863ba68fa6ee265 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 11 Aug 2023 15:55:05 +0800 Subject: [PATCH 1172/1247] xbl/panel: fogo: update the configure of boe panel 1. delay 5ms ,then send command 28. 2. Get the CABC code from vendor,Update the cabc code. Change-Id: I2f7e28fc4c7c8b52e18714c98a83ace1f33540cb Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2707434 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...l-mot-boe-ili9883c-656-720x1612-video.dtsi | 41 ++++++++++++++++--- 1 file changed, 35 insertions(+), 6 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index 4476acd6e08c..c0d8fd706a05 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -1,7 +1,7 @@ &mdss_mdp { dsi_boe_ili9883c_656_hd_plus_120_video: qcom,mdss_dsi_boe_ili9883c_656_hd_plus_120_video { qcom,mdss-dsi-panel-name = - "mipi_mot_vid_txd_ili9883c_hdp_652_120"; + "mipi_mot_vid_boe_ili9883c_hdp_652_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; @@ -28,7 +28,7 @@ qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 01]; + qcom,mdss-dsi-cabc-ui-command = [15 00 00 00 00 00 02 55 02]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; @@ -46,15 +46,44 @@ qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 8C D2 + 39 00 00 00 00 00 02 8D D6 + 39 00 00 00 00 00 02 8E DA + 39 00 00 00 00 00 02 8F DE + 39 00 00 00 00 00 02 90 DF + 39 00 00 00 00 00 02 91 E6 + 39 00 00 00 00 00 02 92 E9 + 39 00 00 00 00 00 02 93 ED + 39 00 00 00 00 00 02 94 F0 + 39 00 00 00 00 00 02 95 FF + 39 00 00 00 00 00 02 96 B5 + 39 00 00 00 00 00 02 97 BA + 39 00 00 00 00 00 02 98 BF + 39 00 00 00 00 00 02 99 C4 + 39 00 00 00 00 00 02 9A C9 + 39 00 00 00 00 00 02 9B CD + 39 00 00 00 00 00 02 9C D5 + 39 00 00 00 00 00 02 9D E6 + 39 00 00 00 00 00 02 9E F6 + 39 00 00 00 00 00 02 9F FB + 39 00 00 00 00 00 02 87 4D + 39 00 00 00 00 00 04 FF 98 83 06 + 39 00 00 00 00 00 02 06 A4 + 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 83 B8 + 39 00 00 00 00 00 02 84 02 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 - 39 00 00 00 00 00 03 35 00 00 - 39 00 00 00 00 00 03 53 2C 00 - 39 01 00 00 82 00 03 11 00 00 - 39 01 00 00 1E 00 03 29 00 00 + 39 00 00 00 00 00 02 35 00 + 39 00 00 00 00 00 02 53 2C + 39 00 00 00 00 00 02 55 02 + 05 01 00 00 82 00 01 11 + 05 01 00 00 1E 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ + 39 01 00 00 05 00 04 FF 98 83 00 05 01 00 00 10 00 01 28 05 01 00 00 64 00 01 10 ]; From 3d2a393834773a8b51cf11542c3f308961c2d8e0 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Fri, 11 Aug 2023 17:38:10 +0800 Subject: [PATCH 1173/1247] dtsi: modify 2nd ili9883c lcd file name 1. modify 2nd ili9883c file name. 2. modify refer to file. Change-Id: Ibdcc4913e4d7fa93556384fbd9ac49879ab5bf7e Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2707578 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ....dtsi => dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi} | 0 qcom/fogor-display.dtsi | 2 +- qcom/fogos-display.dtsi | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) rename qcom/{dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi => dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi} (100%) diff --git a/qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi similarity index 100% rename from qcom/dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi rename to qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index aefad42fddca..2ba9097b31bf 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -1,6 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" -#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi index a0a019f6d009..ce2187327080 100644 --- a/qcom/fogos-display.dtsi +++ b/qcom/fogos-display.dtsi @@ -1,6 +1,6 @@ #include "dsi-panel-mot-dummy-qhd-video.dtsi" #include "dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi" -#include "dsi-panel-mot-tongxingda-ili9883c-652-720x1600-video.dtsi" +#include "dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi" &display_panel_avdd { /delete-property/ gpio; From 04823de9f44aea04dd2b214a613918a5efc982a5 Mon Sep 17 00:00:00 2001 From: Alison Venancio Date: Fri, 11 Aug 2023 13:31:24 -0400 Subject: [PATCH 1174/1247] arm/dts: ensure that the current reported is a positive value penang: Configure the value of mmi,ichg-invert-polority to ensure that the current reported to mmi_charge is a positive value in the charging state Change-Id: Ibeec552a64ff8160bf22b5f09f1eeeea92e5e633 Reviewed-on: https://gerrit.mot.com/2707995 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: litong Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/discrete_charging_penang.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/discrete_charging_penang.dtsi b/qcom/discrete_charging_penang.dtsi index b5bb649d7f42..24584436dcad 100644 --- a/qcom/discrete_charging_penang.dtsi +++ b/qcom/discrete_charging_penang.dtsi @@ -39,7 +39,6 @@ reg = <0x64>; status = "okay"; - ibat-invert-polority = "true"; sense_r_mohm = <5>; factory_mode_ntc_exist = <0>; df-serialnum = "SB18D34202"; From 6dcce7a5e01c66a273b9914b4404f2cd71e1e15e Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Mon, 14 Aug 2023 17:20:01 +0800 Subject: [PATCH 1175/1247] dts: update USB device mode hs phy parameter "echo 0x09 > /sys/kernel/debug/162b000.hsphy/txvref_tune0" For fogo_na USB device eys diagram test pass. Change-Id: Icf4915af5ee00b89f6ff33d1662a6e6ee9067f12 Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2708859 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yuecai Liu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index e6d8da4a792b..983ae388e729 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -594,7 +594,7 @@ &usb2_phy0 { qcom,param-override-seq = <0xa6 0x6c /* override_x0 */ - 0x85 0x70 /* override_x1 */ + 0x89 0x70 /* override_x1 */ 0x16 0x74>; /* override x2 */ qcom,host-param-override-seq = From e9acb0e743a363cbf95b862831d7e9a227b038a9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 11 Aug 2023 17:21:17 +0800 Subject: [PATCH 1176/1247] dts/fogo-display: update the cofigure of fogo's panel 1.update the power off timing. 2.enable "tp_state_check" and "ulps" 3. power off panel when shutdown Change-Id: I781bb8c82fd92dc57e0622291bdfdf996215b115 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2707546 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/fogo-display.dtsi | 26 ++++++++++++++++++++------ 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index cf31d00f5762..b5ca6f53064a 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -74,7 +74,7 @@ reg = <0>; qcom,supply-name = "vddio"; qcom,supply-min-voltage = <1800000>; - qcom,supply-max-voltage = <1904000>; + qcom,supply-max-voltage = <1800000>; qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; @@ -97,8 +97,10 @@ qcom,supply-max-voltage = <6000000>; qcom,supply-enable-load = <100000>; qcom,supply-disable-load = <100>; - qcom,supply-pre-off-sleep = <3>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <30>; qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; }; }; @@ -145,13 +147,15 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -198,13 +202,15 @@ qcom,mdss-dsi-panel-peak-brightness = <5000000>; qcom,mdss-dsi-panel-blackness-level = <100>; */ + qcom,tp_state_check_enable; + qcom,platform-need-execute-shutdown; qcom,esd-check-enabled; qcom,mdss-dsi-panel-status-check-mode = "reg_read"; qcom,mdss-dsi-panel-status-command = [06 01 00 01 00 00 01 0A]; qcom,mdss-dsi-panel-status-command-state = "dsi_lp_mode"; qcom,mdss-dsi-panel-status-value = <0x9C>; qcom,mdss-dsi-panel-status-read-length = <1>; - + qcom,suspend-ulps-enabled; qcom,mdss-dsi-panel-hbm-is-51cmd; qcom,mdss-dsi-hbm-type = "lcd-dcs-wled"; qcom,mdss-dsi-hbm-on-command = [39 01 00 00 00 00 03 51 07 FF]; @@ -216,8 +222,8 @@ qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 27 0A 0A 1B 19 0A - 0B 0A 02 04 00 20 0F]; + qcom,mdss-dsi-panel-phy-timings = [00 25 0A 0A 1B 1B 0A + 0A 0A 02 04 00 1F 0F]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; @@ -242,3 +248,11 @@ }; }; }; + +&qupv3_se10_i2c_sleep { + config { + /delete-property/ bias-disable; + bias-pull-up; + input-enable; + }; +}; From 739c82def9560a1f146a6529cd5abd4f7c8c90ef Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 11 Aug 2023 17:17:20 +0800 Subject: [PATCH 1177/1247] dts/panel: fogo: update the configure of TXD panel Get the op from KP at 2023.08.15 1.update the value of H-porch 2. update the init code. Change-Id: I076f7de77db632206f5a7e8f040424d1fa9aaeb1 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2707545 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi index 6b64612c6b25..045d9be76312 100644 --- a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -38,7 +38,7 @@ qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1612>; qcom,mdss-dsi-h-front-porch = <64>; - qcom,mdss-dsi-h-back-porch = <232>; + qcom,mdss-dsi-h-back-porch = <120>; qcom,mdss-dsi-h-pulse-width = <4>; qcom,mdss-dsi-h-sync-skew = <0>; qcom,mdss-dsi-v-back-porch = <13>; @@ -51,13 +51,13 @@ 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 35 00 - 05 01 00 00 19 00 01 29 05 01 00 00 7d 00 01 11 + 05 01 00 00 19 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 05 01 00 00 10 00 01 28 - 05 01 00 00 64 00 01 10 + 05 01 00 00 19 00 01 28 + 05 01 00 00 7d 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 0218fc9004df44729f7c6f2c3112a39edf9094e9 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 16 Aug 2023 14:13:11 +0800 Subject: [PATCH 1178/1247] dts/panel: fogo: update the mipi timing of TXD panel Get the op from KP at 2023.08.15, The value of H-porch is changed. So we must update the mipi timing. Change-Id: Ic7248a597e609872e04ca3aae709cf2753e8e2c7 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2710531 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/fogo-display.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index b5ca6f53064a..c0335a0a1978 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -222,8 +222,8 @@ qcom,mdss-dsi-display-timings { timing@0 { - qcom,mdss-dsi-panel-phy-timings = [00 25 0A 0A 1B 1B 0A - 0A 0A 02 04 00 1F 0F]; + qcom,mdss-dsi-panel-phy-timings = [00 29 0B 0B 1B 1A 0B + 0B 0A 02 04 00 22 10]; qcom,display-topology = <1 0 1>; qcom,default-topology-index = <0>; From 44b57639b57dbebfcf1af5c25df28bef200b916e Mon Sep 17 00:00:00 2001 From: ontim52 Date: Wed, 16 Aug 2023 11:38:47 +0800 Subject: [PATCH 1179/1247] fogor: dtsi: kernel dtsi disable sdc_1 to avoid L11A leakage 1. modify sdhc_1 status. 2. status ok to disabled. Change-Id: Iada2dcb9ce72389ce4bc8752c35d7c6a6b052dac Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2710369 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Chuanchun Zhu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogor-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogor-common-overlay.dtsi b/qcom/blair-fogor-common-overlay.dtsi index caec670067e5..f39709d334f6 100644 --- a/qcom/blair-fogor-common-overlay.dtsi +++ b/qcom/blair-fogor-common-overlay.dtsi @@ -140,7 +140,7 @@ /* Dummy LDO reference */ &sdhc_1 { - status = "ok"; + status = "disabled"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_on>; From b6e55c932e29444a9604308cf33fd96d33c24b41 Mon Sep 17 00:00:00 2001 From: ontim52 Date: Wed, 16 Aug 2023 11:41:33 +0800 Subject: [PATCH 1180/1247] fogos: dtsi: kernel dtsi disable sdc_1 to avoid L11A leakage 1. modify sdhc_1 status. 2. status ok to disabled. Change-Id: I081b8eeeb8109e13cb043c8446e048f7736e3abb Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2710449 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Chuanchun Zhu Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogos-common-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/blair-fogos-common-overlay.dtsi b/qcom/blair-fogos-common-overlay.dtsi index 7b70dc662a30..a6d861b0d48c 100644 --- a/qcom/blair-fogos-common-overlay.dtsi +++ b/qcom/blair-fogos-common-overlay.dtsi @@ -140,7 +140,7 @@ /* Dummy LDO reference */ &sdhc_1 { - status = "ok"; + status = "disabled"; pinctrl-names = "default", "sleep"; pinctrl-0 = <&sdc1_on>; From 931755803a0142fc2bac15bcc760236affee0b88 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Thu, 10 Aug 2023 17:12:19 +0800 Subject: [PATCH 1181/1247] arm/dts: config hvdcp2 vbus 9V Config hvdcp2 vbus 9V for fogo row Change-Id: I23acaf13e33034d0a41d97c35152e0cc954bd61c Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2706409 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Guocheng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 58c9808ed87c..46ed98a87d2a 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -90,6 +90,7 @@ qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; + mmi,hvdcp2-force-9v; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <670>; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 58c9808ed87c..46ed98a87d2a 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -90,6 +90,7 @@ qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; + mmi,hvdcp2-force-9v; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <670>; From 848b01612c0bb117ff8e5739fda4602de6f43e2c Mon Sep 17 00:00:00 2001 From: qiutong Date: Sat, 12 Aug 2023 16:06:47 +0800 Subject: [PATCH 1182/1247] charger:fogo:Submit ALT battery modeling parameters fogo: Submit ALT battery modeling parameters Change-Id: I1930e1cd2e6cf18fdf7379d73f0a32c03a7e588e Signed-off-by: qiutong Reviewed-on: https://gerrit.mot.com/2708193 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 4 +- qcom/qg-batterydata-qf50-atl-5000mah.dtsi | 1019 +++++++++++++++++++++ 2 files changed, 1021 insertions(+), 2 deletions(-) create mode 100644 qcom/qg-batterydata-qf50-atl-5000mah.dtsi diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 66d8e539da83..eae33c30b17a 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -3,9 +3,9 @@ &mot_batterydata { - df-serialnum = "SB18D87863"; + df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-qb50-swd-5000mah.dtsi" + #include "qg-batterydata-qf50-atl-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-qf50-atl-5000mah.dtsi b/qcom/qg-batterydata-qf50-atl-5000mah.dtsi new file mode 100644 index 000000000000..ef086867bff3 --- /dev/null +++ b/qcom/qg-batterydata-qf50-atl-5000mah.dtsi @@ -0,0 +1,1019 @@ + +qcom,qf50-atl-5000mah { + /* ATL_5000mAH_averaged_MasterSlave_Aug11th2023 */ + serialnum = "SB18D96852"; + qcom,sdam-magic-number = <0x18D96852>; + qcom,max-voltage-uv = <4530000>; + qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-ATL-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4855 5051 5096 5117 5127>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4861 4980 5092 5095 5094 5092>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44545 44726 44805 44830 44832>, + <44262 44376 44379 44390 44398>, + <44026 44128 44112 44109 44110>, + <43813 43903 43890 43882 43873>, + <43593 43676 43664 43656 43646>, + <43363 43455 43443 43433 43427>, + <43128 43220 43216 43207 43206>, + <42888 42974 42976 42969 42971>, + <42641 42725 42729 42725 42725>, + <42397 42479 42480 42479 42479>, + <42157 42232 42228 42228 42232>, + <41920 41987 41981 41981 41988>, + <41688 41740 41737 41741 41746>, + <41460 41501 41499 41505 41507>, + <41239 41271 41269 41273 41276>, + <41027 41048 41045 41045 41049>, + <40821 40835 40831 40827 40830>, + <40622 40630 40625 40619 40619>, + <40431 40435 40429 40421 40418>, + <40247 40252 40246 40239 40231>, + <40068 40073 40071 40068 40057>, + <39895 39890 39880 39875 39863>, + <39720 39707 39668 39640 39625>, + <39547 39499 39453 39408 39391>, + <39369 39224 39229 39209 39202>, + <39165 38972 39016 39028 39037>, + <38941 38840 38875 38890 38896>, + <38775 38751 38780 38786 38775>, + <38672 38666 38692 38690 38668>, + <38591 38580 38598 38587 38568>, + <38519 38501 38509 38488 38478>, + <38454 38426 38427 38405 38398>, + <38397 38355 38350 38333 38326>, + <38343 38293 38280 38265 38257>, + <38296 38240 38221 38201 38189>, + <38255 38191 38166 38139 38121>, + <38221 38150 38112 38074 38051>, + <38185 38112 38060 38009 37980>, + <38142 38060 37996 37930 37894>, + <38093 37985 37913 37827 37773>, + <38025 37892 37814 37711 37639>, + <37921 37780 37699 37600 37520>, + <37798 37643 37564 37481 37401>, + <37656 37475 37401 37317 37231>, + <37490 37310 37241 37169 37087>, + <37317 37180 37126 37073 37011>, + <37241 37134 37083 37040 36983>, + <37181 37107 37054 37014 36958>, + <37141 37077 37027 36988 36930>, + <37106 37042 36985 36943 36876>, + <37060 36899 36816 36724 36630>, + <37006 36480 36387 36301 36201>, + <36858 35880 35800 35725 35623>, + <36390 35022 34993 34937 34829>, + <35518 33587 33735 33717 33593>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44840 44830 44805 44760 44740 44725>, + <44353 44382 44375 44353 44335 44323>, + <43947 44007 44012 44005 43989 43978>, + <43649 43725 43735 43730 43714 43704>, + <43432 43515 43522 43514 43496 43485>, + <43230 43311 43309 43297 43278 43267>, + <43003 43082 43076 43063 43044 43035>, + <42771 42847 42837 42823 42805 42798>, + <42536 42608 42591 42578 42560 42556>, + <42295 42361 42338 42327 42307 42309>, + <42055 42114 42087 42078 42058 42062>, + <41823 41871 41840 41831 41814 41816>, + <41598 41631 41595 41588 41574 41573>, + <41370 41398 41356 41349 41338 41336>, + <41142 41171 41121 41116 41107 41105>, + <40909 40952 40895 40890 40882 40880>, + <40664 40746 40675 40672 40663 40662>, + <40407 40544 40465 40463 40453 40452>, + <40154 40317 40274 40265 40257 40254>, + <39911 40056 40091 40074 40069 40065>, + <39675 39800 39875 39879 39884 39881>, + <39460 39563 39604 39680 39709 39712>, + <39263 39338 39342 39472 39521 39528>, + <39073 39137 39124 39230 39275 39283>, + <38882 38953 38928 38982 39010 39017>, + <38693 38787 38762 38798 38821 38829>, + <38529 38640 38617 38658 38682 38695>, + <38381 38506 38488 38537 38563 38576>, + <38257 38378 38372 38427 38451 38461>, + <38166 38252 38266 38328 38350 38355>, + <38094 38142 38169 38236 38261 38262>, + <38027 38050 38079 38149 38181 38179>, + <37964 37973 37998 38071 38106 38103>, + <37904 37909 37927 38000 38036 38038>, + <37843 37857 37862 37932 37967 37973>, + <37781 37810 37805 37861 37889 37889>, + <37718 37763 37755 37789 37804 37787>, + <37653 37716 37699 37710 37712 37680>, + <37585 37660 37633 37623 37608 37570>, + <37513 37590 37557 37531 37501 37460>, + <37438 37506 37458 37440 37408 37364>, + <37356 37393 37337 37343 37317 37270>, + <37264 37259 37199 37217 37199 37149>, + <37164 37126 37038 37076 37063 37009>, + <37059 36973 36849 36940 36933 36883>, + <36958 36815 36735 36866 36870 36821>, + <36911 36753 36692 36846 36856 36807>, + <36862 36699 36638 36826 36842 36791>, + <36813 36653 36569 36796 36817 36764>, + <36763 36601 36456 36724 36753 36688>, + <36696 36506 36169 36463 36491 36397>, + <36614 36313 35546 35958 36008 35899>, + <36500 35974 34682 35266 35353 35231>, + <36161 35224 33739 34296 34425 34285>, + <35888 34573 32388 32686 32977 32845>, + <35789 33816 28029 28977 28510 28219>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12883 12287 11841 11503 11380>, + <12872 12312 11829 11506 11390>, + <12871 12301 11819 11497 11385>, + <12878 12287 11813 11491 11381>, + <12883 12275 11803 11485 11377>, + <12877 12261 11791 11478 11373>, + <12865 12243 11779 11472 11370>, + <12838 12220 11767 11468 11369>, + <12793 12200 11756 11465 11368>, + <12766 12182 11751 11463 11367>, + <12756 12167 11747 11461 11366>, + <12748 12160 11744 11460 11365>, + <12733 12155 11741 11459 11364>, + <12708 12154 11739 11458 11363>, + <12687 12151 11738 11457 11363>, + <12670 12147 11738 11456 11363>, + <12657 12147 11737 11456 11363>, + <12655 12148 11736 11455 11363>, + <12664 12149 11736 11455 11364>, + <12673 12151 11738 11456 11364>, + <12674 12153 11742 11458 11365>, + <12672 12156 11743 11458 11365>, + <12675 12161 11743 11458 11365>, + <12690 12163 11743 11458 11365>, + <12706 12163 11746 11459 11365>, + <12713 12163 11750 11461 11367>, + <12719 12167 11754 11464 11369>, + <12723 12177 11758 11467 11371>, + <12726 12185 11762 11471 11374>, + <12728 12190 11767 11474 11376>, + <12735 12194 11772 11477 11379>, + <12744 12197 11778 11481 11381>, + <12755 12203 11784 11484 11384>, + <12771 12208 11790 11488 11387>, + <12789 12218 11796 11492 11391>, + <12799 12229 11803 11497 11395>, + <12806 12241 11808 11502 11399>, + <12810 12252 11813 11508 11403>, + <12811 12260 11820 11514 11406>, + <12811 12266 11830 11519 11410>, + <12816 12272 11840 11524 11414>, + <12849 12287 11842 11529 11418>, + <12874 12304 11844 11534 11422>, + <12884 12310 11855 11539 11425>, + <12899 12321 11874 11544 11428>, + <12928 12334 11880 11547 11430>, + <12919 12330 11882 11546 11429>, + <12931 12336 11880 11546 11429>, + <12944 12332 11889 11548 11431>, + <12943 12343 11898 11553 11436>, + <12915 12361 11905 11560 11439>, + <12947 12371 11921 11567 11446>, + <12953 12391 11941 11577 11454>, + <12970 12538 11960 11591 11466>, + <12970 12538 11960 11591 11466>, + <12970 12538 11960 11591 11466>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9976 10036 10116 9905 9911>, + <10173 10248 10347 10095 9934>, + <10194 10308 10347 10167 10048>, + <10200 10326 10338 10176 10191>, + <10199 10307 10322 10177 10235>, + <10184 10271 10284 10180 10194>, + <10164 10244 10243 10176 10141>, + <10145 10222 10199 10143 10107>, + <10126 10211 10165 10098 10078>, + <10112 10353 10163 10085 10055>, + <10101 10533 10168 10088 10028>, + <10093 10494 10170 10088 10002>, + <10092 10288 10164 10064 9973>, + <10092 10193 10159 10034 9947>, + <10095 10203 10163 10033 9946>, + <10104 10215 10172 10044 9963>, + <10120 10225 10175 10049 9979>, + <10133 10235 10172 10031 9991>, + <10144 10245 10170 10011 10001>, + <10156 10259 10172 10012 10007>, + <10170 10274 10180 10019 10010>, + <10186 10287 10196 10041 10023>, + <10201 10298 10242 10182 10156>, + <10216 10311 10273 10305 10287>, + <10231 10328 10247 10240 10242>, + <10249 10341 10202 10095 10115>, + <10269 10332 10187 10064 10116>, + <10277 10303 10182 10126 10483>, + <10275 10292 10180 10175 10772>, + <10273 10293 10195 10225 10642>, + <10273 10296 10219 10296 10359>, + <10275 10300 10232 10276 10163>, + <10278 10306 10242 10117 10000>, + <10283 10312 10245 10015 9930>, + <10289 10320 10235 10001 9934>, + <10295 10328 10223 9996 9942>, + <10300 10336 10224 10008 9960>, + <10306 10344 10234 10045 10000>, + <10312 10356 10245 10079 10043>, + <10320 10374 10262 10109 10094>, + <10328 10387 10280 10131 10133>, + <10337 10384 10291 10141 10131>, + <10347 10381 10301 10145 10123>, + <10360 10383 10308 10142 10125>, + <10503 10422 10313 10143 10126>, + <10531 10479 10301 10140 10100>, + <10518 10469 10293 10135 10085>, + <10527 10503 10280 10136 10088>, + <10600 10539 10269 10144 10104>, + <10436 10876 10288 10182 10150>, + <10390 10719 10300 10152 10107>, + <10160 10449 10263 10060 9980>, + <10121 10372 10243 10010 9917>, + <10084 10292 10148 9967 9862>, + <10084 10292 10148 9967 9862>, + <10084 10292 10148 9967 9862>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19510 19413 19379 19380 19365>, + <19606 19490 19439 19404 19392>, + <19639 19518 19446 19410 19405>, + <19658 19530 19448 19410 19410>, + <19664 19533 19449 19411 19412>, + <19668 19534 19449 19418 19413>, + <19670 19534 19448 19423 19413>, + <19669 19532 19447 19423 19414>, + <19664 19531 19446 19423 19416>, + <19659 19536 19444 19422 19416>, + <19653 19540 19441 19418 19411>, + <19646 19534 19438 19413 19406>, + <19640 19515 19435 19408 19403>, + <19634 19502 19432 19403 19400>, + <19627 19498 19428 19401 19397>, + <19618 19496 19425 19399 19394>, + <19608 19493 19422 19397 19390>, + <19601 19489 19418 19393 19387>, + <19594 19486 19415 19389 19383>, + <19589 19482 19411 19383 19379>, + <19585 19479 19409 19377 19374>, + <19582 19478 19409 19375 19372>, + <19582 19479 19414 19384 19377>, + <19583 19479 19418 19391 19381>, + <19584 19486 19415 19384 19375>, + <19588 19492 19410 19370 19362>, + <19597 19491 19406 19368 19362>, + <19601 19484 19402 19378 19400>, + <19597 19480 19400 19390 19430>, + <19591 19479 19405 19403 19427>, + <19588 19479 19413 19414 19420>, + <19584 19480 19418 19415 19412>, + <19582 19481 19421 19406 19402>, + <19580 19482 19423 19397 19392>, + <19578 19481 19420 19389 19382>, + <19576 19479 19414 19381 19373>, + <19573 19477 19410 19374 19364>, + <19570 19474 19405 19367 19355>, + <19566 19472 19401 19364 19352>, + <19561 19468 19400 19366 19354>, + <19555 19464 19398 19369 19357>, + <19549 19460 19395 19367 19359>, + <19543 19456 19392 19364 19362>, + <19534 19455 19391 19367 19365>, + <19498 19445 19388 19366 19363>, + <19484 19429 19379 19359 19356>, + <19483 19429 19380 19355 19352>, + <19472 19408 19372 19345 19339>, + <19381 19390 19369 19343 19335>, + <19283 19336 19366 19335 19326>, + <19280 19349 19367 19349 19334>, + <19268 19425 19382 19364 19353>, + <19272 19433 19386 19365 19354>, + <19396 19454 19388 19367 19356>, + <19396 19454 19388 19367 19356>, + <19396 19454 19388 19367 19356>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16098 15242 14943 14885 14932>, + <16121 15619 15145 14918 14873>, + <15954 15390 15076 14925 14903>, + <15633 15166 14953 14869 14858>, + <15405 15054 14887 14828 14822>, + <15261 14970 14844 14800 14800>, + <15149 14909 14812 14778 14782>, + <15063 14863 14785 14758 14764>, + <14994 14822 14764 14742 14748>, + <14938 14774 14745 14732 14741>, + <14893 14735 14728 14726 14739>, + <14856 14725 14717 14721 14736>, + <14824 14727 14712 14717 14733>, + <14798 14726 14707 14714 14730>, + <14777 14720 14703 14710 14727>, + <14760 14714 14699 14706 14724>, + <14746 14709 14696 14703 14721>, + <14739 14705 14693 14700 14718>, + <14734 14701 14691 14697 14715>, + <14731 14697 14686 14691 14709>, + <14727 14693 14682 14682 14699>, + <14722 14694 14683 14681 14697>, + <14721 14698 14699 14706 14725>, + <14723 14708 14724 14742 14764>, + <14728 14760 14764 14778 14793>, + <14748 14813 14809 14814 14820>, + <14792 14812 14814 14818 14821>, + <14813 14795 14799 14790 14765>, + <14810 14778 14781 14757 14717>, + <14804 14764 14762 14732 14711>, + <14797 14750 14742 14711 14708>, + <14788 14739 14726 14701 14704>, + <14778 14730 14714 14697 14699>, + <14771 14723 14705 14692 14693>, + <14764 14720 14700 14685 14686>, + <14756 14716 14695 14679 14679>, + <14748 14712 14692 14676 14675>, + <14739 14707 14689 14673 14672>, + <14728 14702 14688 14673 14671>, + <14716 14699 14688 14682 14686>, + <14706 14695 14688 14691 14703>, + <14698 14688 14686 14689 14699>, + <14689 14678 14680 14683 14689>, + <14676 14670 14675 14685 14696>, + <14659 14656 14663 14680 14695>, + <14660 14644 14649 14657 14663>, + <14662 14639 14643 14653 14655>, + <14671 14652 14639 14648 14649>, + <14771 14666 14628 14631 14632>, + <14877 14720 14621 14621 14619>, + <14877 14707 14627 14641 14662>, + <14889 14638 14639 14662 14685>, + <14886 14642 14644 14671 14697>, + <14789 14655 14653 14678 14705>, + <14789 14655 14653 14678 14705>, + <14789 14655 14653 14678 14705>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12965 13427 14299 14598 14162>, + <14197 15111 16831 17139 16881>, + <14976 16289 17916 18251 17987>, + <15573 17257 19012 19376 20816>, + <16190 18104 19766 20671 22696>, + <16878 18859 20356 22263 23560>, + <17607 19647 20893 23734 24390>, + <18350 20499 21471 24825 25921>, + <19108 21574 22174 25761 27740>, + <19899 23985 23185 26731 28317>, + <20702 26450 24577 27838 28254>, + <21576 26719 25687 28354 28202>, + <22683 25813 26520 28224 28415>, + <24071 25586 27183 28036 28820>, + <25348 26395 27789 28507 29349>, + <26528 27485 28481 30364 30177>, + <27659 28480 28698 31566 31124>, + <28323 29487 28955 32297 32156>, + <28918 30465 29368 32854 33334>, + <29457 31306 29945 32813 34706>, + <30224 32235 30923 32573 36304>, + <31850 33678 32692 32873 37911>, + <33940 35780 36964 38189 40035>, + <37158 38040 39732 42972 41538>, + <41164 40979 36175 37180 36321>, + <46372 43157 29366 24649 23829>, + <52756 40834 25450 21008 20826>, + <55183 33836 22731 20996 28485>, + <50950 30752 21629 21392 35276>, + <44837 30389 22615 25642 36515>, + <41943 30228 24676 31967 36967>, + <40070 31161 27321 32995 36403>, + <39300 33936 31180 32446 34563>, + <39452 36386 34044 32061 33005>, + <39801 38503 35848 31943 32123>, + <40135 40234 37016 31870 31422>, + <40447 41422 37323 31939 30898>, + <40808 42368 37415 32326 30323>, + <41670 42739 37562 33084 30430>, + <42961 42672 37794 37099 34033>, + <43476 42276 37940 41001 37775>, + <43039 40638 36440 38028 36990>, + <42255 38817 33859 31822 34900>, + <39980 41049 35209 35119 38355>, + <38092 41263 37404 37168 40748>, + <35083 36672 33177 33602 35286>, + <33187 36846 33752 28519 29488>, + <30194 23579 28263 23452 22318>, + <20593 20631 29284 27160 24830>, + <11533 13570 30890 26623 27880>, + <11458 14208 29296 38678 29186>, + <11281 33440 32439 26555 21352>, + <11866 33621 30786 21742 17793>, + <26696 45036 26861 18658 15426>, + <26696 45036 26861 18658 15426>, + <26696 45036 26861 18658 15426>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15829 15103 14791 14687 14682>, + <15847 15286 14902 14716 14672>, + <15777 15187 14872 14721 14689>, + <15616 15086 14816 14695 14672>, + <15494 15029 14784 14678 14658>, + <15413 14984 14762 14668 14649>, + <15347 14948 14744 14660 14641>, + <15291 14919 14729 14652 14634>, + <15242 14894 14717 14644 14629>, + <15201 14871 14705 14638 14625>, + <15166 14851 14695 14633 14620>, + <15135 14836 14688 14628 14617>, + <15108 14824 14683 14623 14613>, + <15084 14815 14679 14619 14610>, + <15064 14809 14675 14615 14607>, + <15046 14805 14671 14612 14603>, + <15032 14800 14668 14609 14600>, + <15024 14796 14664 14606 14597>, + <15020 14792 14661 14602 14593>, + <15017 14788 14658 14596 14588>, + <15015 14786 14655 14589 14581>, + <15014 14786 14656 14588 14579>, + <15014 14789 14665 14604 14594>, + <15016 14795 14679 14622 14613>, + <15022 14822 14695 14634 14621>, + <15036 14849 14712 14643 14626>, + <15061 14849 14714 14644 14627>, + <15072 14839 14707 14638 14625>, + <15071 14832 14699 14631 14621>, + <15068 14827 14695 14629 14618>, + <15065 14823 14691 14626 14613>, + <15062 14820 14688 14623 14608>, + <15060 14818 14686 14617 14601>, + <15060 14817 14683 14610 14593>, + <15060 14817 14680 14604 14585>, + <15059 14817 14677 14597 14578>, + <15058 14816 14674 14593 14572>, + <15057 14815 14671 14588 14566>, + <15057 14815 14671 14587 14564>, + <15057 14815 14672 14592 14571>, + <15058 14816 14673 14598 14579>, + <15061 14815 14672 14597 14579>, + <15065 14813 14670 14593 14577>, + <15069 14815 14670 14596 14581>, + <15064 14812 14667 14594 14581>, + <15065 14803 14659 14581 14564>, + <15067 14802 14657 14578 14558>, + <15066 14798 14652 14571 14550>, + <15064 14796 14646 14563 14540>, + <15063 14795 14644 14554 14530>, + <15065 14801 14650 14571 14553>, + <15071 14816 14667 14590 14575>, + <15084 14831 14676 14598 14584>, + <15117 14860 14689 14605 14592>, + <15117 14860 14689 14605 14592>, + <15117 14860 14689 14605 14592>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6378 5862 5622 5323 5124 5064>, + <6371 5878 5619 5322 5125 5064>, + <6371 5891 5615 5321 5126 5064>, + <6375 5902 5611 5318 5126 5062>, + <6380 5910 5607 5315 5125 5061>, + <6383 5913 5605 5312 5124 5059>, + <6385 5909 5604 5309 5122 5056>, + <6389 5904 5604 5306 5118 5054>, + <6391 5904 5603 5303 5115 5052>, + <6395 5910 5602 5299 5113 5052>, + <6398 5914 5602 5295 5112 5051>, + <6395 5913 5596 5293 5110 5049>, + <6383 5910 5590 5291 5109 5048>, + <6378 5907 5589 5289 5108 5048>, + <6385 5905 5586 5287 5107 5048>, + <6394 5902 5585 5286 5106 5048>, + <6395 5901 5583 5287 5106 5048>, + <6391 5900 5582 5288 5106 5049>, + <6388 5902 5584 5288 5106 5049>, + <6391 5913 5591 5288 5107 5049>, + <6395 5922 5593 5289 5107 5049>, + <6395 5919 5591 5292 5109 5050>, + <6390 5911 5588 5295 5110 5050>, + <6385 5908 5589 5297 5111 5051>, + <6393 5909 5591 5299 5112 5052>, + <6411 5909 5593 5302 5114 5053>, + <6417 5912 5599 5307 5115 5054>, + <6408 5919 5605 5311 5116 5055>, + <6396 5923 5607 5313 5118 5057>, + <6389 5926 5609 5315 5121 5059>, + <6382 5927 5610 5318 5124 5061>, + <6380 5927 5608 5323 5127 5062>, + <6396 5925 5607 5327 5129 5064>, + <6417 5925 5612 5330 5132 5066>, + <6418 5927 5619 5334 5135 5068>, + <6406 5929 5620 5338 5137 5069>, + <6396 5928 5617 5343 5138 5070>, + <6395 5923 5616 5346 5139 5071>, + <6396 5921 5618 5348 5140 5072>, + <6396 5920 5620 5349 5141 5073>, + <6400 5921 5625 5349 5142 5074>, + <6405 5924 5635 5348 5144 5075>, + <6411 5930 5636 5353 5146 5077>, + <6417 5940 5638 5359 5149 5078>, + <6422 5942 5655 5362 5152 5082>, + <6421 5945 5651 5370 5155 5083>, + <6407 5953 5654 5375 5156 5082>, + <6425 5954 5648 5382 5155 5083>, + <6444 5964 5650 5380 5155 5084>, + <6460 5993 5662 5381 5156 5085>, + <6532 6046 5736 5391 5158 5086>, + <6568 6121 5799 5396 5162 5089>, + <6672 6208 5947 5424 5167 5095>, + <6773 6267 5962 5464 5176 5103>, + <6773 6267 5962 5464 5176 5103>, + <6773 6267 5962 5464 5176 5103>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10137 10770 11146 11068 10883 10828>, + <10210 10791 11101 11041 10865 10813>, + <10292 10805 11057 11007 10829 10796>, + <10374 10812 11017 10971 10788 10777>, + <10444 10814 10980 10936 10752 10759>, + <10490 10811 10950 10908 10731 10740>, + <10512 10800 10924 10881 10717 10721>, + <10527 10786 10902 10856 10704 10701>, + <10542 10775 10880 10836 10690 10681>, + <10557 10765 10860 10815 10660 10661>, + <10574 10760 10847 10803 10644 10643>, + <10601 10770 10838 10798 10641 10624>, + <10642 10792 10833 10795 10638 10609>, + <10682 10814 10839 10794 10634 10600>, + <10723 10840 10863 10795 10628 10593>, + <10759 10872 10891 10797 10622 10591>, + <10779 10928 10927 10814 10614 10593>, + <10793 10990 10972 10841 10609 10597>, + <10804 11006 11043 10880 10626 10599>, + <10817 11006 11129 10936 10678 10602>, + <10827 11007 11146 10994 10746 10621>, + <10828 11011 11101 11063 10879 10757>, + <10817 11016 11064 11104 10968 10862>, + <10796 11021 11073 11062 10919 10846>, + <10642 11029 11094 10985 10829 10812>, + <10323 11038 11112 10965 10810 10799>, + <10148 11047 11130 10962 10815 10800>, + <9914 11057 11145 10961 10823 10807>, + <9713 11032 11157 10993 10847 10823>, + <9695 10762 11167 11042 10882 10845>, + <9691 10522 11174 11054 10899 10866>, + <9687 10632 11179 11055 10913 10892>, + <9683 10904 11181 11058 10920 10910>, + <9679 10985 11180 11080 10925 10924>, + <9676 10948 11177 11105 10931 10932>, + <9673 10897 11167 11109 10922 10929>, + <9670 10850 11136 11108 10896 10913>, + <9668 10797 11101 11105 10884 10894>, + <9667 10708 11067 11095 10889 10864>, + <9666 10447 11022 11084 10897 10835>, + <9665 10183 10946 11076 10898 10825>, + <9664 9936 10833 11070 10899 10820>, + <9663 9704 10729 11060 10885 10819>, + <9662 9686 10576 11030 10868 10806>, + <9661 9675 10176 10983 10837 10732>, + <9659 9667 9926 10985 10757 10616>, + <9657 9664 9778 10961 10701 10594>, + <9656 9661 9698 10957 10727 10593>, + <9653 9656 9668 10957 10763 10584>, + <9650 9652 9656 10975 10739 10583>, + <9649 9649 9652 10914 10697 10586>, + <9648 9648 9651 10818 10654 10538>, + <9648 9648 9650 10677 10568 10444>, + <9648 9649 9651 10474 10439 10305>, + <9648 9649 9651 10474 10439 10305>, + <9648 9649 9651 10474 10439 10305>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13480 13351 13318 13291 13280 13279>, + <13484 13356 13319 13291 13282 13280>, + <13486 13360 13321 13292 13283 13281>, + <13487 13363 13322 13293 13285 13282>, + <13488 13367 13324 13294 13286 13283>, + <13488 13369 13325 13295 13287 13284>, + <13487 13371 13326 13296 13287 13284>, + <13485 13373 13327 13296 13288 13285>, + <13483 13374 13328 13297 13288 13286>, + <13479 13374 13328 13297 13288 13286>, + <13474 13375 13329 13298 13288 13287>, + <13471 13374 13330 13298 13289 13288>, + <13467 13372 13331 13299 13291 13288>, + <13463 13370 13331 13300 13292 13289>, + <13457 13367 13330 13300 13292 13290>, + <13450 13365 13329 13301 13293 13291>, + <13443 13365 13327 13302 13293 13291>, + <13434 13365 13325 13303 13293 13292>, + <13425 13364 13325 13302 13294 13292>, + <13416 13358 13326 13301 13295 13293>, + <13408 13352 13326 13300 13296 13293>, + <13400 13347 13321 13300 13295 13293>, + <13392 13343 13316 13300 13293 13292>, + <13386 13340 13313 13298 13289 13288>, + <13385 13337 13311 13293 13285 13283>, + <13386 13335 13310 13291 13283 13282>, + <13388 13332 13308 13290 13283 13282>, + <13388 13330 13307 13289 13282 13283>, + <13390 13327 13306 13289 13282 13282>, + <13394 13321 13306 13290 13281 13281>, + <13403 13317 13305 13290 13281 13280>, + <13416 13317 13304 13289 13281 13279>, + <13434 13319 13304 13289 13281 13279>, + <13456 13322 13304 13289 13281 13281>, + <13484 13324 13304 13289 13282 13283>, + <13518 13326 13304 13289 13283 13283>, + <13558 13329 13305 13289 13283 13283>, + <13604 13333 13306 13289 13283 13282>, + <13657 13338 13307 13289 13283 13282>, + <13717 13347 13309 13288 13283 13282>, + <13786 13358 13310 13289 13283 13283>, + <13863 13372 13312 13289 13284 13284>, + <13942 13391 13316 13289 13284 13283>, + <14034 13426 13321 13289 13283 13282>, + <14152 13485 13319 13287 13281 13281>, + <14328 13580 13338 13291 13286 13286>, + <14465 13680 13364 13293 13289 13288>, + <14625 13866 13417 13295 13291 13290>, + <15006 14266 13572 13298 13293 13292>, + <16267 15608 14197 13300 13293 13291>, + <19537 20170 16932 13298 13288 13289>, + <28038 36692 29998 13299 13289 13292>, + <53462 65535 65535 13307 13294 13294>, + <65535 65535 65535 13329 13300 13304>, + <65535 65535 65535 13329 13300 13304>, + <65535 65535 65535 13329 13300 13304>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16660 16583 16536 16484 16471 16477>, + <16712 16601 16552 16483 16471 16478>, + <16793 16638 16570 16482 16472 16480>, + <16881 16681 16586 16481 16472 16481>, + <16957 16717 16597 16480 16472 16482>, + <16999 16732 16600 16480 16472 16483>, + <17010 16732 16598 16479 16472 16483>, + <17015 16731 16593 16479 16471 16484>, + <17018 16729 16587 16479 16471 16483>, + <17018 16723 16581 16479 16470 16482>, + <17019 16719 16579 16480 16469 16480>, + <17023 16723 16580 16482 16470 16480>, + <17032 16732 16582 16486 16472 16480>, + <17036 16745 16587 16490 16474 16480>, + <17032 16765 16600 16496 16476 16480>, + <17023 16784 16616 16503 16480 16481>, + <17005 16800 16640 16513 16484 16483>, + <16965 16813 16667 16526 16491 16486>, + <16921 16810 16694 16549 16499 16491>, + <16881 16769 16720 16580 16510 16499>, + <16842 16721 16720 16594 16529 16513>, + <16808 16682 16663 16601 16567 16552>, + <16779 16646 16599 16604 16593 16579>, + <16750 16618 16560 16564 16557 16548>, + <16712 16596 16528 16491 16489 16491>, + <16673 16580 16514 16470 16469 16474>, + <16650 16568 16506 16466 16464 16471>, + <16636 16559 16502 16465 16463 16470>, + <16628 16552 16501 16467 16465 16470>, + <16629 16546 16501 16471 16469 16471>, + <16631 16540 16500 16476 16474 16474>, + <16634 16529 16497 16481 16483 16483>, + <16637 16511 16496 16486 16493 16494>, + <16640 16506 16495 16493 16502 16511>, + <16645 16515 16495 16498 16510 16526>, + <16652 16528 16498 16498 16510 16526>, + <16660 16542 16509 16495 16509 16521>, + <16669 16559 16520 16492 16507 16515>, + <16678 16574 16531 16484 16496 16506>, + <16682 16588 16538 16477 16484 16500>, + <16685 16598 16538 16481 16489 16505>, + <16686 16602 16536 16489 16501 16518>, + <16683 16604 16536 16485 16496 16511>, + <16677 16602 16534 16476 16477 16485>, + <16678 16599 16523 16458 16447 16451>, + <16678 16590 16538 16469 16464 16480>, + <16675 16590 16559 16486 16499 16522>, + <16671 16601 16588 16513 16540 16566>, + <16680 16613 16628 16553 16579 16607>, + <16778 16691 16688 16585 16601 16617>, + <17099 17202 17194 16539 16528 16528>, + <17930 20734 25139 16516 16491 16496>, + <20772 44829 65535 16539 16487 16493>, + <22519 65535 65535 16594 16487 16484>, + <22519 65535 65535 16594 16487 16484>, + <22519 65535 65535 16594 16487 16484>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13752 18604 21299 21751 18926 19474>, + <14600 18732 21008 21608 20300 19951>, + <15454 18838 20690 21437 21459 20594>, + <16258 18929 20393 21249 22349 21246>, + <16957 19009 20166 21061 22907 21748>, + <17494 19083 20055 20884 23079 21943>, + <17908 19157 20058 20647 22853 21906>, + <18237 19212 20075 20341 22381 21835>, + <18323 19186 19927 19968 21519 21810>, + <18288 18938 19460 19432 19979 21791>, + <18253 18594 18993 18962 19355 21743>, + <18370 18082 18601 18535 19765 21362>, + <18800 17530 18172 18076 20206 20847>, + <19289 17401 17563 17545 20065 20526>, + <19863 17440 16812 16931 19455 20243>, + <20452 17541 16432 16486 18733 19864>, + <20863 18635 16269 16176 17709 19230>, + <21188 20602 16189 15931 16829 18511>, + <21433 21664 17255 15700 16436 17756>, + <21591 22223 19948 15487 16172 17005>, + <21733 22677 21820 15918 16194 16770>, + <21990 23177 23070 20058 17015 16851>, + <22513 23613 23970 23570 18253 17085>, + <23002 23777 24627 24142 20222 18411>, + <22627 23794 25130 24453 22454 20727>, + <21183 23843 25149 24252 22777 21929>, + <19900 24011 24759 22830 21872 22632>, + <16708 24211 24504 21918 20745 22918>, + <13921 24133 24584 22140 19446 21208>, + <13687 22045 24770 22457 18240 18395>, + <13637 20121 25104 22476 17922 17255>, + <13628 19989 25841 22368 17815 16656>, + <13778 20308 26210 22347 17818 16464>, + <13996 20900 26137 22903 18623 17890>, + <14111 21380 25985 23850 20061 20139>, + <14186 21848 25762 24882 21735 21601>, + <14245 22501 25401 26122 23842 22818>, + <14285 23243 25202 26547 24601 23223>, + <14321 23558 25159 25902 24034 23158>, + <14401 22865 25105 25017 23338 23031>, + <14599 21729 24617 24340 23013 22663>, + <14737 18761 23786 23783 22796 22096>, + <14608 15463 23821 24211 24617 24139>, + <14265 15232 23274 24112 25558 25347>, + <13663 14715 17194 22896 22085 23116>, + <13364 13938 16327 22963 19357 17174>, + <13424 13923 15594 21366 17319 15360>, + <13275 13636 14729 20051 16095 14451>, + <12729 13796 14343 18858 15628 14157>, + <11889 12807 13994 18265 15149 13868>, + <10615 10664 11387 18539 15330 14832>, + <9988 9398 9252 19423 16332 15430>, + <9850 9034 8836 19100 16620 14682>, + <13484 11104 8771 19397 17188 17110>, + <13484 11104 8771 19397 17188 17110>, + <13484 11104 8771 19397 17188 17110>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5740 5326 5185 5055 5017 5011>, + <5753 5337 5187 5054 5017 5012>, + <5762 5346 5188 5054 5018 5013>, + <5768 5352 5188 5053 5020 5014>, + <5771 5356 5187 5053 5020 5015>, + <5772 5357 5186 5053 5021 5016>, + <5770 5355 5183 5052 5021 5016>, + <5763 5351 5179 5052 5021 5017>, + <5757 5347 5175 5052 5021 5017>, + <5751 5342 5171 5052 5021 5017>, + <5745 5338 5169 5052 5020 5017>, + <5743 5336 5168 5053 5021 5018>, + <5741 5335 5167 5054 5023 5018>, + <5738 5335 5168 5055 5024 5019>, + <5734 5336 5169 5057 5025 5019>, + <5727 5339 5171 5060 5027 5020>, + <5718 5342 5176 5063 5028 5021>, + <5703 5345 5181 5067 5030 5022>, + <5688 5344 5188 5074 5033 5024>, + <5674 5328 5196 5081 5037 5027>, + <5660 5310 5196 5085 5043 5031>, + <5652 5297 5176 5087 5053 5041>, + <5646 5286 5154 5087 5059 5048>, + <5641 5277 5141 5075 5046 5037>, + <5633 5271 5132 5051 5023 5016>, + <5624 5267 5128 5044 5016 5011>, + <5619 5266 5126 5042 5014 5011>, + <5621 5265 5125 5042 5014 5010>, + <5625 5264 5125 5043 5014 5010>, + <5635 5261 5126 5045 5015 5009>, + <5655 5260 5127 5047 5016 5010>, + <5678 5262 5128 5048 5019 5012>, + <5704 5268 5129 5050 5022 5015>, + <5735 5276 5131 5053 5026 5021>, + <5770 5289 5134 5055 5029 5027>, + <5809 5307 5139 5056 5029 5027>, + <5852 5327 5146 5056 5029 5026>, + <5897 5352 5155 5055 5029 5024>, + <5947 5379 5165 5054 5026 5022>, + <6000 5410 5176 5052 5022 5020>, + <6057 5443 5187 5054 5024 5022>, + <6120 5476 5200 5057 5029 5027>, + <6187 5515 5220 5057 5027 5024>, + <6267 5572 5246 5056 5022 5016>, + <6373 5651 5264 5051 5012 5007>, + <6532 5761 5327 5059 5021 5019>, + <6657 5857 5393 5067 5034 5033>, + <6806 6032 5498 5078 5047 5047>, + <7159 6390 5711 5092 5060 5060>, + <8222 7515 6288 5103 5066 5063>, + <10728 10987 8549 5089 5041 5035>, + <16865 23299 20036 5089 5033 5029>, + <34756 65535 65535 5114 5036 5031>, + <65535 65535 65535 5180 5042 5038>, + <65535 65535 65535 5180 5042 5038>, + <65535 65535 65535 5180 5042 5038>; + }; + +}; From c072b652b11a84e416987d4e2d17d5cb86a31e6b Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Tue, 15 Aug 2023 09:52:40 +0800 Subject: [PATCH 1183/1247] dts:Open 2th touchscreen USB detected feature. cancunn/mt6855/disp Open 2th touchscreen USB detected feature. Change-Id: I9528dce9834ded4f3ac4bec284433f8db0134dbc Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2709503 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: gaoyx9 Submit-Approved: gaoyx9 Tested-by: gaoyx9 Reviewed-by: Huosheng Liao --- qcom/fogo-touchscreen.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 356270e26ef5..8d05833fb578 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -177,6 +177,7 @@ panel = <&dsi_txd_nt36528_656_hd_plus_120_video>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; + novatek,usb_charger; status = "ok"; }; From de76ab4f0eae04a7d772e922079fddc47640d3bf Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 16 Aug 2023 17:14:56 +0800 Subject: [PATCH 1184/1247] config first supply battery ATL parameter config first supply battery ATL parameter for fogo 5G row and fogo 5G na Change-Id: I3305da628789f0324a7fd4b72942900201e43828 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2710762 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 4 ++-- qcom/fogos-charger.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 46ed98a87d2a..b9492e92705f 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -3,9 +3,9 @@ &mot_batterydata { - df-serialnum = "SB18D87863"; + df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-qb50-swd-5000mah.dtsi" + #include "qg-batterydata-qf50-atl-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 46ed98a87d2a..b9492e92705f 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -3,9 +3,9 @@ &mot_batterydata { - df-serialnum = "SB18D87863"; + df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; - #include "qg-batterydata-qb50-swd-5000mah.dtsi" + #include "qg-batterydata-qf50-atl-5000mah.dtsi" }; &pm7250b_charger { From c18fe363b15885543a92e17a8b6cc676fbfb7b37 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 16 Aug 2023 18:43:10 +0800 Subject: [PATCH 1185/1247] arm/dts: config battery charging parameter config battery charging parameter for fogo 5G row and fogo 5G na Change-Id: I1ac460141ac9f1936f7c62fb54602a71f52dd456 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2710844 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guocheng Wang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 21 +++++++++++---------- qcom/fogor-charger.dtsi | 21 +++++++++++---------- qcom/fogos-charger.dtsi | 21 +++++++++++---------- 3 files changed, 33 insertions(+), 30 deletions(-) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index eae33c30b17a..949632e57f43 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -79,20 +79,21 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4200 243 534>, - <4500 243 534>, - <4500 243 534>, - <4530 506 960>, - <4530 560 1010>, - <4530 965 1160>, - <4200 243 575>; + qcom,mmi-ffc-zones = <4200 243 407>, + <4500 243 407>, + <4500 243 407>, + <4530 523 659>, + <4530 590 751>, + <4530 871 1035>, + <4200 243 407>; qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <15000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; - qcom,noffc-chg-iterm-45c = <670>; - qcom,noffc-qg-iterm = <500>; + qcom,noffc-chg-iterm-45c = <487>; + qcom,noffc-qg-iterm = <407>; + qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; }; @@ -111,7 +112,7 @@ "recharge_soc", "force_recharge", "charge_done"; - qcom,qg-iterm-ma = <500>; + qcom,qg-iterm-ma = <407>; }; &pm6125_gpios { diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index b9492e92705f..791b0d34cd5b 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -80,21 +80,22 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4200 243 534>, - <4500 243 534>, - <4500 243 534>, - <4530 506 960>, - <4530 560 1010>, - <4530 965 1160>, - <4200 243 575>; + qcom,mmi-ffc-zones = <4200 243 407>, + <4500 243 407>, + <4500 243 407>, + <4530 523 659>, + <4530 590 751>, + <4530 871 1035>, + <4200 243 407>; qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; mmi,hvdcp2-force-9v; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; - qcom,noffc-chg-iterm-45c = <670>; - qcom,noffc-qg-iterm = <500>; + qcom,noffc-chg-iterm-45c = <487>; + qcom,noffc-qg-iterm = <407>; + qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; }; @@ -113,6 +114,6 @@ "recharge_soc", "force_recharge", "charge_done"; - qcom,qg-iterm-ma = <500>; + qcom,qg-iterm-ma = <407>; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index b9492e92705f..791b0d34cd5b 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -80,21 +80,22 @@ <35 0 4000 4000>, <45 0 4000 4000>, <60 4200 4000 0>; - qcom,mmi-ffc-zones = <4200 243 534>, - <4500 243 534>, - <4500 243 534>, - <4530 506 960>, - <4530 560 1010>, - <4530 965 1160>, - <4200 243 575>; + qcom,mmi-ffc-zones = <4200 243 407>, + <4500 243 407>, + <4500 243 407>, + <4530 523 659>, + <4530 590 751>, + <4530 871 1035>, + <4200 243 407>; qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; mmi,hvdcp2-force-9v; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; - qcom,noffc-chg-iterm-45c = <670>; - qcom,noffc-qg-iterm = <500>; + qcom,noffc-chg-iterm-45c = <487>; + qcom,noffc-qg-iterm = <407>; + qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; }; @@ -113,6 +114,6 @@ "recharge_soc", "force_recharge", "charge_done"; - qcom,qg-iterm-ma = <500>; + qcom,qg-iterm-ma = <407>; }; From 9ac35a0270b9edc144e3955dd2ac6de2e57203a4 Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Wed, 16 Aug 2023 10:28:24 +0800 Subject: [PATCH 1186/1247] : [dts] Add new channelId for DoCoMo and New Zealand. Changes: 1.DoCoMo ((CR)) - ro.carrier=docomo - channelid = 218 (decimal) 2.Spark and New Zealand ((CR)) - ro.carrier=retanz - channelid = 219 (decimal) doc: https://docs.google.com/spreadsheets/d/1cFLnFjai0L0q2qvPR6p19GUbBxlx4HoK5JgFc7uqSSI/edit#gid=3&range=F159:F160 Change-Id: I8007483e2ab4a6377672b6fb691253a652b7cb37 Signed-off-by: ZhengYongdong Reviewed-on: https://gerrit.mot.com/2710364 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key Reviewed-by: Kunpeng Chen --- qcom/carrier-channel-ids.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 3174d8e16f8b..6b78b8051dfc 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -232,8 +232,8 @@ "retjio", /* 215 */ "ymobile", /* 216 */ "lguplus", /* 217 */ - "undefined", /* 218 */ - "undefined", /* 219 */ + "docomo", /* 218 */ + "retanz", /* 219 */ "undefined", /* 220 */ "undefined", /* 221 */ "undefined", /* 222 */ From d95e7b0fb1b4841bc967c81f080f547ec854c470 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Fri, 18 Aug 2023 11:14:10 +0800 Subject: [PATCH 1187/1247] fogor/sensor: sx937x sarsensor bringup 1.sx937x sarsensor bringup 2.change dts about sx937x Change-Id: I699be8832631153304041338179ff313692823e4 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2712846 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-sensors.dtsi | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/qcom/fogo-sensors.dtsi b/qcom/fogo-sensors.dtsi index b41194951bb2..77b6f0a0fd6f 100755 --- a/qcom/fogo-sensors.dtsi +++ b/qcom/fogo-sensors.dtsi @@ -90,9 +90,9 @@ 0x8024 0x7F00 /*PHEN, Disable all Phases*/ 0x4004 0x70 /*irq mask*/ 0x8020 0x32 - 0x8028 0x85E + 0x8028 0x886 0x8034 0x85E - 0x8040 0x85E + 0x8040 0x83E 0x804C 0x85E 0x8058 0x85E 0x8064 0x85E @@ -106,19 +106,19 @@ 0x806C 0xFFF9EF 0x8078 0xF7F9FF 0x8084 0xFFFFFF - 0x8098 0x4E37 - 0x80B8 0x4E37 - 0x80D8 0x4E37 - 0x80F8 0x4E37 - 0x8118 0x4E37 + 0x8098 0x5A37 + 0x80B8 0x3030 + 0x80D8 0x5537 + 0x80F8 0x2020 + 0x8118 0x3030 0x8138 0xFF 0x8158 0xFF 0x8178 0xC8 - 0x80A0 0xE1 - 0x80C0 0xE1 + 0x80A0 0x40400E1 + 0x80C0 0x40400E1 0x80E0 0xE0 0x8100 0xE2 - 0x8120 0xE2 + 0x8120 0x20200E2 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -126,11 +126,11 @@ 0x818C 0x8000016 0x8190 0x0 0x8194 0x0 - 0x8090 0x54C45000 - 0x80B0 0x2AE27000 - 0x80D0 0x54D45000 - 0x80F0 0x2AE27000 - 0x8110 0x2AE27000 + 0x8090 0x54B85000 + 0x80B0 0x2AE25000 + 0x80D0 0x54C45000 + 0x80F0 0x2AE25000 + 0x8110 0x2ADE5000 0x8130 0x2AD67000 0x8150 0x2AD67000 0x8170 0x2AD66000 From 682b1c831147ce11e56b91d3967cf6e1acdd9b0f Mon Sep 17 00:00:00 2001 From: ontim52 Date: Thu, 17 Aug 2023 19:30:32 +0800 Subject: [PATCH 1188/1247] dtsi: update 2nd icnl9916c init code 1. update 2nd icnl9916c init code. 2. update 2nd icnl9916c init code. Change-Id: I6ee0e70edb1d90f1c7b6c733316c80e706431c13 Signed-off-by: ontim52 Reviewed-on: https://gerrit.mot.com/2712259 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- .../dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 0310a60e4b68..93227a5b8460 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -62,7 +62,6 @@ qcom,mdss-dsi-on-command = [ 39 01 00 00 00 00 04 f0 99 16 0C 39 01 00 00 00 00 05 bd a1 0a 52 a6 - 39 01 00 00 00 00 04 f0 00 00 00 39 01 00 00 00 00 03 35 00 00 39 01 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 @@ -71,16 +70,14 @@ 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF - 39 00 00 00 00 00 04 F0 00 00 00 39 01 00 00 78 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 39 01 00 00 00 00 03 6D 02 00 + 39 01 00 00 00 00 05 BD A1 0A 52 AE + 39 01 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 39 01 00 00 00 00 04 f0 99 16 0C - 39 01 00 00 00 00 05 bd a1 0a 52 ae - 39 01 00 00 00 00 04 f0 00 00 00 39 01 00 00 00 00 03 6d 25 00 39 01 00 00 10 00 03 28 00 00 39 01 00 00 64 00 03 10 00 00 From e259fafc33ee7878e37f567b6f91e86e07ff222a Mon Sep 17 00:00:00 2001 From: zhengyd2 Date: Wed, 23 Aug 2023 12:14:18 +0800 Subject: [PATCH 1189/1247] [dts]Add new channelID for China Broadnet (CBN) Changes: - ro.carrier = cbncn - channelid = 220 (decimal) doc: https://docs.google.com/spreadsheets/d/1cFLnFjai0L0q2qvPR6p19GUbBxlx4HoK5JgFc7uqSSI/edit#gid=3&range=C161 Change-Id: I88243c63e706228d1ef85383c1e998e90b9903ad Signed-off-by: zhengyd2 Reviewed-on: https://gerrit.mot.com/2717451 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Tarciano Facco Pegoraro Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/carrier-channel-ids.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/carrier-channel-ids.dtsi b/qcom/carrier-channel-ids.dtsi index 6b78b8051dfc..b3b7ece1d7e8 100644 --- a/qcom/carrier-channel-ids.dtsi +++ b/qcom/carrier-channel-ids.dtsi @@ -234,7 +234,7 @@ "lguplus", /* 217 */ "docomo", /* 218 */ "retanz", /* 219 */ - "undefined", /* 220 */ + "cbncn", /* 220 */ "undefined", /* 221 */ "undefined", /* 222 */ "undefined", /* 223 */ From bf7aa680a01ecd9dcbb3284ff0819525f7c6fa9c Mon Sep 17 00:00:00 2001 From: lixuehan Date: Mon, 21 Aug 2023 14:34:42 +0800 Subject: [PATCH 1190/1247] dts/TP: Enable TP gesture feature. Fogo 5G NA Enable TP gesture feature. Change-Id: I709a0b24abfda592568Montana75b90206c38ef4300b Signed-off-by: lixuehan Reviewed-on: https://gerrit.mot.com/2714711 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-touchscreen.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 8d05833fb578..7296889e73fa 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -177,6 +177,8 @@ panel = <&dsi_txd_nt36528_656_hd_plus_120_video>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; + novatek,supported_gesture_type = <0x06>; + novatek,report_gesture_key; novatek,usb_charger; status = "ok"; }; @@ -194,7 +196,9 @@ pinctrl-names = "pmx_ts_int_active","pmx_ts_int_suspend_high"; pinctrl-0 = <&ts_active>; pinctrl-1 = <&ts_int_suspend_high>; + ilitek,supported_gesture_type = <0x06>; ilitek,report_gesture_key; + ilitek,rst-pull-flag; status = "ok"; }; }; From 251cf486620c5e0879b75d5f1118772fbd66b7ec Mon Sep 17 00:00:00 2001 From: qiutong Date: Fri, 25 Aug 2023 12:07:55 +0800 Subject: [PATCH 1191/1247] drivers/TP: 2ed nt36528 support high resolution 4x. Fogo 5G NA 2ed Touch. support high resolution 4x. Change-Id: I15435d246220abf38560c5495b744d3a6e6b9556 Signed-off-by: qiutong Reviewed-on: https://gerrit.mot.com/2720642 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-touchscreen.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 7296889e73fa..85ebb7a802eb 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -173,7 +173,7 @@ interrupts = <22 0x2001>; novatek,reset-gpio = <&tlmm 21 0x00>; novatek,irq-gpio = <&tlmm 22 0x2001>; - novatek,def-max-resolution = <720 1612>; + novatek,def-max-resolution = <2880 6448>; panel = <&dsi_txd_nt36528_656_hd_plus_120_video>; novatek,swrst-n8-addr = <0x03F0FE>; novatek,spi-rd-fast-addr = <0x03F310>; From 27371b4bc58307f36151c37bc34b752b113cd64f Mon Sep 17 00:00:00 2001 From: houdz1 Date: Fri, 25 Aug 2023 15:00:15 +0800 Subject: [PATCH 1192/1247] dts/panel: fogo: correct the panel name Correct the panel name. Then the name of qdcm file is related to this panel name. Change-Id: Ifcaf984cfc1c5500134517ac38b97674ee805119 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2720755 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 2 +- qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index c0d8fd706a05..108a72733a65 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -1,7 +1,7 @@ &mdss_mdp { dsi_boe_ili9883c_656_hd_plus_120_video: qcom,mdss_dsi_boe_ili9883c_656_hd_plus_120_video { qcom,mdss-dsi-panel-name = - "mipi_mot_vid_boe_ili9883c_hdp_652_120"; + "mipi_mot_vid_boe_ili9883c_hdp_656_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi index 045d9be76312..75051b6e8bed 100644 --- a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -1,7 +1,7 @@ &mdss_mdp { dsi_txd_nt36528_656_hd_plus_120_video: qcom,mdss_dsi_txd_nt36528_656_hd_plus_120_video { qcom,mdss-dsi-panel-name = - "mipi_mot_vid_txd_nt36528_hdp_652_120"; + "mipi_mot_vid_txd_nt36528_hdp_656_120"; qcom,mdss-dsi-panel-type = "dsi_video_mode"; qcom,dsi-ctrl-num = <0>; qcom,dsi-phy-num = <0>; From 8162d63fa9322d7529fa553930da8e3c47dfe8b5 Mon Sep 17 00:00:00 2001 From: liaohj Date: Thu, 31 Aug 2023 10:04:49 +0800 Subject: [PATCH 1193/1247] devicetree:fogo5gna:modify snd card name fogo5g na need to support hi-res modify snd card name to diff other same device product. Change-Id: I85e9a7807046b58d3ad5b9e393807b90b126a402 Signed-off-by: liaohj Reviewed-on: https://gerrit.mot.com/2726136 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wanlong Zhou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi index b41b49dbbe78..cb918e6f05a8 100644 --- a/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi +++ b/qcom/fogo-audio-wcd9370-aw882xx-acf-dual-overlay.dtsi @@ -270,7 +270,7 @@ }; &holi_snd { - qcom,model = "holi-9370_aw882xx-snd-card"; + qcom,model = "holi-fogo5gna-snd-card"; qcom,msm-mi2s-master = <1>, <1>, <1>, <1>; qcom,wcn-btfm = <1>; qcom,tdm-max-slots = <4>; From ea8cb6bd3f47de9a2cf2bb871990ea841032b4df Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 31 Aug 2023 16:01:22 +0800 Subject: [PATCH 1194/1247] dts/panel: fogo: change the physical size timing of boe panel. AA size=67.932*152.0922 Change the physical size. Change-Id: If1f7700442059de63acc31692061c3c97f850cdf Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2726462 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index 108a72733a65..e6ab8d16cc7e 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -24,7 +24,7 @@ qcom,adjust-timer-wakeup-ms = <1>; qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <151>; + qcom,mdss-pan-physical-height-dimension = <152>; qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; From ace589852bcce4b9f9ad73e4b9add5fc3d8f316e Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 31 Aug 2023 16:04:20 +0800 Subject: [PATCH 1195/1247] dts/panel: fogo: change the timing of txd panel 1.change the reset sequence. 2.change the physical size. 3.change the timing of 11/29. 4.remove the delay time of 10/28 5. add delay time between avee and reset high. Change-Id: I6d3c84b7afa3de2d2f81f208cbb7502e32b7d6f9 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2726463 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- ...dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi | 12 ++++++------ qcom/fogo-display.dtsi | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi index 75051b6e8bed..3d9f9c6c2d0e 100644 --- a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -19,12 +19,12 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <0 5>, <1 5>, <0 5>, <1 10>; qcom,mdss-dsi-tx-eot-append; qcom,adjust-timer-wakeup-ms = <1>; qcom,mdss-pan-physical-width-dimension = <68>; - qcom,mdss-pan-physical-height-dimension = <151>; + qcom,mdss-pan-physical-height-dimension = <152>; qcom,mdss-dsi-cabc-mv-command = [15 00 00 00 00 00 02 55 03]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; @@ -51,13 +51,13 @@ 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 35 00 - 05 01 00 00 7d 00 01 11 - 05 01 00 00 19 00 01 29 + 05 01 00 00 00 00 01 29 + 05 01 00 00 50 00 01 11 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 05 01 00 00 19 00 01 28 - 05 01 00 00 7d 00 01 10 + 05 01 00 00 00 00 01 28 + 05 01 00 00 00 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index c0335a0a1978..4ec46edd1507 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -99,7 +99,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-on-sleep = <3>; qcom,supply-pre-off-sleep = <30>; - qcom,supply-post-on-sleep = <3>; + qcom,supply-post-on-sleep = <5>; qcom,supply-post-off-sleep = <3>; }; From ae2e86bb8cf022c75347cf40d427b4f58d1bcced Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 8 Sep 2023 19:55:53 +0800 Subject: [PATCH 1196/1247] arm/dts: add 2st supply battery parameter add 2st supply battery parameter for fogo 5G ROW Change-Id: Iec78e6661c3b2ea797993a55b5077296266b69bb Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2734445 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + qcom/qg-batterydata-qf50-scud-5000mah.dtsi | 1030 ++++++++++++++++++++ 3 files changed, 1032 insertions(+) create mode 100644 qcom/qg-batterydata-qf50-scud-5000mah.dtsi diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 791b0d34cd5b..be5188daec62 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" + #include "qg-batterydata-qf50-scud-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 791b0d34cd5b..be5188daec62 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" + #include "qg-batterydata-qf50-scud-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-qf50-scud-5000mah.dtsi b/qcom/qg-batterydata-qf50-scud-5000mah.dtsi new file mode 100644 index 000000000000..6b4ba6897c9e --- /dev/null +++ b/qcom/qg-batterydata-qf50-scud-5000mah.dtsi @@ -0,0 +1,1030 @@ +/* Copyright (c) 2018, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +qcom,qf50-scud-5000mah { + /* 6691233_Ontim_SQ432_SCUD_5000mAH_PM7250B_averaged_MasterSlave_Sep6th2023 */ + serialnum = "SB18D96853"; + qcom,sdam-magic-number = <0x18D96853>; + qcom,max-voltage-uv = <4530000>; + qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-SCUD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4689 4943 5077 5134 5149>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4863 4980 5085 5057 5075 5080>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44464 44656 44770 44825 44840>, + <44247 44457 44567 44590 44595>, + <44029 44254 44372 44395 44395>, + <43812 44049 44175 44213 44213>, + <43596 43839 43974 44023 44026>, + <43373 43621 43767 43820 43827>, + <43141 43395 43550 43609 43618>, + <42904 43161 43320 43385 43396>, + <42664 42915 43080 43150 43161>, + <42420 42661 42833 42907 42918>, + <42180 42410 42578 42655 42668>, + <41944 42162 42325 42401 42414>, + <41712 41916 42073 42146 42161>, + <41484 41675 41824 41892 41909>, + <41262 41440 41580 41644 41661>, + <41044 41211 41341 41401 41419>, + <40836 40988 41111 41167 41183>, + <40633 40773 40889 40943 40953>, + <40439 40566 40676 40727 40731>, + <40250 40365 40475 40523 40522>, + <40067 40167 40278 40331 40332>, + <39891 39972 40059 40109 40118>, + <39723 39776 39814 39807 39833>, + <39560 39568 39574 39519 39548>, + <39403 39356 39331 39330 39357>, + <39250 39166 39114 39183 39211>, + <39109 38994 38979 39052 39072>, + <38980 38848 38885 38934 38931>, + <38861 38738 38798 38823 38801>, + <38754 38647 38707 38710 38689>, + <38656 38569 38621 38602 38589>, + <38568 38498 38541 38507 38496>, + <38497 38434 38466 38423 38411>, + <38435 38373 38395 38344 38329>, + <38380 38318 38328 38268 38251>, + <38330 38265 38263 38195 38175>, + <38284 38218 38200 38124 38096>, + <38230 38168 38138 38055 38015>, + <38169 38099 38061 37973 37923>, + <38099 38004 37960 37860 37803>, + <38014 37895 37843 37732 37669>, + <37909 37762 37712 37608 37538>, + <37786 37611 37564 37476 37402>, + <37633 37431 37388 37307 37232>, + <37455 37276 37232 37157 37089>, + <37301 37176 37128 37070 37012>, + <37235 37133 37098 37039 36980>, + <37180 37103 37070 37019 36958>, + <37134 37079 37045 36993 36931>, + <37093 37015 36970 36913 36844>, + <37038 36773 36688 36617 36532>, + <36917 36299 36226 36155 36069>, + <36588 35692 35618 35553 35470>, + <36036 34841 34782 34727 34646>, + <35081 33409 33462 33436 33354>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44790 44780 44765 44715 44710 44700>, + <44407 44440 44471 44442 44451 44447>, + <44068 44142 44206 44190 44210 44211>, + <43781 43897 43977 43964 43992 43995>, + <43541 43697 43778 43764 43794 43799>, + <43314 43500 43576 43559 43591 43597>, + <43083 43286 43356 43339 43373 43381>, + <42855 43064 43128 43110 43145 43156>, + <42621 42834 42890 42873 42909 42921>, + <42376 42591 42640 42625 42661 42675>, + <42128 42346 42387 42374 42411 42426>, + <41884 42103 42134 42123 42159 42175>, + <41638 41858 41882 41871 41906 41923>, + <41393 41616 41636 41624 41658 41675>, + <41151 41379 41395 41380 41414 41429>, + <40909 41141 41160 41144 41176 41191>, + <40660 40899 40935 40914 40945 40959>, + <40404 40655 40708 40693 40722 40735>, + <40152 40404 40466 40485 40513 40524>, + <39906 40144 40215 40286 40311 40322>, + <39665 39890 39959 40064 40094 40108>, + <39437 39647 39694 39792 39852 39878>, + <39222 39415 39444 39519 39608 39644>, + <39018 39201 39226 39292 39369 39402>, + <38819 39003 39028 39088 39140 39163>, + <38631 38816 38853 38914 38958 38977>, + <38481 38631 38698 38767 38815 38832>, + <38364 38455 38555 38636 38688 38703>, + <38264 38313 38422 38516 38571 38582>, + <38176 38195 38297 38407 38463 38470>, + <38100 38097 38184 38306 38365 38370>, + <38025 38016 38077 38212 38277 38280>, + <37949 37947 37984 38124 38191 38194>, + <37874 37878 37907 38039 38107 38113>, + <37799 37812 37839 37957 38022 38031>, + <37724 37744 37776 37872 37926 37929>, + <37649 37674 37718 37784 37820 37805>, + <37572 37599 37653 37695 37712 37683>, + <37494 37518 37580 37609 37609 37573>, + <37415 37428 37494 37522 37505 37465>, + <37335 37331 37377 37423 37404 37365>, + <37254 37228 37224 37313 37301 37264>, + <37169 37118 37070 37181 37167 37123>, + <37082 37007 36922 37031 37024 36972>, + <36997 36889 36802 36902 36916 36869>, + <36907 36769 36697 36840 36869 36825>, + <36857 36713 36638 36817 36855 36813>, + <36807 36661 36571 36786 36837 36793>, + <36744 36614 36484 36740 36801 36754>, + <36672 36549 36355 36628 36689 36626>, + <36596 36448 36094 36307 36349 36261>, + <36527 36285 35537 35777 35830 35733>, + <36382 35715 34709 35082 35149 35042>, + <36077 35032 33716 34072 34187 34063>, + <35938 34389 32344 32561 32755 32608>, + <35804 33409 28433 28113 28178 28204>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13340 12563 11931 11542 11371>, + <13380 12577 11963 11592 11424>, + <13400 12588 11990 11592 11417>, + <13395 12590 12010 11583 11410>, + <13373 12586 12004 11574 11403>, + <13358 12576 11983 11567 11395>, + <13323 12550 11968 11559 11387>, + <13284 12520 11958 11552 11381>, + <13258 12499 11950 11544 11375>, + <13207 12481 11943 11535 11370>, + <13163 12464 11937 11525 11366>, + <13149 12444 11929 11516 11363>, + <13140 12426 11915 11512 11360>, + <13121 12410 11906 11510 11358>, + <13058 12395 11908 11508 11356>, + <12993 12391 11912 11506 11354>, + <12975 12392 11914 11504 11354>, + <12966 12392 11914 11502 11354>, + <12962 12389 11913 11500 11354>, + <12945 12386 11914 11501 11354>, + <12920 12388 11915 11503 11353>, + <12915 12393 11918 11505 11353>, + <12919 12398 11925 11505 11352>, + <12925 12403 11930 11505 11352>, + <12931 12409 11931 11506 11352>, + <12939 12412 11931 11508 11354>, + <12946 12416 11933 11511 11356>, + <12952 12419 11936 11514 11358>, + <12959 12423 11940 11519 11361>, + <12968 12432 11949 11522 11364>, + <12982 12435 11957 11526 11368>, + <12993 12440 11961 11530 11371>, + <12991 12447 11966 11536 11375>, + <12984 12447 11969 11542 11379>, + <12981 12448 11969 11547 11384>, + <12996 12451 11971 11551 11390>, + <13018 12469 11976 11557 11395>, + <13026 12492 11985 11565 11400>, + <13027 12500 11995 11572 11405>, + <13028 12504 12006 11579 11412>, + <13028 12509 12017 11587 11419>, + <13028 12521 12027 11595 11424>, + <13044 12538 12035 11603 11428>, + <13089 12572 12039 11608 11432>, + <13180 12580 12046 11614 11437>, + <13120 12581 12068 11619 11441>, + <13122 12581 12047 11619 11440>, + <13120 12586 12056 11623 11442>, + <13110 12601 12062 11626 11447>, + <13108 12580 12067 11636 11452>, + <13120 12619 12081 11637 11458>, + <13115 12634 12084 11649 11468>, + <13182 12797 12113 11659 11476>, + <13134 12675 12129 11677 11492>, + <13134 12675 12129 11677 11492>, + <13134 12675 12129 11677 11492>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9480 9994 10475 10510 10441>, + <9828 10281 10469 10596 10317>, + <10056 10456 10660 10724 10497>, + <10199 10531 10854 10711 10605>, + <10347 10574 10855 10690 10642>, + <10383 10572 10803 10673 10613>, + <10378 10537 10755 10652 10563>, + <10371 10508 10704 10610 10517>, + <10363 10496 10649 10544 10466>, + <10352 10487 10589 10485 10420>, + <10342 10472 10529 10426 10377>, + <10328 10435 10512 10391 10340>, + <10310 10409 10511 10389 10312>, + <10295 10402 10509 10393 10290>, + <10281 10397 10507 10398 10272>, + <10268 10397 10504 10410 10252>, + <10256 10399 10505 10414 10240>, + <10245 10402 10519 10363 10248>, + <10240 10409 10533 10299 10264>, + <10242 10422 10537 10294 10271>, + <10247 10434 10541 10309 10275>, + <10250 10447 10576 10340 10279>, + <10255 10463 10713 10506 10319>, + <10262 10493 10794 10667 10372>, + <10273 10532 10745 10590 10374>, + <10294 10552 10661 10372 10350>, + <10310 10561 10605 10302 10374>, + <10319 10566 10557 10327 10814>, + <10326 10561 10539 10371 11219>, + <10334 10547 10558 10514 11096>, + <10346 10539 10587 10722 10759>, + <10357 10534 10605 10754 10533>, + <10360 10530 10620 10659 10369>, + <10361 10532 10630 10552 10276>, + <10361 10540 10637 10457 10247>, + <10357 10544 10643 10382 10232>, + <10351 10542 10646 10380 10246>, + <10350 10540 10647 10417 10304>, + <10352 10543 10651 10461 10362>, + <10354 10553 10670 10525 10415>, + <10286 10558 10685 10577 10456>, + <10064 10547 10680 10572 10467>, + <9927 10530 10668 10549 10468>, + <9716 10510 10650 10550 10462>, + <9960 10529 10631 10552 10463>, + <9951 10532 10621 10558 10451>, + <9949 10508 10591 10532 10431>, + <9987 10443 10543 10546 10442>, + <9968 10501 10536 10567 10495>, + <9871 10655 10582 10646 10543>, + <9864 13526 10583 10573 10446>, + <9770 10302 10560 10396 10264>, + <9680 10092 10498 10350 10175>, + <9490 9962 10407 10281 10113>, + <9490 9962 10407 10281 10113>, + <9490 9962 10407 10281 10113>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19385 19368 19327 19327 19336>, + <19487 19415 19354 19343 19340>, + <19553 19449 19381 19360 19364>, + <19579 19474 19403 19366 19369>, + <19597 19491 19413 19372 19374>, + <19601 19496 19419 19382 19381>, + <19598 19498 19423 19391 19387>, + <19595 19499 19426 19395 19392>, + <19593 19501 19429 19398 19397>, + <19591 19502 19429 19399 19398>, + <19590 19501 19428 19397 19396>, + <19588 19498 19427 19395 19393>, + <19585 19493 19422 19392 19389>, + <19583 19487 19415 19389 19385>, + <19582 19482 19411 19386 19381>, + <19581 19478 19408 19383 19376>, + <19578 19475 19405 19379 19373>, + <19572 19472 19402 19374 19369>, + <19567 19469 19399 19368 19366>, + <19563 19465 19395 19363 19362>, + <19560 19464 19392 19359 19357>, + <19558 19464 19394 19358 19355>, + <19558 19464 19404 19364 19355>, + <19559 19468 19411 19371 19357>, + <19561 19476 19408 19364 19352>, + <19566 19479 19402 19346 19337>, + <19569 19480 19397 19340 19334>, + <19569 19479 19391 19341 19373>, + <19569 19478 19389 19343 19410>, + <19568 19475 19389 19356 19408>, + <19568 19471 19390 19378 19401>, + <19566 19468 19391 19382 19393>, + <19564 19465 19393 19380 19385>, + <19560 19464 19395 19377 19376>, + <19556 19463 19396 19372 19366>, + <19553 19463 19397 19365 19356>, + <19550 19461 19396 19359 19349>, + <19546 19458 19392 19351 19343>, + <19540 19455 19389 19348 19339>, + <19533 19451 19386 19348 19337>, + <19500 19447 19383 19348 19336>, + <19414 19443 19380 19347 19338>, + <19359 19439 19377 19344 19341>, + <19269 19437 19375 19346 19345>, + <19263 19427 19369 19346 19345>, + <19263 19405 19363 19335 19334>, + <19263 19405 19358 19333 19330>, + <19263 19378 19357 19327 19323>, + <19263 19267 19351 19324 19316>, + <19264 19265 19344 19322 19317>, + <19264 19264 19350 19337 19334>, + <19265 19364 19355 19349 19344>, + <19266 19322 19354 19350 19343>, + <19281 19341 19355 19352 19342>, + <19281 19341 19355 19352 19342>, + <19281 19341 19355 19352 19342>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15768 15297 14994 14918 14873>, + <15861 15358 15158 14907 14843>, + <15882 15372 15125 14949 14898>, + <15803 15312 15071 14910 14868>, + <15624 15194 15018 14872 14837>, + <15473 15102 14958 14841 14813>, + <15355 15026 14908 14813 14792>, + <15252 14962 14866 14788 14773>, + <15169 14910 14831 14767 14756>, + <15097 14866 14801 14748 14741>, + <15037 14831 14776 14730 14729>, + <14985 14801 14755 14718 14720>, + <14941 14776 14737 14711 14716>, + <14904 14755 14724 14706 14714>, + <14873 14737 14716 14701 14711>, + <14846 14728 14711 14697 14707>, + <14825 14722 14706 14693 14704>, + <14808 14718 14702 14690 14701>, + <14795 14715 14698 14687 14698>, + <14785 14712 14694 14682 14693>, + <14778 14712 14692 14676 14686>, + <14773 14713 14695 14676 14684>, + <14770 14714 14716 14729 14733>, + <14768 14722 14745 14792 14796>, + <14768 14742 14792 14812 14810>, + <14769 14759 14836 14823 14816>, + <14770 14775 14839 14825 14814>, + <14773 14785 14823 14811 14763>, + <14777 14783 14807 14790 14711>, + <14780 14776 14792 14763 14702>, + <14783 14769 14778 14731 14699>, + <14784 14761 14764 14714 14694>, + <14784 14753 14751 14703 14690>, + <14781 14747 14740 14696 14685>, + <14777 14742 14730 14692 14681>, + <14772 14737 14722 14688 14678>, + <14765 14730 14718 14685 14675>, + <14756 14724 14715 14682 14673>, + <14743 14718 14714 14681 14673>, + <14730 14713 14714 14690 14686>, + <14746 14706 14714 14701 14701>, + <14816 14697 14708 14697 14698>, + <14861 14688 14697 14688 14689>, + <14939 14679 14691 14688 14692>, + <14890 14659 14674 14681 14688>, + <14890 14651 14650 14656 14658>, + <14890 14646 14642 14650 14652>, + <14889 14669 14633 14638 14641>, + <14889 14788 14626 14620 14622>, + <14886 14784 14627 14618 14616>, + <14884 14785 14642 14641 14653>, + <14882 14694 14647 14647 14663>, + <14894 14754 14652 14651 14672>, + <14916 14759 14658 14656 14679>, + <14916 14759 14658 14656 14679>, + <14916 14759 14658 14656 14679>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12458 13103 13632 14516 14924>, + <13736 14605 15344 16826 16798>, + <14841 15819 16835 17866 19005>, + <15762 16748 18120 18425 20004>, + <16568 17504 18829 19058 20829>, + <17239 18144 19319 19978 21728>, + <17786 18683 19863 21001 22729>, + <18308 19312 20571 21890 24044>, + <18910 20275 21392 22743 25688>, + <19572 21420 22297 23710 27142>, + <20272 22413 23284 24857 28490>, + <20994 23257 24237 25935 29436>, + <21765 24194 25170 26810 29725>, + <22651 25511 26098 27661 29807>, + <23777 27043 27003 28741 30024>, + <24905 28295 27906 30195 30701>, + <25753 29316 28894 30940 31499>, + <26447 30265 30034 30762 32836>, + <27114 31110 31112 30505 34793>, + <27791 31919 31836 30749 36151>, + <28456 33054 32586 31622 37436>, + <29177 34747 35850 32986 37931>, + <30097 37147 46617 36766 36584>, + <31336 42352 52815 40112 33818>, + <33335 49909 48871 35942 28910>, + <36538 52409 41886 24638 20907>, + <38981 51917 36791 19924 18533>, + <40067 51001 32122 18910 27056>, + <40849 48997 30057 18490 35165>, + <41422 45332 29688 20775 35458>, + <42113 42776 29508 25766 35222>, + <42620 41128 29855 28597 35191>, + <42417 40127 31369 30368 35222>, + <41445 40338 33346 31806 34957>, + <40694 41418 36757 33272 33721>, + <40485 42427 40019 34394 32246>, + <40309 43175 41468 34432 32051>, + <40184 43884 42506 34029 32188>, + <39996 44644 42728 33848 32244>, + <39657 45495 42181 34785 31412>, + <36543 45839 41327 35838 30295>, + <27594 44517 39640 33957 29862>, + <21738 43463 37606 29882 29624>, + <11614 45740 37549 31882 32016>, + <11503 45268 39072 33655 33964>, + <11439 31446 40440 29490 28539>, + <11420 31543 36532 28679 25972>, + <11392 20941 38420 28277 24753>, + <11319 11519 33805 34532 29248>, + <11260 11492 29542 33302 36836>, + <11234 11682 29224 32033 29811>, + <11216 17161 26795 30104 25131>, + <11209 13906 23469 26485 20830>, + <12090 15413 21805 23002 17424>, + <12090 15413 21805 23002 17424>, + <12090 15413 21805 23002 17424>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16136 15368 14916 14698 14637>, + <16145 15371 14988 14706 14632>, + <16131 15366 14973 14728 14666>, + <16069 15326 14947 14711 14655>, + <15947 15254 14920 14695 14644>, + <15836 15195 14886 14684 14637>, + <15743 15141 14857 14674 14630>, + <15658 15094 14832 14664 14624>, + <15586 15054 14809 14654 14618>, + <15522 15020 14789 14644 14612>, + <15467 14989 14770 14634 14605>, + <15417 14961 14754 14625 14598>, + <15373 14938 14740 14619 14594>, + <15334 14917 14730 14615 14590>, + <15300 14900 14723 14610 14586>, + <15270 14891 14718 14606 14582>, + <15242 14886 14713 14602 14577>, + <15216 14883 14709 14597 14574>, + <15197 14880 14706 14592 14571>, + <15185 14878 14703 14587 14566>, + <15177 14877 14701 14583 14560>, + <15175 14879 14703 14582 14558>, + <15176 14882 14718 14611 14580>, + <15178 14889 14735 14640 14608>, + <15182 14902 14755 14641 14609>, + <15187 14913 14772 14640 14606>, + <15193 14923 14772 14637 14604>, + <15198 14928 14764 14632 14603>, + <15202 14928 14756 14626 14601>, + <15206 14925 14752 14623 14598>, + <15209 14922 14748 14621 14593>, + <15211 14919 14744 14618 14587>, + <15212 14916 14741 14613 14582>, + <15213 14916 14740 14609 14576>, + <15214 14917 14739 14605 14569>, + <15215 14918 14738 14601 14563>, + <15217 14918 14738 14598 14559>, + <15218 14919 14739 14594 14555>, + <15221 14920 14740 14592 14554>, + <15224 14923 14743 14598 14559>, + <15227 14926 14746 14604 14565>, + <15231 14928 14745 14603 14566>, + <15237 14931 14744 14600 14565>, + <15249 14937 14746 14602 14568>, + <15258 14937 14743 14600 14567>, + <15264 14931 14735 14585 14549>, + <15266 14931 14730 14581 14545>, + <15267 14927 14727 14574 14537>, + <15268 14927 14723 14566 14525>, + <15270 14932 14726 14566 14525>, + <15276 14943 14740 14585 14550>, + <15290 14962 14751 14596 14562>, + <15308 14976 14760 14602 14569>, + <15338 15004 14773 14610 14575>, + <15338 15004 14773 14610 14575>, + <15338 15004 14773 14610 14575>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6545 6061 5813 5437 5211 5102>, + <6536 6095 5800 5437 5207 5100>, + <6530 6119 5786 5438 5204 5097>, + <6526 6135 5774 5439 5200 5094>, + <6525 6144 5766 5439 5196 5091>, + <6524 6147 5763 5440 5193 5088>, + <6536 6138 5765 5440 5188 5084>, + <6562 6124 5768 5440 5184 5080>, + <6570 6123 5771 5439 5182 5078>, + <6556 6128 5774 5435 5180 5076>, + <6539 6131 5775 5431 5178 5073>, + <6534 6138 5768 5428 5174 5070>, + <6534 6151 5760 5425 5170 5068>, + <6535 6154 5760 5423 5167 5065>, + <6538 6154 5763 5419 5163 5063>, + <6543 6154 5764 5418 5160 5063>, + <6543 6154 5765 5420 5158 5063>, + <6542 6153 5766 5423 5157 5062>, + <6540 6154 5769 5422 5157 5062>, + <6537 6157 5775 5420 5157 5061>, + <6532 6159 5777 5420 5158 5060>, + <6534 6157 5771 5422 5158 5060>, + <6555 6152 5767 5426 5158 5060>, + <6572 6152 5768 5429 5160 5061>, + <6573 6165 5772 5432 5162 5062>, + <6572 6175 5776 5435 5164 5064>, + <6571 6168 5783 5437 5165 5065>, + <6557 6154 5787 5440 5166 5066>, + <6543 6149 5787 5443 5168 5067>, + <6543 6153 5785 5448 5170 5068>, + <6548 6156 5785 5450 5173 5070>, + <6550 6150 5787 5451 5176 5073>, + <6540 6139 5789 5451 5179 5075>, + <6527 6135 5785 5452 5182 5078>, + <6525 6142 5780 5454 5185 5080>, + <6524 6147 5780 5456 5188 5082>, + <6523 6143 5788 5458 5190 5084>, + <6533 6133 5793 5460 5192 5086>, + <6551 6131 5795 5463 5193 5087>, + <6553 6139 5796 5465 5195 5088>, + <6532 6146 5792 5466 5196 5090>, + <6515 6144 5780 5463 5198 5093>, + <6518 6141 5776 5463 5199 5095>, + <6524 6134 5778 5469 5203 5097>, + <6527 6133 5783 5484 5209 5101>, + <6542 6156 5970 5475 5211 5103>, + <6575 6149 5817 5488 5213 5104>, + <6587 6139 5794 5485 5212 5104>, + <6664 6164 5777 5480 5214 5106>, + <6772 6174 5779 5478 5215 5105>, + <6796 6255 5822 5482 5217 5109>, + <6867 6342 5884 5490 5223 5114>, + <6956 6678 6057 5506 5229 5119>, + <7317 6768 6471 5526 5240 5131>, + <7317 6768 6471 5526 5240 5131>, + <7317 6768 6471 5526 5240 5131>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9665 9643 10806 11476 11556 11414>, + <9668 9698 10866 11429 11455 11317>, + <9671 10016 10954 11382 11344 11211>, + <9674 10361 11046 11337 11235 11108>, + <9677 10650 11116 11298 11140 11023>, + <9681 10801 11142 11269 11072 10969>, + <9685 10842 11133 11249 11020 10942>, + <9688 10868 11121 11231 10979 10921>, + <9691 10887 11117 11203 10960 10891>, + <9692 10903 11122 11165 10945 10853>, + <9693 10916 11125 11148 10934 10836>, + <9694 10928 11129 11158 10929 10834>, + <9696 10940 11138 11178 10928 10832>, + <9696 10963 11154 11201 10927 10826>, + <9693 11015 11189 11233 10930 10815>, + <9689 11057 11230 11269 10942 10807>, + <9688 11075 11287 11315 10966 10803>, + <9687 11087 11333 11365 11003 10801>, + <9687 11088 11344 11419 11092 10829>, + <9684 11078 11342 11479 11247 10916>, + <9681 11061 11327 11497 11334 11024>, + <9678 11037 11271 11444 11337 11202>, + <9677 11002 11226 11377 11316 11323>, + <9676 10968 11220 11349 11283 11267>, + <9675 10936 11218 11330 11232 11150>, + <9674 10883 11215 11322 11228 11122>, + <9673 10556 11210 11356 11243 11145>, + <9672 10008 11203 11394 11264 11166>, + <9671 9808 11179 11411 11324 11183>, + <9670 9757 11144 11440 11408 11203>, + <9668 9730 11136 11463 11428 11221>, + <9667 9718 11149 11491 11429 11304>, + <9667 9711 11156 11507 11429 11367>, + <9666 9703 11137 11482 11435 11387>, + <9666 9696 11099 11424 11449 11404>, + <9665 9689 11048 11386 11451 11398>, + <9664 9683 10969 11355 11427 11372>, + <9664 9678 10870 11342 11404 11347>, + <9664 9674 10760 11364 11382 11303>, + <9663 9671 10611 11398 11355 11253>, + <9663 9668 10289 11399 11356 11235>, + <9662 9666 9826 11364 11382 11227>, + <9661 9664 9719 11264 11347 11190>, + <9660 9662 9689 11042 11248 11114>, + <9659 9661 9679 10878 11204 11052>, + <9657 9659 9671 10980 11104 10941>, + <9655 9658 9666 10986 11162 10922>, + <9653 9656 9661 10985 11237 10965>, + <9651 9653 9658 11055 11251 10963>, + <9650 9651 9655 11104 11228 10928>, + <9649 9649 9652 10908 11072 10844>, + <9648 9648 9650 10589 11002 10785>, + <9648 9648 9649 10463 10917 10692>, + <9648 9649 9648 10017 10750 10519>, + <9648 9649 9648 10017 10750 10519>, + <9648 9649 9648 10017 10750 10519>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13734 13389 13325 13289 13275 13275>, + <13706 13392 13328 13290 13277 13276>, + <13679 13395 13331 13291 13278 13277>, + <13653 13398 13335 13292 13280 13278>, + <13630 13400 13337 13293 13281 13279>, + <13613 13401 13339 13295 13282 13280>, + <13601 13400 13340 13296 13283 13281>, + <13592 13400 13340 13297 13284 13282>, + <13582 13399 13340 13298 13285 13283>, + <13571 13397 13340 13299 13285 13284>, + <13561 13394 13340 13300 13286 13285>, + <13551 13392 13339 13300 13287 13286>, + <13542 13389 13337 13301 13288 13287>, + <13535 13387 13336 13301 13288 13287>, + <13531 13384 13334 13300 13289 13287>, + <13528 13381 13333 13300 13289 13287>, + <13523 13377 13332 13298 13290 13288>, + <13517 13373 13331 13297 13291 13289>, + <13512 13368 13329 13297 13291 13290>, + <13508 13362 13326 13297 13292 13292>, + <13505 13356 13322 13297 13292 13292>, + <13504 13351 13318 13295 13289 13290>, + <13502 13347 13314 13292 13285 13286>, + <13501 13343 13311 13290 13282 13282>, + <13499 13339 13309 13288 13279 13278>, + <13495 13336 13308 13287 13278 13277>, + <13495 13333 13306 13287 13278 13278>, + <13505 13331 13305 13286 13278 13278>, + <13523 13330 13304 13287 13278 13277>, + <13544 13330 13303 13287 13278 13275>, + <13572 13331 13303 13287 13278 13275>, + <13602 13334 13303 13287 13278 13275>, + <13632 13342 13303 13286 13278 13275>, + <13665 13351 13303 13286 13278 13277>, + <13705 13363 13303 13285 13278 13278>, + <13754 13378 13305 13285 13278 13278>, + <13807 13399 13307 13285 13278 13277>, + <13863 13426 13310 13285 13277 13277>, + <13924 13461 13314 13285 13277 13277>, + <13991 13507 13319 13285 13278 13277>, + <14066 13565 13329 13286 13278 13278>, + <14147 13635 13344 13286 13278 13279>, + <14232 13723 13359 13287 13277 13278>, + <14333 13837 13382 13287 13276 13276>, + <14471 13984 13425 13288 13277 13276>, + <14729 14175 13508 13292 13282 13282>, + <15015 14337 13609 13294 13284 13285>, + <15462 14606 13787 13297 13287 13286>, + <16369 15240 14100 13302 13288 13287>, + <18307 17007 14676 13305 13287 13285>, + <22468 22128 16241 13304 13283 13282>, + <32390 39066 22243 13307 13285 13282>, + <60521 65535 48032 13321 13288 13286>, + <65535 65535 65535 13348 13294 13294>, + <65535 65535 65535 13348 13294 13294>, + <65535 65535 65535 13348 13294 13294>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16779 16604 16557 16510 16475 16470>, + <16821 16666 16586 16514 16475 16471>, + <16912 16742 16635 16520 16475 16472>, + <17020 16819 16688 16527 16475 16473>, + <17113 16884 16731 16532 16475 16473>, + <17159 16922 16750 16534 16475 16474>, + <17159 16940 16755 16533 16475 16473>, + <17158 16951 16757 16532 16475 16473>, + <17155 16951 16754 16532 16475 16473>, + <17144 16944 16743 16531 16476 16473>, + <17128 16938 16737 16531 16477 16473>, + <17116 16934 16735 16532 16478 16474>, + <17104 16931 16734 16535 16481 16475>, + <17090 16930 16737 16541 16484 16476>, + <17074 16928 16748 16551 16489 16479>, + <17054 16926 16760 16564 16495 16483>, + <17027 16918 16774 16582 16502 16487>, + <16988 16902 16784 16603 16511 16492>, + <16946 16880 16777 16628 16528 16502>, + <16903 16842 16753 16656 16553 16516>, + <16860 16799 16723 16664 16561 16527>, + <16817 16761 16674 16619 16557 16536>, + <16775 16722 16627 16560 16549 16542>, + <16737 16688 16596 16524 16521 16521>, + <16699 16656 16571 16496 16476 16478>, + <16666 16629 16557 16487 16464 16465>, + <16652 16603 16548 16485 16465 16463>, + <16647 16581 16540 16485 16466 16463>, + <16645 16571 16533 16488 16471 16466>, + <16643 16565 16526 16494 16479 16474>, + <16642 16563 16516 16501 16489 16482>, + <16642 16565 16503 16510 16501 16493>, + <16646 16570 16497 16516 16510 16503>, + <16652 16576 16500 16519 16515 16513>, + <16657 16584 16506 16521 16518 16522>, + <16662 16592 16516 16519 16516 16519>, + <16668 16600 16533 16506 16502 16502>, + <16676 16607 16549 16495 16489 16490>, + <16687 16613 16566 16493 16481 16487>, + <16698 16618 16578 16492 16476 16485>, + <16712 16623 16576 16494 16477 16489>, + <16727 16626 16568 16501 16483 16499>, + <16744 16630 16568 16502 16476 16486>, + <16760 16638 16574 16495 16456 16457>, + <16768 16649 16577 16491 16447 16446>, + <16783 16645 16599 16502 16469 16481>, + <16810 16644 16625 16523 16498 16518>, + <16843 16655 16657 16551 16534 16556>, + <16912 16706 16705 16595 16570 16588>, + <17143 16915 16758 16622 16569 16574>, + <17635 17602 17026 16587 16498 16495>, + <19172 21459 18977 16571 16483 16486>, + <19831 19330 37121 16598 16486 16485>, + <17100 16972 65535 16656 16495 16485>, + <17100 16972 65535 16656 16495 16485>, + <17100 16972 65535 16656 16495 16485>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <11864 12739 17712 23072 21009 22651>, + <12468 13868 18047 22585 21480 22465>, + <13100 15062 18397 22102 21760 22337>, + <13759 16217 18733 21651 21896 22257>, + <14444 17227 19025 21264 21933 22216>, + <15153 17987 19244 20974 21917 22204>, + <15988 18593 19437 20789 21626 22285>, + <16844 19070 19574 20628 21081 22356>, + <17271 19228 19564 20326 20463 22167>, + <17439 19298 19443 19730 19645 21639>, + <17565 19330 19271 19172 18986 21184>, + <17708 19328 18888 18718 18568 20856>, + <17849 19336 18502 18221 18176 20493>, + <18036 19433 18379 17554 17647 19903>, + <18400 19769 18309 16667 17009 18923>, + <18781 20196 18324 16104 16562 18131>, + <18979 20697 18943 15795 16170 17532>, + <19154 21285 19899 15612 15919 17055>, + <19238 21757 20909 16005 15839 16711>, + <19169 22132 22057 17516 15661 16428>, + <19055 22489 22880 19343 15923 16528>, + <19005 22905 23516 22089 18830 18435>, + <18864 23309 23966 24373 21482 20413>, + <18628 23545 24190 24830 21810 21153>, + <17475 23752 24347 24828 21906 21636>, + <15302 23863 24507 24684 21756 21674>, + <14170 21883 24687 23946 20857 21074>, + <13683 17817 24794 23346 19886 20167>, + <13429 15671 24809 23538 19280 18607>, + <13539 14513 24814 24022 18814 16793>, + <13883 13963 24940 24391 18753 16348>, + <14035 14063 25453 24683 18958 16385>, + <13926 14319 25747 24951 19254 16572>, + <13794 14542 25116 25331 19796 17723>, + <13809 14783 24292 25833 20631 19554>, + <13947 14986 24109 26049 21697 20918>, + <14050 15191 24058 26155 23182 22169>, + <14082 15439 24087 26207 24057 22687>, + <14102 15485 24282 26005 24224 22582>, + <14117 15347 24469 25476 24174 22431>, + <14145 15160 23315 24812 23740 22536>, + <14159 14915 19644 23754 22681 22986>, + <14051 14637 16704 23000 22521 23123>, + <13893 14611 15215 22496 22652 22762>, + <14096 14328 15136 20765 21288 20206>, + <14198 13971 14810 21177 19870 17863>, + <13780 13961 14497 20342 18793 16794>, + <12952 13894 14617 19515 18084 15840>, + <12071 13351 14728 19640 17444 15497>, + <11219 11688 14833 20193 17078 15210>, + <10460 10365 12788 19765 17785 15983>, + <9999 9628 9945 19131 18659 15311>, + <14564 15570 9045 18813 18334 15195>, + <31473 20402 8850 15837 19903 18744>, + <31473 20402 8850 15837 19903 18744>, + <31473 20402 8850 15837 19903 18744>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6076 5565 5325 5106 5027 5010>, + <6083 5581 5330 5107 5027 5010>, + <6086 5594 5333 5107 5027 5011>, + <6085 5604 5335 5107 5028 5011>, + <6082 5610 5335 5106 5028 5012>, + <6077 5612 5335 5106 5028 5012>, + <6071 5610 5332 5105 5028 5013>, + <6061 5604 5325 5104 5028 5013>, + <6051 5598 5319 5102 5028 5014>, + <6037 5590 5311 5101 5028 5014>, + <6024 5582 5305 5100 5028 5014>, + <6012 5574 5299 5100 5029 5015>, + <6001 5568 5294 5100 5030 5016>, + <5990 5562 5293 5101 5031 5017>, + <5981 5559 5291 5102 5032 5017>, + <5972 5554 5291 5105 5034 5019>, + <5961 5548 5292 5108 5036 5020>, + <5949 5540 5293 5113 5039 5022>, + <5936 5530 5290 5120 5044 5026>, + <5924 5517 5279 5128 5052 5031>, + <5913 5503 5267 5130 5054 5034>, + <5904 5491 5251 5116 5050 5034>, + <5895 5480 5236 5097 5045 5033>, + <5889 5471 5226 5086 5035 5025>, + <5884 5465 5219 5077 5020 5009>, + <5879 5459 5216 5074 5016 5005>, + <5879 5452 5214 5075 5016 5005>, + <5891 5446 5214 5075 5017 5005>, + <5909 5445 5214 5077 5018 5005>, + <5928 5450 5214 5080 5021 5007>, + <5951 5459 5215 5083 5024 5009>, + <5977 5472 5216 5086 5028 5012>, + <6004 5491 5218 5089 5031 5015>, + <6035 5513 5223 5092 5033 5019>, + <6069 5538 5232 5093 5034 5023>, + <6108 5567 5244 5094 5033 5022>, + <6151 5601 5261 5091 5030 5017>, + <6198 5641 5282 5089 5026 5014>, + <6249 5685 5306 5091 5025 5013>, + <6304 5736 5334 5093 5024 5013>, + <6365 5793 5361 5097 5024 5014>, + <6432 5857 5390 5103 5027 5019>, + <6506 5933 5430 5107 5024 5014>, + <6596 6028 5487 5111 5019 5005>, + <6714 6154 5552 5117 5018 5003>, + <6939 6318 5666 5128 5028 5017>, + <7193 6447 5769 5139 5039 5030>, + <7582 6667 5936 5153 5051 5042>, + <8337 7193 6206 5172 5062 5052>, + <9861 8575 6669 5186 5061 5047>, + <12956 12364 7929 5181 5038 5023>, + <20121 24746 12701 5192 5036 5021>, + <39446 65535 35327 5242 5041 5025>, + <65535 65535 65535 5325 5050 5032>, + <65535 65535 65535 5325 5050 5032>, + <65535 65535 65535 5325 5050 5032>; + }; + +}; From 8223eba6f6e47df69e67fef7819e1a209d42cc0d Mon Sep 17 00:00:00 2001 From: lixuehan Date: Wed, 23 Aug 2023 20:28:27 +0800 Subject: [PATCH 1197/1247] kernel/charger:fogo:Submit SWD parameters fogo:Submit SWD battery modeling parameters Submit SWD battery modeling parameters Change-Id: Ie4878a8d699dd8e115d1b69d57821378312dbd31 Signed-off-by: lixuehan Reviewed-on: https://gerrit.mot.com/2731714 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/qg-batterydata-qf50-swd-5000mah.dtsi | 1019 +++++++++++++++++++++ 2 files changed, 1020 insertions(+) create mode 100644 qcom/qg-batterydata-qf50-swd-5000mah.dtsi diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 949632e57f43..89a53702ffce 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" + #include "qg-batterydata-qf50-swd-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-qf50-swd-5000mah.dtsi b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi new file mode 100644 index 000000000000..76b5515a379c --- /dev/null +++ b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi @@ -0,0 +1,1019 @@ + +qcom,qf50-swd-5000mah { + /* SWD_5000mAH_averaged_MasterSlave_Aug25th2023 */ + serialnum = "SB18D96854"; + qcom,sdam-magic-number = <0x18D96854>; + qcom,max-voltage-uv = <4530000>; + qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-SWD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4870 5065 5123 5140 5153>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4847 4996 5106 5112 5112 5105>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44612 44746 44799 44833 44840>, + <44371 44470 44466 44484 44494>, + <44146 44243 44222 44230 44237>, + <43933 44027 44008 44012 44016>, + <43716 43809 43792 43796 43800>, + <43493 43592 43573 43580 43583>, + <43265 43364 43348 43361 43363>, + <43029 43123 43110 43127 43132>, + <42785 42875 42862 42882 42891>, + <42539 42623 42613 42633 42645>, + <42294 42368 42359 42381 42393>, + <42051 42118 42107 42129 42141>, + <41813 41870 41857 41880 41891>, + <41579 41627 41610 41632 41644>, + <41353 41391 41373 41393 41405>, + <41136 41161 41142 41158 41175>, + <40927 40943 40918 40933 40950>, + <40725 40736 40704 40719 40732>, + <40532 40536 40499 40515 40521>, + <40342 40344 40308 40322 40324>, + <40160 40155 40130 40143 40144>, + <39983 39958 39929 39944 39947>, + <39793 39754 39680 39695 39700>, + <39575 39537 39431 39444 39447>, + <39354 39273 39217 39243 39253>, + <39161 39028 39024 39069 39091>, + <38983 38889 38886 38930 38950>, + <38844 38795 38790 38819 38828>, + <38746 38709 38704 38720 38717>, + <38666 38620 38615 38620 38610>, + <38591 38538 38530 38525 38511>, + <38521 38461 38451 38438 38422>, + <38458 38389 38377 38359 38346>, + <38397 38324 38308 38285 38273>, + <38341 38269 38245 38214 38202>, + <38292 38218 38185 38146 38133>, + <38253 38174 38129 38080 38061>, + <38212 38134 38076 38016 37986>, + <38164 38079 38010 37938 37898>, + <38110 37995 37919 37833 37782>, + <38037 37892 37811 37714 37650>, + <37921 37771 37691 37597 37526>, + <37788 37628 37551 37474 37397>, + <37644 37458 37384 37313 37226>, + <37482 37291 37222 37161 37079>, + <37312 37169 37112 37064 37002>, + <37238 37133 37076 37029 36971>, + <37190 37103 37051 37005 36947>, + <37144 37084 37029 36981 36923>, + <37101 37047 36979 36924 36862>, + <37066 36883 36754 36670 36593>, + <37015 36451 36315 36222 36146>, + <36854 35859 35711 35630 35559>, + <36396 35022 34877 34819 34756>, + <35545 33646 33564 33548 33505>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44840 44815 44795 44755 44745 44730>, + <44413 44442 44437 44406 44399 44392>, + <44048 44119 44125 44100 44094 44091>, + <43764 43861 43871 43845 43837 43837>, + <43545 43657 43664 43634 43622 43622>, + <43342 43455 43455 43420 43405 43407>, + <43123 43234 43227 43189 43174 43178>, + <42904 43008 42992 42951 42938 42943>, + <42681 42772 42750 42705 42694 42699>, + <42451 42524 42497 42452 42443 42446>, + <42219 42276 42245 42198 42192 42194>, + <41989 42030 41993 41946 41942 41944>, + <41758 41785 41743 41696 41693 41697>, + <41531 41545 41498 41453 41451 41456>, + <41310 41310 41257 41215 41215 41223>, + <41090 41081 41023 40983 40986 40994>, + <40863 40865 40794 40758 40762 40770>, + <40630 40653 40576 40541 40547 40554>, + <40392 40429 40377 40338 40345 40349>, + <40142 40191 40185 40141 40149 40151>, + <39888 39946 39961 39941 39959 39961>, + <39653 39687 39688 39741 39776 39783>, + <39432 39430 39425 39529 39578 39590>, + <39226 39211 39194 39275 39318 39338>, + <39035 39017 38985 39021 39050 39072>, + <38857 38846 38812 38837 38865 38884>, + <38691 38693 38666 38696 38728 38745>, + <38529 38556 38535 38572 38608 38622>, + <38384 38426 38414 38461 38496 38507>, + <38273 38305 38303 38360 38395 38402>, + <38183 38195 38203 38265 38303 38309>, + <38104 38094 38112 38176 38218 38224>, + <38032 38003 38028 38094 38140 38144>, + <37966 37927 37947 38021 38071 38072>, + <37902 37864 37872 37951 38001 37998>, + <37842 37808 37809 37880 37914 37904>, + <37779 37760 37753 37809 37818 37794>, + <37715 37716 37692 37729 37718 37683>, + <37649 37659 37628 37637 37613 37572>, + <37577 37592 37553 37540 37508 37462>, + <37500 37509 37454 37445 37412 37367>, + <37417 37393 37331 37343 37312 37271>, + <37323 37255 37187 37213 37189 37148>, + <37217 37114 37011 37067 37048 37001>, + <37105 36960 36831 36924 36918 36868>, + <36988 36795 36716 36861 36869 36821>, + <36929 36726 36671 36841 36856 36808>, + <36869 36669 36617 36820 36840 36791>, + <36809 36612 36540 36784 36811 36761>, + <36738 36515 36406 36703 36731 36673>, + <36645 36346 36058 36414 36427 36347>, + <36518 36138 35405 35887 35912 35836>, + <36354 35618 34645 35179 35234 35164>, + <36108 35142 33700 34152 34279 34213>, + <35860 34625 32415 32677 32858 32764>, + <35905 33809 29152 28152 28264 28690>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12993 12387 11944 11609 11492>, + <12972 12341 11880 11537 11423>, + <12947 12311 11855 11516 11404>, + <12920 12290 11826 11502 11393>, + <12896 12267 11806 11491 11386>, + <12866 12245 11792 11480 11379>, + <12831 12225 11780 11471 11373>, + <12806 12207 11767 11463 11370>, + <12788 12190 11753 11457 11368>, + <12770 12173 11743 11453 11367>, + <12749 12157 11733 11452 11365>, + <12729 12141 11727 11450 11364>, + <12709 12124 11723 11448 11363>, + <12685 12114 11721 11446 11362>, + <12669 12114 11721 11446 11362>, + <12665 12115 11723 11446 11362>, + <12662 12116 11724 11446 11363>, + <12658 12117 11725 11446 11364>, + <12644 12118 11725 11448 11365>, + <12635 12118 11726 11449 11367>, + <12643 12118 11729 11451 11368>, + <12664 12121 11731 11453 11369>, + <12674 12129 11732 11453 11370>, + <12675 12136 11734 11454 11371>, + <12676 12144 11738 11455 11372>, + <12680 12150 11744 11458 11374>, + <12686 12150 11749 11461 11377>, + <12690 12147 11752 11463 11379>, + <12695 12145 11755 11466 11382>, + <12700 12150 11760 11469 11385>, + <12705 12158 11768 11473 11388>, + <12717 12166 11774 11477 11391>, + <12725 12175 11781 11482 11394>, + <12715 12179 11787 11486 11397>, + <12701 12180 11793 11492 11402>, + <12701 12181 11798 11498 11407>, + <12732 12187 11804 11504 11411>, + <12761 12200 11809 11510 11415>, + <12766 12213 11815 11516 11419>, + <12766 12229 11823 11521 11424>, + <12770 12241 11833 11527 11429>, + <12786 12249 11844 11533 11432>, + <12806 12257 11857 11539 11436>, + <12832 12267 11866 11544 11439>, + <12858 12284 11877 11551 11444>, + <12851 12297 11881 11555 11446>, + <12859 12284 11887 11555 11446>, + <12862 12300 11898 11555 11447>, + <12840 12296 11898 11559 11449>, + <12864 12289 11901 11564 11453>, + <12849 12305 11907 11570 11458>, + <12880 12327 11922 11575 11462>, + <12870 12331 11928 11582 11468>, + <12924 12349 11941 11595 11479>, + <12924 12349 11941 11595 11479>, + <12924 12349 11941 11595 11479>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10632 10441 10438 10279 10132>, + <10281 10466 10695 10336 10191>, + <10369 10561 10727 10521 10298>, + <10428 10621 10695 10573 10465>, + <10448 10605 10657 10589 10557>, + <10429 10563 10610 10523 10527>, + <10401 10527 10560 10432 10469>, + <10381 10499 10512 10389 10411>, + <10363 10475 10465 10358 10344>, + <10347 10449 10433 10339 10316>, + <10334 10427 10403 10322 10314>, + <10324 10424 10389 10313 10313>, + <10323 10433 10395 10324 10316>, + <10325 10444 10407 10345 10323>, + <10330 10454 10417 10350 10313>, + <10343 10466 10427 10350 10246>, + <10365 10536 10437 10349 10195>, + <10382 10770 10446 10324 10203>, + <10394 10892 10455 10288 10224>, + <10404 10737 10464 10284 10245>, + <10414 10544 10474 10297 10272>, + <10424 10527 10497 10323 10312>, + <10435 10537 10608 10510 10437>, + <10447 10545 10708 10704 10572>, + <10458 10555 10657 10632 10554>, + <10467 10563 10523 10398 10443>, + <10476 10559 10468 10317 10406>, + <10480 10549 10467 10346 10623>, + <10476 10546 10480 10384 10853>, + <10472 10550 10507 10448 10888>, + <10471 10555 10546 10548 10863>, + <10474 10559 10575 10578 10754>, + <10477 10564 10601 10556 10524>, + <10482 10567 10617 10514 10344>, + <10489 10568 10612 10438 10267>, + <10494 10570 10599 10356 10213>, + <10496 10573 10596 10342 10216>, + <10497 10580 10596 10355 10274>, + <10499 10588 10602 10378 10341>, + <10501 10600 10635 10488 10399>, + <10502 10607 10670 10599 10470>, + <10502 10606 10682 10584 10606>, + <10502 10603 10688 10538 10774>, + <10508 10600 10671 10553 10717>, + <10657 10649 10680 10556 10560>, + <10620 10719 10674 10501 10432>, + <10581 10706 10686 10490 10408>, + <10554 10702 10650 10495 10411>, + <10491 11125 10592 10515 10435>, + <10392 11228 10633 10595 10526>, + <10295 11060 10635 10516 10442>, + <10109 10728 10652 10316 10170>, + <9992 10608 10570 10203 10082>, + <10053 10499 10489 10143 10022>, + <10053 10499 10489 10143 10022>, + <10053 10499 10489 10143 10022>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19501 19368 19346 19343 19354>, + <19538 19446 19405 19369 19361>, + <19572 19482 19428 19395 19384>, + <19609 19501 19437 19404 19393>, + <19626 19508 19442 19408 19398>, + <19632 19512 19447 19410 19402>, + <19636 19514 19450 19412 19405>, + <19636 19516 19452 19415 19406>, + <19632 19516 19454 19418 19407>, + <19629 19514 19452 19418 19408>, + <19626 19509 19444 19413 19404>, + <19623 19503 19435 19406 19398>, + <19620 19495 19430 19402 19395>, + <19616 19488 19425 19399 19392>, + <19612 19484 19420 19395 19387>, + <19604 19481 19414 19391 19381>, + <19592 19481 19409 19387 19375>, + <19585 19487 19405 19380 19370>, + <19582 19490 19402 19373 19367>, + <19579 19480 19398 19367 19362>, + <19575 19468 19394 19360 19355>, + <19572 19468 19393 19358 19352>, + <19571 19471 19404 19364 19353>, + <19580 19475 19415 19370 19356>, + <19590 19479 19411 19364 19350>, + <19593 19482 19398 19345 19333>, + <19594 19481 19390 19337 19327>, + <19594 19474 19385 19337 19350>, + <19592 19471 19382 19339 19375>, + <19587 19470 19383 19348 19386>, + <19584 19471 19386 19364 19402>, + <19580 19472 19390 19372 19402>, + <19577 19474 19397 19377 19391>, + <19576 19474 19401 19378 19380>, + <19575 19473 19403 19374 19369>, + <19574 19472 19405 19369 19357>, + <19572 19470 19402 19363 19349>, + <19569 19467 19396 19354 19340>, + <19565 19464 19391 19350 19337>, + <19560 19460 19389 19351 19336>, + <19555 19456 19387 19352 19336>, + <19550 19453 19384 19351 19338>, + <19544 19450 19381 19350 19342>, + <19532 19447 19378 19351 19351>, + <19439 19435 19372 19351 19354>, + <19401 19419 19364 19339 19341>, + <19399 19412 19364 19337 19336>, + <19322 19412 19361 19334 19325>, + <19313 19316 19352 19327 19320>, + <19311 19305 19347 19320 19310>, + <19295 19319 19353 19336 19330>, + <19284 19396 19349 19361 19351>, + <19285 19383 19361 19364 19352>, + <19334 19426 19382 19360 19350>, + <19334 19426 19382 19360 19350>, + <19334 19426 19382 19360 19350>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15504 15103 15003 14878 14841>, + <15620 15366 15032 14860 14814>, + <15555 15260 15065 14909 14873>, + <15384 15127 14993 14876 14847>, + <15235 15041 14935 14843 14819>, + <15133 14968 14892 14819 14800>, + <15049 14910 14855 14798 14782>, + <14985 14863 14823 14776 14765>, + <14935 14826 14795 14756 14747>, + <14893 14797 14772 14741 14735>, + <14858 14774 14751 14731 14728>, + <14827 14755 14736 14722 14723>, + <14802 14737 14726 14715 14719>, + <14780 14725 14719 14709 14716>, + <14763 14719 14712 14704 14712>, + <14751 14713 14705 14699 14709>, + <14741 14703 14699 14694 14705>, + <14736 14682 14694 14690 14702>, + <14731 14672 14689 14686 14698>, + <14729 14679 14684 14681 14693>, + <14727 14690 14679 14675 14686>, + <14725 14696 14679 14673 14683>, + <14725 14703 14706 14704 14714>, + <14739 14715 14746 14751 14764>, + <14761 14762 14788 14789 14795>, + <14780 14812 14832 14825 14820>, + <14801 14813 14842 14834 14826>, + <14809 14796 14829 14822 14791>, + <14804 14779 14812 14803 14749>, + <14795 14765 14796 14779 14726>, + <14786 14752 14779 14749 14698>, + <14778 14742 14761 14728 14686>, + <14770 14733 14742 14708 14682>, + <14765 14728 14726 14693 14678>, + <14761 14724 14714 14684 14674>, + <14757 14721 14704 14678 14670>, + <14753 14718 14700 14675 14668>, + <14747 14713 14698 14673 14666>, + <14739 14710 14698 14673 14666>, + <14727 14707 14701 14684 14680>, + <14717 14703 14705 14695 14698>, + <14708 14695 14703 14694 14694>, + <14698 14684 14697 14688 14681>, + <14683 14675 14694 14689 14685>, + <14717 14659 14683 14684 14684>, + <14756 14646 14665 14667 14660>, + <14751 14644 14656 14664 14657>, + <14832 14639 14644 14655 14652>, + <14851 14740 14635 14634 14633>, + <14849 14749 14633 14625 14625>, + <14862 14735 14650 14649 14654>, + <14873 14662 14671 14648 14661>, + <14874 14686 14663 14652 14669>, + <14850 14663 14649 14661 14676>, + <14850 14663 14649 14661 14676>, + <14850 14663 14649 14661 14676>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13313 13207 13403 14049 15113>, + <14434 15221 16592 16679 16873>, + <15579 16599 17326 18067 18406>, + <16715 17702 18125 19412 20281>, + <17677 18476 18828 20393 21932>, + <18518 19101 19382 20776 22942>, + <19301 19868 19953 21148 23811>, + <20019 20868 20728 22131 24878>, + <20654 21829 21588 23632 26093>, + <21393 22590 22245 24453 27076>, + <22382 23273 22787 24989 27766>, + <23549 24010 23336 25518 28394>, + <24913 24929 24049 26271 29251>, + <26962 25887 24806 27310 30194>, + <28687 26681 25369 28456 30440>, + <29334 27595 25890 29981 30240>, + <29780 29937 26577 30962 30080>, + <30324 35286 27858 31117 30991>, + <31175 38212 29326 31196 32964>, + <32065 36045 30261 31516 34713>, + <32719 33235 31002 32338 36585>, + <33376 34280 32794 33669 37422>, + <34767 38251 43035 37493 37210>, + <41528 41221 52368 41043 36676>, + <48963 42862 47679 37077 32995>, + <50242 43703 34918 25108 22664>, + <49361 41565 28153 19588 18294>, + <47961 35696 24825 18270 23040>, + <45052 32668 23149 17696 28049>, + <41893 32300 22989 19075 30762>, + <41053 32506 23158 22191 35952>, + <40746 33846 23952 23569 36677>, + <40612 36812 26794 25459 35218>, + <41448 39316 29967 27516 33611>, + <43144 41515 34224 29770 31726>, + <43668 42904 38322 31839 29972>, + <43439 42967 39152 32309 29685>, + <43114 42837 39090 32395 29773>, + <42950 42667 38697 32615 29880>, + <42923 42224 37751 34307 30085>, + <42900 41653 36280 36065 30335>, + <42849 40988 33786 33327 30345>, + <42200 40309 30670 27249 30206>, + <37984 40105 29474 27643 33552>, + <27139 41604 29960 28411 36016>, + <22167 39519 28888 24202 27578>, + <27306 32777 30845 22823 23364>, + <12627 32219 31255 22619 20396>, + <12221 13721 27976 25098 23600>, + <12190 12661 25949 25258 23098>, + <11797 13341 24861 26244 26281>, + <11620 22722 18709 28100 24475>, + <11663 20909 21549 25076 20767>, + <12783 31145 26214 19730 17364>, + <12783 31145 26214 19730 17364>, + <12783 31145 26214 19730 17364>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15567 15031 14816 14682 14655>, + <15583 15156 14842 14676 14633>, + <15553 15108 14860 14705 14665>, + <15464 15047 14828 14693 14657>, + <15383 15002 14801 14681 14649>, + <15321 14962 14781 14670 14642>, + <15267 14928 14763 14661 14635>, + <15223 14901 14747 14652 14629>, + <15184 14877 14733 14645 14622>, + <15151 14856 14718 14637 14616>, + <15121 14838 14703 14629 14611>, + <15095 14822 14691 14622 14605>, + <15072 14807 14683 14617 14601>, + <15051 14796 14677 14612 14598>, + <15034 14790 14670 14607 14593>, + <15018 14785 14664 14602 14588>, + <15005 14780 14659 14597 14583>, + <14998 14775 14654 14591 14579>, + <14994 14772 14650 14586 14575>, + <14992 14770 14646 14580 14570>, + <14992 14769 14642 14574 14563>, + <14992 14770 14642 14572 14560>, + <14992 14776 14660 14590 14576>, + <15004 14785 14684 14613 14599>, + <15022 14809 14699 14623 14605>, + <15035 14833 14712 14630 14609>, + <15046 14833 14714 14632 14609>, + <15050 14825 14707 14627 14607>, + <15048 14818 14699 14621 14603>, + <15045 14813 14694 14616 14600>, + <15042 14809 14689 14613 14597>, + <15039 14807 14685 14608 14592>, + <15037 14806 14681 14603 14586>, + <15036 14805 14679 14598 14579>, + <15036 14805 14676 14593 14572>, + <15036 14804 14674 14589 14565>, + <15037 14804 14672 14584 14559>, + <15038 14805 14669 14580 14555>, + <15040 14806 14669 14578 14553>, + <15042 14807 14671 14583 14559>, + <15044 14808 14674 14589 14566>, + <15047 14807 14674 14589 14566>, + <15049 14806 14672 14587 14566>, + <15051 14807 14672 14589 14571>, + <15039 14802 14668 14588 14572>, + <15043 14794 14660 14575 14555>, + <15045 14789 14656 14573 14551>, + <15039 14788 14650 14566 14544>, + <15044 14784 14642 14555 14533>, + <15047 14787 14642 14548 14524>, + <15045 14793 14656 14568 14547>, + <15052 14808 14666 14583 14565>, + <15069 14818 14674 14589 14571>, + <15089 14842 14686 14594 14577>, + <15089 14842 14686 14594 14577>, + <15089 14842 14686 14594 14577>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6366 5883 5621 5301 5117 5049>, + <6406 5870 5607 5302 5114 5047>, + <6432 5863 5593 5302 5111 5044>, + <6447 5861 5582 5300 5108 5042>, + <6453 5861 5573 5297 5105 5040>, + <6452 5864 5571 5294 5102 5038>, + <6443 5873 5574 5289 5099 5037>, + <6423 5884 5578 5283 5096 5035>, + <6404 5885 5575 5279 5093 5034>, + <6386 5874 5563 5274 5090 5033>, + <6372 5865 5556 5270 5088 5032>, + <6372 5856 5557 5266 5087 5031>, + <6377 5846 5559 5263 5085 5031>, + <6380 5845 5557 5261 5084 5031>, + <6378 5851 5554 5260 5083 5031>, + <6377 5854 5550 5259 5082 5031>, + <6382 5852 5540 5259 5084 5031>, + <6404 5848 5532 5260 5085 5031>, + <6418 5848 5534 5260 5085 5031>, + <6412 5850 5538 5260 5084 5032>, + <6401 5852 5541 5261 5084 5033>, + <6392 5865 5544 5263 5085 5034>, + <6383 5883 5546 5266 5086 5035>, + <6377 5884 5546 5269 5088 5036>, + <6379 5875 5546 5272 5091 5037>, + <6384 5869 5546 5276 5093 5039>, + <6389 5871 5547 5282 5095 5040>, + <6391 5876 5549 5286 5097 5042>, + <6393 5878 5552 5288 5100 5044>, + <6387 5880 5557 5290 5102 5046>, + <6369 5883 5561 5294 5105 5049>, + <6359 5884 5564 5300 5108 5051>, + <6370 5885 5567 5306 5111 5053>, + <6387 5887 5571 5312 5115 5056>, + <6390 5891 5574 5319 5118 5058>, + <6388 5892 5576 5323 5121 5061>, + <6386 5889 5578 5327 5124 5063>, + <6379 5882 5581 5330 5126 5065>, + <6368 5879 5590 5333 5128 5067>, + <6360 5878 5599 5335 5130 5068>, + <6360 5879 5608 5337 5133 5070>, + <6362 5885 5618 5339 5136 5072>, + <6365 5891 5618 5341 5137 5073>, + <6364 5900 5618 5350 5139 5074>, + <6358 5902 5630 5354 5143 5078>, + <6367 5894 5633 5364 5149 5081>, + <6389 5922 5626 5367 5149 5081>, + <6423 5930 5658 5379 5148 5080>, + <6468 5997 5634 5375 5149 5081>, + <6540 6066 5705 5380 5149 5082>, + <6619 6074 5776 5384 5150 5083>, + <6696 5962 5736 5393 5156 5088>, + <6846 5943 5589 5420 5164 5093>, + <7079 5943 5285 5458 5172 5101>, + <7079 5943 5285 5458 5172 5101>, + <7079 5943 5285 5458 5172 5101>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10330 11102 11294 11413 11333 11151>, + <10400 11087 11275 11368 11258 11121>, + <10474 11072 11253 11323 11162 11089>, + <10546 11057 11229 11278 11064 11053>, + <10607 11044 11204 11235 10982 11017>, + <10652 11031 11177 11194 10935 10980>, + <10678 11019 11148 11151 10907 10940>, + <10696 11007 11119 11112 10887 10900>, + <10710 10993 11094 11080 10882 10862>, + <10720 10974 11072 11049 10876 10824>, + <10729 10965 11061 11039 10871 10792>, + <10742 10967 11059 11058 10857 10763>, + <10759 10974 11059 11082 10844 10743>, + <10780 10986 11068 11096 10850 10743>, + <10809 11012 11092 11110 10870 10751>, + <10841 11043 11118 11133 10886 10756>, + <10869 11076 11149 11180 10897 10759>, + <10897 11109 11187 11232 10914 10764>, + <10914 11128 11243 11288 10950 10787>, + <10919 11145 11305 11347 11018 10844>, + <10922 11153 11315 11376 11137 10945>, + <10923 11158 11286 11404 11403 11188>, + <10917 11169 11266 11419 11561 11344>, + <10909 11180 11277 11366 11412 11270>, + <10898 11193 11300 11284 11185 11146>, + <10880 11205 11321 11272 11147 11118>, + <10858 11218 11347 11280 11147 11119>, + <10831 11230 11359 11292 11149 11126>, + <10785 11230 11360 11327 11201 11156>, + <10597 11219 11360 11377 11269 11208>, + <10114 11210 11366 11424 11288 11266>, + <9821 11205 11385 11471 11295 11339>, + <9776 11197 11392 11508 11320 11380>, + <9750 11162 11379 11538 11425 11403>, + <9730 11041 11355 11556 11520 11418>, + <9713 10958 11329 11549 11491 11408>, + <9701 10949 11291 11528 11401 11379>, + <9692 10945 11249 11505 11353 11347>, + <9685 10911 11204 11470 11328 11264>, + <9680 10836 11146 11444 11312 11183>, + <9675 10714 11056 11445 11319 11169>, + <9671 10271 10934 11448 11325 11173>, + <9668 9814 10803 11385 11258 11167>, + <9666 9724 10441 11338 11204 11125>, + <9663 9688 10088 11206 11146 10981>, + <9660 9672 9889 11157 10973 10822>, + <9658 9664 9757 11187 10959 10801>, + <9656 9658 9689 11206 11004 10785>, + <9653 9651 9662 11215 11035 10831>, + <9650 9649 9652 11212 11033 10867>, + <9649 9648 9650 11090 10896 10750>, + <9648 9648 9649 10944 10858 10703>, + <9648 9648 9649 10736 10735 10610>, + <9648 9649 9649 10355 10628 10470>, + <9648 9649 9649 10355 10628 10470>, + <9648 9649 9649 10355 10628 10470>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13456 13340 13313 13287 13276 13275>, + <13455 13343 13314 13288 13277 13276>, + <13454 13346 13315 13289 13278 13277>, + <13453 13349 13316 13290 13279 13278>, + <13451 13351 13317 13291 13280 13279>, + <13450 13353 13318 13292 13281 13280>, + <13449 13355 13319 13294 13282 13281>, + <13447 13356 13320 13295 13282 13282>, + <13446 13357 13321 13295 13283 13282>, + <13444 13357 13321 13296 13285 13282>, + <13441 13357 13322 13296 13286 13282>, + <13438 13357 13323 13297 13286 13283>, + <13435 13357 13323 13297 13287 13284>, + <13432 13357 13324 13298 13288 13286>, + <13430 13355 13323 13299 13289 13288>, + <13428 13354 13323 13300 13290 13289>, + <13424 13354 13320 13300 13291 13289>, + <13420 13354 13319 13299 13292 13289>, + <13415 13353 13319 13298 13294 13290>, + <13409 13350 13320 13296 13295 13291>, + <13401 13346 13320 13296 13295 13291>, + <13395 13342 13316 13296 13294 13291>, + <13391 13336 13312 13296 13292 13292>, + <13386 13333 13309 13294 13286 13287>, + <13382 13331 13307 13290 13279 13279>, + <13378 13329 13306 13287 13278 13278>, + <13373 13328 13305 13285 13279 13278>, + <13360 13327 13304 13285 13279 13279>, + <13350 13325 13303 13286 13278 13278>, + <13348 13323 13302 13287 13278 13277>, + <13349 13321 13302 13287 13277 13277>, + <13351 13318 13302 13287 13277 13277>, + <13356 13315 13302 13287 13277 13277>, + <13367 13313 13302 13286 13279 13278>, + <13378 13312 13302 13286 13280 13278>, + <13392 13312 13302 13286 13280 13279>, + <13409 13318 13302 13286 13280 13279>, + <13428 13328 13303 13286 13280 13279>, + <13452 13333 13305 13286 13280 13279>, + <13481 13337 13306 13285 13280 13279>, + <13521 13342 13308 13286 13280 13280>, + <13570 13346 13310 13286 13281 13282>, + <13630 13353 13314 13286 13281 13281>, + <13710 13380 13314 13286 13279 13278>, + <13826 13433 13315 13284 13276 13277>, + <14029 13508 13336 13288 13284 13283>, + <14207 13638 13370 13292 13288 13285>, + <14479 13977 13446 13297 13290 13287>, + <15162 15483 13736 13301 13292 13289>, + <17129 20449 15668 13305 13292 13288>, + <21974 38063 24097 13303 13287 13286>, + <34693 65535 56968 13306 13287 13285>, + <65535 65535 65535 13315 13289 13289>, + <65535 65535 65535 13349 13298 13294>, + <65535 65535 65535 13349 13298 13294>, + <65535 65535 65535 13349 13298 13294>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16668 16559 16525 16488 16471 16475>, + <16697 16569 16537 16486 16469 16474>, + <16747 16591 16548 16484 16467 16473>, + <16805 16616 16556 16482 16465 16472>, + <16854 16636 16562 16480 16464 16471>, + <16881 16645 16564 16479 16463 16471>, + <16886 16644 16562 16479 16463 16470>, + <16888 16644 16558 16478 16464 16470>, + <16888 16642 16554 16479 16464 16469>, + <16881 16636 16549 16482 16464 16468>, + <16873 16632 16547 16485 16465 16468>, + <16873 16634 16549 16489 16468 16469>, + <16876 16640 16551 16494 16472 16470>, + <16879 16648 16556 16499 16475 16472>, + <16882 16662 16568 16507 16479 16474>, + <16885 16680 16582 16516 16483 16477>, + <16884 16705 16603 16529 16489 16481>, + <16870 16728 16627 16544 16496 16485>, + <16851 16731 16657 16568 16504 16491>, + <16820 16720 16687 16594 16514 16498>, + <16777 16702 16687 16605 16530 16511>, + <16740 16663 16640 16609 16562 16540>, + <16707 16609 16586 16609 16580 16558>, + <16677 16577 16543 16559 16539 16528>, + <16649 16554 16507 16484 16476 16478>, + <16623 16539 16496 16470 16463 16464>, + <16606 16531 16491 16469 16462 16461>, + <16595 16524 16489 16469 16461 16460>, + <16588 16518 16489 16473 16467 16463>, + <16594 16510 16490 16481 16476 16470>, + <16618 16506 16491 16488 16486 16477>, + <16636 16504 16493 16496 16497 16487>, + <16641 16502 16494 16503 16506 16496>, + <16644 16504 16492 16513 16515 16508>, + <16647 16516 16489 16520 16520 16516>, + <16651 16525 16492 16520 16517 16513>, + <16656 16530 16500 16517 16507 16502>, + <16661 16535 16508 16512 16496 16492>, + <16667 16541 16518 16496 16483 16483>, + <16672 16550 16524 16484 16474 16478>, + <16677 16559 16523 16486 16478 16484>, + <16681 16572 16520 16489 16482 16493>, + <16681 16583 16519 16487 16480 16490>, + <16681 16586 16522 16481 16466 16472>, + <16683 16584 16519 16460 16444 16441>, + <16685 16589 16535 16474 16457 16462>, + <16686 16600 16556 16489 16481 16498>, + <16690 16607 16587 16511 16517 16538>, + <16731 16705 16640 16542 16554 16574>, + <16977 17408 16876 16575 16570 16582>, + <17741 21347 20034 16542 16499 16493>, + <20756 37147 42728 16520 16475 16480>, + <40431 39078 65535 16547 16479 16478>, + <65535 59865 65535 16609 16483 16478>, + <65535 59865 65535 16609 16483 16478>, + <65535 59865 65535 16609 16483 16478>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <15229 20527 22297 20837 20261 19452>, + <15952 20632 22284 21405 20473 20220>, + <16642 20784 22181 21696 20590 21231>, + <17289 20949 22026 21774 20632 22238>, + <17885 21097 21857 21702 20618 22995>, + <18421 21196 21710 21544 20566 23257>, + <18944 21286 21490 21232 20159 23179>, + <19420 21372 21178 20760 19633 22996>, + <19632 21294 20815 20069 19390 22319>, + <19710 20715 20337 19024 19068 20545>, + <19756 20063 19854 18173 18736 19327>, + <19755 19503 19396 17533 18004 18616>, + <19704 18959 18908 17054 17273 18183>, + <19700 18583 18281 16687 17073 18404>, + <20087 18273 17534 16248 17073 19018>, + <20761 18135 17016 15956 17055 19166>, + <21433 18680 16550 15384 16658 18407>, + <22242 19832 16280 14919 16279 17477>, + <22726 21011 17092 14849 16167 16798>, + <22797 22506 19120 14840 16073 16210>, + <22828 23389 20936 15487 16199 16190>, + <22914 23527 22790 19353 17247 17047>, + <23208 23609 24086 22589 18474 18229>, + <23432 23759 24692 23703 19691 20033>, + <23332 24076 25091 24379 20728 21906>, + <22965 24298 25190 23882 20795 22120>, + <22296 24489 25095 21354 20350 21606>, + <19326 24660 24912 20015 19717 20886>, + <15808 24443 24469 20608 18383 18970>, + <14302 23743 24024 21331 17050 16828>, + <13366 22754 24411 21403 16737 16412>, + <12956 20828 25868 21379 16609 16300>, + <12951 18527 26578 21382 16680 16289>, + <13061 17542 26256 21560 18059 16973>, + <13172 17065 25876 21898 19795 18138>, + <13320 17005 25595 22708 20826 19524>, + <13462 19290 24790 24025 21717 21210>, + <13571 22682 24476 24352 21934 21820>, + <13673 23562 24569 23511 21872 21840>, + <13788 23786 24652 22669 21762 21867>, + <13936 23866 24324 22262 21468 22343>, + <14048 19842 23621 21961 21177 23485>, + <14023 15072 22881 21833 22580 25442>, + <13859 14526 19324 21912 22813 24652>, + <13651 14575 15773 20591 18684 19727>, + <13509 13281 14967 19987 19071 18699>, + <13399 13017 15018 19193 19012 16852>, + <13091 13515 14789 19419 17804 15759>, + <12439 12420 14079 19243 16898 15326>, + <11152 10343 12453 19510 16729 15100>, + <9973 9283 9692 19365 16578 16448>, + <9289 9090 8925 21070 17292 15658>, + <8942 9444 8815 19619 16674 15782>, + <10397 17589 8744 17676 20905 17405>, + <10397 17589 8744 17676 20905 17405>, + <10397 17589 8744 17676 20905 17405>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5726 5290 5165 5051 5012 5005>, + <5720 5292 5164 5051 5012 5005>, + <5713 5293 5163 5050 5011 5006>, + <5706 5293 5161 5049 5011 5006>, + <5698 5292 5159 5048 5011 5007>, + <5690 5291 5157 5048 5012 5007>, + <5682 5289 5153 5048 5012 5008>, + <5673 5285 5150 5048 5013 5008>, + <5663 5280 5146 5048 5013 5008>, + <5650 5276 5142 5048 5014 5008>, + <5639 5272 5140 5049 5015 5008>, + <5633 5270 5139 5050 5016 5009>, + <5628 5268 5139 5051 5017 5010>, + <5624 5268 5139 5053 5019 5011>, + <5620 5269 5141 5056 5021 5013>, + <5616 5271 5143 5058 5023 5015>, + <5611 5276 5146 5062 5025 5017>, + <5605 5282 5151 5065 5028 5018>, + <5598 5283 5159 5071 5031 5020>, + <5586 5278 5168 5078 5035 5022>, + <5571 5270 5168 5081 5040 5027>, + <5559 5257 5152 5082 5047 5035>, + <5549 5240 5134 5082 5051 5040>, + <5541 5230 5120 5067 5036 5027>, + <5535 5222 5109 5042 5012 5007>, + <5531 5219 5106 5037 5008 5003>, + <5528 5219 5106 5036 5008 5002>, + <5526 5220 5105 5036 5008 5002>, + <5525 5220 5106 5038 5010 5003>, + <5528 5221 5107 5042 5012 5004>, + <5540 5221 5109 5045 5015 5006>, + <5555 5223 5112 5048 5018 5009>, + <5573 5227 5115 5051 5021 5013>, + <5593 5233 5116 5054 5025 5017>, + <5615 5242 5118 5057 5028 5020>, + <5638 5255 5122 5058 5027 5019>, + <5664 5271 5129 5058 5025 5016>, + <5694 5292 5136 5058 5022 5014>, + <5730 5314 5145 5054 5018 5012>, + <5771 5339 5155 5051 5016 5010>, + <5817 5367 5165 5052 5018 5013>, + <5871 5397 5178 5055 5020 5017>, + <5935 5433 5196 5056 5019 5016>, + <6015 5490 5220 5056 5015 5009>, + <6129 5575 5246 5049 5007 5000>, + <6321 5700 5323 5061 5017 5011>, + <6491 5850 5405 5069 5026 5023>, + <6748 6187 5545 5081 5039 5036>, + <7368 7507 5901 5094 5051 5048>, + <9029 11388 7575 5108 5056 5049>, + <12822 24602 14648 5100 5032 5022>, + <22524 65535 43420 5103 5025 5019>, + <50538 65535 65535 5138 5030 5022>, + <65535 65535 65535 5229 5039 5028>, + <65535 65535 65535 5229 5039 5028>, + <65535 65535 65535 5229 5039 5028>; + }; + +}; \ No newline at end of file From 02f748e4391c287b15d0eb51171b3ab9c6ce87bb Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Mon, 11 Sep 2023 11:58:14 +0800 Subject: [PATCH 1198/1247] fogo/sensor: update sx937x params 1.update sx937x params 2.fogo-sensors.dtsi Change-Id: I3ed60f83a1030150709194aeade468f0a4eda2a3 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2735621 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- qcom/fogo-sensors.dtsi | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/qcom/fogo-sensors.dtsi b/qcom/fogo-sensors.dtsi index 77b6f0a0fd6f..31ec1eaf73d1 100755 --- a/qcom/fogo-sensors.dtsi +++ b/qcom/fogo-sensors.dtsi @@ -106,19 +106,19 @@ 0x806C 0xFFF9EF 0x8078 0xF7F9FF 0x8084 0xFFFFFF - 0x8098 0x5A37 - 0x80B8 0x3030 - 0x80D8 0x5537 + 0x8098 0x5A33 + 0x80B8 0x2F2F + 0x80D8 0x5535 0x80F8 0x2020 - 0x8118 0x3030 + 0x8118 0x2C2C 0x8138 0xFF 0x8158 0xFF 0x8178 0xC8 - 0x80A0 0x40400E1 - 0x80C0 0x40400E1 + 0x80A0 0x1E1E0001 + 0x80C0 0x10100001 0x80E0 0xE0 0x8100 0xE2 - 0x8120 0x20200E2 + 0x8120 0x1B1B0002 0x8140 0x0 0x8160 0x0 0x8180 0x0 @@ -127,7 +127,7 @@ 0x8190 0x0 0x8194 0x0 0x8090 0x54B85000 - 0x80B0 0x2AE25000 + 0x80B0 0x54B85000 0x80D0 0x54C45000 0x80F0 0x2AE25000 0x8110 0x2ADE5000 From 7493b3b04643f3a78e0f8404f43115f37cc70c0f Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 11 Sep 2023 11:30:57 +0800 Subject: [PATCH 1199/1247] arm/dts: add 3rd supply battery parameter add 3rd supply battery parameter for fogo 5G ROW Change-Id: Ib777167389fc780453180422a02a2239cee1fa04 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2735595 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index be5188daec62..067f4bf186a1 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -7,6 +7,7 @@ qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" + #include "qg-batterydata-qf50-swd-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index be5188daec62..067f4bf186a1 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -7,6 +7,7 @@ qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" + #include "qg-batterydata-qf50-swd-5000mah.dtsi" }; &pm7250b_charger { From d2d7109fdeba6de56a341a95b9fae4ed1405cb9a Mon Sep 17 00:00:00 2001 From: Guocheng Wang Date: Mon, 11 Sep 2023 16:54:58 +0800 Subject: [PATCH 1200/1247] arm/dts: Disable hvdcp2 force 9v For some QC2.0 chargers,such as HW-050450C00, only support output 5V. Then if enable hvdcp2-force-9v,the charger will be abnormal and have no current. So disable it and reset max icl to 2000mA. Change-Id: Ie030baef4a5ca3026daf29b60082e5710d0d8b97 Signed-off-by: Guocheng Wang Reviewed-on: https://gerrit.mot.com/2736011 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogor-charger.dtsi | 3 ++- qcom/fogos-charger.dtsi | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 89a53702ffce..97f9d020258d 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -90,6 +90,7 @@ qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <15000>; + qcom,hvdcp2-max-icl-ua = <2000000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <487>; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 067f4bf186a1..5625a7bb50d8 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -92,7 +92,8 @@ qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; - mmi,hvdcp2-force-9v; + //mmi,hvdcp2-force-9v; + qcom,hvdcp2-max-icl-ua = <2000000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <487>; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 067f4bf186a1..5625a7bb50d8 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -92,7 +92,8 @@ qcom,iterm-ma = <243>; qcom,hvdcp-power-max = <18000>; - mmi,hvdcp2-force-9v; + //mmi,hvdcp2-force-9v; + qcom,hvdcp2-max-icl-ua = <2000000>; mmi,enable-factory-mode-aicl; qcom,noffc-chg-iterm = <243>; qcom,noffc-chg-iterm-45c = <487>; From 1f981514d5c29a5686665860acf49dc23f8dddd1 Mon Sep 17 00:00:00 2001 From: Guocheng Wang Date: Mon, 11 Sep 2023 17:09:11 +0800 Subject: [PATCH 1201/1247] arm/dts: disable lpd to fix typec rid irq storm For qcom driver, the ldp is enabled by default,but this will cause a lot of irqs when the phone is sleeping. And fogos/fogor/fogo not support water detection,so we disable lpd. Change-Id: I7e24c14b496323a39c5fc3d4ab6b3e780a492ccc Signed-off-by: Guocheng Wang Reviewed-on: https://gerrit.mot.com/2736034 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 97f9d020258d..e60e74a9cfa0 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -69,6 +69,7 @@ 1200000 900000 600000>; /delete-property/ qcom,fcc-stepping-enable; + qcom,lpd-disable; }; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 5625a7bb50d8..2e7ca7bc76d2 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -70,6 +70,7 @@ 1200000 900000 600000>; /delete-property/ qcom,fcc-stepping-enable; + qcom,lpd-disable; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 5625a7bb50d8..2e7ca7bc76d2 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -70,6 +70,7 @@ 1200000 900000 600000>; /delete-property/ qcom,fcc-stepping-enable; + qcom,lpd-disable; }; From 7519b94bb60a55f26a42a3c6f4aad605835724f5 Mon Sep 17 00:00:00 2001 From: weiweij Date: Sat, 2 Sep 2023 14:31:56 +0800 Subject: [PATCH 1202/1247] thermal: add uevent trigger parameter for virtual sensor for fogoNA Add uevent thermal trigger configration parameters for virtual sensor. "mmi,uevent-temp-threshold" - the uevent trigger threshold "mmi,need-uevent-sensors" - the sensor list that need uevent Change-Id: I039b44a514f0a54c8090275a5bc8b63105e40fa2 Reviewed-on: https://gerrit.mot.com/2728838 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 5 +++++ qcom/moto_therm_sys_temp.dtsi | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index 983ae388e729..be3b3e997ebc 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -588,6 +588,11 @@ <15>, <16>; }; + + sys_temp_support { + mmi,need-uevent-sensors = "back_temp"; + mmi,uevent-temp-threshold = <40000>; + }; }; /* Primary USB port related QUSB2 PHY */ diff --git a/qcom/moto_therm_sys_temp.dtsi b/qcom/moto_therm_sys_temp.dtsi index 17a9d23fe8dc..4eabd63377b4 100644 --- a/qcom/moto_therm_sys_temp.dtsi +++ b/qcom/moto_therm_sys_temp.dtsi @@ -1,5 +1,5 @@ &soc { - sys_temp_support { + sys_temp_support: sys_temp_support { compatible = "mmi,sys-temp"; mmi,temperature-names = "front_temp", "back_temp"; From 477c1c3bc4fc85e4a9e1300dd9a97e53710f86c7 Mon Sep 17 00:00:00 2001 From: weiweij Date: Mon, 4 Sep 2023 09:27:03 +0800 Subject: [PATCH 1203/1247] thermal: add uevent trigger parameter for virtual sensor for fogos Add uevent thermal trigger configration parameters for virtual sensor. "mmi,uevent-temp-threshold" - the uevent trigger threshold "mmi,need-uevent-sensors" - the sensor list that need uevent Change-Id: Ic358a8741475c32183e58171b1987fae8866fe71 Reviewed-on: https://gerrit.mot.com/2728896 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/blair-fogos-common-overlay.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/blair-fogos-common-overlay.dtsi b/qcom/blair-fogos-common-overlay.dtsi index a6d861b0d48c..3b00ee51265d 100644 --- a/qcom/blair-fogos-common-overlay.dtsi +++ b/qcom/blair-fogos-common-overlay.dtsi @@ -578,6 +578,11 @@ <15>, <16>; }; + + sys_temp_support { + mmi,need-uevent-sensors = "back_temp"; + mmi,uevent-temp-threshold = <40000>; + }; }; /* Primary USB port related QUSB2 PHY */ From 396984ce74be35c863cfe7188951ad9168a4c7f0 Mon Sep 17 00:00:00 2001 From: weichunli Date: Fri, 8 Sep 2023 14:59:38 +0800 Subject: [PATCH 1204/1247] fogos: dtsi: modify lcm display on time 1. modify 1st icnl9916c lcd-reset off 10ms->1ms. modify reg 11 delay time. 2. modify 2nd ili9883c reg 11 and 29 delay time. Change-Id: I8cea5827e71e1420fdac4175eeb3562b495aa348 Signed-off-by: weichunli Reviewed-on: https://gerrit.mot.com/2733926 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 5 +++-- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 8 ++++---- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 93227a5b8460..401eb8bd9797 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -19,7 +19,7 @@ qcom,mdss-dsi-dma-trigger = "trigger_sw"; qcom,mdss-dsi-mdp-trigger = "none"; qcom,mdss-dsi-lp11-init; - qcom,mdss-dsi-reset-sequence = <1 10>, <0 10>, <1 10>; + qcom,mdss-dsi-reset-sequence = <1 10>, <0 1>, <1 10>; qcom,mdss-dsi-tx-eot-append; qcom,adjust-timer-wakeup-ms = <1>; @@ -67,10 +67,11 @@ 39 00 00 00 00 00 03 53 2C 00 39 00 00 00 00 00 03 55 03 00 39 00 00 00 00 00 04 F0 99 16 0C + 39 00 00 00 00 00 0E BB 01 02 03 05 04 07 08 46 0A 4B 00 09 0A 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF - 39 01 00 00 78 00 03 11 00 00 + 39 01 00 00 50 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 39 01 00 00 00 00 03 6D 02 00 39 01 00 00 00 00 05 BD A1 0A 52 AE diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index eb24bfa6189a..bfc1460cc1d3 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -78,14 +78,14 @@ 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 55 02 - 05 01 00 00 82 00 01 11 - 05 01 00 00 1E 00 01 29 + 05 01 00 00 3C 00 01 11 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ 39 01 00 00 05 00 04 FF 98 83 00 - 05 01 00 00 10 00 01 28 - 05 01 00 00 64 00 01 10 + 05 01 00 00 14 00 01 28 + 05 01 00 00 50 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 779a0de90a1db7194c89824891db1f1555fb7ec2 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 11 Sep 2023 14:20:23 +0800 Subject: [PATCH 1205/1247] dsi/panel: fogo: optimize display turn on time of boe panel 1.remove CABC codes, these codes have been otp by panel vendor. 2.reduce the delay time of 11/29 and 28/10 Change-Id: Ifbbba2785072a4a716db50292fdc593d153f1c39 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2735774 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Hujun Liao Submit-Approved: Jira Key --- ...l-mot-boe-ili9883c-656-720x1612-video.dtsi | 35 +++---------------- 1 file changed, 4 insertions(+), 31 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index e6ab8d16cc7e..695719c5b173 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -46,46 +46,19 @@ qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ - 39 00 00 00 00 00 04 FF 98 83 03 - 39 00 00 00 00 00 02 8C D2 - 39 00 00 00 00 00 02 8D D6 - 39 00 00 00 00 00 02 8E DA - 39 00 00 00 00 00 02 8F DE - 39 00 00 00 00 00 02 90 DF - 39 00 00 00 00 00 02 91 E6 - 39 00 00 00 00 00 02 92 E9 - 39 00 00 00 00 00 02 93 ED - 39 00 00 00 00 00 02 94 F0 - 39 00 00 00 00 00 02 95 FF - 39 00 00 00 00 00 02 96 B5 - 39 00 00 00 00 00 02 97 BA - 39 00 00 00 00 00 02 98 BF - 39 00 00 00 00 00 02 99 C4 - 39 00 00 00 00 00 02 9A C9 - 39 00 00 00 00 00 02 9B CD - 39 00 00 00 00 00 02 9C D5 - 39 00 00 00 00 00 02 9D E6 - 39 00 00 00 00 00 02 9E F6 - 39 00 00 00 00 00 02 9F FB - 39 00 00 00 00 00 02 87 4D - 39 00 00 00 00 00 04 FF 98 83 06 - 39 00 00 00 00 00 02 06 A4 - 39 00 00 00 00 00 04 FF 98 83 03 - 39 00 00 00 00 00 02 83 B8 - 39 00 00 00 00 00 02 84 02 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 55 02 - 05 01 00 00 82 00 01 11 - 05 01 00 00 1E 00 01 29 + 05 01 00 00 3C 00 01 11 + 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ 39 01 00 00 05 00 04 FF 98 83 00 - 05 01 00 00 10 00 01 28 - 05 01 00 00 64 00 01 10 + 05 01 00 00 14 00 01 28 + 05 01 00 00 50 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 33147cd78e9b6145a5ac2d0046f15b51edcfedbd Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Wed, 13 Sep 2023 16:06:38 +0800 Subject: [PATCH 1206/1247] kernel/charger:fogo:Fix battery SWD sn fogo: Fix battery SWD sn Change-Id: I654667ef46e20802ae0fa81c7cf42a3a9413a117 Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2738481 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/qg-batterydata-qf50-swd-5000mah.dtsi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/qg-batterydata-qf50-swd-5000mah.dtsi b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi index 76b5515a379c..c675976e6b72 100644 --- a/qcom/qg-batterydata-qf50-swd-5000mah.dtsi +++ b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi @@ -1,8 +1,8 @@ qcom,qf50-swd-5000mah { /* SWD_5000mAH_averaged_MasterSlave_Aug25th2023 */ - serialnum = "SB18D96854"; - qcom,sdam-magic-number = <0x18D96854>; + serialnum = "SB18D99898"; + qcom,sdam-magic-number = <0x18D99898>; qcom,max-voltage-uv = <4530000>; qcom,fg-cc-cv-threshold-uv = <4520000>; qcom,fastchg-current-ma = <4000>; @@ -1016,4 +1016,4 @@ qcom,qf50-swd-5000mah { <65535 65535 65535 5229 5039 5028>; }; -}; \ No newline at end of file +}; From 559736cd536e6571541d6fa773996805507eae6a Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 13 Sep 2023 13:46:42 +0800 Subject: [PATCH 1207/1247] arm/dts: enable DCP FFC feature config DCP FFC feature for all fogo 5G product Change-Id: I41d071072af45163feae3a448bd6badba35358b6 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2738292 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index e60e74a9cfa0..f2732de6adbd 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -98,6 +98,7 @@ qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; + mmi,enable-dcp-ffc; }; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 2e7ca7bc76d2..e3520d5d62f2 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -101,6 +101,7 @@ qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; + mmi,enable-dcp-ffc; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 2e7ca7bc76d2..e3520d5d62f2 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -101,6 +101,7 @@ qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4500>; + mmi,enable-dcp-ffc; }; From 8524b88077d918ece086a72c35aa1a1f0896b4d6 Mon Sep 17 00:00:00 2001 From: lixuehan Date: Wed, 13 Sep 2023 18:05:58 +0800 Subject: [PATCH 1208/1247] :dts: update USB device and host mode hs phy parameter update USB device and host mode hs phy parameter For fogo_na USB device eys diagram test pass. Change-Id: I1a66e1a42117e4da190ec42e0b62dd085bf602e1 Signed-off-by: lixuehan Reviewed-on: https://gerrit.mot.com/2738677 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Huosheng Liao Reviewed-by: Yuecai Liu Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/blair-fogo-common-overlay.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/blair-fogo-common-overlay.dtsi b/qcom/blair-fogo-common-overlay.dtsi index be3b3e997ebc..5d2fbfd19e40 100644 --- a/qcom/blair-fogo-common-overlay.dtsi +++ b/qcom/blair-fogo-common-overlay.dtsi @@ -599,12 +599,12 @@ &usb2_phy0 { qcom,param-override-seq = <0xa6 0x6c /* override_x0 */ - 0x89 0x70 /* override_x1 */ - 0x16 0x74>; /* override x2 */ + 0xca 0x70 /* override_x1 */ + 0x17 0x74>; /* override x2 */ qcom,host-param-override-seq = <0xa7 0x6c /* override_x0 */ - 0x88 0x70 /* override_x1 */ - 0x16 0x74>; /* override_x2 */ + 0xca 0x70 /* override_x1 */ + 0x17 0x74>; /* override_x2 */ }; From 65efa8bbd5212a363514545f6c77147ead515104 Mon Sep 17 00:00:00 2001 From: Guocheng Wang Date: Mon, 18 Sep 2023 19:56:56 +0800 Subject: [PATCH 1209/1247] arm/dts: Fix Google legacy 15W not display "Turbo" When using a Google Universal 15W type-c Charger, but the fast charging icon "Turbo" is not displayed. (Vbus voltage is ~4.91V and the charging current is 2.89A). So we need to enable setting ICL based on Rp for Type-C non-compliant legacy cables. Change-Id: I6e4b9082b861a87250d251dc7fba7274cc0a9907 Signed-off-by: Guocheng Wang Reviewed-on: https://gerrit.mot.com/2743079 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index f2732de6adbd..d16b65aa88a7 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -70,6 +70,7 @@ 600000>; /delete-property/ qcom,fcc-stepping-enable; qcom,lpd-disable; + qcom,typec-legacy-rp-icl; }; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index e3520d5d62f2..d8a9b38a8b31 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -71,6 +71,7 @@ 600000>; /delete-property/ qcom,fcc-stepping-enable; qcom,lpd-disable; + qcom,typec-legacy-rp-icl; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index e3520d5d62f2..d8a9b38a8b31 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -71,6 +71,7 @@ 600000>; /delete-property/ qcom,fcc-stepping-enable; qcom,lpd-disable; + qcom,typec-legacy-rp-icl; }; From f69f430a2f0ec42f91dc11a7b528e1ace663b55c Mon Sep 17 00:00:00 2001 From: weichunli Date: Mon, 18 Sep 2023 17:45:28 +0800 Subject: [PATCH 1210/1247] fogos: dtsi: modify 2nd ili9883c cabc brightness 1.add reg 0xAF. 2.add reg 0x3E. Change-Id: I074a381e106e61bd98ecdb4cc809a7f55cbf56ac Signed-off-by: weichunli Reviewed-on: https://gerrit.mot.com/2743026 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index bfc1460cc1d3..7e248e300259 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -70,9 +70,11 @@ 39 00 00 00 00 00 02 87 4D 39 00 00 00 00 00 04 FF 98 83 06 39 00 00 00 00 00 02 06 A4 + 39 00 00 00 00 00 02 3E E2 39 00 00 00 00 00 04 FF 98 83 03 39 00 00 00 00 00 02 83 B8 39 00 00 00 00 00 02 84 02 + 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 From 2f126afbbd843d8418015caa931df3b3ac7c0c80 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Tue, 19 Sep 2023 16:13:39 +0800 Subject: [PATCH 1211/1247] fogos: dtsi: update 1st icnl9916c gamma code 1. update gamma code. 2. to resolve gray-picture not smooth. Change-Id: I22fa26f0d701232139b0f85295cdb7eeafdc6ced Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2744333 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- ...dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index 401eb8bd9797..ee154d2bc7d1 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -39,8 +39,8 @@ 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 - 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF - 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FF FC FD FE FF FF FF + 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3F 50 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF 39 00 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; @@ -69,8 +69,8 @@ 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 0E BB 01 02 03 05 04 07 08 46 0A 4B 00 09 0A 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 - 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FB FC FD FE FF FF FF - 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3C ED 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FF FC FD FE FF FF FF + 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3F 50 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF 39 01 00 00 50 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 39 01 00 00 00 00 03 6D 02 00 From 8241c430f20989e6f8478c6ac1ec9bceb7ceddc6 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 21 Sep 2023 15:38:47 +0800 Subject: [PATCH 1212/1247] dts/panel: fogo: update the init code to fix the flicker issue Update the source settint of panel. To fix the flicker issue under the picture with warm color. Change-Id: Id9b9fba1bb867e1e89b28b728663c85710436682 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2747747 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi index 3d9f9c6c2d0e..4ca48ad14d34 100644 --- a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -46,6 +46,11 @@ qcom,mdss-dsi-v-pulse-width = <1>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 02 ff 2a + 39 00 00 00 00 00 02 fb 01 + 39 00 00 00 00 00 02 ae aa + 39 00 00 00 00 00 02 b0 7f + 39 00 00 00 00 00 02 b1 93 39 00 00 00 00 00 02 ff 10 39 00 00 00 00 00 02 fb 01 39 00 00 00 00 00 03 51 00 00 From e6dbfa8b489591e3c6c3099067597eaebc2caa49 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 20 Sep 2023 15:13:34 +0800 Subject: [PATCH 1213/1247] dts/panel: fogo: update cabc code of ili9883c to fix the flicker issue. Reason: The ocean on the Gaode map is a high saturation map. After the IC detects the high saturation map, it will call the high saturation map setting, causing significant changes in PWM duty, resulting in significant changes in brightness and darkness Solution: Turn off the function of detecting high saturation images (P3_RAFh=18h), keep the measured PWM duty unchanged. Change-Id: Idc2592e000822ef1fea554b5fc213a6cc88bcb02 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2745889 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index 695719c5b173..af31bd008449 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -46,6 +46,10 @@ qcom,mdss-dsi-v-pulse-width = <2>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ + 39 00 00 00 00 00 04 ff 98 83 06 + 39 00 00 00 00 00 02 3E E2 + 39 00 00 00 00 00 04 ff 98 83 03 + 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 From 2551c7c67df3738d87d4ba727473d09f088d8914 Mon Sep 17 00:00:00 2001 From: Xuehui Ye Date: Tue, 8 Aug 2023 09:34:47 +0800 Subject: [PATCH 1214/1247] Update qseecom_ta_mem to support strong face unlock Use Tetras face to support strong face unlock Need to enlarge the qseecom_ta_mem removed_mem: removed_region@c0000000 is for the qcom TZ APP memory. See more details on the qcom case: Case Number: 06762606 Change-Id: Ib1d221c2469fa6a6fdb781ffdafee7cb29def972 Reviewed-on: https://gerrit.mot.com/2703119 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Binsheng Que Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/blair.dtsi | 4 ++-- qcom/holi.dtsi | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index 2d276c0fe415..c54867d2af2d 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -356,7 +356,7 @@ removed_mem: removed_region@c0000000 { no-map; - reg = <0x0 0xc0000000 0x0 0x5100000>; + reg = <0x0 0xc0000000 0x0 0x7100000>; }; secure_display_memory: secure_display_region { @@ -430,7 +430,7 @@ alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; reusable; alignment = <0x0 0x400000>; - size = <0x0 0x1000000>; + size = <0x0 0x3000000>; }; memshare_mem: memshare_region { diff --git a/qcom/holi.dtsi b/qcom/holi.dtsi index f3a1f1daf8f8..17f915d571b2 100644 --- a/qcom/holi.dtsi +++ b/qcom/holi.dtsi @@ -352,7 +352,7 @@ removed_mem: removed_region@c0000000 { no-map; - reg = <0x0 0xc0000000 0x0 0x5100000>; + reg = <0x0 0xc0000000 0x0 0x7100000>; }; secure_display_memory: secure_display_region { @@ -426,7 +426,7 @@ alloc-ranges = <0x0 0x00000000 0x0 0xffffffff>; reusable; alignment = <0x0 0x400000>; - size = <0x0 0x1000000>; + size = <0x0 0x3000000>; }; memshare_mem: memshare_region { From e995faeb003e81155ed231047d5a91c4bbe489fe Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Thu, 21 Sep 2023 15:30:02 +0800 Subject: [PATCH 1215/1247] fogos: dtsi: update 1st icnl9916c code 1. reg 55 add 1ms delay. 2. reg BB move 55 front. Change-Id: Id3187b50adc518745b917186800d49ba5752180d Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2747712 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index ee154d2bc7d1..adaa905d6e3d 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -65,12 +65,12 @@ 39 01 00 00 00 00 03 35 00 00 39 01 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 - 39 00 00 00 00 00 03 55 03 00 - 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 0E BB 01 02 03 05 04 07 08 46 0A 4B 00 09 0A + 39 00 00 00 00 00 04 F0 99 16 0C 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FF FC FD FE FF FF FF 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3F 50 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF + 39 00 00 00 00 00 03 55 03 00 39 01 00 00 50 00 03 11 00 00 39 01 00 00 0A 00 03 29 00 00 39 01 00 00 00 00 03 6D 02 00 From 2fe66dac2b266f0bfcbd1c28f6c62bd81f573da9 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Thu, 21 Sep 2023 17:28:53 +0800 Subject: [PATCH 1216/1247] fogos: dtsi: modify 2nd ili9883c hfp proch 1. modify hfp proch 20 to 26. 2. avoid hardware interface(such as GSM850). Change-Id: Ic11f8525dc02b6065ed920369ea693a2f8b8eee8 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2748088 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 7e248e300259..0cbf98536cf2 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -37,7 +37,7 @@ timing@0 { qcom,mdss-dsi-panel-width = <720>; qcom,mdss-dsi-panel-height = <1600>; - qcom,mdss-dsi-h-front-porch = <20>; + qcom,mdss-dsi-h-front-porch = <26>; qcom,mdss-dsi-h-back-porch = <20>; qcom,mdss-dsi-h-pulse-width = <8>; qcom,mdss-dsi-h-sync-skew = <0>; From c16900dcc25242b0ea149e0e62d45ff7f523f774 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Wed, 27 Sep 2023 10:42:28 +0800 Subject: [PATCH 1217/1247] fogos/sensor: update sx937x params 1.update sx937x params 2.fogos-sensors.dtsi Change-Id: I701c423f0c44c2922fabd06b209c9455f116e920 Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2752502 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogos-sensors.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/fogos-sensors.dtsi b/qcom/fogos-sensors.dtsi index 57772fa32f3d..7743e31b9b51 100755 --- a/qcom/fogos-sensors.dtsi +++ b/qcom/fogos-sensors.dtsi @@ -114,10 +114,10 @@ 0x8158 0x0 0x8178 0x0 0x80A0 0x21210001 - 0x80C0 0x10100002 + 0x80C0 0x16160002 0x80E0 0x21210001 0x8100 0x25250002 - 0x8120 0x41410002 + 0x8120 0x2E2E0002 0x8140 0x0 0x8160 0x0 0x8180 0x0 From 36cfdfc5c3b89294758eca2016a2b16561d36aec Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Wed, 27 Sep 2023 15:22:36 +0800 Subject: [PATCH 1218/1247] arm/dts: reduce FV to 4490 mv As HW require base on HW design, reduce FV to 4490 mv for avoid vbat out of battery spec. Change-Id: I40de04b2a2b4e29f1af8cbf6873b7b8821bafaec Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2752718 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 14 +++++++------- qcom/fogor-charger.dtsi | 14 +++++++------- qcom/fogos-charger.dtsi | 14 +++++++------- qcom/qg-batterydata-qf50-atl-5000mah.dtsi | 4 ++-- qcom/qg-batterydata-qf50-scud-5000mah.dtsi | 4 ++-- qcom/qg-batterydata-qf50-swd-5000mah.dtsi | 4 ++-- 6 files changed, 27 insertions(+), 27 deletions(-) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index d16b65aa88a7..4ce20ea6bfe9 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -60,7 +60,7 @@ "charge_full_design", "time_to_full_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4530000>; + qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2000000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 @@ -83,11 +83,11 @@ <45 0 4000 4000>, <60 4200 4000 0>; qcom,mmi-ffc-zones = <4200 243 407>, - <4500 243 407>, - <4500 243 407>, - <4530 523 659>, - <4530 590 751>, - <4530 871 1035>, + <4490 243 407>, + <4490 243 407>, + <4520 523 659>, + <4520 590 751>, + <4520 871 1035>, <4200 243 407>; qcom,iterm-ma = <243>; @@ -98,7 +98,7 @@ qcom,noffc-chg-iterm-45c = <487>; qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; - qcom,noffc-max-fv = <4500>; + qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; }; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index d8a9b38a8b31..f6ea96b5dde4 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -61,7 +61,7 @@ "charge_full_design", "time_to_full_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4530000>; + qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2000000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 @@ -85,11 +85,11 @@ <45 0 4000 4000>, <60 4200 4000 0>; qcom,mmi-ffc-zones = <4200 243 407>, - <4500 243 407>, - <4500 243 407>, - <4530 523 659>, - <4530 590 751>, - <4530 871 1035>, + <4490 243 407>, + <4490 243 407>, + <4520 523 659>, + <4520 590 751>, + <4520 871 1035>, <4200 243 407>; qcom,iterm-ma = <243>; @@ -101,7 +101,7 @@ qcom,noffc-chg-iterm-45c = <487>; qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; - qcom,noffc-max-fv = <4500>; + qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index d8a9b38a8b31..f6ea96b5dde4 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -61,7 +61,7 @@ "charge_full_design", "time_to_full_now"; qcom,fcc-max-ua = <4000000>; - qcom,fv-max-uv = <4530000>; + qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2000000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 @@ -85,11 +85,11 @@ <45 0 4000 4000>, <60 4200 4000 0>; qcom,mmi-ffc-zones = <4200 243 407>, - <4500 243 407>, - <4500 243 407>, - <4530 523 659>, - <4530 590 751>, - <4530 871 1035>, + <4490 243 407>, + <4490 243 407>, + <4520 523 659>, + <4520 590 751>, + <4520 871 1035>, <4200 243 407>; qcom,iterm-ma = <243>; @@ -101,7 +101,7 @@ qcom,noffc-chg-iterm-45c = <487>; qcom,noffc-qg-iterm = <407>; qcom,noffc-qg-iterm-45c = <642>; - qcom,noffc-max-fv = <4500>; + qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; }; diff --git a/qcom/qg-batterydata-qf50-atl-5000mah.dtsi b/qcom/qg-batterydata-qf50-atl-5000mah.dtsi index ef086867bff3..216c7d812ad2 100644 --- a/qcom/qg-batterydata-qf50-atl-5000mah.dtsi +++ b/qcom/qg-batterydata-qf50-atl-5000mah.dtsi @@ -3,8 +3,8 @@ qcom,qf50-atl-5000mah { /* ATL_5000mAH_averaged_MasterSlave_Aug11th2023 */ serialnum = "SB18D96852"; qcom,sdam-magic-number = <0x18D96852>; - qcom,max-voltage-uv = <4530000>; - qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <4250>; diff --git a/qcom/qg-batterydata-qf50-scud-5000mah.dtsi b/qcom/qg-batterydata-qf50-scud-5000mah.dtsi index 6b4ba6897c9e..7b224403984e 100644 --- a/qcom/qg-batterydata-qf50-scud-5000mah.dtsi +++ b/qcom/qg-batterydata-qf50-scud-5000mah.dtsi @@ -14,8 +14,8 @@ qcom,qf50-scud-5000mah { /* 6691233_Ontim_SQ432_SCUD_5000mAH_PM7250B_averaged_MasterSlave_Sep6th2023 */ serialnum = "SB18D96853"; qcom,sdam-magic-number = <0x18D96853>; - qcom,max-voltage-uv = <4530000>; - qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <4250>; diff --git a/qcom/qg-batterydata-qf50-swd-5000mah.dtsi b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi index c675976e6b72..732ddd76a2cf 100644 --- a/qcom/qg-batterydata-qf50-swd-5000mah.dtsi +++ b/qcom/qg-batterydata-qf50-swd-5000mah.dtsi @@ -3,8 +3,8 @@ qcom,qf50-swd-5000mah { /* SWD_5000mAH_averaged_MasterSlave_Aug25th2023 */ serialnum = "SB18D99898"; qcom,sdam-magic-number = <0x18D99898>; - qcom,max-voltage-uv = <4530000>; - qcom,fg-cc-cv-threshold-uv = <4520000>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; qcom,fastchg-current-ma = <4000>; qcom,batt-id-kohm = <0>; qcom,battery-beta = <4250>; From 76256f455d4757876603c3e7b2062a033d4a3ab4 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Tue, 10 Oct 2023 13:12:41 +0800 Subject: [PATCH 1219/1247] fogos: dtsi/kernel: modify 2nd ili9883c code add diming 1. add reg 81,82,83. 2. open diming to resolve screen flash at dark to white. Change-Id: Ie3250db4b412c931d89770387947d59ef18dc2df Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2762613 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 0cbf98536cf2..569574d76088 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -72,6 +72,9 @@ 39 00 00 00 00 00 02 06 A4 39 00 00 00 00 00 02 3E E2 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 80 04 + 39 00 00 00 00 00 02 81 04 + 39 00 00 00 00 00 02 82 04 39 00 00 00 00 00 02 83 B8 39 00 00 00 00 00 02 84 02 39 00 00 00 00 00 02 AF 18 From 02359fe1faeaeb7660b3bb9ff1543368a5f85fa2 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Tue, 10 Oct 2023 12:52:11 +0800 Subject: [PATCH 1220/1247] fogos: dtsi/kernel: update 1st icnl9916c init code 1. update init code. 2. modify reg E0 to add cabc diming, resolve screen flash at dark to white. Change-Id: I974fb240b533dbdab24dc847637c1e5fc2d0d9f4 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2762606 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- ...t-tianma-icnl9916c-652-720x1600-video.dtsi | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index adaa905d6e3d..e9d093a3f0fa 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -27,24 +27,25 @@ qcom,mdss-pan-physical-height-dimension = <151>; qcom,mdss-dsi-cabc-mv-command = [ - 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 04 F0 99 16 0C - 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 E7 E7 E7 E7 E9 EB EC ED F0 F0 F3 F6 F9 FD FF FF 39 00 00 00 00 00 21 E2 2F FF 2F FF 2F FF 2F FF 31 47 32 8F 33 D6 35 1E 36 66 37 EF 39 78 3B 01 3C 8A 3E 14 3F FF 3F FF - 39 00 00 00 00 00 04 F0 00 00 00 + 39 01 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-mv-command-state = "dsi_hs_mode"; qcom,mdss-dsi-cabc-ui-command = [ - 15 00 00 00 00 00 02 55 03 39 00 00 00 00 00 04 F0 99 16 0C - 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FF FC FD FE FF FF FF 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3F 50 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF - 39 00 00 00 00 00 04 F0 00 00 00 + 39 01 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-cabc-ui-command-state = "dsi_hs_mode"; - qcom,mdss-dsi-cabc-dis-command = [15 01 00 00 00 00 02 55 00]; + qcom,mdss-dsi-cabc-dis-command = [ + 39 00 00 00 00 00 04 F0 99 16 0c + 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF + 39 00 00 00 00 00 21 E2 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF 3F FF + 39 01 00 00 00 00 04 F0 00 00 00 + ]; qcom,mdss-dsi-cabc-dis-command-state = "dsi_hs_mode"; qcom,mdss-dsi-display-timings { @@ -60,26 +61,25 @@ qcom,mdss-dsi-v-pulse-width = <4>; qcom,mdss-dsi-panel-framerate = <120>; qcom,mdss-dsi-on-command = [ - 39 01 00 00 00 00 04 f0 99 16 0C - 39 01 00 00 00 00 05 bd a1 0a 52 a6 - 39 01 00 00 00 00 03 35 00 00 - 39 01 00 00 00 00 03 51 00 00 + 39 00 00 00 00 00 04 f0 99 16 0C + 39 00 00 00 00 00 05 bd a1 0a 52 a6 + 39 00 00 00 00 00 03 35 00 00 + 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 39 00 00 00 00 00 0E BB 01 02 03 05 04 07 08 46 0A 4B 00 09 0A - 39 00 00 00 00 00 04 F0 99 16 0C - 39 00 00 00 00 00 13 E0 0C 00 B0 0C 00 0A 8C 29 04 01 1F 00 00 00 00 24 12 08 + 39 01 00 00 02 00 03 55 03 00 + 39 01 00 00 50 00 03 11 00 00 + 39 01 00 00 0A 00 03 29 00 00 + 39 00 00 00 00 00 18 E0 0C 00 B0 0C 00 0A 8C 29 04 81 1F 00 00 00 00 24 12 08 11 48 47 00 00 39 00 00 00 00 00 20 E1 0F 1F 2F 3F 4F 5F 6F 7F 90 A0 B0 C0 D0 E0 E8 EC ED EF F1 F3 F5 F7 F9 FB FF FC FD FE FF FF FF 39 00 00 00 00 00 21 E2 36 24 37 4B 38 72 39 99 3A 1C 3A 9F 3B 22 3B A5 3C 28 3F 50 3D B1 3E 76 3F 3A 3F FF 3F FF 3F FF - 39 00 00 00 00 00 03 55 03 00 - 39 01 00 00 50 00 03 11 00 00 - 39 01 00 00 0A 00 03 29 00 00 - 39 01 00 00 00 00 03 6D 02 00 - 39 01 00 00 00 00 05 BD A1 0A 52 AE + 39 00 00 00 00 00 03 6D 02 00 + 39 00 00 00 00 00 05 BD A1 0A 52 AE 39 01 00 00 00 00 04 F0 00 00 00 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ - 39 01 00 00 00 00 03 6d 25 00 + 39 00 00 00 00 00 03 6d 25 00 39 01 00 00 10 00 03 28 00 00 39 01 00 00 64 00 03 10 00 00 ]; From 216434e3b650d9a4f601217e8edeca2c6a46f3ce Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Tue, 10 Oct 2023 17:34:31 +0800 Subject: [PATCH 1221/1247] fogos: dtsi/kernel: modify 2nd ili9883c timing 1. vddio keep high. 2. lcd-reset keep high. Change-Id: I792cf92befdb681917336ad1a846e1245794b2c0 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2763002 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogos-display.dtsi | 44 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/qcom/fogos-display.dtsi b/qcom/fogos-display.dtsi index ce2187327080..3bc7606e679e 100644 --- a/qcom/fogos-display.dtsi +++ b/qcom/fogos-display.dtsi @@ -106,6 +106,7 @@ qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; + qcom,supply-always-on; }; qcom,panel-supply-entry@1 { @@ -132,6 +133,45 @@ }; }; + + dsi_panel_pwr_supply_fogos_chipone: dsi_panel_pwr_supply_fogos_chipone{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <30>; + qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; + }; + + }; }; &sde_dsi { @@ -159,7 +199,7 @@ /*qcom,mdss-dsi-pan-dfps-send-command;*/ qcom,mdss-dsi-pan-on-fps = <120>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogos>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogos_chipone>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <13>; @@ -247,7 +287,7 @@ qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 96]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - + qcom,platform-reset-gpio-always-on; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { From 1423c8896c56015e74067fdb57268289fb36f4ab Mon Sep 17 00:00:00 2001 From: houdz1 Date: Mon, 9 Oct 2023 14:26:22 +0800 Subject: [PATCH 1222/1247] dts/panel: fogo: keep ldo_1p8 and reset always on When panel power off, tp_cs is high. Then LDO will be pull up by tp_cs. That ldo can not be pull to low. it do not match the spec. So Keep ldo always on to fix the issue. Change-Id: Ifd8941b21aef94a1d29765454749acddfee7fdd4 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2761242 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/fogo-display.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index 4ec46edd1507..d9f726ef2e76 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -78,6 +78,7 @@ qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; + qcom,supply-always-on; }; qcom,panel-supply-entry@1 { @@ -163,6 +164,8 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,platform-reset-gpio-always-on; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { @@ -218,6 +221,8 @@ qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 06 66]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; + qcom,platform-reset-gpio-always-on; + qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { From 1a69deb2301bde04250da89b35f62ac7526a82d4 Mon Sep 17 00:00:00 2001 From: Guocheng Wang Date: Wed, 11 Oct 2023 18:02:01 +0800 Subject: [PATCH 1223/1247] arm/dts: add 3st supply battery parameter add 3st supply battery parameter for fogo 5G ROW Change-Id: I5a1d1aafe8f65d7c9f9b419d416a92463eb59a82 Signed-off-by: Guocheng Wang Reviewed-on: https://gerrit.mot.com/2764465 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Haijian Ma Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + ...tterydata-qf50-atl-SB18D96854-5000mah.dtsi | 1019 +++++++++++++++++ 3 files changed, 1021 insertions(+) create mode 100644 qcom/qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index f6ea96b5dde4..a39ca277e7ad 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" + #include "qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" #include "qg-batterydata-qf50-swd-5000mah.dtsi" }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index f6ea96b5dde4..a39ca277e7ad 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -6,6 +6,7 @@ df-serialnum = "SB18D96852"; qcom,batt-id-range-pct = <15>; #include "qg-batterydata-qf50-atl-5000mah.dtsi" + #include "qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" #include "qg-batterydata-qf50-swd-5000mah.dtsi" }; diff --git a/qcom/qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi b/qcom/qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi new file mode 100644 index 000000000000..65536993d29d --- /dev/null +++ b/qcom/qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi @@ -0,0 +1,1019 @@ + +qcom,qf50-atl-SB18D96854-5000mah { + /* ATL_SB18D96854_5000mAH_averaged_MasterSlave_Oct9th2023 */ + serialnum = "SB18D96854"; + qcom,sdam-magic-number = <0x18D96854>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-ATL-SB18D96854-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4790 4963 5105 5130 5136>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4801 4933 5021 5092 5098 5091>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44593 44719 44804 44838 44844>, + <44363 44459 44477 44490 44497>, + <44144 44230 44243 44243 44244>, + <43927 44019 44035 44031 44030>, + <43713 43810 43820 43818 43818>, + <43498 43596 43604 43604 43606>, + <43273 43372 43381 43385 43390>, + <43035 43137 43142 43153 43158>, + <42792 42894 42895 42911 42914>, + <42551 42644 42646 42663 42666>, + <42310 42393 42393 42408 42414>, + <42073 42146 42141 42154 42162>, + <41839 41903 41889 41903 41914>, + <41609 41666 41642 41656 41669>, + <41387 41435 41405 41418 41431>, + <41171 41209 41175 41184 41198>, + <40963 40990 40953 40960 40972>, + <40761 40781 40738 40744 40753>, + <40565 40581 40532 40539 40543>, + <40376 40391 40342 40345 40348>, + <40196 40208 40161 40165 40169>, + <40017 40026 39958 39961 39968>, + <39832 39829 39722 39704 39713>, + <39642 39584 39487 39452 39461>, + <39449 39308 39263 39253 39271>, + <39236 39091 39056 39084 39112>, + <39033 38952 38915 38947 38967>, + <38893 38848 38817 38837 38830>, + <38793 38757 38729 38737 38709>, + <38708 38674 38639 38633 38609>, + <38631 38593 38555 38534 38521>, + <38562 38516 38475 38446 38438>, + <38499 38443 38399 38368 38361>, + <38440 38377 38330 38296 38287>, + <38385 38316 38270 38227 38216>, + <38335 38263 38215 38161 38145>, + <38289 38219 38159 38095 38074>, + <38243 38179 38104 38031 37999>, + <38199 38129 38036 37954 37912>, + <38151 38063 37943 37851 37796>, + <38082 37978 37834 37733 37667>, + <37977 37865 37713 37614 37543>, + <37855 37731 37574 37487 37414>, + <37710 37574 37403 37324 37244>, + <37573 37406 37240 37171 37097>, + <37402 37260 37123 37076 37019>, + <37316 37197 37089 37042 36986>, + <37241 37152 37063 37019 36962>, + <37178 37120 37041 36998 36938>, + <37126 37083 36997 36945 36882>, + <37082 36997 36796 36700 36622>, + <37038 36781 36363 36256 36180>, + <36969 36458 35772 35667 35597>, + <36769 35910 34953 34863 34801>, + <36046 34963 33679 33606 33568>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44815 44815 44800 44750 44750 44740>, + <44407 44442 44446 44412 44411 44406>, + <44058 44120 44138 44113 44111 44108>, + <43782 43862 43887 43862 43858 43856>, + <43570 43658 43684 43653 43646 43644>, + <43370 43460 43482 43441 43432 43430>, + <43150 43241 43259 43211 43203 43201>, + <42924 43016 43028 42975 42968 42965>, + <42694 42783 42789 42731 42725 42723>, + <42460 42540 42539 42479 42474 42472>, + <42225 42294 42288 42227 42223 42221>, + <41992 42052 42042 41975 41972 41972>, + <41761 41809 41797 41725 41722 41724>, + <41530 41572 41555 41481 41480 41482>, + <41301 41339 41316 41244 41245 41246>, + <41073 41112 41084 41013 41016 41017>, + <40839 40897 40859 40787 40791 40794>, + <40599 40690 40642 40570 40575 40580>, + <40356 40467 40440 40366 40372 40374>, + <40111 40218 40252 40169 40175 40175>, + <39864 39963 40042 39964 39983 39983>, + <39631 39715 39777 39750 39796 39802>, + <39413 39470 39500 39529 39597 39609>, + <39208 39248 39262 39284 39341 39357>, + <39016 39051 39053 39038 39072 39086>, + <38835 38873 38871 38855 38882 38895>, + <38669 38714 38718 38714 38743 38756>, + <38518 38570 38583 38591 38623 38636>, + <38381 38439 38460 38476 38512 38521>, + <38272 38314 38347 38370 38411 38417>, + <38185 38202 38244 38274 38318 38322>, + <38109 38107 38149 38184 38232 38237>, + <38038 38025 38060 38103 38153 38157>, + <37972 37952 37977 38031 38083 38085>, + <37909 37890 37898 37962 38015 38011>, + <37847 37833 37832 37890 37930 37918>, + <37785 37779 37777 37816 37833 37806>, + <37721 37730 37725 37735 37733 37694>, + <37655 37673 37667 37646 37630 37587>, + <37584 37596 37598 37551 37525 37480>, + <37506 37504 37511 37454 37428 37384>, + <37421 37406 37402 37350 37328 37287>, + <37330 37300 37266 37220 37200 37161>, + <37233 37174 37106 37072 37060 37018>, + <37130 37022 36934 36927 36933 36885>, + <37023 36864 36784 36857 36879 36834>, + <36972 36796 36726 36836 36868 36823>, + <36922 36732 36672 36813 36853 36809>, + <36865 36674 36610 36782 36827 36779>, + <36798 36606 36517 36704 36751 36698>, + <36719 36495 36306 36440 36464 36398>, + <36622 36353 35951 35932 35962 35898>, + <36513 36035 35540 35247 35298 35239>, + <36210 35567 34813 34264 34365 34314>, + <36001 35211 33926 32680 32928 32922>, + <35909 34566 32099 29510 28715 29333>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13001 12285 11791 11421 11294>, + <13019 12319 11832 11465 11337>, + <13012 12323 11823 11455 11331>, + <13004 12312 11815 11449 11328>, + <12989 12300 11804 11444 11325>, + <12968 12290 11789 11438 11322>, + <12954 12280 11775 11433 11319>, + <12945 12265 11764 11427 11318>, + <12938 12252 11753 11422 11316>, + <12923 12239 11743 11419 11316>, + <12886 12220 11733 11416 11315>, + <12862 12197 11729 11415 11315>, + <12835 12182 11729 11413 11314>, + <12804 12175 11729 11411 11314>, + <12788 12173 11728 11410 11313>, + <12765 12171 11726 11411 11313>, + <12751 12169 11724 11412 11313>, + <12743 12166 11724 11412 11314>, + <12730 12165 11723 11412 11316>, + <12725 12164 11726 11413 11317>, + <12725 12165 11731 11415 11318>, + <12726 12172 11733 11416 11319>, + <12727 12180 11736 11416 11319>, + <12729 12183 11739 11417 11320>, + <12733 12184 11742 11418 11321>, + <12747 12186 11746 11421 11323>, + <12765 12194 11751 11424 11325>, + <12776 12207 11756 11429 11328>, + <12783 12217 11761 11434 11331>, + <12788 12225 11766 11437 11335>, + <12792 12233 11771 11440 11338>, + <12800 12240 11776 11444 11342>, + <12807 12245 11782 11450 11346>, + <12815 12245 11788 11455 11351>, + <12823 12245 11794 11461 11354>, + <12826 12247 11800 11467 11358>, + <12825 12257 11808 11473 11362>, + <12826 12269 11818 11478 11366>, + <12837 12282 11829 11484 11371>, + <12854 12304 11840 11490 11376>, + <12872 12323 11850 11496 11381>, + <12902 12333 11857 11503 11385>, + <12916 12343 11863 11511 11389>, + <12918 12366 11868 11517 11393>, + <12935 12374 11882 11524 11398>, + <12975 12375 11894 11529 11400>, + <12971 12399 11900 11530 11400>, + <12977 12377 11893 11530 11400>, + <12956 12386 11897 11534 11404>, + <12966 12372 11909 11537 11408>, + <12970 12406 11912 11543 11411>, + <12977 12402 11928 11550 11416>, + <12964 12411 11935 11558 11424>, + <12996 12424 11950 11570 11433>, + <12996 12424 11950 11570 11433>, + <12996 12424 11950 11570 11433>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10320 10218 10422 10335 10103>, + <10141 10407 10667 10450 10205>, + <10292 10511 10675 10590 10322>, + <10394 10562 10674 10605 10473>, + <10383 10566 10664 10605 10528>, + <10358 10535 10606 10557 10481>, + <10340 10493 10544 10487 10415>, + <10324 10459 10501 10412 10374>, + <10310 10435 10463 10334 10340>, + <10296 10417 10430 10317 10333>, + <10281 10404 10399 10332 10338>, + <10275 10400 10387 10344 10344>, + <10276 10402 10400 10345 10332>, + <10278 10409 10418 10346 10308>, + <10281 10416 10425 10351 10289>, + <10289 10425 10429 10366 10231>, + <10300 10438 10435 10375 10192>, + <10316 10454 10444 10330 10198>, + <10338 10466 10454 10270 10210>, + <10353 10474 10459 10268 10226>, + <10364 10480 10463 10293 10255>, + <10373 10486 10479 10340 10307>, + <10381 10492 10570 10536 10519>, + <10389 10513 10643 10715 10722>, + <10399 10541 10589 10626 10658>, + <10418 10548 10482 10388 10456>, + <10438 10534 10455 10315 10437>, + <10441 10521 10461 10337 10997>, + <10434 10520 10471 10377 11471>, + <10428 10522 10496 10506 11283>, + <10430 10522 10529 10697 10847>, + <10434 10521 10549 10723 10572>, + <10438 10523 10564 10621 10384>, + <10443 10530 10569 10506 10275>, + <10448 10543 10561 10398 10227>, + <10450 10550 10549 10310 10199>, + <10451 10548 10547 10307 10209>, + <10452 10542 10550 10339 10269>, + <10454 10541 10555 10383 10335>, + <10457 10549 10576 10475 10411>, + <10460 10555 10601 10563 10475>, + <10464 10550 10614 10570 10489>, + <10468 10546 10625 10546 10489>, + <10476 10543 10676 10539 10505>, + <10258 10612 10693 10539 10500>, + <10202 10680 10648 10509 10438>, + <10111 10660 10634 10502 10437>, + <10074 10647 10596 10512 10438>, + <10038 10892 10565 10516 10442>, + <9961 10981 10559 10578 10553>, + <9920 10890 10626 10515 10467>, + <9778 10816 10640 10340 10196>, + <9713 10647 10580 10264 10119>, + <9769 10508 10477 10193 10026>, + <9769 10508 10477 10193 10026>, + <9769 10508 10477 10193 10026>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19453 19390 19351 19341 19359>, + <19546 19459 19413 19374 19360>, + <19608 19497 19429 19394 19385>, + <19641 19516 19438 19401 19392>, + <19650 19523 19443 19405 19395>, + <19655 19526 19446 19409 19397>, + <19658 19527 19449 19410 19399>, + <19661 19526 19452 19411 19402>, + <19662 19525 19454 19411 19406>, + <19660 19524 19452 19411 19407>, + <19654 19522 19444 19408 19403>, + <19648 19518 19436 19404 19398>, + <19643 19511 19433 19401 19393>, + <19639 19503 19430 19397 19389>, + <19633 19496 19424 19392 19384>, + <19627 19492 19418 19387 19379>, + <19621 19490 19413 19382 19374>, + <19615 19489 19410 19377 19371>, + <19608 19487 19408 19372 19367>, + <19603 19484 19405 19367 19361>, + <19598 19481 19401 19362 19354>, + <19595 19479 19401 19361 19351>, + <19596 19480 19412 19366 19355>, + <19600 19488 19420 19373 19359>, + <19605 19500 19415 19365 19351>, + <19612 19504 19405 19345 19331>, + <19618 19500 19399 19339 19329>, + <19619 19494 19394 19339 19382>, + <19615 19490 19392 19340 19427>, + <19610 19487 19394 19355 19423>, + <19606 19486 19396 19380 19410>, + <19603 19487 19401 19387 19398>, + <19600 19488 19409 19385 19388>, + <19597 19489 19413 19382 19378>, + <19594 19489 19412 19377 19367>, + <19592 19489 19409 19369 19357>, + <19591 19487 19407 19362 19348>, + <19589 19484 19403 19354 19340>, + <19586 19480 19400 19351 19337>, + <19582 19477 19398 19352 19337>, + <19577 19473 19396 19353 19338>, + <19568 19468 19393 19352 19339>, + <19559 19464 19388 19350 19344>, + <19552 19461 19385 19351 19350>, + <19343 19446 19379 19351 19352>, + <19300 19427 19373 19340 19340>, + <19299 19429 19370 19336 19336>, + <19296 19423 19367 19332 19326>, + <19297 19365 19359 19327 19321>, + <19294 19359 19355 19322 19311>, + <19292 19358 19350 19338 19329>, + <19273 19320 19359 19359 19350>, + <19275 19311 19353 19364 19351>, + <19306 19391 19382 19359 19347>, + <19306 19391 19382 19359 19347>, + <19306 19391 19382 19359 19347>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15468 15284 14996 14904 14887>, + <15768 15364 15117 14876 14827>, + <15625 15301 15092 14911 14870>, + <15464 15176 15003 14874 14843>, + <15334 15064 14942 14841 14818>, + <15210 14985 14897 14816 14798>, + <15114 14924 14858 14793 14779>, + <15040 14876 14823 14773 14761>, + <14980 14837 14792 14756 14743>, + <14933 14805 14767 14741 14732>, + <14894 14779 14746 14728 14725>, + <14861 14758 14731 14719 14720>, + <14833 14741 14721 14712 14716>, + <14810 14730 14713 14707 14714>, + <14790 14724 14707 14702 14710>, + <14773 14719 14703 14697 14706>, + <14760 14714 14698 14692 14703>, + <14750 14710 14694 14688 14699>, + <14742 14706 14690 14684 14696>, + <14738 14703 14685 14679 14690>, + <14736 14700 14681 14673 14683>, + <14735 14699 14682 14672 14681>, + <14736 14702 14703 14706 14715>, + <14741 14726 14734 14754 14763>, + <14749 14776 14778 14791 14795>, + <14776 14807 14826 14824 14821>, + <14809 14809 14834 14831 14822>, + <14815 14801 14821 14819 14754>, + <14811 14789 14804 14799 14695>, + <14806 14773 14788 14769 14691>, + <14800 14761 14770 14731 14689>, + <14792 14751 14754 14709 14687>, + <14785 14742 14737 14697 14683>, + <14779 14738 14724 14688 14679>, + <14774 14735 14714 14683 14675>, + <14769 14733 14708 14679 14671>, + <14764 14730 14704 14677 14669>, + <14758 14727 14702 14675 14668>, + <14747 14721 14701 14675 14668>, + <14733 14714 14703 14684 14681>, + <14722 14706 14705 14694 14697>, + <14714 14698 14702 14692 14693>, + <14702 14688 14694 14686 14682>, + <14685 14674 14688 14687 14686>, + <14845 14654 14674 14681 14682>, + <14881 14650 14656 14663 14658>, + <14886 14648 14651 14661 14655>, + <14889 14651 14641 14649 14650>, + <14890 14712 14636 14633 14632>, + <14892 14711 14633 14625 14623>, + <14896 14712 14653 14644 14652>, + <14913 14758 14660 14646 14659>, + <14913 14772 14671 14649 14666>, + <14897 14700 14650 14658 14676>, + <14897 14700 14650 14658 14676>, + <14897 14700 14650 14658 14676>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12770 13171 13603 13845 14791>, + <14155 15250 16703 17161 16712>, + <15460 16798 17519 18575 19208>, + <16507 17913 18278 19681 20781>, + <17186 18716 18887 20445 21736>, + <17735 19366 19336 20933 22218>, + <18429 19987 19885 21377 22705>, + <19387 20692 20888 21887 23950>, + <20341 21617 22034 22444 26078>, + <21051 22826 22766 23242 27486>, + <21655 24169 23290 24520 28328>, + <22383 25267 23936 25735 28849>, + <23447 25874 25182 26603 29118>, + <24676 26278 26306 27346 29297>, + <25805 26748 26600 28103 29405>, + <26879 27468 26723 29040 29718>, + <28024 28540 26995 29658 30204>, + <29464 29831 27992 29953 31496>, + <31008 30970 29250 30340 33168>, + <32018 31779 30130 30977 34135>, + <32501 32440 30986 32230 35013>, + <33039 33461 33285 34023 35569>, + <34762 35326 42233 37909 36591>, + <38685 41967 48954 41144 37496>, + <42761 50144 43988 36443 33101>, + <47271 51347 33537 24211 21515>, + <51182 45323 28145 19084 18742>, + <51272 38177 25092 17811 31918>, + <47274 35211 23837 17285 43132>, + <43386 33897 23940 19345 41578>, + <41870 33680 24227 23800 37626>, + <40821 34980 25322 26459 35269>, + <40346 37363 28909 28337 33930>, + <40332 39788 32294 29801 32727>, + <40471 42627 34928 31077 31246>, + <40676 44423 36976 32038 30007>, + <41267 44306 37918 32266 29648>, + <41819 43290 38596 32320 29483>, + <42486 42860 38766 32466 29448>, + <43208 42704 38184 33667 30081>, + <43053 42357 37154 34906 30791>, + <41032 40933 34830 32644 30390>, + <39874 40008 31931 27841 29417>, + <39457 41456 32112 28117 32563>, + <16752 43769 33346 29173 35034>, + <12168 37632 34020 25175 27594>, + <12050 37832 31527 23178 24373>, + <11976 32847 31875 22986 21175>, + <11899 21596 27076 24858 24152>, + <11793 20594 26452 25614 23689>, + <11695 20551 21808 28233 27428>, + <11387 13263 21748 28593 25239>, + <11376 12965 18254 26587 21405>, + <12509 24364 25760 20450 17080>, + <12509 24364 25760 20450 17080>, + <12509 24364 25760 20450 17080>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15641 15139 14800 14663 14640>, + <15767 15187 14883 14672 14622>, + <15698 15163 14873 14694 14650>, + <15615 15108 14835 14682 14643>, + <15538 15052 14808 14671 14635>, + <15459 15006 14786 14660 14628>, + <15394 14969 14766 14651 14620>, + <15341 14939 14749 14642 14614>, + <15296 14912 14734 14634 14609>, + <15255 14890 14718 14626 14604>, + <15218 14870 14702 14619 14599>, + <15186 14852 14691 14612 14594>, + <15159 14836 14684 14607 14590>, + <15135 14824 14678 14602 14586>, + <15113 14817 14672 14597 14581>, + <15093 14812 14666 14592 14576>, + <15077 14808 14662 14587 14572>, + <15065 14805 14658 14582 14568>, + <15056 14802 14655 14577 14564>, + <15052 14800 14652 14572 14559>, + <15050 14798 14649 14567 14552>, + <15049 14798 14650 14566 14550>, + <15050 14800 14664 14586 14568>, + <15058 14817 14682 14609 14591>, + <15067 14846 14700 14618 14596>, + <15086 14862 14716 14624 14599>, + <15106 14863 14718 14624 14599>, + <15109 14859 14711 14619 14599>, + <15107 14853 14703 14613 14599>, + <15104 14848 14698 14610 14595>, + <15102 14844 14693 14607 14588>, + <15100 14842 14690 14602 14582>, + <15099 14841 14688 14597 14576>, + <15098 14841 14686 14592 14569>, + <15096 14842 14683 14587 14562>, + <15096 14843 14681 14583 14556>, + <15096 14844 14680 14579 14550>, + <15097 14844 14679 14575 14546>, + <15099 14844 14679 14573 14544>, + <15101 14846 14682 14578 14550>, + <15105 14847 14684 14584 14557>, + <15109 14848 14683 14583 14558>, + <15114 14848 14681 14581 14557>, + <15119 14849 14681 14583 14561>, + <15107 14847 14678 14581 14561>, + <15109 14842 14669 14569 14545>, + <15112 14845 14666 14566 14542>, + <15115 14843 14660 14559 14535>, + <15117 14842 14655 14550 14524>, + <15119 14842 14655 14545 14516>, + <15121 14847 14665 14563 14538>, + <15125 14853 14677 14577 14555>, + <15137 14864 14684 14583 14561>, + <15160 14886 14698 14588 14566>, + <15160 14886 14698 14588 14566>, + <15160 14886 14698 14588 14566>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6411 6004 5662 5339 5130 5048>, + <6412 5988 5657 5338 5125 5046>, + <6414 5974 5651 5335 5121 5044>, + <6415 5963 5645 5331 5117 5043>, + <6418 5956 5641 5327 5113 5041>, + <6421 5953 5637 5324 5110 5039>, + <6427 5957 5635 5320 5106 5036>, + <6434 5965 5634 5315 5103 5034>, + <6436 5967 5630 5311 5100 5033>, + <6422 5965 5622 5306 5097 5033>, + <6405 5963 5614 5302 5095 5032>, + <6404 5960 5605 5299 5093 5030>, + <6414 5955 5597 5296 5091 5028>, + <6425 5954 5595 5295 5090 5027>, + <6438 5957 5598 5295 5089 5027>, + <6454 5959 5600 5295 5088 5027>, + <6458 5956 5596 5294 5087 5026>, + <6453 5948 5589 5292 5087 5027>, + <6446 5946 5587 5292 5088 5027>, + <6443 5950 5590 5294 5089 5029>, + <6446 5957 5594 5295 5090 5030>, + <6447 5968 5601 5296 5090 5030>, + <6436 5985 5605 5298 5091 5031>, + <6423 5992 5606 5302 5093 5032>, + <6423 5984 5607 5307 5096 5034>, + <6429 5974 5610 5311 5098 5036>, + <6435 5972 5614 5314 5101 5037>, + <6440 5966 5618 5318 5103 5039>, + <6444 5964 5619 5322 5106 5041>, + <6444 5968 5618 5326 5108 5043>, + <6434 5973 5618 5330 5111 5045>, + <6424 5982 5621 5334 5115 5047>, + <6431 5998 5628 5337 5118 5050>, + <6451 6006 5636 5339 5122 5052>, + <6460 5995 5642 5342 5125 5054>, + <6453 5981 5642 5345 5128 5056>, + <6443 5981 5644 5349 5132 5059>, + <6441 5990 5645 5353 5134 5061>, + <6444 5996 5644 5357 5136 5063>, + <6446 5987 5642 5362 5137 5064>, + <6445 5973 5643 5366 5139 5065>, + <6442 5971 5649 5371 5141 5066>, + <6438 5977 5661 5376 5142 5068>, + <6428 5979 5665 5382 5145 5070>, + <6428 5978 5658 5393 5148 5073>, + <6456 5991 5678 5395 5154 5077>, + <6456 6006 5663 5405 5159 5078>, + <6453 6000 5670 5411 5156 5079>, + <6489 6040 5677 5410 5154 5079>, + <6581 6103 5732 5416 5156 5078>, + <6667 6171 5786 5421 5157 5079>, + <6720 6292 5877 5433 5161 5082>, + <6860 6626 6181 5467 5168 5087>, + <7049 6682 6246 5485 5177 5095>, + <7049 6682 6246 5485 5177 5095>, + <7049 6682 6246 5485 5177 5095>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10413 10904 11206 11383 11183 11188>, + <10459 10927 11198 11337 11159 11154>, + <10522 10942 11186 11289 11121 11115>, + <10588 10951 11170 11243 11078 11073>, + <10645 10955 11151 11201 11034 11027>, + <10680 10957 11130 11167 10996 10979>, + <10691 10952 11103 11135 10946 10918>, + <10697 10940 11075 11109 10898 10864>, + <10705 10929 11053 11092 10883 10839>, + <10716 10916 11026 11078 10876 10825>, + <10730 10907 11011 11070 10870 10810>, + <10745 10910 11013 11072 10868 10787>, + <10760 10919 11020 11076 10867 10768>, + <10778 10931 11028 11079 10860 10764>, + <10806 10952 11042 11088 10842 10766>, + <10839 10980 11061 11102 10845 10774>, + <10866 11018 11090 11138 10900 10814>, + <10892 11063 11131 11184 10971 10856>, + <10908 11089 11186 11236 11015 10869>, + <10910 11101 11258 11299 11057 10874>, + <10909 11109 11292 11326 11142 10921>, + <10906 11111 11269 11338 11359 11188>, + <10894 11111 11236 11345 11503 11392>, + <10875 11113 11238 11318 11384 11305>, + <10856 11123 11261 11267 11171 11138>, + <10837 11134 11271 11262 11108 11091>, + <10804 11134 11265 11302 11096 11095>, + <10480 11126 11263 11341 11100 11111>, + <9951 11119 11280 11360 11149 11166>, + <9769 11114 11300 11375 11223 11241>, + <9738 11105 11304 11395 11263 11274>, + <9721 11092 11305 11420 11289 11288>, + <9711 11066 11304 11442 11328 11308>, + <9704 11036 11300 11468 11452 11376>, + <9697 10997 11279 11487 11573 11446>, + <9691 10949 11247 11485 11565 11425>, + <9685 10902 11216 11468 11499 11319>, + <9680 10855 11183 11447 11435 11248>, + <9676 10779 11133 11417 11360 11218>, + <9673 10435 11056 11379 11296 11201>, + <9671 9952 10968 11331 11258 11214>, + <9669 9778 10877 11280 11225 11241>, + <9667 9718 10669 11270 11246 11227>, + <9664 9692 10363 11248 11239 11165>, + <9662 9679 10064 11121 11159 11025>, + <9659 9668 9852 11102 11024 10843>, + <9658 9664 9800 11046 11049 10828>, + <9655 9660 9728 11073 11095 10849>, + <9652 9655 9685 11126 11085 10848>, + <9650 9650 9667 11121 11054 10868>, + <9648 9648 9657 10968 11005 10765>, + <9648 9648 9651 10746 10871 10731>, + <9647 9648 9649 10517 10798 10647>, + <9647 9648 9649 9961 10671 10492>, + <9647 9648 9649 9961 10671 10492>, + <9647 9648 9649 9961 10671 10492>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13421 13348 13315 13289 13275 13276>, + <13426 13352 13317 13290 13277 13276>, + <13433 13355 13319 13291 13278 13277>, + <13440 13359 13322 13292 13279 13278>, + <13446 13362 13323 13293 13280 13279>, + <13449 13365 13325 13294 13281 13280>, + <13449 13366 13326 13295 13282 13281>, + <13448 13368 13326 13296 13283 13281>, + <13447 13368 13327 13297 13284 13282>, + <13445 13368 13326 13298 13285 13282>, + <13444 13368 13326 13298 13285 13283>, + <13442 13368 13328 13298 13286 13283>, + <13441 13367 13329 13299 13286 13284>, + <13439 13366 13329 13299 13287 13285>, + <13436 13364 13329 13301 13289 13286>, + <13433 13363 13328 13302 13291 13287>, + <13429 13363 13327 13302 13291 13289>, + <13424 13363 13325 13301 13292 13290>, + <13418 13362 13325 13300 13293 13290>, + <13412 13359 13326 13298 13295 13290>, + <13406 13354 13326 13297 13295 13290>, + <13400 13349 13322 13297 13293 13290>, + <13395 13344 13317 13297 13291 13290>, + <13390 13340 13313 13295 13286 13286>, + <13386 13338 13311 13292 13280 13278>, + <13381 13335 13309 13290 13279 13276>, + <13376 13333 13308 13290 13278 13277>, + <13369 13330 13307 13290 13278 13278>, + <13361 13328 13306 13289 13279 13277>, + <13360 13326 13306 13289 13279 13276>, + <13363 13323 13305 13289 13279 13276>, + <13368 13322 13305 13289 13278 13276>, + <13376 13321 13305 13289 13278 13276>, + <13390 13321 13304 13289 13279 13277>, + <13406 13322 13303 13289 13281 13278>, + <13422 13323 13303 13289 13281 13278>, + <13442 13326 13304 13288 13280 13278>, + <13466 13332 13306 13288 13280 13278>, + <13496 13339 13308 13287 13280 13278>, + <13533 13343 13309 13287 13280 13279>, + <13578 13348 13312 13287 13280 13280>, + <13634 13359 13314 13287 13280 13281>, + <13703 13385 13316 13288 13280 13280>, + <13792 13419 13319 13288 13279 13279>, + <13916 13467 13324 13287 13277 13277>, + <14114 13582 13347 13291 13283 13282>, + <14299 13671 13378 13293 13286 13285>, + <14686 13865 13456 13296 13289 13288>, + <15312 14418 13757 13303 13292 13288>, + <16728 16496 15323 13308 13291 13288>, + <20371 23244 21973 13307 13287 13285>, + <29778 47788 47032 13309 13287 13284>, + <58541 65535 65535 13324 13290 13287>, + <65535 65535 65535 13369 13296 13294>, + <65535 65535 65535 13369 13296 13294>, + <65535 65535 65535 13369 13296 13294>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16642 16572 16528 16491 16470 16469>, + <16681 16584 16542 16489 16468 16469>, + <16731 16611 16558 16488 16466 16469>, + <16784 16643 16573 16487 16464 16469>, + <16829 16670 16584 16486 16463 16469>, + <16857 16683 16588 16486 16462 16469>, + <16869 16683 16586 16485 16463 16468>, + <16876 16683 16582 16485 16463 16467>, + <16878 16682 16577 16485 16464 16467>, + <16877 16677 16571 16487 16465 16466>, + <16876 16674 16568 16488 16466 16466>, + <16878 16676 16569 16492 16469 16467>, + <16884 16681 16570 16498 16473 16470>, + <16889 16690 16574 16504 16476 16472>, + <16891 16704 16584 16511 16479 16474>, + <16893 16722 16599 16520 16483 16477>, + <16892 16741 16618 16532 16489 16480>, + <16876 16761 16642 16548 16496 16483>, + <16852 16766 16669 16574 16505 16489>, + <16824 16746 16698 16606 16516 16499>, + <16786 16714 16708 16614 16533 16514>, + <16750 16678 16669 16609 16565 16543>, + <16718 16635 16606 16600 16584 16562>, + <16688 16601 16560 16557 16545 16533>, + <16657 16576 16526 16489 16478 16478>, + <16622 16557 16507 16472 16463 16463>, + <16605 16545 16501 16469 16462 16461>, + <16616 16537 16497 16469 16462 16460>, + <16637 16529 16495 16472 16466 16463>, + <16651 16519 16495 16478 16474 16470>, + <16659 16510 16494 16484 16482 16478>, + <16664 16509 16494 16491 16493 16487>, + <16663 16509 16492 16498 16502 16497>, + <16661 16510 16490 16508 16511 16508>, + <16660 16515 16487 16516 16518 16516>, + <16663 16524 16488 16516 16515 16514>, + <16668 16531 16494 16512 16505 16501>, + <16672 16538 16506 16506 16494 16490>, + <16677 16547 16518 16493 16482 16483>, + <16680 16565 16527 16482 16473 16479>, + <16683 16587 16529 16483 16475 16483>, + <16685 16596 16527 16487 16481 16492>, + <16686 16600 16526 16487 16477 16488>, + <16686 16602 16527 16484 16464 16470>, + <16686 16603 16528 16468 16444 16441>, + <16688 16603 16542 16478 16456 16460>, + <16692 16596 16549 16493 16478 16494>, + <16715 16600 16568 16514 16514 16534>, + <16767 16619 16600 16544 16554 16571>, + <16936 16842 16865 16578 16569 16579>, + <17379 17864 19413 16557 16500 16501>, + <18670 22588 32944 16542 16475 16481>, + <20729 38525 58970 16572 16478 16478>, + <18799 21886 65535 16656 16484 16478>, + <18799 21886 65535 16656 16484 16478>, + <18799 21886 65535 16656 16484 16478>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13757 18736 20883 21684 18352 18529>, + <14729 19159 21117 21655 19287 20536>, + <15961 19662 21390 21504 19911 21857>, + <17234 20160 21650 21300 20282 22633>, + <18329 20572 21844 21107 20460 23007>, + <19028 20812 21921 20988 20499 23117>, + <19309 20914 21744 20564 20294 22669>, + <19486 20961 21405 20013 19936 21952>, + <19575 20882 20971 19734 19596 21386>, + <19596 20483 20158 19258 19116 20358>, + <19615 19976 19559 18704 18525 19482>, + <19688 19447 19329 17877 17531 18791>, + <19808 18884 19152 17109 16744 18283>, + <19964 18601 18698 16819 16840 18052>, + <20262 18443 17804 16654 17221 17880>, + <20713 18358 17294 16416 17324 17835>, + <21199 18893 17057 15817 16848 17958>, + <21832 20362 16893 15291 16323 17990>, + <22339 21539 17467 15177 16111 17282>, + <22548 22435 19689 15170 15968 15983>, + <22705 23105 21706 15720 16078 15721>, + <22797 23458 23028 19588 17331 16849>, + <22923 23730 23912 23098 18822 18156>, + <23042 23810 24151 24117 20088 19098>, + <22959 23655 24201 24740 21162 19894>, + <22380 23396 24203 24794 21160 20116>, + <21448 23097 24104 24428 20138 20148>, + <18495 22626 24137 23962 19268 20082>, + <14313 22108 24331 23314 18857 18801>, + <12904 21395 24558 22670 18496 16867>, + <12629 20533 24860 22565 18073 16338>, + <12504 19649 25447 22720 17553 16176>, + <12598 18647 26036 22954 17378 16134>, + <12893 18049 25347 23449 18919 16934>, + <13139 17876 23594 24122 21060 18278>, + <13291 17943 22691 24730 22051 19313>, + <13423 18647 22992 25392 22713 20260>, + <13565 20667 23751 25582 22899 20913>, + <13724 21892 24266 24620 22721 21415>, + <13805 19681 24201 23297 22419 21881>, + <13784 16149 23797 22364 21959 22304>, + <13740 15231 23427 21652 21450 22842>, + <13697 15136 22050 21663 21820 24702>, + <13537 14795 19185 21708 22133 25788>, + <13440 13998 16405 21153 20560 20743>, + <13224 13615 14656 20845 19115 18435>, + <13102 13785 14840 19534 19128 17025>, + <12819 13673 14566 19149 17959 16298>, + <12154 13255 13985 19715 17292 15466>, + <10896 11319 12609 19704 16706 15146>, + <10069 9739 11643 19628 17368 15969>, + <9495 9288 11433 19139 17680 15674>, + <10113 9100 9645 18866 17639 15735>, + <24779 16968 8914 15747 19845 17666>, + <24779 16968 8914 15747 19845 17666>, + <24779 16968 8914 15747 19845 17666>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5706 5343 5184 5060 5013 5003>, + <5708 5346 5187 5059 5012 5004>, + <5709 5347 5188 5059 5012 5005>, + <5709 5348 5188 5058 5012 5005>, + <5709 5349 5187 5057 5012 5006>, + <5708 5349 5185 5057 5013 5006>, + <5705 5347 5182 5056 5013 5007>, + <5700 5342 5178 5056 5014 5007>, + <5695 5337 5174 5056 5014 5007>, + <5688 5332 5168 5056 5015 5007>, + <5682 5328 5165 5056 5015 5007>, + <5678 5325 5163 5057 5016 5008>, + <5675 5324 5162 5058 5017 5009>, + <5672 5323 5162 5060 5019 5010>, + <5670 5324 5163 5063 5021 5012>, + <5667 5326 5165 5066 5023 5013>, + <5663 5329 5168 5069 5025 5015>, + <5657 5334 5173 5073 5028 5017>, + <5649 5336 5180 5079 5031 5019>, + <5639 5328 5188 5087 5036 5022>, + <5627 5315 5192 5089 5041 5026>, + <5617 5303 5178 5088 5048 5034>, + <5609 5289 5157 5085 5052 5040>, + <5602 5279 5142 5071 5038 5028>, + <5597 5272 5131 5050 5014 5006>, + <5593 5268 5126 5045 5009 5001>, + <5591 5267 5125 5045 5009 5001>, + <5593 5266 5124 5045 5008 5001>, + <5598 5266 5125 5046 5010 5002>, + <5604 5267 5126 5048 5013 5004>, + <5617 5269 5128 5051 5015 5006>, + <5634 5273 5129 5053 5018 5008>, + <5652 5280 5131 5057 5021 5011>, + <5673 5288 5133 5061 5025 5016>, + <5697 5300 5135 5064 5029 5019>, + <5724 5314 5139 5065 5028 5018>, + <5755 5332 5146 5064 5025 5014>, + <5788 5354 5156 5064 5022 5012>, + <5825 5378 5167 5061 5018 5010>, + <5866 5404 5179 5059 5016 5009>, + <5914 5433 5193 5060 5017 5011>, + <5971 5469 5208 5063 5019 5015>, + <6038 5516 5228 5066 5018 5014>, + <6122 5575 5255 5068 5014 5008>, + <6240 5655 5291 5065 5008 4999>, + <6430 5795 5363 5075 5016 5009>, + <6606 5891 5425 5083 5026 5021>, + <6972 6085 5544 5095 5038 5034>, + <7544 6596 5860 5111 5051 5046>, + <8747 8345 7200 5128 5055 5048>, + <11606 13494 12686 5126 5033 5023>, + <18572 31573 33627 5137 5026 5018>, + <38708 65535 65535 5192 5030 5021>, + <65535 65535 65535 5334 5038 5026>, + <65535 65535 65535 5334 5038 5026>, + <65535 65535 65535 5334 5038 5026>; + }; + +}; From bc2faaa08ea7a29d3d96fba22ebe8dcb2e0f094c Mon Sep 17 00:00:00 2001 From: houdz1 Date: Wed, 11 Oct 2023 10:30:56 +0800 Subject: [PATCH 1224/1247] dts/panel: fogo: change cabc dimming config for boe panel Under the low bringhtness, Switch black picture to white picture, there are some display flickers. Change the cabc dimming to fix the issue. Change-Id: I0298cf765e6b685f3ef045c61ac11586cc601f01 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2763897 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Zhihong Kang Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index af31bd008449..c80bc6ca9a43 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -49,6 +49,9 @@ 39 00 00 00 00 00 04 ff 98 83 06 39 00 00 00 00 00 02 3E E2 39 00 00 00 00 00 04 ff 98 83 03 + 39 00 00 00 00 00 02 80 04 + 39 00 00 00 00 00 02 81 04 + 39 00 00 00 00 00 02 82 04 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 51 00 00 From 940838cde7c1c824dbedc454e050df4da87f36c3 Mon Sep 17 00:00:00 2001 From: qiutong Date: Thu, 12 Oct 2023 17:15:43 +0800 Subject: [PATCH 1225/1247] devicetree/fogo:keep TP reset high in deep sleep fogo: keep TP reset high in deep sleep Change-Id: Ie8c3b00aff950b901f8df1d482621fc1778d5fee Signed-off-by: qiutong Reviewed-on: https://gerrit.mot.com/2765788 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/fogo-touchscreen.dtsi b/qcom/fogo-touchscreen.dtsi index 85ebb7a802eb..deb8c9c32829 100755 --- a/qcom/fogo-touchscreen.dtsi +++ b/qcom/fogo-touchscreen.dtsi @@ -198,7 +198,6 @@ pinctrl-1 = <&ts_int_suspend_high>; ilitek,supported_gesture_type = <0x06>; ilitek,report_gesture_key; - ilitek,rst-pull-flag; status = "ok"; }; }; From 77073d4541cb309a661ab4584381b8971c32f158 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Wed, 11 Oct 2023 13:57:10 +0800 Subject: [PATCH 1226/1247] fogor: dtsi/kernel: modify 2nd ili9883c timing 1. vddio keep high. 2. lcd-reset keep high. Change-Id: I5f0f7d9a1f419c6cad91938f1d9ea2ea80650ea4 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2764113 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/fogor-display.dtsi | 44 +++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/qcom/fogor-display.dtsi b/qcom/fogor-display.dtsi index 2ba9097b31bf..fc70bad2f6c2 100644 --- a/qcom/fogor-display.dtsi +++ b/qcom/fogor-display.dtsi @@ -106,6 +106,7 @@ qcom,supply-enable-load = <32000>; qcom,supply-disable-load = <80>; qcom,supply-pre-off-sleep = <2>; + qcom,supply-always-on; }; qcom,panel-supply-entry@1 { @@ -132,6 +133,45 @@ }; }; + + dsi_panel_pwr_supply_fogor_chipone: dsi_panel_pwr_supply_fogor_chipone{ + #address-cells = <1>; + #size-cells = <0>; + + qcom,panel-supply-entry@0 { + reg = <0>; + qcom,supply-name = "vddio"; + qcom,supply-min-voltage = <1800000>; + qcom,supply-max-voltage = <1800000>; + qcom,supply-enable-load = <32000>; + qcom,supply-disable-load = <80>; + qcom,supply-pre-off-sleep = <2>; + }; + + qcom,panel-supply-entry@1 { + reg = <1>; + qcom,supply-name = "lab"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + }; + + qcom,panel-supply-entry@2 { + reg = <2>; + qcom,supply-name = "ibb"; + qcom,supply-min-voltage = <6000000>; + qcom,supply-max-voltage = <6000000>; + qcom,supply-enable-load = <100000>; + qcom,supply-disable-load = <100>; + qcom,supply-pre-on-sleep = <3>; + qcom,supply-pre-off-sleep = <30>; + qcom,supply-post-on-sleep = <3>; + qcom,supply-post-off-sleep = <3>; + }; + + }; }; &sde_dsi { @@ -159,7 +199,7 @@ /*qcom,mdss-dsi-pan-dfps-send-command;*/ qcom,mdss-dsi-pan-on-fps = <120>; - qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor>; + qcom,panel-supply-entries = <&dsi_panel_pwr_supply_fogor_chipone>; qcom,mdss-dsi-bl-pmic-control-type = "bl_ctrl_dcs"; qcom,mdss-dsi-bl-min-level = <13>; @@ -247,7 +287,7 @@ qcom,mdss-dsi-hbm-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-hbm-off-command = [39 01 00 00 00 00 03 51 05 96]; qcom,mdss-dsi-hbm-off-command-state = "dsi_lp_mode"; - + qcom,platform-reset-gpio-always-on; qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; qcom,mdss-dsi-display-timings { From 9c85b3c439a4b7cd9717d5404e565f42afd421e6 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Thu, 12 Oct 2023 19:10:53 +0800 Subject: [PATCH 1227/1247] fogos: dtsi/kernel: modify 2nd ili9883c suspend timing 1. modify 28 delay 80 to 85. 2. modify 28 delay 80 to 85. Change-Id: Iea9f518cb08e964711c09245c15b2a9b45cfbfdc Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2766024 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 569574d76088..d5b7026fae2f 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -90,7 +90,7 @@ qcom,mdss-dsi-off-command = [ 39 01 00 00 05 00 04 FF 98 83 00 05 01 00 00 14 00 01 28 - 05 01 00 00 50 00 01 10 + 05 01 00 00 55 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 91bc7c14dbf05d076dd26ed1978a72c650f27755 Mon Sep 17 00:00:00 2001 From: houdz1 Date: Thu, 12 Oct 2023 17:44:21 +0800 Subject: [PATCH 1228/1247] dts/panel: fogo: add delay time of command 0x10 Add delay time of command 0x10. That can match the spec. Change-Id: I1f90c6e5d43166e81248bbbf46f4753441e39c23 Signed-off-by: houdz1 Reviewed-on: https://gerrit.mot.com/2765837 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Guobin Zhang Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 2 +- qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index c80bc6ca9a43..8892f2b08ead 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -65,7 +65,7 @@ qcom,mdss-dsi-off-command = [ 39 01 00 00 05 00 04 FF 98 83 00 05 01 00 00 14 00 01 28 - 05 01 00 00 50 00 01 10 + 05 01 00 00 55 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; diff --git a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi index 4ca48ad14d34..045f4f67a07d 100644 --- a/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-txd-nt36528-656-720x1612-video.dtsi @@ -62,7 +62,7 @@ qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; qcom,mdss-dsi-off-command = [ 05 01 00 00 00 00 01 28 - 05 01 00 00 00 00 01 10 + 05 01 00 00 3C 00 01 10 ]; qcom,mdss-dsi-off-command-state = "dsi_lp_mode"; }; From 17243625f45ebac4db024ab768779edfbc7ae7ca Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Thu, 12 Oct 2023 19:15:10 +0800 Subject: [PATCH 1229/1247] fogos: dtsi/kernel: modify 2nd ili9883c tp-reset timing 1. tp-reset keep high at suspend. 2. tp-reset keep high at suspend. Change-Id: I559d5f1071814a5d9eef80a0766a59469839fe8e Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2766029 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogos-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/fogos-touchscreen.dtsi b/qcom/fogos-touchscreen.dtsi index e7733ac09d0f..fc36799c622c 100755 --- a/qcom/fogos-touchscreen.dtsi +++ b/qcom/fogos-touchscreen.dtsi @@ -209,7 +209,6 @@ pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; ilitek,supported_gesture_type = <0x06>; - ilitek,rst-pull-flag; status = "ok"; }; }; From a5840a61e01876859955b20271be406c8b3e4097 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Thu, 12 Oct 2023 19:17:34 +0800 Subject: [PATCH 1230/1247] fogor: dtsi/kernel: modify 2nd ili9883c tp-reset timing 1. tp-reset keep high at suspend. 2. tp-reset keep high at suspend Change-Id: I713456c940e916c240be86eaff51584e0c26a0f3 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2766030 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jun Weng Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogor-touchscreen.dtsi | 1 - 1 file changed, 1 deletion(-) diff --git a/qcom/fogor-touchscreen.dtsi b/qcom/fogor-touchscreen.dtsi index e7733ac09d0f..fc36799c622c 100755 --- a/qcom/fogor-touchscreen.dtsi +++ b/qcom/fogor-touchscreen.dtsi @@ -209,7 +209,6 @@ pinctrl-1 = <&ts_int_suspend_high>; ilitek,report_gesture_key; ilitek,supported_gesture_type = <0x06>; - ilitek,rst-pull-flag; status = "ok"; }; }; From d73d34ff2a7e1cd2f4e7a7c2065c363b952433d2 Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Tue, 17 Oct 2023 16:37:26 +0800 Subject: [PATCH 1231/1247] devicetree/fogo:1st panel timing optimization fogo: 1st panel timing optimization Change-Id: Ibbd6f707ed4a76c855376fb03ed7430a933b48a9 Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2769970 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 2 +- qcom/fogo-display.dtsi | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index 8892f2b08ead..be034d13cc41 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -58,7 +58,7 @@ 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 55 02 - 05 01 00 00 3C 00 01 11 + 05 01 00 00 46 00 01 11 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; diff --git a/qcom/fogo-display.dtsi b/qcom/fogo-display.dtsi index d9f726ef2e76..fcb627964c85 100644 --- a/qcom/fogo-display.dtsi +++ b/qcom/fogo-display.dtsi @@ -100,7 +100,7 @@ qcom,supply-disable-load = <100>; qcom,supply-pre-on-sleep = <3>; qcom,supply-pre-off-sleep = <30>; - qcom,supply-post-on-sleep = <5>; + qcom,supply-post-on-sleep = <12>; qcom,supply-post-off-sleep = <3>; }; From 9be882ed722a7c679e5f2c07023f3e2e1c763bdb Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Wed, 18 Oct 2023 14:06:26 +0800 Subject: [PATCH 1232/1247] fogos: dtsi/kernel: modify 2nd ili9883c timing 1. modify reg 11 delay 60 to 70. 2. modify reg 11 delay 60 to 70. Change-Id: Iaf475539e12b8035bd0236116eb4e304d08bb868 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2771028 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index d5b7026fae2f..1b792e019a3c 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -83,7 +83,7 @@ 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C 39 00 00 00 00 00 02 55 02 - 05 01 00 00 3C 00 01 11 + 05 01 00 00 46 00 01 11 05 01 00 00 00 00 01 29 ]; qcom,mdss-dsi-on-command-state = "dsi_lp_mode"; From e58779b08c5f49cf3fa1bbb201fb629616493d06 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Wed, 25 Oct 2023 19:34:00 +0800 Subject: [PATCH 1233/1247] fogos: dtsi/kernel: modify 2nd ili9883c min brightness turn off cabc 1. add reg 0x5E. 2. to turn off cabc at min brightness. Change-Id: I1f9f4b38863f42a6ce3316e16090d5b2ddf5f0b1 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2776518 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 1b792e019a3c..3a7907020515 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -79,6 +79,7 @@ 39 00 00 00 00 00 02 84 02 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 + 39 00 00 00 00 00 03 5E 00 32 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C From d33090fa254bdc9e88b1ac6aa2a35a8925d1ff45 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Wed, 25 Oct 2023 19:33:03 +0800 Subject: [PATCH 1234/1247] fogos: dtsi/kernel: modify 1st icnl9916c min brightness turn off cabc 1. add reg 0x5E. 2. to turn off cabc at min brightness. Change-Id: I4f081a409a36a25682c381c5c87fd80ba6809909 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2776512 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi index e9d093a3f0fa..3625dfb9935b 100644 --- a/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-tianma-icnl9916c-652-720x1600-video.dtsi @@ -66,6 +66,7 @@ 39 00 00 00 00 00 03 35 00 00 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 03 53 2C 00 + 39 00 00 00 00 00 03 5E 00 32 39 00 00 00 00 00 0E BB 01 02 03 05 04 07 08 46 0A 4B 00 09 0A 39 01 00 00 02 00 03 55 03 00 39 01 00 00 50 00 03 11 00 00 From 1ec1a978d919fabac73eb67447ed9c235fa8e9be Mon Sep 17 00:00:00 2001 From: zhongfeihong Date: Wed, 25 Oct 2023 14:39:30 +0800 Subject: [PATCH 1235/1247] devicetree/fogo:1st panel low brightness turns off cabc fogo: 1st panel low brightness turns off cabc Change-Id: Id5e41ba02ad242018a1bb7ae516b40003a7d0caf Signed-off-by: zhongfeihong Reviewed-on: https://gerrit.mot.com/2776059 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Submit-Approved: Jira Key --- qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi index be034d13cc41..7ec0a31e47e9 100644 --- a/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi +++ b/qcom/dsi-panel-mot-boe-ili9883c-656-720x1612-video.dtsi @@ -54,6 +54,7 @@ 39 00 00 00 00 00 02 82 04 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 + 39 00 00 00 00 00 03 5E 00 32 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C From c5f9695a33746f087fb27cdbce7db0b39d5d3181 Mon Sep 17 00:00:00 2001 From: "weimh1@motorola.com" Date: Tue, 31 Oct 2023 09:22:56 +0800 Subject: [PATCH 1236/1247] fogo/sensor: update sx937x params 1.update sx937x params 2.fogo-sensors.dtsi Change-Id: Ibbd7e224b8f512ee86bfd3638daf07e07c158e4f Signed-off-by: weimh1@motorola.com Reviewed-on: https://gerrit.mot.com/2781216 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-sensors.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qcom/fogo-sensors.dtsi b/qcom/fogo-sensors.dtsi index 31ec1eaf73d1..3c0b9a89ef8e 100755 --- a/qcom/fogo-sensors.dtsi +++ b/qcom/fogo-sensors.dtsi @@ -109,7 +109,7 @@ 0x8098 0x5A33 0x80B8 0x2F2F 0x80D8 0x5535 - 0x80F8 0x2020 + 0x80F8 0x1D1D 0x8118 0x2C2C 0x8138 0xFF 0x8158 0xFF From 3caec543bba4bbd257ce42a83c19f3ede5771cee Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 3 Nov 2023 09:20:41 +0800 Subject: [PATCH 1237/1247] arm/dts: config mmi,enable-fcc-large-qg-iterm config mmi,enable-fcc-large-qg-iterm to avoid qg iterm large than FCC. Change-Id: Ia35408ce55bbcad2d088b76934638c983acf8255 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2784314 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 3 files changed, 3 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 4ce20ea6bfe9..72f1985704bb 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -100,6 +100,7 @@ qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; + mmi,enable-fcc-large-qg-iterm; }; diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index a39ca277e7ad..fba9647b36c3 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -104,6 +104,7 @@ qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; + mmi,enable-fcc-large-qg-iterm; }; diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index a39ca277e7ad..fba9647b36c3 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -104,6 +104,7 @@ qcom,noffc-qg-iterm-45c = <642>; qcom,noffc-max-fv = <4490>; mmi,enable-dcp-ffc; + mmi,enable-fcc-large-qg-iterm; }; From a9c3dd1503a35d582ee11d7c5a1780cd1c8ffb65 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 3 Nov 2023 15:30:45 +0800 Subject: [PATCH 1238/1247] arm/dts: config DCP max current 2.2A As HW require, config DCP max current 2.2A for moto 10W FFC Change-Id: Ib831dd1c9d3ee202a7b4c075e10fe01181f629a4 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2784611 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 2 +- qcom/fogor-charger.dtsi | 2 +- qcom/fogos-charger.dtsi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 72f1985704bb..3f1586399e30 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -61,7 +61,7 @@ "time_to_full_now"; qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; - qcom,dcp-curr-max = <2000000>; + qcom,dcp-curr-max = <2200000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index fba9647b36c3..018bfe1a6959 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -63,7 +63,7 @@ "time_to_full_now"; qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; - qcom,dcp-curr-max = <2000000>; + qcom,dcp-curr-max = <2200000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index fba9647b36c3..018bfe1a6959 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -63,7 +63,7 @@ "time_to_full_now"; qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; - qcom,dcp-curr-max = <2000000>; + qcom,dcp-curr-max = <2200000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 From 647020d03d362143b272a00ac68b9d6be1edf921 Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Mon, 13 Nov 2023 16:04:45 +0800 Subject: [PATCH 1239/1247] fogos: dtsi/kernel: modify 2nd ili9883c init code 1. add reg 0x68, adjust the diming value default 01 to 05 to resolve low level brightness flash. Change-Id: I6139e68dbe23f28715a4e83d5ee15072cc9501f3 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2793146 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 1 + 1 file changed, 1 insertion(+) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 3a7907020515..6c41880d6bfe 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -80,6 +80,7 @@ 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 39 00 00 00 00 00 03 5E 00 32 + 39 00 00 00 00 00 02 68 05 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 39 00 00 00 00 00 02 53 2C From c9f913efe5ca5102987d7b2703f8a5cdded94faf Mon Sep 17 00:00:00 2001 From: zhangshaohu Date: Tue, 14 Nov 2023 14:09:38 +0800 Subject: [PATCH 1240/1247] fogos: dtsi/kernel: modify 2nd ili9883c init code 1. add reg C6 and modify reg 84 to resolve low level brightness flash. 2. modify pwm 11 bit to 12bit. Change-Id: I9f182f7bMontana406f22378bff6d7844c1ca3b7cb38 Signed-off-by: zhangshaohu Reviewed-on: https://gerrit.mot.com/2794103 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Dezhen Hou Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi index 6c41880d6bfe..b66289087766 100644 --- a/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi +++ b/qcom/dsi-panel-mot-txd-ili9883c-652-720x1600-video.dtsi @@ -72,14 +72,14 @@ 39 00 00 00 00 00 02 06 A4 39 00 00 00 00 00 02 3E E2 39 00 00 00 00 00 04 FF 98 83 03 + 39 00 00 00 00 00 02 C6 14 39 00 00 00 00 00 02 80 04 39 00 00 00 00 00 02 81 04 39 00 00 00 00 00 02 82 04 39 00 00 00 00 00 02 83 B8 - 39 00 00 00 00 00 02 84 02 + 39 00 00 00 00 00 02 84 00 39 00 00 00 00 00 02 AF 18 39 00 00 00 00 00 04 ff 98 83 00 - 39 00 00 00 00 00 03 5E 00 32 39 00 00 00 00 00 02 68 05 39 00 00 00 00 00 03 51 00 00 39 00 00 00 00 00 02 35 00 From 0edbe583bce36700ef5dfd9908a08994be9eb24a Mon Sep 17 00:00:00 2001 From: Cao Bo Date: Mon, 20 Nov 2023 16:33:06 +0800 Subject: [PATCH 1241/1247] system: remove cdsp_secure_heap_region Remove cdsp_secure_heap_region, to optimize reserved ram. Confirmed with QC, it's safe to remvoe if no secure DSP enalbed. Change-Id: Iafc7060d8315fcdfcd2873b96e21afdfb6d8f116 Signed-off-by: Cao Bo Reviewed-on: https://gerrit.mot.com/2799467 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Reviewed-by: Binsheng Que Tested-by: Jira Key Reviewed-by: Yonghui Jia Reviewed-by: Yang Liu Reviewed-by: Zhenxin Xi Submit-Approved: Jira Key --- qcom/blair.dtsi | 5 ----- 1 file changed, 5 deletions(-) diff --git a/qcom/blair.dtsi b/qcom/blair.dtsi index c54867d2af2d..c61cbd6d53c1 100644 --- a/qcom/blair.dtsi +++ b/qcom/blair.dtsi @@ -309,11 +309,6 @@ reg = <0x0 0x80b00000 0x0 0x100000>; }; - cdsp_secure_heap_mem: cdsp_secure_heap_mem@80c00000 { - no-map; - reg = <0x0 0x80c00000 0x0 0x1e00000>; - }; - pil_wlan_mem: wlan@86500000 { no-map; reg = <0x0 0x86500000 0x0 0x200000>; From b3cac0458efda34e29c4b478c36dd0068c1111ca Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Fri, 15 Dec 2023 18:04:22 +0800 Subject: [PATCH 1242/1247] arm/dts: config CDP max current 1A config CDP max current to 1A compatible with various android auto Change-Id: Ia8b56d2f692921c1cad6cb77be73e04ae7006069 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2826551 Reviewed-by: Huosheng Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/fogo-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + 2 files changed, 2 insertions(+) diff --git a/qcom/fogo-charger.dtsi b/qcom/fogo-charger.dtsi index 3f1586399e30..12424e96e8df 100644 --- a/qcom/fogo-charger.dtsi +++ b/qcom/fogo-charger.dtsi @@ -62,6 +62,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2200000>; + qcom,cdp-curr-max = <1000000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 018bfe1a6959..2fee38c9cb4a 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -64,6 +64,7 @@ qcom,fcc-max-ua = <4000000>; qcom,fv-max-uv = <4520000>; qcom,dcp-curr-max = <2200000>; + qcom,cdp-curr-max = <1000000>; qcom,otg-cl-ua = <1500000>; qcom,thermal-mitigation = <4000000 3500000 3000000 2500000 From 0ea894813b9be488d89bba1048e0825555150998 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Wed, 22 Nov 2023 17:44:00 +0800 Subject: [PATCH 1243/1247] arm64/dt: fogo: add panel notify dts of fps Add panel dts config to make the fps driver can get the screen state. Change-Id: I4201f53440be0f56f532d259deecf167928a8938 Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2802572 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Zhong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/2835742 Reviewed-by: Liyun Zhang --- qcom/fogo-fps-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/fogo-fps-overlay.dtsi b/qcom/fogo-fps-overlay.dtsi index 20c1368c2ca3..ec353e007f4d 100644 --- a/qcom/fogo-fps-overlay.dtsi +++ b/qcom/fogo-fps-overlay.dtsi @@ -77,6 +77,8 @@ fp-gpio-reset = <&tlmm 18 0x00>; fp-gpio-irq = <&tlmm 17 0x00>; fp-gpio-ven = <&tlmm 11 0x00>; + panel = <&dsi_txd_nt36528_656_hd_plus_120_video + &dsi_boe_ili9883c_656_hd_plus_120_video>; interrupt-parent = <&tlmm>; interrupts = <17 0>; interrupt-controller; From 747beddbfe6def82167223b26dd2382bd218c881 Mon Sep 17 00:00:00 2001 From: wuwl10 Date: Fri, 24 Nov 2023 10:13:55 +0800 Subject: [PATCH 1244/1247] arm64/dt: fogos: add panel notify dts of fps Add panel dts config to make the fps driver can get the screen state. Change-Id: I01f9f68646abdf411386b3e2325ad3c180c700af Signed-off-by: wuwl10 Reviewed-on: https://gerrit.mot.com/2805297 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Ling Zhong Reviewed-by: Huosheng Liao Submit-Approved: Jira Key Reviewed-on: https://gerrit.mot.com/2835744 Reviewed-by: Liyun Zhang --- qcom/fogos-fps-overlay.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qcom/fogos-fps-overlay.dtsi b/qcom/fogos-fps-overlay.dtsi index 5932983d77ab..17dcaf00fdf2 100644 --- a/qcom/fogos-fps-overlay.dtsi +++ b/qcom/fogos-fps-overlay.dtsi @@ -87,6 +87,8 @@ rgltr-ctrl-support; fp,vdd-supply=<&L21A>; fp,voltage-range = <3000000 3000000>; + panel = <&dsi_icnl9916c_hd_plus_120_video + &dsi_ili9883c_hd_plus_120_video>; interrupt-parent = <&tlmm>; interrupts = <17 0>; interrupt-controller; From d2346953fd99ac507703f2edec215fd98881659d Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Sun, 4 Feb 2024 11:33:59 +0800 Subject: [PATCH 1245/1247] arm/dts: add new battery SN As battery SN updated, add new second supplier battery SN for fogo 5G row Change-Id: If18302e32d835b63c57734c6fb0579af5a3bd137 Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/2874443 Reviewed-by: Huosheng Liao SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Submit-Approved: Jira Key --- qcom/fogos-charger.dtsi | 1 + qcom/qg-batterydata-qf50-scud2-5000mah.dtsi | 1030 +++++++++++++++++++ 2 files changed, 1031 insertions(+) create mode 100644 qcom/qg-batterydata-qf50-scud2-5000mah.dtsi diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 2fee38c9cb4a..764377d5bf91 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -9,6 +9,7 @@ #include "qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" #include "qg-batterydata-qf50-swd-5000mah.dtsi" + #include "qg-batterydata-qf50-scud2-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/qg-batterydata-qf50-scud2-5000mah.dtsi b/qcom/qg-batterydata-qf50-scud2-5000mah.dtsi new file mode 100644 index 000000000000..970b02975d98 --- /dev/null +++ b/qcom/qg-batterydata-qf50-scud2-5000mah.dtsi @@ -0,0 +1,1030 @@ +/* Copyright (c) 2018, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +qcom,qf50-scud-5000mah { + /* 6691233_Ontim_SQ432_SCUD_5000mAH_PM7250B_averaged_MasterSlave_Sep6th2023 */ + serialnum = "SB18E18191"; + qcom,sdam-magic-number = <0x18E18191>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-SCUD-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4689 4943 5077 5134 5149>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4863 4980 5085 5057 5075 5080>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44464 44656 44770 44825 44840>, + <44247 44457 44567 44590 44595>, + <44029 44254 44372 44395 44395>, + <43812 44049 44175 44213 44213>, + <43596 43839 43974 44023 44026>, + <43373 43621 43767 43820 43827>, + <43141 43395 43550 43609 43618>, + <42904 43161 43320 43385 43396>, + <42664 42915 43080 43150 43161>, + <42420 42661 42833 42907 42918>, + <42180 42410 42578 42655 42668>, + <41944 42162 42325 42401 42414>, + <41712 41916 42073 42146 42161>, + <41484 41675 41824 41892 41909>, + <41262 41440 41580 41644 41661>, + <41044 41211 41341 41401 41419>, + <40836 40988 41111 41167 41183>, + <40633 40773 40889 40943 40953>, + <40439 40566 40676 40727 40731>, + <40250 40365 40475 40523 40522>, + <40067 40167 40278 40331 40332>, + <39891 39972 40059 40109 40118>, + <39723 39776 39814 39807 39833>, + <39560 39568 39574 39519 39548>, + <39403 39356 39331 39330 39357>, + <39250 39166 39114 39183 39211>, + <39109 38994 38979 39052 39072>, + <38980 38848 38885 38934 38931>, + <38861 38738 38798 38823 38801>, + <38754 38647 38707 38710 38689>, + <38656 38569 38621 38602 38589>, + <38568 38498 38541 38507 38496>, + <38497 38434 38466 38423 38411>, + <38435 38373 38395 38344 38329>, + <38380 38318 38328 38268 38251>, + <38330 38265 38263 38195 38175>, + <38284 38218 38200 38124 38096>, + <38230 38168 38138 38055 38015>, + <38169 38099 38061 37973 37923>, + <38099 38004 37960 37860 37803>, + <38014 37895 37843 37732 37669>, + <37909 37762 37712 37608 37538>, + <37786 37611 37564 37476 37402>, + <37633 37431 37388 37307 37232>, + <37455 37276 37232 37157 37089>, + <37301 37176 37128 37070 37012>, + <37235 37133 37098 37039 36980>, + <37180 37103 37070 37019 36958>, + <37134 37079 37045 36993 36931>, + <37093 37015 36970 36913 36844>, + <37038 36773 36688 36617 36532>, + <36917 36299 36226 36155 36069>, + <36588 35692 35618 35553 35470>, + <36036 34841 34782 34727 34646>, + <35081 33409 33462 33436 33354>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44790 44780 44765 44715 44710 44700>, + <44407 44440 44471 44442 44451 44447>, + <44068 44142 44206 44190 44210 44211>, + <43781 43897 43977 43964 43992 43995>, + <43541 43697 43778 43764 43794 43799>, + <43314 43500 43576 43559 43591 43597>, + <43083 43286 43356 43339 43373 43381>, + <42855 43064 43128 43110 43145 43156>, + <42621 42834 42890 42873 42909 42921>, + <42376 42591 42640 42625 42661 42675>, + <42128 42346 42387 42374 42411 42426>, + <41884 42103 42134 42123 42159 42175>, + <41638 41858 41882 41871 41906 41923>, + <41393 41616 41636 41624 41658 41675>, + <41151 41379 41395 41380 41414 41429>, + <40909 41141 41160 41144 41176 41191>, + <40660 40899 40935 40914 40945 40959>, + <40404 40655 40708 40693 40722 40735>, + <40152 40404 40466 40485 40513 40524>, + <39906 40144 40215 40286 40311 40322>, + <39665 39890 39959 40064 40094 40108>, + <39437 39647 39694 39792 39852 39878>, + <39222 39415 39444 39519 39608 39644>, + <39018 39201 39226 39292 39369 39402>, + <38819 39003 39028 39088 39140 39163>, + <38631 38816 38853 38914 38958 38977>, + <38481 38631 38698 38767 38815 38832>, + <38364 38455 38555 38636 38688 38703>, + <38264 38313 38422 38516 38571 38582>, + <38176 38195 38297 38407 38463 38470>, + <38100 38097 38184 38306 38365 38370>, + <38025 38016 38077 38212 38277 38280>, + <37949 37947 37984 38124 38191 38194>, + <37874 37878 37907 38039 38107 38113>, + <37799 37812 37839 37957 38022 38031>, + <37724 37744 37776 37872 37926 37929>, + <37649 37674 37718 37784 37820 37805>, + <37572 37599 37653 37695 37712 37683>, + <37494 37518 37580 37609 37609 37573>, + <37415 37428 37494 37522 37505 37465>, + <37335 37331 37377 37423 37404 37365>, + <37254 37228 37224 37313 37301 37264>, + <37169 37118 37070 37181 37167 37123>, + <37082 37007 36922 37031 37024 36972>, + <36997 36889 36802 36902 36916 36869>, + <36907 36769 36697 36840 36869 36825>, + <36857 36713 36638 36817 36855 36813>, + <36807 36661 36571 36786 36837 36793>, + <36744 36614 36484 36740 36801 36754>, + <36672 36549 36355 36628 36689 36626>, + <36596 36448 36094 36307 36349 36261>, + <36527 36285 35537 35777 35830 35733>, + <36382 35715 34709 35082 35149 35042>, + <36077 35032 33716 34072 34187 34063>, + <35938 34389 32344 32561 32755 32608>, + <35804 33409 28433 28113 28178 28204>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13340 12563 11931 11542 11371>, + <13380 12577 11963 11592 11424>, + <13400 12588 11990 11592 11417>, + <13395 12590 12010 11583 11410>, + <13373 12586 12004 11574 11403>, + <13358 12576 11983 11567 11395>, + <13323 12550 11968 11559 11387>, + <13284 12520 11958 11552 11381>, + <13258 12499 11950 11544 11375>, + <13207 12481 11943 11535 11370>, + <13163 12464 11937 11525 11366>, + <13149 12444 11929 11516 11363>, + <13140 12426 11915 11512 11360>, + <13121 12410 11906 11510 11358>, + <13058 12395 11908 11508 11356>, + <12993 12391 11912 11506 11354>, + <12975 12392 11914 11504 11354>, + <12966 12392 11914 11502 11354>, + <12962 12389 11913 11500 11354>, + <12945 12386 11914 11501 11354>, + <12920 12388 11915 11503 11353>, + <12915 12393 11918 11505 11353>, + <12919 12398 11925 11505 11352>, + <12925 12403 11930 11505 11352>, + <12931 12409 11931 11506 11352>, + <12939 12412 11931 11508 11354>, + <12946 12416 11933 11511 11356>, + <12952 12419 11936 11514 11358>, + <12959 12423 11940 11519 11361>, + <12968 12432 11949 11522 11364>, + <12982 12435 11957 11526 11368>, + <12993 12440 11961 11530 11371>, + <12991 12447 11966 11536 11375>, + <12984 12447 11969 11542 11379>, + <12981 12448 11969 11547 11384>, + <12996 12451 11971 11551 11390>, + <13018 12469 11976 11557 11395>, + <13026 12492 11985 11565 11400>, + <13027 12500 11995 11572 11405>, + <13028 12504 12006 11579 11412>, + <13028 12509 12017 11587 11419>, + <13028 12521 12027 11595 11424>, + <13044 12538 12035 11603 11428>, + <13089 12572 12039 11608 11432>, + <13180 12580 12046 11614 11437>, + <13120 12581 12068 11619 11441>, + <13122 12581 12047 11619 11440>, + <13120 12586 12056 11623 11442>, + <13110 12601 12062 11626 11447>, + <13108 12580 12067 11636 11452>, + <13120 12619 12081 11637 11458>, + <13115 12634 12084 11649 11468>, + <13182 12797 12113 11659 11476>, + <13134 12675 12129 11677 11492>, + <13134 12675 12129 11677 11492>, + <13134 12675 12129 11677 11492>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <9480 9994 10475 10510 10441>, + <9828 10281 10469 10596 10317>, + <10056 10456 10660 10724 10497>, + <10199 10531 10854 10711 10605>, + <10347 10574 10855 10690 10642>, + <10383 10572 10803 10673 10613>, + <10378 10537 10755 10652 10563>, + <10371 10508 10704 10610 10517>, + <10363 10496 10649 10544 10466>, + <10352 10487 10589 10485 10420>, + <10342 10472 10529 10426 10377>, + <10328 10435 10512 10391 10340>, + <10310 10409 10511 10389 10312>, + <10295 10402 10509 10393 10290>, + <10281 10397 10507 10398 10272>, + <10268 10397 10504 10410 10252>, + <10256 10399 10505 10414 10240>, + <10245 10402 10519 10363 10248>, + <10240 10409 10533 10299 10264>, + <10242 10422 10537 10294 10271>, + <10247 10434 10541 10309 10275>, + <10250 10447 10576 10340 10279>, + <10255 10463 10713 10506 10319>, + <10262 10493 10794 10667 10372>, + <10273 10532 10745 10590 10374>, + <10294 10552 10661 10372 10350>, + <10310 10561 10605 10302 10374>, + <10319 10566 10557 10327 10814>, + <10326 10561 10539 10371 11219>, + <10334 10547 10558 10514 11096>, + <10346 10539 10587 10722 10759>, + <10357 10534 10605 10754 10533>, + <10360 10530 10620 10659 10369>, + <10361 10532 10630 10552 10276>, + <10361 10540 10637 10457 10247>, + <10357 10544 10643 10382 10232>, + <10351 10542 10646 10380 10246>, + <10350 10540 10647 10417 10304>, + <10352 10543 10651 10461 10362>, + <10354 10553 10670 10525 10415>, + <10286 10558 10685 10577 10456>, + <10064 10547 10680 10572 10467>, + <9927 10530 10668 10549 10468>, + <9716 10510 10650 10550 10462>, + <9960 10529 10631 10552 10463>, + <9951 10532 10621 10558 10451>, + <9949 10508 10591 10532 10431>, + <9987 10443 10543 10546 10442>, + <9968 10501 10536 10567 10495>, + <9871 10655 10582 10646 10543>, + <9864 13526 10583 10573 10446>, + <9770 10302 10560 10396 10264>, + <9680 10092 10498 10350 10175>, + <9490 9962 10407 10281 10113>, + <9490 9962 10407 10281 10113>, + <9490 9962 10407 10281 10113>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19385 19368 19327 19327 19336>, + <19487 19415 19354 19343 19340>, + <19553 19449 19381 19360 19364>, + <19579 19474 19403 19366 19369>, + <19597 19491 19413 19372 19374>, + <19601 19496 19419 19382 19381>, + <19598 19498 19423 19391 19387>, + <19595 19499 19426 19395 19392>, + <19593 19501 19429 19398 19397>, + <19591 19502 19429 19399 19398>, + <19590 19501 19428 19397 19396>, + <19588 19498 19427 19395 19393>, + <19585 19493 19422 19392 19389>, + <19583 19487 19415 19389 19385>, + <19582 19482 19411 19386 19381>, + <19581 19478 19408 19383 19376>, + <19578 19475 19405 19379 19373>, + <19572 19472 19402 19374 19369>, + <19567 19469 19399 19368 19366>, + <19563 19465 19395 19363 19362>, + <19560 19464 19392 19359 19357>, + <19558 19464 19394 19358 19355>, + <19558 19464 19404 19364 19355>, + <19559 19468 19411 19371 19357>, + <19561 19476 19408 19364 19352>, + <19566 19479 19402 19346 19337>, + <19569 19480 19397 19340 19334>, + <19569 19479 19391 19341 19373>, + <19569 19478 19389 19343 19410>, + <19568 19475 19389 19356 19408>, + <19568 19471 19390 19378 19401>, + <19566 19468 19391 19382 19393>, + <19564 19465 19393 19380 19385>, + <19560 19464 19395 19377 19376>, + <19556 19463 19396 19372 19366>, + <19553 19463 19397 19365 19356>, + <19550 19461 19396 19359 19349>, + <19546 19458 19392 19351 19343>, + <19540 19455 19389 19348 19339>, + <19533 19451 19386 19348 19337>, + <19500 19447 19383 19348 19336>, + <19414 19443 19380 19347 19338>, + <19359 19439 19377 19344 19341>, + <19269 19437 19375 19346 19345>, + <19263 19427 19369 19346 19345>, + <19263 19405 19363 19335 19334>, + <19263 19405 19358 19333 19330>, + <19263 19378 19357 19327 19323>, + <19263 19267 19351 19324 19316>, + <19264 19265 19344 19322 19317>, + <19264 19264 19350 19337 19334>, + <19265 19364 19355 19349 19344>, + <19266 19322 19354 19350 19343>, + <19281 19341 19355 19352 19342>, + <19281 19341 19355 19352 19342>, + <19281 19341 19355 19352 19342>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15768 15297 14994 14918 14873>, + <15861 15358 15158 14907 14843>, + <15882 15372 15125 14949 14898>, + <15803 15312 15071 14910 14868>, + <15624 15194 15018 14872 14837>, + <15473 15102 14958 14841 14813>, + <15355 15026 14908 14813 14792>, + <15252 14962 14866 14788 14773>, + <15169 14910 14831 14767 14756>, + <15097 14866 14801 14748 14741>, + <15037 14831 14776 14730 14729>, + <14985 14801 14755 14718 14720>, + <14941 14776 14737 14711 14716>, + <14904 14755 14724 14706 14714>, + <14873 14737 14716 14701 14711>, + <14846 14728 14711 14697 14707>, + <14825 14722 14706 14693 14704>, + <14808 14718 14702 14690 14701>, + <14795 14715 14698 14687 14698>, + <14785 14712 14694 14682 14693>, + <14778 14712 14692 14676 14686>, + <14773 14713 14695 14676 14684>, + <14770 14714 14716 14729 14733>, + <14768 14722 14745 14792 14796>, + <14768 14742 14792 14812 14810>, + <14769 14759 14836 14823 14816>, + <14770 14775 14839 14825 14814>, + <14773 14785 14823 14811 14763>, + <14777 14783 14807 14790 14711>, + <14780 14776 14792 14763 14702>, + <14783 14769 14778 14731 14699>, + <14784 14761 14764 14714 14694>, + <14784 14753 14751 14703 14690>, + <14781 14747 14740 14696 14685>, + <14777 14742 14730 14692 14681>, + <14772 14737 14722 14688 14678>, + <14765 14730 14718 14685 14675>, + <14756 14724 14715 14682 14673>, + <14743 14718 14714 14681 14673>, + <14730 14713 14714 14690 14686>, + <14746 14706 14714 14701 14701>, + <14816 14697 14708 14697 14698>, + <14861 14688 14697 14688 14689>, + <14939 14679 14691 14688 14692>, + <14890 14659 14674 14681 14688>, + <14890 14651 14650 14656 14658>, + <14890 14646 14642 14650 14652>, + <14889 14669 14633 14638 14641>, + <14889 14788 14626 14620 14622>, + <14886 14784 14627 14618 14616>, + <14884 14785 14642 14641 14653>, + <14882 14694 14647 14647 14663>, + <14894 14754 14652 14651 14672>, + <14916 14759 14658 14656 14679>, + <14916 14759 14658 14656 14679>, + <14916 14759 14658 14656 14679>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12458 13103 13632 14516 14924>, + <13736 14605 15344 16826 16798>, + <14841 15819 16835 17866 19005>, + <15762 16748 18120 18425 20004>, + <16568 17504 18829 19058 20829>, + <17239 18144 19319 19978 21728>, + <17786 18683 19863 21001 22729>, + <18308 19312 20571 21890 24044>, + <18910 20275 21392 22743 25688>, + <19572 21420 22297 23710 27142>, + <20272 22413 23284 24857 28490>, + <20994 23257 24237 25935 29436>, + <21765 24194 25170 26810 29725>, + <22651 25511 26098 27661 29807>, + <23777 27043 27003 28741 30024>, + <24905 28295 27906 30195 30701>, + <25753 29316 28894 30940 31499>, + <26447 30265 30034 30762 32836>, + <27114 31110 31112 30505 34793>, + <27791 31919 31836 30749 36151>, + <28456 33054 32586 31622 37436>, + <29177 34747 35850 32986 37931>, + <30097 37147 46617 36766 36584>, + <31336 42352 52815 40112 33818>, + <33335 49909 48871 35942 28910>, + <36538 52409 41886 24638 20907>, + <38981 51917 36791 19924 18533>, + <40067 51001 32122 18910 27056>, + <40849 48997 30057 18490 35165>, + <41422 45332 29688 20775 35458>, + <42113 42776 29508 25766 35222>, + <42620 41128 29855 28597 35191>, + <42417 40127 31369 30368 35222>, + <41445 40338 33346 31806 34957>, + <40694 41418 36757 33272 33721>, + <40485 42427 40019 34394 32246>, + <40309 43175 41468 34432 32051>, + <40184 43884 42506 34029 32188>, + <39996 44644 42728 33848 32244>, + <39657 45495 42181 34785 31412>, + <36543 45839 41327 35838 30295>, + <27594 44517 39640 33957 29862>, + <21738 43463 37606 29882 29624>, + <11614 45740 37549 31882 32016>, + <11503 45268 39072 33655 33964>, + <11439 31446 40440 29490 28539>, + <11420 31543 36532 28679 25972>, + <11392 20941 38420 28277 24753>, + <11319 11519 33805 34532 29248>, + <11260 11492 29542 33302 36836>, + <11234 11682 29224 32033 29811>, + <11216 17161 26795 30104 25131>, + <11209 13906 23469 26485 20830>, + <12090 15413 21805 23002 17424>, + <12090 15413 21805 23002 17424>, + <12090 15413 21805 23002 17424>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <16136 15368 14916 14698 14637>, + <16145 15371 14988 14706 14632>, + <16131 15366 14973 14728 14666>, + <16069 15326 14947 14711 14655>, + <15947 15254 14920 14695 14644>, + <15836 15195 14886 14684 14637>, + <15743 15141 14857 14674 14630>, + <15658 15094 14832 14664 14624>, + <15586 15054 14809 14654 14618>, + <15522 15020 14789 14644 14612>, + <15467 14989 14770 14634 14605>, + <15417 14961 14754 14625 14598>, + <15373 14938 14740 14619 14594>, + <15334 14917 14730 14615 14590>, + <15300 14900 14723 14610 14586>, + <15270 14891 14718 14606 14582>, + <15242 14886 14713 14602 14577>, + <15216 14883 14709 14597 14574>, + <15197 14880 14706 14592 14571>, + <15185 14878 14703 14587 14566>, + <15177 14877 14701 14583 14560>, + <15175 14879 14703 14582 14558>, + <15176 14882 14718 14611 14580>, + <15178 14889 14735 14640 14608>, + <15182 14902 14755 14641 14609>, + <15187 14913 14772 14640 14606>, + <15193 14923 14772 14637 14604>, + <15198 14928 14764 14632 14603>, + <15202 14928 14756 14626 14601>, + <15206 14925 14752 14623 14598>, + <15209 14922 14748 14621 14593>, + <15211 14919 14744 14618 14587>, + <15212 14916 14741 14613 14582>, + <15213 14916 14740 14609 14576>, + <15214 14917 14739 14605 14569>, + <15215 14918 14738 14601 14563>, + <15217 14918 14738 14598 14559>, + <15218 14919 14739 14594 14555>, + <15221 14920 14740 14592 14554>, + <15224 14923 14743 14598 14559>, + <15227 14926 14746 14604 14565>, + <15231 14928 14745 14603 14566>, + <15237 14931 14744 14600 14565>, + <15249 14937 14746 14602 14568>, + <15258 14937 14743 14600 14567>, + <15264 14931 14735 14585 14549>, + <15266 14931 14730 14581 14545>, + <15267 14927 14727 14574 14537>, + <15268 14927 14723 14566 14525>, + <15270 14932 14726 14566 14525>, + <15276 14943 14740 14585 14550>, + <15290 14962 14751 14596 14562>, + <15308 14976 14760 14602 14569>, + <15338 15004 14773 14610 14575>, + <15338 15004 14773 14610 14575>, + <15338 15004 14773 14610 14575>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6545 6061 5813 5437 5211 5102>, + <6536 6095 5800 5437 5207 5100>, + <6530 6119 5786 5438 5204 5097>, + <6526 6135 5774 5439 5200 5094>, + <6525 6144 5766 5439 5196 5091>, + <6524 6147 5763 5440 5193 5088>, + <6536 6138 5765 5440 5188 5084>, + <6562 6124 5768 5440 5184 5080>, + <6570 6123 5771 5439 5182 5078>, + <6556 6128 5774 5435 5180 5076>, + <6539 6131 5775 5431 5178 5073>, + <6534 6138 5768 5428 5174 5070>, + <6534 6151 5760 5425 5170 5068>, + <6535 6154 5760 5423 5167 5065>, + <6538 6154 5763 5419 5163 5063>, + <6543 6154 5764 5418 5160 5063>, + <6543 6154 5765 5420 5158 5063>, + <6542 6153 5766 5423 5157 5062>, + <6540 6154 5769 5422 5157 5062>, + <6537 6157 5775 5420 5157 5061>, + <6532 6159 5777 5420 5158 5060>, + <6534 6157 5771 5422 5158 5060>, + <6555 6152 5767 5426 5158 5060>, + <6572 6152 5768 5429 5160 5061>, + <6573 6165 5772 5432 5162 5062>, + <6572 6175 5776 5435 5164 5064>, + <6571 6168 5783 5437 5165 5065>, + <6557 6154 5787 5440 5166 5066>, + <6543 6149 5787 5443 5168 5067>, + <6543 6153 5785 5448 5170 5068>, + <6548 6156 5785 5450 5173 5070>, + <6550 6150 5787 5451 5176 5073>, + <6540 6139 5789 5451 5179 5075>, + <6527 6135 5785 5452 5182 5078>, + <6525 6142 5780 5454 5185 5080>, + <6524 6147 5780 5456 5188 5082>, + <6523 6143 5788 5458 5190 5084>, + <6533 6133 5793 5460 5192 5086>, + <6551 6131 5795 5463 5193 5087>, + <6553 6139 5796 5465 5195 5088>, + <6532 6146 5792 5466 5196 5090>, + <6515 6144 5780 5463 5198 5093>, + <6518 6141 5776 5463 5199 5095>, + <6524 6134 5778 5469 5203 5097>, + <6527 6133 5783 5484 5209 5101>, + <6542 6156 5970 5475 5211 5103>, + <6575 6149 5817 5488 5213 5104>, + <6587 6139 5794 5485 5212 5104>, + <6664 6164 5777 5480 5214 5106>, + <6772 6174 5779 5478 5215 5105>, + <6796 6255 5822 5482 5217 5109>, + <6867 6342 5884 5490 5223 5114>, + <6956 6678 6057 5506 5229 5119>, + <7317 6768 6471 5526 5240 5131>, + <7317 6768 6471 5526 5240 5131>, + <7317 6768 6471 5526 5240 5131>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <9665 9643 10806 11476 11556 11414>, + <9668 9698 10866 11429 11455 11317>, + <9671 10016 10954 11382 11344 11211>, + <9674 10361 11046 11337 11235 11108>, + <9677 10650 11116 11298 11140 11023>, + <9681 10801 11142 11269 11072 10969>, + <9685 10842 11133 11249 11020 10942>, + <9688 10868 11121 11231 10979 10921>, + <9691 10887 11117 11203 10960 10891>, + <9692 10903 11122 11165 10945 10853>, + <9693 10916 11125 11148 10934 10836>, + <9694 10928 11129 11158 10929 10834>, + <9696 10940 11138 11178 10928 10832>, + <9696 10963 11154 11201 10927 10826>, + <9693 11015 11189 11233 10930 10815>, + <9689 11057 11230 11269 10942 10807>, + <9688 11075 11287 11315 10966 10803>, + <9687 11087 11333 11365 11003 10801>, + <9687 11088 11344 11419 11092 10829>, + <9684 11078 11342 11479 11247 10916>, + <9681 11061 11327 11497 11334 11024>, + <9678 11037 11271 11444 11337 11202>, + <9677 11002 11226 11377 11316 11323>, + <9676 10968 11220 11349 11283 11267>, + <9675 10936 11218 11330 11232 11150>, + <9674 10883 11215 11322 11228 11122>, + <9673 10556 11210 11356 11243 11145>, + <9672 10008 11203 11394 11264 11166>, + <9671 9808 11179 11411 11324 11183>, + <9670 9757 11144 11440 11408 11203>, + <9668 9730 11136 11463 11428 11221>, + <9667 9718 11149 11491 11429 11304>, + <9667 9711 11156 11507 11429 11367>, + <9666 9703 11137 11482 11435 11387>, + <9666 9696 11099 11424 11449 11404>, + <9665 9689 11048 11386 11451 11398>, + <9664 9683 10969 11355 11427 11372>, + <9664 9678 10870 11342 11404 11347>, + <9664 9674 10760 11364 11382 11303>, + <9663 9671 10611 11398 11355 11253>, + <9663 9668 10289 11399 11356 11235>, + <9662 9666 9826 11364 11382 11227>, + <9661 9664 9719 11264 11347 11190>, + <9660 9662 9689 11042 11248 11114>, + <9659 9661 9679 10878 11204 11052>, + <9657 9659 9671 10980 11104 10941>, + <9655 9658 9666 10986 11162 10922>, + <9653 9656 9661 10985 11237 10965>, + <9651 9653 9658 11055 11251 10963>, + <9650 9651 9655 11104 11228 10928>, + <9649 9649 9652 10908 11072 10844>, + <9648 9648 9650 10589 11002 10785>, + <9648 9648 9649 10463 10917 10692>, + <9648 9649 9648 10017 10750 10519>, + <9648 9649 9648 10017 10750 10519>, + <9648 9649 9648 10017 10750 10519>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13734 13389 13325 13289 13275 13275>, + <13706 13392 13328 13290 13277 13276>, + <13679 13395 13331 13291 13278 13277>, + <13653 13398 13335 13292 13280 13278>, + <13630 13400 13337 13293 13281 13279>, + <13613 13401 13339 13295 13282 13280>, + <13601 13400 13340 13296 13283 13281>, + <13592 13400 13340 13297 13284 13282>, + <13582 13399 13340 13298 13285 13283>, + <13571 13397 13340 13299 13285 13284>, + <13561 13394 13340 13300 13286 13285>, + <13551 13392 13339 13300 13287 13286>, + <13542 13389 13337 13301 13288 13287>, + <13535 13387 13336 13301 13288 13287>, + <13531 13384 13334 13300 13289 13287>, + <13528 13381 13333 13300 13289 13287>, + <13523 13377 13332 13298 13290 13288>, + <13517 13373 13331 13297 13291 13289>, + <13512 13368 13329 13297 13291 13290>, + <13508 13362 13326 13297 13292 13292>, + <13505 13356 13322 13297 13292 13292>, + <13504 13351 13318 13295 13289 13290>, + <13502 13347 13314 13292 13285 13286>, + <13501 13343 13311 13290 13282 13282>, + <13499 13339 13309 13288 13279 13278>, + <13495 13336 13308 13287 13278 13277>, + <13495 13333 13306 13287 13278 13278>, + <13505 13331 13305 13286 13278 13278>, + <13523 13330 13304 13287 13278 13277>, + <13544 13330 13303 13287 13278 13275>, + <13572 13331 13303 13287 13278 13275>, + <13602 13334 13303 13287 13278 13275>, + <13632 13342 13303 13286 13278 13275>, + <13665 13351 13303 13286 13278 13277>, + <13705 13363 13303 13285 13278 13278>, + <13754 13378 13305 13285 13278 13278>, + <13807 13399 13307 13285 13278 13277>, + <13863 13426 13310 13285 13277 13277>, + <13924 13461 13314 13285 13277 13277>, + <13991 13507 13319 13285 13278 13277>, + <14066 13565 13329 13286 13278 13278>, + <14147 13635 13344 13286 13278 13279>, + <14232 13723 13359 13287 13277 13278>, + <14333 13837 13382 13287 13276 13276>, + <14471 13984 13425 13288 13277 13276>, + <14729 14175 13508 13292 13282 13282>, + <15015 14337 13609 13294 13284 13285>, + <15462 14606 13787 13297 13287 13286>, + <16369 15240 14100 13302 13288 13287>, + <18307 17007 14676 13305 13287 13285>, + <22468 22128 16241 13304 13283 13282>, + <32390 39066 22243 13307 13285 13282>, + <60521 65535 48032 13321 13288 13286>, + <65535 65535 65535 13348 13294 13294>, + <65535 65535 65535 13348 13294 13294>, + <65535 65535 65535 13348 13294 13294>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16779 16604 16557 16510 16475 16470>, + <16821 16666 16586 16514 16475 16471>, + <16912 16742 16635 16520 16475 16472>, + <17020 16819 16688 16527 16475 16473>, + <17113 16884 16731 16532 16475 16473>, + <17159 16922 16750 16534 16475 16474>, + <17159 16940 16755 16533 16475 16473>, + <17158 16951 16757 16532 16475 16473>, + <17155 16951 16754 16532 16475 16473>, + <17144 16944 16743 16531 16476 16473>, + <17128 16938 16737 16531 16477 16473>, + <17116 16934 16735 16532 16478 16474>, + <17104 16931 16734 16535 16481 16475>, + <17090 16930 16737 16541 16484 16476>, + <17074 16928 16748 16551 16489 16479>, + <17054 16926 16760 16564 16495 16483>, + <17027 16918 16774 16582 16502 16487>, + <16988 16902 16784 16603 16511 16492>, + <16946 16880 16777 16628 16528 16502>, + <16903 16842 16753 16656 16553 16516>, + <16860 16799 16723 16664 16561 16527>, + <16817 16761 16674 16619 16557 16536>, + <16775 16722 16627 16560 16549 16542>, + <16737 16688 16596 16524 16521 16521>, + <16699 16656 16571 16496 16476 16478>, + <16666 16629 16557 16487 16464 16465>, + <16652 16603 16548 16485 16465 16463>, + <16647 16581 16540 16485 16466 16463>, + <16645 16571 16533 16488 16471 16466>, + <16643 16565 16526 16494 16479 16474>, + <16642 16563 16516 16501 16489 16482>, + <16642 16565 16503 16510 16501 16493>, + <16646 16570 16497 16516 16510 16503>, + <16652 16576 16500 16519 16515 16513>, + <16657 16584 16506 16521 16518 16522>, + <16662 16592 16516 16519 16516 16519>, + <16668 16600 16533 16506 16502 16502>, + <16676 16607 16549 16495 16489 16490>, + <16687 16613 16566 16493 16481 16487>, + <16698 16618 16578 16492 16476 16485>, + <16712 16623 16576 16494 16477 16489>, + <16727 16626 16568 16501 16483 16499>, + <16744 16630 16568 16502 16476 16486>, + <16760 16638 16574 16495 16456 16457>, + <16768 16649 16577 16491 16447 16446>, + <16783 16645 16599 16502 16469 16481>, + <16810 16644 16625 16523 16498 16518>, + <16843 16655 16657 16551 16534 16556>, + <16912 16706 16705 16595 16570 16588>, + <17143 16915 16758 16622 16569 16574>, + <17635 17602 17026 16587 16498 16495>, + <19172 21459 18977 16571 16483 16486>, + <19831 19330 37121 16598 16486 16485>, + <17100 16972 65535 16656 16495 16485>, + <17100 16972 65535 16656 16495 16485>, + <17100 16972 65535 16656 16495 16485>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <11864 12739 17712 23072 21009 22651>, + <12468 13868 18047 22585 21480 22465>, + <13100 15062 18397 22102 21760 22337>, + <13759 16217 18733 21651 21896 22257>, + <14444 17227 19025 21264 21933 22216>, + <15153 17987 19244 20974 21917 22204>, + <15988 18593 19437 20789 21626 22285>, + <16844 19070 19574 20628 21081 22356>, + <17271 19228 19564 20326 20463 22167>, + <17439 19298 19443 19730 19645 21639>, + <17565 19330 19271 19172 18986 21184>, + <17708 19328 18888 18718 18568 20856>, + <17849 19336 18502 18221 18176 20493>, + <18036 19433 18379 17554 17647 19903>, + <18400 19769 18309 16667 17009 18923>, + <18781 20196 18324 16104 16562 18131>, + <18979 20697 18943 15795 16170 17532>, + <19154 21285 19899 15612 15919 17055>, + <19238 21757 20909 16005 15839 16711>, + <19169 22132 22057 17516 15661 16428>, + <19055 22489 22880 19343 15923 16528>, + <19005 22905 23516 22089 18830 18435>, + <18864 23309 23966 24373 21482 20413>, + <18628 23545 24190 24830 21810 21153>, + <17475 23752 24347 24828 21906 21636>, + <15302 23863 24507 24684 21756 21674>, + <14170 21883 24687 23946 20857 21074>, + <13683 17817 24794 23346 19886 20167>, + <13429 15671 24809 23538 19280 18607>, + <13539 14513 24814 24022 18814 16793>, + <13883 13963 24940 24391 18753 16348>, + <14035 14063 25453 24683 18958 16385>, + <13926 14319 25747 24951 19254 16572>, + <13794 14542 25116 25331 19796 17723>, + <13809 14783 24292 25833 20631 19554>, + <13947 14986 24109 26049 21697 20918>, + <14050 15191 24058 26155 23182 22169>, + <14082 15439 24087 26207 24057 22687>, + <14102 15485 24282 26005 24224 22582>, + <14117 15347 24469 25476 24174 22431>, + <14145 15160 23315 24812 23740 22536>, + <14159 14915 19644 23754 22681 22986>, + <14051 14637 16704 23000 22521 23123>, + <13893 14611 15215 22496 22652 22762>, + <14096 14328 15136 20765 21288 20206>, + <14198 13971 14810 21177 19870 17863>, + <13780 13961 14497 20342 18793 16794>, + <12952 13894 14617 19515 18084 15840>, + <12071 13351 14728 19640 17444 15497>, + <11219 11688 14833 20193 17078 15210>, + <10460 10365 12788 19765 17785 15983>, + <9999 9628 9945 19131 18659 15311>, + <14564 15570 9045 18813 18334 15195>, + <31473 20402 8850 15837 19903 18744>, + <31473 20402 8850 15837 19903 18744>, + <31473 20402 8850 15837 19903 18744>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6076 5565 5325 5106 5027 5010>, + <6083 5581 5330 5107 5027 5010>, + <6086 5594 5333 5107 5027 5011>, + <6085 5604 5335 5107 5028 5011>, + <6082 5610 5335 5106 5028 5012>, + <6077 5612 5335 5106 5028 5012>, + <6071 5610 5332 5105 5028 5013>, + <6061 5604 5325 5104 5028 5013>, + <6051 5598 5319 5102 5028 5014>, + <6037 5590 5311 5101 5028 5014>, + <6024 5582 5305 5100 5028 5014>, + <6012 5574 5299 5100 5029 5015>, + <6001 5568 5294 5100 5030 5016>, + <5990 5562 5293 5101 5031 5017>, + <5981 5559 5291 5102 5032 5017>, + <5972 5554 5291 5105 5034 5019>, + <5961 5548 5292 5108 5036 5020>, + <5949 5540 5293 5113 5039 5022>, + <5936 5530 5290 5120 5044 5026>, + <5924 5517 5279 5128 5052 5031>, + <5913 5503 5267 5130 5054 5034>, + <5904 5491 5251 5116 5050 5034>, + <5895 5480 5236 5097 5045 5033>, + <5889 5471 5226 5086 5035 5025>, + <5884 5465 5219 5077 5020 5009>, + <5879 5459 5216 5074 5016 5005>, + <5879 5452 5214 5075 5016 5005>, + <5891 5446 5214 5075 5017 5005>, + <5909 5445 5214 5077 5018 5005>, + <5928 5450 5214 5080 5021 5007>, + <5951 5459 5215 5083 5024 5009>, + <5977 5472 5216 5086 5028 5012>, + <6004 5491 5218 5089 5031 5015>, + <6035 5513 5223 5092 5033 5019>, + <6069 5538 5232 5093 5034 5023>, + <6108 5567 5244 5094 5033 5022>, + <6151 5601 5261 5091 5030 5017>, + <6198 5641 5282 5089 5026 5014>, + <6249 5685 5306 5091 5025 5013>, + <6304 5736 5334 5093 5024 5013>, + <6365 5793 5361 5097 5024 5014>, + <6432 5857 5390 5103 5027 5019>, + <6506 5933 5430 5107 5024 5014>, + <6596 6028 5487 5111 5019 5005>, + <6714 6154 5552 5117 5018 5003>, + <6939 6318 5666 5128 5028 5017>, + <7193 6447 5769 5139 5039 5030>, + <7582 6667 5936 5153 5051 5042>, + <8337 7193 6206 5172 5062 5052>, + <9861 8575 6669 5186 5061 5047>, + <12956 12364 7929 5181 5038 5023>, + <20121 24746 12701 5192 5036 5021>, + <39446 65535 35327 5242 5041 5025>, + <65535 65535 65535 5325 5050 5032>, + <65535 65535 65535 5325 5050 5032>, + <65535 65535 65535 5325 5050 5032>; + }; + +}; From 460aaa9b2831c80c98eed012088afec189ae8af5 Mon Sep 17 00:00:00 2001 From: Haijian Ma Date: Mon, 15 Jul 2024 16:39:37 +0800 Subject: [PATCH 1246/1247] arm/dts: config BCL SOC trigger threshold to 2% As performance required, config BCL soc trigger threshold to 2% Change-Id: I69e7f1871508a364a1184dc8a1b14eb108bbddea Signed-off-by: Haijian Ma Reviewed-on: https://gerrit.mot.com/3028823 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao Submit-Approved: Jira Key --- qcom/fogos-charger.dtsi | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 764377d5bf91..26c8f10e7364 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -12,6 +12,10 @@ #include "qg-batterydata-qf50-scud2-5000mah.dtsi" }; +&socd_trip { + temperature = <98>; +}; + &pm7250b_charger { #io-channel-cells = <1>; io-channels = <&pm7250b_vadc ADC5_USB_IN_V_16>, From 991d7eccb2b13b664b324ad3372326962fffef16 Mon Sep 17 00:00:00 2001 From: liuyc20 Date: Wed, 14 Aug 2024 10:32:09 +0800 Subject: [PATCH 1247/1247] Fogo5g+ introduce SB18E53186 battery india add local SUnwoda QF50 battery(SB18E53186) As KP request. the SB18E53186 battery parameter same as SB18D96854 battery. Change-Id: Id31b436f3620f2f8e97fb8980623b4a555afd5b1 Signed-off-by: liuyc20 Reviewed-on: https://gerrit.mot.com/3057798 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Hujun Liao Reviewed-by: Haijian Ma Submit-Approved: Jira Key --- qcom/fogor-charger.dtsi | 1 + qcom/fogos-charger.dtsi | 1 + ...tterydata-qf50-swd-SB18E53186-5000mah.dtsi | 1019 +++++++++++++++++ 3 files changed, 1021 insertions(+) create mode 100644 qcom/qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi diff --git a/qcom/fogor-charger.dtsi b/qcom/fogor-charger.dtsi index 018bfe1a6959..1387f8b2c094 100644 --- a/qcom/fogor-charger.dtsi +++ b/qcom/fogor-charger.dtsi @@ -9,6 +9,7 @@ #include "qg-batterydata-qf50-atl-SB18D96854-5000mah.dtsi" #include "qg-batterydata-qf50-scud-5000mah.dtsi" #include "qg-batterydata-qf50-swd-5000mah.dtsi" + #include "qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi" }; &pm7250b_charger { diff --git a/qcom/fogos-charger.dtsi b/qcom/fogos-charger.dtsi index 26c8f10e7364..222e1b07efd8 100644 --- a/qcom/fogos-charger.dtsi +++ b/qcom/fogos-charger.dtsi @@ -10,6 +10,7 @@ #include "qg-batterydata-qf50-scud-5000mah.dtsi" #include "qg-batterydata-qf50-swd-5000mah.dtsi" #include "qg-batterydata-qf50-scud2-5000mah.dtsi" + #include "qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi" }; &socd_trip { diff --git a/qcom/qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi b/qcom/qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi new file mode 100644 index 000000000000..ef65c9cc75d2 --- /dev/null +++ b/qcom/qg-batterydata-qf50-swd-SB18E53186-5000mah.dtsi @@ -0,0 +1,1019 @@ + +qcom,qf50-swd-SB18E53186-5000mah { + /* SWD_SB18E53186_5000mAH_averaged_MasterSlave_Oct9th2023 */ + serialnum = "SB18E53186"; + qcom,sdam-magic-number = <0x18E53186>; + qcom,max-voltage-uv = <4520000>; + qcom,fg-cc-cv-threshold-uv = <4510000>; + qcom,fastchg-current-ma = <4000>; + qcom,batt-id-kohm = <0>; + qcom,battery-beta = <4250>; + qcom,battery-therm-kohm = <100>; + qcom,battery-type = "QF50-SWD-SB18E53186-5000mah"; + qcom,qg-batt-profile-ver = <100>; + + qcom,fcc1-temp-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-data = <4790 4963 5105 5130 5136>; + }; + + qcom,fcc2-temp-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-data = <4801 4933 5021 5092 5098 5091>; + }; + + qcom,pc-temp-v1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <44593 44719 44804 44838 44844>, + <44363 44459 44477 44490 44497>, + <44144 44230 44243 44243 44244>, + <43927 44019 44035 44031 44030>, + <43713 43810 43820 43818 43818>, + <43498 43596 43604 43604 43606>, + <43273 43372 43381 43385 43390>, + <43035 43137 43142 43153 43158>, + <42792 42894 42895 42911 42914>, + <42551 42644 42646 42663 42666>, + <42310 42393 42393 42408 42414>, + <42073 42146 42141 42154 42162>, + <41839 41903 41889 41903 41914>, + <41609 41666 41642 41656 41669>, + <41387 41435 41405 41418 41431>, + <41171 41209 41175 41184 41198>, + <40963 40990 40953 40960 40972>, + <40761 40781 40738 40744 40753>, + <40565 40581 40532 40539 40543>, + <40376 40391 40342 40345 40348>, + <40196 40208 40161 40165 40169>, + <40017 40026 39958 39961 39968>, + <39832 39829 39722 39704 39713>, + <39642 39584 39487 39452 39461>, + <39449 39308 39263 39253 39271>, + <39236 39091 39056 39084 39112>, + <39033 38952 38915 38947 38967>, + <38893 38848 38817 38837 38830>, + <38793 38757 38729 38737 38709>, + <38708 38674 38639 38633 38609>, + <38631 38593 38555 38534 38521>, + <38562 38516 38475 38446 38438>, + <38499 38443 38399 38368 38361>, + <38440 38377 38330 38296 38287>, + <38385 38316 38270 38227 38216>, + <38335 38263 38215 38161 38145>, + <38289 38219 38159 38095 38074>, + <38243 38179 38104 38031 37999>, + <38199 38129 38036 37954 37912>, + <38151 38063 37943 37851 37796>, + <38082 37978 37834 37733 37667>, + <37977 37865 37713 37614 37543>, + <37855 37731 37574 37487 37414>, + <37710 37574 37403 37324 37244>, + <37573 37406 37240 37171 37097>, + <37402 37260 37123 37076 37019>, + <37316 37197 37089 37042 36986>, + <37241 37152 37063 37019 36962>, + <37178 37120 37041 36998 36938>, + <37126 37083 36997 36945 36882>, + <37082 36997 36796 36700 36622>, + <37038 36781 36363 36256 36180>, + <36969 36458 35772 35667 35597>, + <36769 35910 34953 34863 34801>, + <36046 34963 33679 33606 33568>, + <30000 30000 30000 30000 30000>; + }; + + qcom,pc-temp-v2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <44815 44815 44800 44750 44750 44740>, + <44407 44442 44446 44412 44411 44406>, + <44058 44120 44138 44113 44111 44108>, + <43782 43862 43887 43862 43858 43856>, + <43570 43658 43684 43653 43646 43644>, + <43370 43460 43482 43441 43432 43430>, + <43150 43241 43259 43211 43203 43201>, + <42924 43016 43028 42975 42968 42965>, + <42694 42783 42789 42731 42725 42723>, + <42460 42540 42539 42479 42474 42472>, + <42225 42294 42288 42227 42223 42221>, + <41992 42052 42042 41975 41972 41972>, + <41761 41809 41797 41725 41722 41724>, + <41530 41572 41555 41481 41480 41482>, + <41301 41339 41316 41244 41245 41246>, + <41073 41112 41084 41013 41016 41017>, + <40839 40897 40859 40787 40791 40794>, + <40599 40690 40642 40570 40575 40580>, + <40356 40467 40440 40366 40372 40374>, + <40111 40218 40252 40169 40175 40175>, + <39864 39963 40042 39964 39983 39983>, + <39631 39715 39777 39750 39796 39802>, + <39413 39470 39500 39529 39597 39609>, + <39208 39248 39262 39284 39341 39357>, + <39016 39051 39053 39038 39072 39086>, + <38835 38873 38871 38855 38882 38895>, + <38669 38714 38718 38714 38743 38756>, + <38518 38570 38583 38591 38623 38636>, + <38381 38439 38460 38476 38512 38521>, + <38272 38314 38347 38370 38411 38417>, + <38185 38202 38244 38274 38318 38322>, + <38109 38107 38149 38184 38232 38237>, + <38038 38025 38060 38103 38153 38157>, + <37972 37952 37977 38031 38083 38085>, + <37909 37890 37898 37962 38015 38011>, + <37847 37833 37832 37890 37930 37918>, + <37785 37779 37777 37816 37833 37806>, + <37721 37730 37725 37735 37733 37694>, + <37655 37673 37667 37646 37630 37587>, + <37584 37596 37598 37551 37525 37480>, + <37506 37504 37511 37454 37428 37384>, + <37421 37406 37402 37350 37328 37287>, + <37330 37300 37266 37220 37200 37161>, + <37233 37174 37106 37072 37060 37018>, + <37130 37022 36934 36927 36933 36885>, + <37023 36864 36784 36857 36879 36834>, + <36972 36796 36726 36836 36868 36823>, + <36922 36732 36672 36813 36853 36809>, + <36865 36674 36610 36782 36827 36779>, + <36798 36606 36517 36704 36751 36698>, + <36719 36495 36306 36440 36464 36398>, + <36622 36353 35951 35932 35962 35898>, + <36513 36035 35540 35247 35298 35239>, + <36210 35567 34813 34264 34365 34314>, + <36001 35211 33926 32680 32928 32922>, + <35909 34566 32099 29510 28715 29333>; + }; + + qcom,pc-temp-z1-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <13001 12285 11791 11421 11294>, + <13019 12319 11832 11465 11337>, + <13012 12323 11823 11455 11331>, + <13004 12312 11815 11449 11328>, + <12989 12300 11804 11444 11325>, + <12968 12290 11789 11438 11322>, + <12954 12280 11775 11433 11319>, + <12945 12265 11764 11427 11318>, + <12938 12252 11753 11422 11316>, + <12923 12239 11743 11419 11316>, + <12886 12220 11733 11416 11315>, + <12862 12197 11729 11415 11315>, + <12835 12182 11729 11413 11314>, + <12804 12175 11729 11411 11314>, + <12788 12173 11728 11410 11313>, + <12765 12171 11726 11411 11313>, + <12751 12169 11724 11412 11313>, + <12743 12166 11724 11412 11314>, + <12730 12165 11723 11412 11316>, + <12725 12164 11726 11413 11317>, + <12725 12165 11731 11415 11318>, + <12726 12172 11733 11416 11319>, + <12727 12180 11736 11416 11319>, + <12729 12183 11739 11417 11320>, + <12733 12184 11742 11418 11321>, + <12747 12186 11746 11421 11323>, + <12765 12194 11751 11424 11325>, + <12776 12207 11756 11429 11328>, + <12783 12217 11761 11434 11331>, + <12788 12225 11766 11437 11335>, + <12792 12233 11771 11440 11338>, + <12800 12240 11776 11444 11342>, + <12807 12245 11782 11450 11346>, + <12815 12245 11788 11455 11351>, + <12823 12245 11794 11461 11354>, + <12826 12247 11800 11467 11358>, + <12825 12257 11808 11473 11362>, + <12826 12269 11818 11478 11366>, + <12837 12282 11829 11484 11371>, + <12854 12304 11840 11490 11376>, + <12872 12323 11850 11496 11381>, + <12902 12333 11857 11503 11385>, + <12916 12343 11863 11511 11389>, + <12918 12366 11868 11517 11393>, + <12935 12374 11882 11524 11398>, + <12975 12375 11894 11529 11400>, + <12971 12399 11900 11530 11400>, + <12977 12377 11893 11530 11400>, + <12956 12386 11897 11534 11404>, + <12966 12372 11909 11537 11408>, + <12970 12406 11912 11543 11411>, + <12977 12402 11928 11550 11416>, + <12964 12411 11935 11558 11424>, + <12996 12424 11950 11570 11433>, + <12996 12424 11950 11570 11433>, + <12996 12424 11950 11570 11433>; + }; + + qcom,pc-temp-z2-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <10320 10218 10422 10335 10103>, + <10141 10407 10667 10450 10205>, + <10292 10511 10675 10590 10322>, + <10394 10562 10674 10605 10473>, + <10383 10566 10664 10605 10528>, + <10358 10535 10606 10557 10481>, + <10340 10493 10544 10487 10415>, + <10324 10459 10501 10412 10374>, + <10310 10435 10463 10334 10340>, + <10296 10417 10430 10317 10333>, + <10281 10404 10399 10332 10338>, + <10275 10400 10387 10344 10344>, + <10276 10402 10400 10345 10332>, + <10278 10409 10418 10346 10308>, + <10281 10416 10425 10351 10289>, + <10289 10425 10429 10366 10231>, + <10300 10438 10435 10375 10192>, + <10316 10454 10444 10330 10198>, + <10338 10466 10454 10270 10210>, + <10353 10474 10459 10268 10226>, + <10364 10480 10463 10293 10255>, + <10373 10486 10479 10340 10307>, + <10381 10492 10570 10536 10519>, + <10389 10513 10643 10715 10722>, + <10399 10541 10589 10626 10658>, + <10418 10548 10482 10388 10456>, + <10438 10534 10455 10315 10437>, + <10441 10521 10461 10337 10997>, + <10434 10520 10471 10377 11471>, + <10428 10522 10496 10506 11283>, + <10430 10522 10529 10697 10847>, + <10434 10521 10549 10723 10572>, + <10438 10523 10564 10621 10384>, + <10443 10530 10569 10506 10275>, + <10448 10543 10561 10398 10227>, + <10450 10550 10549 10310 10199>, + <10451 10548 10547 10307 10209>, + <10452 10542 10550 10339 10269>, + <10454 10541 10555 10383 10335>, + <10457 10549 10576 10475 10411>, + <10460 10555 10601 10563 10475>, + <10464 10550 10614 10570 10489>, + <10468 10546 10625 10546 10489>, + <10476 10543 10676 10539 10505>, + <10258 10612 10693 10539 10500>, + <10202 10680 10648 10509 10438>, + <10111 10660 10634 10502 10437>, + <10074 10647 10596 10512 10438>, + <10038 10892 10565 10516 10442>, + <9961 10981 10559 10578 10553>, + <9920 10890 10626 10515 10467>, + <9778 10816 10640 10340 10196>, + <9713 10647 10580 10264 10119>, + <9769 10508 10477 10193 10026>, + <9769 10508 10477 10193 10026>, + <9769 10508 10477 10193 10026>; + }; + + qcom,pc-temp-z3-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <19453 19390 19351 19341 19359>, + <19546 19459 19413 19374 19360>, + <19608 19497 19429 19394 19385>, + <19641 19516 19438 19401 19392>, + <19650 19523 19443 19405 19395>, + <19655 19526 19446 19409 19397>, + <19658 19527 19449 19410 19399>, + <19661 19526 19452 19411 19402>, + <19662 19525 19454 19411 19406>, + <19660 19524 19452 19411 19407>, + <19654 19522 19444 19408 19403>, + <19648 19518 19436 19404 19398>, + <19643 19511 19433 19401 19393>, + <19639 19503 19430 19397 19389>, + <19633 19496 19424 19392 19384>, + <19627 19492 19418 19387 19379>, + <19621 19490 19413 19382 19374>, + <19615 19489 19410 19377 19371>, + <19608 19487 19408 19372 19367>, + <19603 19484 19405 19367 19361>, + <19598 19481 19401 19362 19354>, + <19595 19479 19401 19361 19351>, + <19596 19480 19412 19366 19355>, + <19600 19488 19420 19373 19359>, + <19605 19500 19415 19365 19351>, + <19612 19504 19405 19345 19331>, + <19618 19500 19399 19339 19329>, + <19619 19494 19394 19339 19382>, + <19615 19490 19392 19340 19427>, + <19610 19487 19394 19355 19423>, + <19606 19486 19396 19380 19410>, + <19603 19487 19401 19387 19398>, + <19600 19488 19409 19385 19388>, + <19597 19489 19413 19382 19378>, + <19594 19489 19412 19377 19367>, + <19592 19489 19409 19369 19357>, + <19591 19487 19407 19362 19348>, + <19589 19484 19403 19354 19340>, + <19586 19480 19400 19351 19337>, + <19582 19477 19398 19352 19337>, + <19577 19473 19396 19353 19338>, + <19568 19468 19393 19352 19339>, + <19559 19464 19388 19350 19344>, + <19552 19461 19385 19351 19350>, + <19343 19446 19379 19351 19352>, + <19300 19427 19373 19340 19340>, + <19299 19429 19370 19336 19336>, + <19296 19423 19367 19332 19326>, + <19297 19365 19359 19327 19321>, + <19294 19359 19355 19322 19311>, + <19292 19358 19350 19338 19329>, + <19273 19320 19359 19359 19350>, + <19275 19311 19353 19364 19351>, + <19306 19391 19382 19359 19347>, + <19306 19391 19382 19359 19347>, + <19306 19391 19382 19359 19347>; + }; + + qcom,pc-temp-z4-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15468 15284 14996 14904 14887>, + <15768 15364 15117 14876 14827>, + <15625 15301 15092 14911 14870>, + <15464 15176 15003 14874 14843>, + <15334 15064 14942 14841 14818>, + <15210 14985 14897 14816 14798>, + <15114 14924 14858 14793 14779>, + <15040 14876 14823 14773 14761>, + <14980 14837 14792 14756 14743>, + <14933 14805 14767 14741 14732>, + <14894 14779 14746 14728 14725>, + <14861 14758 14731 14719 14720>, + <14833 14741 14721 14712 14716>, + <14810 14730 14713 14707 14714>, + <14790 14724 14707 14702 14710>, + <14773 14719 14703 14697 14706>, + <14760 14714 14698 14692 14703>, + <14750 14710 14694 14688 14699>, + <14742 14706 14690 14684 14696>, + <14738 14703 14685 14679 14690>, + <14736 14700 14681 14673 14683>, + <14735 14699 14682 14672 14681>, + <14736 14702 14703 14706 14715>, + <14741 14726 14734 14754 14763>, + <14749 14776 14778 14791 14795>, + <14776 14807 14826 14824 14821>, + <14809 14809 14834 14831 14822>, + <14815 14801 14821 14819 14754>, + <14811 14789 14804 14799 14695>, + <14806 14773 14788 14769 14691>, + <14800 14761 14770 14731 14689>, + <14792 14751 14754 14709 14687>, + <14785 14742 14737 14697 14683>, + <14779 14738 14724 14688 14679>, + <14774 14735 14714 14683 14675>, + <14769 14733 14708 14679 14671>, + <14764 14730 14704 14677 14669>, + <14758 14727 14702 14675 14668>, + <14747 14721 14701 14675 14668>, + <14733 14714 14703 14684 14681>, + <14722 14706 14705 14694 14697>, + <14714 14698 14702 14692 14693>, + <14702 14688 14694 14686 14682>, + <14685 14674 14688 14687 14686>, + <14845 14654 14674 14681 14682>, + <14881 14650 14656 14663 14658>, + <14886 14648 14651 14661 14655>, + <14889 14651 14641 14649 14650>, + <14890 14712 14636 14633 14632>, + <14892 14711 14633 14625 14623>, + <14896 14712 14653 14644 14652>, + <14913 14758 14660 14646 14659>, + <14913 14772 14671 14649 14666>, + <14897 14700 14650 14658 14676>, + <14897 14700 14650 14658 14676>, + <14897 14700 14650 14658 14676>; + }; + + qcom,pc-temp-z5-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <12770 13171 13603 13845 14791>, + <14155 15250 16703 17161 16712>, + <15460 16798 17519 18575 19208>, + <16507 17913 18278 19681 20781>, + <17186 18716 18887 20445 21736>, + <17735 19366 19336 20933 22218>, + <18429 19987 19885 21377 22705>, + <19387 20692 20888 21887 23950>, + <20341 21617 22034 22444 26078>, + <21051 22826 22766 23242 27486>, + <21655 24169 23290 24520 28328>, + <22383 25267 23936 25735 28849>, + <23447 25874 25182 26603 29118>, + <24676 26278 26306 27346 29297>, + <25805 26748 26600 28103 29405>, + <26879 27468 26723 29040 29718>, + <28024 28540 26995 29658 30204>, + <29464 29831 27992 29953 31496>, + <31008 30970 29250 30340 33168>, + <32018 31779 30130 30977 34135>, + <32501 32440 30986 32230 35013>, + <33039 33461 33285 34023 35569>, + <34762 35326 42233 37909 36591>, + <38685 41967 48954 41144 37496>, + <42761 50144 43988 36443 33101>, + <47271 51347 33537 24211 21515>, + <51182 45323 28145 19084 18742>, + <51272 38177 25092 17811 31918>, + <47274 35211 23837 17285 43132>, + <43386 33897 23940 19345 41578>, + <41870 33680 24227 23800 37626>, + <40821 34980 25322 26459 35269>, + <40346 37363 28909 28337 33930>, + <40332 39788 32294 29801 32727>, + <40471 42627 34928 31077 31246>, + <40676 44423 36976 32038 30007>, + <41267 44306 37918 32266 29648>, + <41819 43290 38596 32320 29483>, + <42486 42860 38766 32466 29448>, + <43208 42704 38184 33667 30081>, + <43053 42357 37154 34906 30791>, + <41032 40933 34830 32644 30390>, + <39874 40008 31931 27841 29417>, + <39457 41456 32112 28117 32563>, + <16752 43769 33346 29173 35034>, + <12168 37632 34020 25175 27594>, + <12050 37832 31527 23178 24373>, + <11976 32847 31875 22986 21175>, + <11899 21596 27076 24858 24152>, + <11793 20594 26452 25614 23689>, + <11695 20551 21808 28233 27428>, + <11387 13263 21748 28593 25239>, + <11376 12965 18254 26587 21405>, + <12509 24364 25760 20450 17080>, + <12509 24364 25760 20450 17080>, + <12509 24364 25760 20450 17080>; + }; + + qcom,pc-temp-z6-lut { + qcom,lut-col-legend = <0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200>, + <9000 8800 8600 8400 8200>, + <8000 7800 7600 7400 7200>, + <7000 6800 6600 6400 6200>, + <6000 5800 5600 5400 5200>, + <5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200>, + <3000 2800 2600 2400 2200>, + <2000 1800 1600 1400 1200>, + <1000 900 800 700 600>, + <500 400 300 200 100>, + <0>; + qcom,lut-data = <15641 15139 14800 14663 14640>, + <15767 15187 14883 14672 14622>, + <15698 15163 14873 14694 14650>, + <15615 15108 14835 14682 14643>, + <15538 15052 14808 14671 14635>, + <15459 15006 14786 14660 14628>, + <15394 14969 14766 14651 14620>, + <15341 14939 14749 14642 14614>, + <15296 14912 14734 14634 14609>, + <15255 14890 14718 14626 14604>, + <15218 14870 14702 14619 14599>, + <15186 14852 14691 14612 14594>, + <15159 14836 14684 14607 14590>, + <15135 14824 14678 14602 14586>, + <15113 14817 14672 14597 14581>, + <15093 14812 14666 14592 14576>, + <15077 14808 14662 14587 14572>, + <15065 14805 14658 14582 14568>, + <15056 14802 14655 14577 14564>, + <15052 14800 14652 14572 14559>, + <15050 14798 14649 14567 14552>, + <15049 14798 14650 14566 14550>, + <15050 14800 14664 14586 14568>, + <15058 14817 14682 14609 14591>, + <15067 14846 14700 14618 14596>, + <15086 14862 14716 14624 14599>, + <15106 14863 14718 14624 14599>, + <15109 14859 14711 14619 14599>, + <15107 14853 14703 14613 14599>, + <15104 14848 14698 14610 14595>, + <15102 14844 14693 14607 14588>, + <15100 14842 14690 14602 14582>, + <15099 14841 14688 14597 14576>, + <15098 14841 14686 14592 14569>, + <15096 14842 14683 14587 14562>, + <15096 14843 14681 14583 14556>, + <15096 14844 14680 14579 14550>, + <15097 14844 14679 14575 14546>, + <15099 14844 14679 14573 14544>, + <15101 14846 14682 14578 14550>, + <15105 14847 14684 14584 14557>, + <15109 14848 14683 14583 14558>, + <15114 14848 14681 14581 14557>, + <15119 14849 14681 14583 14561>, + <15107 14847 14678 14581 14561>, + <15109 14842 14669 14569 14545>, + <15112 14845 14666 14566 14542>, + <15115 14843 14660 14559 14535>, + <15117 14842 14655 14550 14524>, + <15119 14842 14655 14545 14516>, + <15121 14847 14665 14563 14538>, + <15125 14853 14677 14577 14555>, + <15137 14864 14684 14583 14561>, + <15160 14886 14698 14588 14566>, + <15160 14886 14698 14588 14566>, + <15160 14886 14698 14588 14566>; + }; + + qcom,pc-temp-y1-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <6411 6004 5662 5339 5130 5048>, + <6412 5988 5657 5338 5125 5046>, + <6414 5974 5651 5335 5121 5044>, + <6415 5963 5645 5331 5117 5043>, + <6418 5956 5641 5327 5113 5041>, + <6421 5953 5637 5324 5110 5039>, + <6427 5957 5635 5320 5106 5036>, + <6434 5965 5634 5315 5103 5034>, + <6436 5967 5630 5311 5100 5033>, + <6422 5965 5622 5306 5097 5033>, + <6405 5963 5614 5302 5095 5032>, + <6404 5960 5605 5299 5093 5030>, + <6414 5955 5597 5296 5091 5028>, + <6425 5954 5595 5295 5090 5027>, + <6438 5957 5598 5295 5089 5027>, + <6454 5959 5600 5295 5088 5027>, + <6458 5956 5596 5294 5087 5026>, + <6453 5948 5589 5292 5087 5027>, + <6446 5946 5587 5292 5088 5027>, + <6443 5950 5590 5294 5089 5029>, + <6446 5957 5594 5295 5090 5030>, + <6447 5968 5601 5296 5090 5030>, + <6436 5985 5605 5298 5091 5031>, + <6423 5992 5606 5302 5093 5032>, + <6423 5984 5607 5307 5096 5034>, + <6429 5974 5610 5311 5098 5036>, + <6435 5972 5614 5314 5101 5037>, + <6440 5966 5618 5318 5103 5039>, + <6444 5964 5619 5322 5106 5041>, + <6444 5968 5618 5326 5108 5043>, + <6434 5973 5618 5330 5111 5045>, + <6424 5982 5621 5334 5115 5047>, + <6431 5998 5628 5337 5118 5050>, + <6451 6006 5636 5339 5122 5052>, + <6460 5995 5642 5342 5125 5054>, + <6453 5981 5642 5345 5128 5056>, + <6443 5981 5644 5349 5132 5059>, + <6441 5990 5645 5353 5134 5061>, + <6444 5996 5644 5357 5136 5063>, + <6446 5987 5642 5362 5137 5064>, + <6445 5973 5643 5366 5139 5065>, + <6442 5971 5649 5371 5141 5066>, + <6438 5977 5661 5376 5142 5068>, + <6428 5979 5665 5382 5145 5070>, + <6428 5978 5658 5393 5148 5073>, + <6456 5991 5678 5395 5154 5077>, + <6456 6006 5663 5405 5159 5078>, + <6453 6000 5670 5411 5156 5079>, + <6489 6040 5677 5410 5154 5079>, + <6581 6103 5732 5416 5156 5078>, + <6667 6171 5786 5421 5157 5079>, + <6720 6292 5877 5433 5161 5082>, + <6860 6626 6181 5467 5168 5087>, + <7049 6682 6246 5485 5177 5095>, + <7049 6682 6246 5485 5177 5095>, + <7049 6682 6246 5485 5177 5095>; + }; + + qcom,pc-temp-y2-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <10413 10904 11206 11383 11183 11188>, + <10459 10927 11198 11337 11159 11154>, + <10522 10942 11186 11289 11121 11115>, + <10588 10951 11170 11243 11078 11073>, + <10645 10955 11151 11201 11034 11027>, + <10680 10957 11130 11167 10996 10979>, + <10691 10952 11103 11135 10946 10918>, + <10697 10940 11075 11109 10898 10864>, + <10705 10929 11053 11092 10883 10839>, + <10716 10916 11026 11078 10876 10825>, + <10730 10907 11011 11070 10870 10810>, + <10745 10910 11013 11072 10868 10787>, + <10760 10919 11020 11076 10867 10768>, + <10778 10931 11028 11079 10860 10764>, + <10806 10952 11042 11088 10842 10766>, + <10839 10980 11061 11102 10845 10774>, + <10866 11018 11090 11138 10900 10814>, + <10892 11063 11131 11184 10971 10856>, + <10908 11089 11186 11236 11015 10869>, + <10910 11101 11258 11299 11057 10874>, + <10909 11109 11292 11326 11142 10921>, + <10906 11111 11269 11338 11359 11188>, + <10894 11111 11236 11345 11503 11392>, + <10875 11113 11238 11318 11384 11305>, + <10856 11123 11261 11267 11171 11138>, + <10837 11134 11271 11262 11108 11091>, + <10804 11134 11265 11302 11096 11095>, + <10480 11126 11263 11341 11100 11111>, + <9951 11119 11280 11360 11149 11166>, + <9769 11114 11300 11375 11223 11241>, + <9738 11105 11304 11395 11263 11274>, + <9721 11092 11305 11420 11289 11288>, + <9711 11066 11304 11442 11328 11308>, + <9704 11036 11300 11468 11452 11376>, + <9697 10997 11279 11487 11573 11446>, + <9691 10949 11247 11485 11565 11425>, + <9685 10902 11216 11468 11499 11319>, + <9680 10855 11183 11447 11435 11248>, + <9676 10779 11133 11417 11360 11218>, + <9673 10435 11056 11379 11296 11201>, + <9671 9952 10968 11331 11258 11214>, + <9669 9778 10877 11280 11225 11241>, + <9667 9718 10669 11270 11246 11227>, + <9664 9692 10363 11248 11239 11165>, + <9662 9679 10064 11121 11159 11025>, + <9659 9668 9852 11102 11024 10843>, + <9658 9664 9800 11046 11049 10828>, + <9655 9660 9728 11073 11095 10849>, + <9652 9655 9685 11126 11085 10848>, + <9650 9650 9667 11121 11054 10868>, + <9648 9648 9657 10968 11005 10765>, + <9648 9648 9651 10746 10871 10731>, + <9647 9648 9649 10517 10798 10647>, + <9647 9648 9649 9961 10671 10492>, + <9647 9648 9649 9961 10671 10492>, + <9647 9648 9649 9961 10671 10492>; + }; + + qcom,pc-temp-y3-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13421 13348 13315 13289 13275 13276>, + <13426 13352 13317 13290 13277 13276>, + <13433 13355 13319 13291 13278 13277>, + <13440 13359 13322 13292 13279 13278>, + <13446 13362 13323 13293 13280 13279>, + <13449 13365 13325 13294 13281 13280>, + <13449 13366 13326 13295 13282 13281>, + <13448 13368 13326 13296 13283 13281>, + <13447 13368 13327 13297 13284 13282>, + <13445 13368 13326 13298 13285 13282>, + <13444 13368 13326 13298 13285 13283>, + <13442 13368 13328 13298 13286 13283>, + <13441 13367 13329 13299 13286 13284>, + <13439 13366 13329 13299 13287 13285>, + <13436 13364 13329 13301 13289 13286>, + <13433 13363 13328 13302 13291 13287>, + <13429 13363 13327 13302 13291 13289>, + <13424 13363 13325 13301 13292 13290>, + <13418 13362 13325 13300 13293 13290>, + <13412 13359 13326 13298 13295 13290>, + <13406 13354 13326 13297 13295 13290>, + <13400 13349 13322 13297 13293 13290>, + <13395 13344 13317 13297 13291 13290>, + <13390 13340 13313 13295 13286 13286>, + <13386 13338 13311 13292 13280 13278>, + <13381 13335 13309 13290 13279 13276>, + <13376 13333 13308 13290 13278 13277>, + <13369 13330 13307 13290 13278 13278>, + <13361 13328 13306 13289 13279 13277>, + <13360 13326 13306 13289 13279 13276>, + <13363 13323 13305 13289 13279 13276>, + <13368 13322 13305 13289 13278 13276>, + <13376 13321 13305 13289 13278 13276>, + <13390 13321 13304 13289 13279 13277>, + <13406 13322 13303 13289 13281 13278>, + <13422 13323 13303 13289 13281 13278>, + <13442 13326 13304 13288 13280 13278>, + <13466 13332 13306 13288 13280 13278>, + <13496 13339 13308 13287 13280 13278>, + <13533 13343 13309 13287 13280 13279>, + <13578 13348 13312 13287 13280 13280>, + <13634 13359 13314 13287 13280 13281>, + <13703 13385 13316 13288 13280 13280>, + <13792 13419 13319 13288 13279 13279>, + <13916 13467 13324 13287 13277 13277>, + <14114 13582 13347 13291 13283 13282>, + <14299 13671 13378 13293 13286 13285>, + <14686 13865 13456 13296 13289 13288>, + <15312 14418 13757 13303 13292 13288>, + <16728 16496 15323 13308 13291 13288>, + <20371 23244 21973 13307 13287 13285>, + <29778 47788 47032 13309 13287 13284>, + <58541 65535 65535 13324 13290 13287>, + <65535 65535 65535 13369 13296 13294>, + <65535 65535 65535 13369 13296 13294>, + <65535 65535 65535 13369 13296 13294>; + }; + + qcom,pc-temp-y4-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <16642 16572 16528 16491 16470 16469>, + <16681 16584 16542 16489 16468 16469>, + <16731 16611 16558 16488 16466 16469>, + <16784 16643 16573 16487 16464 16469>, + <16829 16670 16584 16486 16463 16469>, + <16857 16683 16588 16486 16462 16469>, + <16869 16683 16586 16485 16463 16468>, + <16876 16683 16582 16485 16463 16467>, + <16878 16682 16577 16485 16464 16467>, + <16877 16677 16571 16487 16465 16466>, + <16876 16674 16568 16488 16466 16466>, + <16878 16676 16569 16492 16469 16467>, + <16884 16681 16570 16498 16473 16470>, + <16889 16690 16574 16504 16476 16472>, + <16891 16704 16584 16511 16479 16474>, + <16893 16722 16599 16520 16483 16477>, + <16892 16741 16618 16532 16489 16480>, + <16876 16761 16642 16548 16496 16483>, + <16852 16766 16669 16574 16505 16489>, + <16824 16746 16698 16606 16516 16499>, + <16786 16714 16708 16614 16533 16514>, + <16750 16678 16669 16609 16565 16543>, + <16718 16635 16606 16600 16584 16562>, + <16688 16601 16560 16557 16545 16533>, + <16657 16576 16526 16489 16478 16478>, + <16622 16557 16507 16472 16463 16463>, + <16605 16545 16501 16469 16462 16461>, + <16616 16537 16497 16469 16462 16460>, + <16637 16529 16495 16472 16466 16463>, + <16651 16519 16495 16478 16474 16470>, + <16659 16510 16494 16484 16482 16478>, + <16664 16509 16494 16491 16493 16487>, + <16663 16509 16492 16498 16502 16497>, + <16661 16510 16490 16508 16511 16508>, + <16660 16515 16487 16516 16518 16516>, + <16663 16524 16488 16516 16515 16514>, + <16668 16531 16494 16512 16505 16501>, + <16672 16538 16506 16506 16494 16490>, + <16677 16547 16518 16493 16482 16483>, + <16680 16565 16527 16482 16473 16479>, + <16683 16587 16529 16483 16475 16483>, + <16685 16596 16527 16487 16481 16492>, + <16686 16600 16526 16487 16477 16488>, + <16686 16602 16527 16484 16464 16470>, + <16686 16603 16528 16468 16444 16441>, + <16688 16603 16542 16478 16456 16460>, + <16692 16596 16549 16493 16478 16494>, + <16715 16600 16568 16514 16514 16534>, + <16767 16619 16600 16544 16554 16571>, + <16936 16842 16865 16578 16569 16579>, + <17379 17864 19413 16557 16500 16501>, + <18670 22588 32944 16542 16475 16481>, + <20729 38525 58970 16572 16478 16478>, + <18799 21886 65535 16656 16484 16478>, + <18799 21886 65535 16656 16484 16478>, + <18799 21886 65535 16656 16484 16478>; + }; + + qcom,pc-temp-y5-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <13757 18736 20883 21684 18352 18529>, + <14729 19159 21117 21655 19287 20536>, + <15961 19662 21390 21504 19911 21857>, + <17234 20160 21650 21300 20282 22633>, + <18329 20572 21844 21107 20460 23007>, + <19028 20812 21921 20988 20499 23117>, + <19309 20914 21744 20564 20294 22669>, + <19486 20961 21405 20013 19936 21952>, + <19575 20882 20971 19734 19596 21386>, + <19596 20483 20158 19258 19116 20358>, + <19615 19976 19559 18704 18525 19482>, + <19688 19447 19329 17877 17531 18791>, + <19808 18884 19152 17109 16744 18283>, + <19964 18601 18698 16819 16840 18052>, + <20262 18443 17804 16654 17221 17880>, + <20713 18358 17294 16416 17324 17835>, + <21199 18893 17057 15817 16848 17958>, + <21832 20362 16893 15291 16323 17990>, + <22339 21539 17467 15177 16111 17282>, + <22548 22435 19689 15170 15968 15983>, + <22705 23105 21706 15720 16078 15721>, + <22797 23458 23028 19588 17331 16849>, + <22923 23730 23912 23098 18822 18156>, + <23042 23810 24151 24117 20088 19098>, + <22959 23655 24201 24740 21162 19894>, + <22380 23396 24203 24794 21160 20116>, + <21448 23097 24104 24428 20138 20148>, + <18495 22626 24137 23962 19268 20082>, + <14313 22108 24331 23314 18857 18801>, + <12904 21395 24558 22670 18496 16867>, + <12629 20533 24860 22565 18073 16338>, + <12504 19649 25447 22720 17553 16176>, + <12598 18647 26036 22954 17378 16134>, + <12893 18049 25347 23449 18919 16934>, + <13139 17876 23594 24122 21060 18278>, + <13291 17943 22691 24730 22051 19313>, + <13423 18647 22992 25392 22713 20260>, + <13565 20667 23751 25582 22899 20913>, + <13724 21892 24266 24620 22721 21415>, + <13805 19681 24201 23297 22419 21881>, + <13784 16149 23797 22364 21959 22304>, + <13740 15231 23427 21652 21450 22842>, + <13697 15136 22050 21663 21820 24702>, + <13537 14795 19185 21708 22133 25788>, + <13440 13998 16405 21153 20560 20743>, + <13224 13615 14656 20845 19115 18435>, + <13102 13785 14840 19534 19128 17025>, + <12819 13673 14566 19149 17959 16298>, + <12154 13255 13985 19715 17292 15466>, + <10896 11319 12609 19704 16706 15146>, + <10069 9739 11643 19628 17368 15969>, + <9495 9288 11433 19139 17680 15674>, + <10113 9100 9645 18866 17639 15735>, + <24779 16968 8914 15747 19845 17666>, + <24779 16968 8914 15747 19845 17666>, + <24779 16968 8914 15747 19845 17666>; + }; + + qcom,pc-temp-y6-lut { + qcom,lut-col-legend = <(-10) 0 10 25 40 50>; + qcom,lut-row-legend = <10000 9800 9600 9400 9200 9000>, + <8800 8600 8400 8200 8000 7800>, + <7600 7400 7200 7000 6800 6600>, + <6400 6200 6000 5800 5600 5400>, + <5200 5000 4800 4600 4400 4200>, + <4000 3800 3600 3400 3200 3000>, + <2800 2600 2400 2200 2000 1800>, + <1600 1400 1200 1000 900 800>, + <700 600 500 400 300 200>, + <100 0>; + qcom,lut-data = <5706 5343 5184 5060 5013 5003>, + <5708 5346 5187 5059 5012 5004>, + <5709 5347 5188 5059 5012 5005>, + <5709 5348 5188 5058 5012 5005>, + <5709 5349 5187 5057 5012 5006>, + <5708 5349 5185 5057 5013 5006>, + <5705 5347 5182 5056 5013 5007>, + <5700 5342 5178 5056 5014 5007>, + <5695 5337 5174 5056 5014 5007>, + <5688 5332 5168 5056 5015 5007>, + <5682 5328 5165 5056 5015 5007>, + <5678 5325 5163 5057 5016 5008>, + <5675 5324 5162 5058 5017 5009>, + <5672 5323 5162 5060 5019 5010>, + <5670 5324 5163 5063 5021 5012>, + <5667 5326 5165 5066 5023 5013>, + <5663 5329 5168 5069 5025 5015>, + <5657 5334 5173 5073 5028 5017>, + <5649 5336 5180 5079 5031 5019>, + <5639 5328 5188 5087 5036 5022>, + <5627 5315 5192 5089 5041 5026>, + <5617 5303 5178 5088 5048 5034>, + <5609 5289 5157 5085 5052 5040>, + <5602 5279 5142 5071 5038 5028>, + <5597 5272 5131 5050 5014 5006>, + <5593 5268 5126 5045 5009 5001>, + <5591 5267 5125 5045 5009 5001>, + <5593 5266 5124 5045 5008 5001>, + <5598 5266 5125 5046 5010 5002>, + <5604 5267 5126 5048 5013 5004>, + <5617 5269 5128 5051 5015 5006>, + <5634 5273 5129 5053 5018 5008>, + <5652 5280 5131 5057 5021 5011>, + <5673 5288 5133 5061 5025 5016>, + <5697 5300 5135 5064 5029 5019>, + <5724 5314 5139 5065 5028 5018>, + <5755 5332 5146 5064 5025 5014>, + <5788 5354 5156 5064 5022 5012>, + <5825 5378 5167 5061 5018 5010>, + <5866 5404 5179 5059 5016 5009>, + <5914 5433 5193 5060 5017 5011>, + <5971 5469 5208 5063 5019 5015>, + <6038 5516 5228 5066 5018 5014>, + <6122 5575 5255 5068 5014 5008>, + <6240 5655 5291 5065 5008 4999>, + <6430 5795 5363 5075 5016 5009>, + <6606 5891 5425 5083 5026 5021>, + <6972 6085 5544 5095 5038 5034>, + <7544 6596 5860 5111 5051 5046>, + <8747 8345 7200 5128 5055 5048>, + <11606 13494 12686 5126 5033 5023>, + <18572 31573 33627 5137 5026 5018>, + <38708 65535 65535 5192 5030 5021>, + <65535 65535 65535 5334 5038 5026>, + <65535 65535 65535 5334 5038 5026>, + <65535 65535 65535 5334 5038 5026>; + }; + +};