mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
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 <weiweij@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
c84237a03e
commit
f99bcb3aed
1 changed files with 200 additions and 242 deletions
|
|
@ -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 = <KEY_SEARCH>;
|
||||
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 = <ADC5_AMUX_THM2_100K_PU>;
|
||||
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 = <ADC5_AMUX_THM2_100K_PU>;
|
||||
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 =
|
||||
/* <value reg_offset> */
|
||||
<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 =
|
||||
/* <value reg_offset> */
|
||||
<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 */
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue