android_kernel_motorola_sm6375/qcom/holi-denver-common-overlay.dtsi
mahj8 d27b8b5d90 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 <[email protected]>
Reviewed-on: https://gerrit.mot.com/1804207
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Huosheng Liao <[email protected]>
Submit-Approved: Jira Key
2023-10-22 09:57:53 +08:00

316 lines
7.1 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 "holi-denver-fmr-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>;
};
&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>;
};
};
};
};
&pm7250b_charger {
qcom,dcp-curr-max = <2000000>;
};
&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_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 = <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";
};
&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*/
>;
};