ARM: dts: msm: Add DT support for Bengal nopmi
Add support for nopmi version of Bengal platform. Change-Id: I850a960ceb76f3062a664cb54eee136d53b5fd82
This commit is contained in:
1 parent
de2a40487a
commit
93a7009f1f
29 files changed
+373
-267
No files matched your search
@@ -132,6 +132,7 @@ ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
|
||||
bengal-rumi-overlay.dtbo \
|
||||
bengal-qrd-overlay.dtbo \
|
||||
bengal-idp-overlay.dtbo \
|
||||
bengal-idp-nopmi-overlay.dtbo \
|
||||
bengal-idp-usbc-overlay.dtbo \
|
||||
bengalp-idp-overlay.dtbo \
|
||||
bengal-idp-1gb-overlay.dtbo \
|
||||
@@ -150,6 +151,7 @@ ifeq ($(CONFIG_BUILD_ARM64_DT_OVERLAY),y)
|
||||
bengal-rumi-overlay.dtbo-base := bengal.dtb
|
||||
bengal-qrd-overlay.dtbo-base := bengal.dtb
|
||||
bengal-idp-overlay.dtbo-base := bengal.dtb
|
||||
bengal-idp-nopmi-overlay.dtbo-base := bengal.dtb
|
||||
bengal-idp-usbc-overlay.dtbo-base := bengal.dtb
|
||||
bengalp-idp-overlay.dtbo-base := bengalp.dtb
|
||||
bengal-idp-1gb-overlay.dtbo-base := bengal-1gb.dtb
|
||||
@@ -168,6 +170,7 @@ else
|
||||
dtb-$(CONFIG_ARCH_BENGAL) += bengal-rumi.dtb \
|
||||
bengal-qrd.dtb \
|
||||
bengal-idp.dtb \
|
||||
bengal-idp-nopmi.dtb \
|
||||
bengal-idp-usbc.dtb \
|
||||
bengalp-idp.dtb \
|
||||
bengal-idp-1gb.dtb \
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
@@ -0,0 +1,13 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include "bengal-idp-nopmi.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGAL IDP nopmi";
|
||||
compatible = "qcom,bengal-idp", "qcom,bengal", "qcom,idp";
|
||||
qcom,msm-id = <417 0x10000>, <444 0x10000>;
|
||||
qcom,board-id = <34 0>;
|
||||
qcom,pmic-id = <0x2D 0x0 0x0 0x0>;
|
||||
};
|
||||
@@ -0,0 +1,11 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-idp-nopmi.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGAL IDP nopmi";
|
||||
compatible = "qcom,bengal-idp", "qcom,bengal", "qcom,idp";
|
||||
qcom,board-id = <34 0>;
|
||||
qcom,pmic-id = <0x2D 0x0 0x0 0x0>;
|
||||
};
|
||||
@@ -0,0 +1,24 @@
|
||||
#include "bengal-idp.dtsi"
|
||||
|
||||
&led_flash_rear {
|
||||
/delete-property/ flash-source;
|
||||
/delete-property/ torch-source;
|
||||
/delete-property/ switch-source;
|
||||
};
|
||||
|
||||
&led_flash_rear_aux {
|
||||
/delete-property/ flash-source;
|
||||
/delete-property/ torch-source;
|
||||
/delete-property/ switch-source;
|
||||
};
|
||||
|
||||
&led_flash_rear_aux2 {
|
||||
/delete-property/ flash-source;
|
||||
/delete-property/ torch-source;
|
||||
/delete-property/ switch-source;
|
||||
};
|
||||
|
||||
&sde_dsi {
|
||||
/delete-property/ lab-supply;
|
||||
/delete-property/ ibb-supply;
|
||||
};
|
||||
@@ -3,10 +3,13 @@
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
#include "bengal-thermal-pmi632-overlay.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGAL IDP";
|
||||
compatible = "qcom,bengal-idp", "qcom,bengal", "qcom,idp";
|
||||
qcom,msm-id = <417 0x10000>, <444 0x10000>;
|
||||
qcom,board-id = <34 0>;
|
||||
qcom,pmic-id = <0x2D 0x25 0x0 0x0>;
|
||||
};
|
||||
@@ -0,0 +1,64 @@
|
||||
#include "bengal-pmi632.dtsi"
|
||||
|
||||
&pmi632_qg {
|
||||
qcom,battery-data = <&mtp_batterydata>;
|
||||
qcom,qg-iterm-ma = <100>;
|
||||
qcom,hold-soc-while-full;
|
||||
qcom,linearize-soc;
|
||||
qcom,qg-use-s7-ocv;
|
||||
};
|
||||
|
||||
&pmi632_charger {
|
||||
qcom,battery-data = <&mtp_batterydata>;
|
||||
qcom,suspend-input-on-debug-batt;
|
||||
qcom,sw-jeita-enable;
|
||||
qcom,step-charging-enable;
|
||||
qcom,hvdcp2-max-icl-ua = <2000000>;
|
||||
/* SMB1355 only */
|
||||
qcom,sec-charger-config = <2>;
|
||||
dpdm-supply = <&qusb_phy0>;
|
||||
qcom,charger-temp-max = <800>;
|
||||
qcom,smb-temp-max = <800>;
|
||||
qcom,auto-recharge-soc = <98>;
|
||||
qcom,flash-disable-soc = <10>;
|
||||
qcom,hw-die-temp-mitigation;
|
||||
qcom,hw-connector-mitigation;
|
||||
qcom,connector-internal-pull-kohm = <100>;
|
||||
qcom,float-option = <1>;
|
||||
qcom,thermal-mitigation = <3000000 2500000
|
||||
2000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
extcon = <&pmi632_charger>, <&eud>;
|
||||
};
|
||||
|
||||
&smb1355 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&smb_int_default>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <105 IRQ_TYPE_LEVEL_LOW>;
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&smb1355_charger {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
|
||||
qcom,parallel-mode = <1>;
|
||||
qcom,disable-ctm;
|
||||
qcom,hw-die-temp-mitigation;
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&dsi_td4330_truly_v2_video {
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
&dsi_td4330_truly_v2_cmd {
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
&dsi_nt36525_truly_video {
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
#include "bengal-idp-usbc.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
#include "bengal-idp-usbc.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -2,9 +2,12 @@
|
||||
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-thermal-pmi632-overlay.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGAL IDP";
|
||||
compatible = "qcom,bengal-idp", "qcom,bengal", "qcom,idp";
|
||||
qcom,board-id = <34 0>;
|
||||
qcom,pmic-id = <0x2D 0x25 0x0 0x0>;
|
||||
};
|
||||
+1
-89
@@ -6,13 +6,6 @@
|
||||
#include "bengal-sde-display.dtsi"
|
||||
#include "camera/bengal-camera-sensor-idp.dtsi"
|
||||
|
||||
&soc {
|
||||
mtp_batterydata: qcom,battery-data {
|
||||
qcom,batt-id-range-pct = <15>;
|
||||
#include "qg-batterydata-alium-3600mah.dtsi"
|
||||
};
|
||||
};
|
||||
|
||||
&qupv3_se1_i2c {
|
||||
status = "ok"
|
||||
#include "smb1355.dtsi"
|
||||
@@ -64,68 +57,11 @@
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_qg {
|
||||
qcom,battery-data = <&mtp_batterydata>;
|
||||
qcom,qg-iterm-ma = <100>;
|
||||
qcom,hold-soc-while-full;
|
||||
qcom,linearize-soc;
|
||||
qcom,qg-use-s7-ocv;
|
||||
};
|
||||
|
||||
&pmi632_charger {
|
||||
qcom,battery-data = <&mtp_batterydata>;
|
||||
qcom,suspend-input-on-debug-batt;
|
||||
qcom,sw-jeita-enable;
|
||||
qcom,step-charging-enable;
|
||||
qcom,hvdcp2-max-icl-ua = <2000000>;
|
||||
/* SMB1355 only */
|
||||
qcom,sec-charger-config = <2>;
|
||||
dpdm-supply = <&qusb_phy0>;
|
||||
qcom,charger-temp-max = <800>;
|
||||
qcom,smb-temp-max = <800>;
|
||||
qcom,auto-recharge-soc = <98>;
|
||||
qcom,flash-disable-soc = <10>;
|
||||
qcom,hw-die-temp-mitigation;
|
||||
qcom,hw-connector-mitigation;
|
||||
qcom,connector-internal-pull-kohm = <100>;
|
||||
qcom,float-option = <1>;
|
||||
qcom,thermal-mitigation = <3000000 2500000
|
||||
2000000 1500000 1000000 500000>;
|
||||
};
|
||||
|
||||
&pmi632_gpios {
|
||||
smb_en {
|
||||
smb_en_default: smb_en_default {
|
||||
pins = "gpio2";
|
||||
function = "func1";
|
||||
output-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pmi632_sense {
|
||||
/* GPIO 7 and 8 are external-sense pins for PMI632 */
|
||||
pmi632_sense_default: pmi632_sense_default {
|
||||
pins = "gpio7", "gpio8";
|
||||
bias-high-impedance; /* disable the GPIO */
|
||||
bias-disable; /* no-pull */
|
||||
};
|
||||
};
|
||||
|
||||
pmi632_ctm {
|
||||
/* Disable GPIO1 for h/w base mitigation */
|
||||
pmi632_ctm_default: pmi632_ctm_default {
|
||||
pins = "gpio1";
|
||||
bias-high-impedance; /* disable the GPIO */
|
||||
bias-disable; /* no-pull */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pm6125_gpios {
|
||||
|
||||
rf_pa1_therm {
|
||||
rf_pa1_therm_default: rf_pa1_therm_default {
|
||||
pins = "gpio7";
|
||||
pins = "gpio7";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
@@ -141,10 +77,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
&usb0 {
|
||||
extcon = <&pmi632_charger>, <&eud>;
|
||||
};
|
||||
|
||||
&soc {
|
||||
gpio_keys {
|
||||
compatible = "gpio-keys";
|
||||
@@ -202,23 +134,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
&smb1355 {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&smb_int_default>;
|
||||
interrupt-parent = <&tlmm>;
|
||||
interrupts = <105 IRQ_TYPE_LEVEL_LOW>;
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&smb1355_charger {
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&smb_en_default &pmi632_sense_default &pmi632_ctm_default>;
|
||||
qcom,parallel-mode = <1>;
|
||||
qcom,disable-ctm;
|
||||
qcom,hw-die-temp-mitigation;
|
||||
status = "ok"
|
||||
};
|
||||
|
||||
&sdhc_1 {
|
||||
vdd-supply = <&L24A>;
|
||||
qcom,vdd-voltage-level = <2960000 2960000>;
|
||||
@@ -302,7 +217,6 @@
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,platform-reset-gpio = <&tlmm 82 0>;
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
&dsi_td4330_truly_v2_cmd {
|
||||
@@ -314,7 +228,6 @@
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,platform-te-gpio = <&tlmm 81 0>;
|
||||
qcom,platform-reset-gpio = <&tlmm 82 0>;
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
&dsi_nt36525_truly_video {
|
||||
@@ -325,7 +238,6 @@
|
||||
qcom,mdss-dsi-bl-min-level = <1>;
|
||||
qcom,mdss-dsi-bl-max-level = <4095>;
|
||||
qcom,platform-reset-gpio = <&tlmm 82 0>;
|
||||
qcom,platform-bklight-en-gpio = <&pmi632_gpios 6 0>;
|
||||
};
|
||||
|
||||
&dsi_r66451_amoled_hd_90hz_video {
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-pmi632.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGAL-IOT";
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-pmi632.dtsi"
|
||||
/ {
|
||||
};
|
||||
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
#include "pmi632.dtsi"
|
||||
|
||||
&soc {
|
||||
mtp_batterydata: qcom,battery-data {
|
||||
qcom,batt-id-range-pct = <15>;
|
||||
#include "qg-batterydata-alium-3600mah.dtsi"
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_vadc {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&conn_therm_default &skin_therm_default>;
|
||||
|
||||
conn_therm {
|
||||
reg = <ADC_GPIO1_PU2>;
|
||||
label = "conn_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
skin_therm {
|
||||
reg = <ADC_GPIO2_PU2>;
|
||||
label = "skin_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_gpios {
|
||||
conn_therm {
|
||||
conn_therm_default: conn_therm_default {
|
||||
pins = "gpio1";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
|
||||
skin_therm {
|
||||
skin_therm_default: skin_therm_default {
|
||||
pins = "gpio3";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_adc_tm {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
io-channels = <&pmi632_vadc ADC_GPIO2_PU2>;
|
||||
|
||||
/* Channel nodes */
|
||||
skin_therm {
|
||||
reg = <ADC_GPIO2_PU2>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_gpios {
|
||||
smb_en {
|
||||
smb_en_default: smb_en_default {
|
||||
pins = "gpio2";
|
||||
function = "func1";
|
||||
output-enable;
|
||||
};
|
||||
};
|
||||
|
||||
pmi632_sense {
|
||||
/* GPIO 7 and 8 are external-sense pins for PMI632 */
|
||||
pmi632_sense_default: pmi632_sense_default {
|
||||
pins = "gpio7", "gpio8";
|
||||
bias-high-impedance; /* disable the GPIO */
|
||||
bias-disable; /* no-pull */
|
||||
};
|
||||
};
|
||||
|
||||
pmi632_ctm {
|
||||
/* Disable GPIO1 for h/w base mitigation */
|
||||
pmi632_ctm_default: pmi632_ctm_default {
|
||||
pins = "gpio1";
|
||||
bias-high-impedance; /* disable the GPIO */
|
||||
bias-disable; /* no-pull */
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_gpios {
|
||||
disp_pins {
|
||||
disp_pins_default: disp_pins_default {
|
||||
pins = "gpio6";
|
||||
function = "func1";
|
||||
qcom,drive-strength = <2>;
|
||||
power-source = <0>;
|
||||
bias-disable;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&thermal_zones {
|
||||
chg-skin-therm-usr {
|
||||
thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>;
|
||||
};
|
||||
|
||||
quiet-therm-step {
|
||||
cooling-maps {
|
||||
batt_cdev1 {
|
||||
cooling-device = <&pmi632_charger 2 2>;
|
||||
};
|
||||
|
||||
batt_cdev2 {
|
||||
cooling-device = <&pmi632_charger 4 4>;
|
||||
};
|
||||
|
||||
batt_cdev3 {
|
||||
cooling-device = <&pmi632_charger 6 6>;
|
||||
};
|
||||
|
||||
batt_cdev4 {
|
||||
cooling-device = <&pmi632_charger 7 7>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
/plugin/;
|
||||
|
||||
#include "bengal-pmi632.dtsi"
|
||||
#include "bengal-qrd.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
/dts-v1/;
|
||||
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-pmi632.dtsi"
|
||||
#include "bengal-qrd.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <dt-bindings/iio/qcom,spmi-vadc.h>
|
||||
#include <dt-bindings/input/input.h>
|
||||
#include "bengal-thermal-overlay.dtsi"
|
||||
#include "bengal-thermal-pmi632-overlay.dtsi"
|
||||
#include "bengal-audio-overlay.dtsi"
|
||||
#include "bengal-sde-display.dtsi"
|
||||
#include "camera/bengal-camera-sensor-qrd.dtsi"
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/plugin/;
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include "bengal-pmi632.dtsi"
|
||||
#include "bengal-rumi.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
/memreserve/ 0x90000000 0x00000100;
|
||||
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-pmi632.dtsi"
|
||||
#include "bengal-rumi.dtsi"
|
||||
|
||||
/ {
|
||||
|
||||
@@ -5,19 +5,6 @@
|
||||
#include "dsi-panel-r66451-hd-plus-90hz-cmd.dtsi"
|
||||
#include <dt-bindings/clock/mdss-14nm-pll-clk.h>
|
||||
|
||||
&pmi632_gpios {
|
||||
disp_pins {
|
||||
disp_pins_default: disp_pins_default {
|
||||
pins = "gpio6";
|
||||
function = "func1";
|
||||
qcom,drive-strength = <2>;
|
||||
power-source = <0>;
|
||||
bias-disable;
|
||||
output-low;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&soc {
|
||||
dsi_panel_pwr_supply: dsi_panel_pwr_supply {
|
||||
#address-cells = <1>;
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
|
||||
&thermal_zones {
|
||||
pmi632-tz {
|
||||
cooling-maps {
|
||||
trip0_bat {
|
||||
trip = <&pmi632_trip0>;
|
||||
cooling-device =
|
||||
<&pmi632_charger (THERMAL_MAX_LIMIT-1)
|
||||
(THERMAL_MAX_LIMIT-1)>;
|
||||
};
|
||||
|
||||
trip1_bat {
|
||||
trip = <&pmi632_trip1>;
|
||||
cooling-device =
|
||||
<&pmi632_charger THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pm6125-tz {
|
||||
cooling-maps {
|
||||
trip0_cpu0 {
|
||||
@@ -71,94 +53,6 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl0 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-5)
|
||||
(THERMAL_MAX_LIMIT-5)>;
|
||||
};
|
||||
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-5)
|
||||
(THERMAL_MAX_LIMIT-5)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl1 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
cpu6_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu7_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl2 {
|
||||
cooling-maps {
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl2>;
|
||||
cooling-device = <&cpu4_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu5_cdev {
|
||||
trip = <&bcl_lvl2>;
|
||||
cooling-device = <&cpu5_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
soc {
|
||||
cooling-maps {
|
||||
soc_cpu0 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
soc_cpu4 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
soc_cpu6 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
soc_cpu7 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&mdss_mdp {
|
||||
|
||||
@@ -0,0 +1,109 @@
|
||||
#include <dt-bindings/thermal/thermal.h>
|
||||
|
||||
&thermal_zones {
|
||||
pmi632-tz {
|
||||
cooling-maps {
|
||||
trip0_bat {
|
||||
trip = <&pmi632_trip0>;
|
||||
cooling-device =
|
||||
<&pmi632_charger (THERMAL_MAX_LIMIT-1)
|
||||
(THERMAL_MAX_LIMIT-1)>;
|
||||
};
|
||||
|
||||
trip1_bat {
|
||||
trip = <&pmi632_trip1>;
|
||||
cooling-device =
|
||||
<&pmi632_charger THERMAL_MAX_LIMIT
|
||||
THERMAL_MAX_LIMIT>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl0 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-5)
|
||||
(THERMAL_MAX_LIMIT-5)>;
|
||||
};
|
||||
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl0>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-5)
|
||||
(THERMAL_MAX_LIMIT-5)>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl1 {
|
||||
cooling-maps {
|
||||
cpu0_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
cpu6_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu7_cdev {
|
||||
trip = <&bcl_lvl1>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
pmi632-bcl-lvl2 {
|
||||
cooling-maps {
|
||||
cpu4_cdev {
|
||||
trip = <&bcl_lvl2>;
|
||||
cooling-device = <&cpu4_isolate 1 1>;
|
||||
};
|
||||
|
||||
cpu5_cdev {
|
||||
trip = <&bcl_lvl2>;
|
||||
cooling-device = <&cpu5_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
soc {
|
||||
cooling-maps {
|
||||
soc_cpu0 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device =
|
||||
<&CPU0 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
soc_cpu4 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device =
|
||||
<&CPU4 (THERMAL_MAX_LIMIT-4)
|
||||
(THERMAL_MAX_LIMIT-4)>;
|
||||
};
|
||||
|
||||
soc_cpu6 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device = <&cpu6_isolate 1 1>;
|
||||
};
|
||||
|
||||
soc_cpu7 {
|
||||
trip = <&pmi632_low_soc>;
|
||||
cooling-device = <&cpu7_isolate 1 1>;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -568,7 +568,6 @@
|
||||
polling-delay-passive = <0>;
|
||||
polling-delay = <0>;
|
||||
thermal-governor = "user_space";
|
||||
thermal-sensors = <&pmi632_adc_tm ADC_GPIO2_PU2>;
|
||||
wake-capable-sensor;
|
||||
trips {
|
||||
active-config0 {
|
||||
@@ -1232,22 +1231,18 @@
|
||||
|
||||
batt_cdev1 {
|
||||
trip = <&skin_batt_trip0>;
|
||||
cooling-device = <&pmi632_charger 2 2>;
|
||||
};
|
||||
|
||||
batt_cdev2 {
|
||||
trip = <&skin_batt_trip1>;
|
||||
cooling-device = <&pmi632_charger 4 4>;
|
||||
};
|
||||
|
||||
batt_cdev3 {
|
||||
trip = <&skin_batt_trip2>;
|
||||
cooling-device = <&pmi632_charger 6 6>;
|
||||
};
|
||||
|
||||
batt_cdev4 {
|
||||
trip = <&skin_batt_trip3>;
|
||||
cooling-device = <&pmi632_charger 7 7>;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -2652,7 +2652,6 @@
|
||||
#include "bengal-coresight.dtsi"
|
||||
#include "bengal-bus.dtsi"
|
||||
#include "bengal-vidc.dtsi"
|
||||
#include "pmi632.dtsi"
|
||||
#include "pm6125.dtsi"
|
||||
|
||||
&gcc_camss_top_gdsc {
|
||||
@@ -2888,59 +2887,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_vadc {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
pinctrl-names = "default";
|
||||
pinctrl-0 = <&conn_therm_default &skin_therm_default>;
|
||||
|
||||
conn_therm {
|
||||
reg = <ADC_GPIO1_PU2>;
|
||||
label = "conn_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
|
||||
skin_therm {
|
||||
reg = <ADC_GPIO2_PU2>;
|
||||
label = "skin_therm";
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
qcom,pre-scaling = <1 1>;
|
||||
};
|
||||
};
|
||||
|
||||
&pmi632_gpios {
|
||||
conn_therm {
|
||||
conn_therm_default: conn_therm_default {
|
||||
pins = "gpio1";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
|
||||
skin_therm {
|
||||
skin_therm_default: skin_therm_default {
|
||||
pins = "gpio3";
|
||||
bias-high-impedance;
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
&pmi632_adc_tm {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
io-channels = <&pmi632_vadc ADC_GPIO2_PU2>;
|
||||
|
||||
/* Channel nodes */
|
||||
skin_therm {
|
||||
reg = <ADC_GPIO2_PU2>;
|
||||
qcom,ratiometric;
|
||||
qcom,hw-settle-time = <200>;
|
||||
};
|
||||
};
|
||||
|
||||
&msm_vidc {
|
||||
qcom,cx-ipeak-data = <&cx_ipeak_lm 6>;
|
||||
qcom,clock-freq-threshold = <300000000>;
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include <dt-bindings/interrupt-controller/arm-gic.h>
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGALP IDP";
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "bengalp.dtsi"
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGALP IDP";
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
#include "bengal-idp.dtsi"
|
||||
#include "bengal-idp-pmi632.dtsi"
|
||||
@@ -1,4 +1,5 @@
|
||||
#include "bengal.dtsi"
|
||||
#include "bengal-pmi632.dtsi"
|
||||
|
||||
/ {
|
||||
model = "Qualcomm Technologies, Inc. BENGALP-IOT";
|
||||
|
||||
Reference in new issue
Block a user