mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
1.update params 2.holi-denver-common-overlay.dtsi Change-Id: I61bf5f22812e13694678651e4fb4dddf5196899f Signed-off-by: weimh1 <[email protected]> Reviewed-on: https://gerrit.mot.com/1852263 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Huosheng Liao <[email protected]> Submit-Approved: Jira Key
352 lines
7.7 KiB
Devicetree
352 lines
7.7 KiB
Devicetree
/* 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"
|
|
#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"
|
|
|
|
&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;
|
|
};
|
|
};
|
|
|
|
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_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>;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
&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>;
|
|
};
|
|
|
|
&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_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 &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 = <57>;
|
|
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*/
|
|
/*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*/
|
|
0x8088 0x200000
|
|
0x80A8 0x200000
|
|
0x80C8 0x200000
|
|
0x80E8 0x200000
|
|
0x8108 0x200000
|
|
0x80A0 0x222200E1
|
|
0x80C0 0x0
|
|
0x80E0 0x1E1E00E1
|
|
0x8100 0x2B2B00E2
|
|
0x8120 0x090900E2
|
|
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
|
|
0x8024 0x7F7F
|
|
0x4280 0xe
|
|
>;
|
|
};
|